:root{--nav:#242424;--nav2:#f4f4f4;--accent:#0067b8;--accent2:#005a9e;--bg:#f7f7f7;--card:#fff;--text:#242424;--muted:#616161;--border:#d2d0ce;--grid:#e1dfdd;--head:#f3f2f1;--select:#e5f1fb;--ok:#107c10;--warn:#8a4b08;--danger:#a4262c}*{box-sizing:border-box}body{margin:0;font:14px "Segoe UI",Arial,sans-serif;color:var(--text);background:var(--bg)}a{color:var(--accent);text-decoration:none}.topbar{height:52px;background:var(--nav);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 20px;box-shadow:0 1px 3px #0004}.brand,.user{display:flex;align-items:center;gap:10px}.brand-mark{background:var(--accent);font-weight:700;padding:8px}.brand strong,.brand small{display:block}.brand small{color:#c8c6c4;font-size:11px}.user form{margin:0}.linkbtn{border:1px solid #8a8886;background:transparent;color:#fff;padding:5px 12px}.layout{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:calc(100vh - 52px)}.sidebar{background:var(--nav2);border-right:1px solid var(--border);padding:10px 0}.sidebar a{display:block;color:#323130;padding:8px 16px;border-left:3px solid transparent}.sidebar a:hover{background:#e1dfdd;border-left-color:var(--accent)}.sidebar .muted-link{color:#8a8886}.nav-title{color:#605e5c;text-transform:uppercase;font-size:11px;font-weight:600;letter-spacing:.04em;padding:18px 16px 5px}.content{padding:20px 24px;max-width:none;width:100%;overflow:hidden}.page-head,.section-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:12px}.page-head h1,h1{margin:0 0 3px;font-size:24px;font-weight:500}.page-head p,p{color:var(--muted);margin:4px 0}h2{font-size:16px;font-weight:600;margin:0 0 12px}.primary,button{background:var(--accent);color:#fff;border:1px solid var(--accent);border-radius:2px;padding:7px 14px;font-weight:600;cursor:pointer}.primary:hover,button:hover{background:var(--accent2)}.primary[disabled],button[disabled]{opacity:.45;cursor:not-allowed}.secondary{background:#fff;border-color:#8a8886;color:#323130}.panel{background:var(--card);border:1px solid var(--border);border-radius:0;padding:16px;margin-bottom:14px;box-shadow:0 1px 2px #0000000d}.metrics{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px;margin-bottom:14px}.metric{background:#fff;border:1px solid var(--border);border-left:3px solid var(--accent);padding:13px}.metric span{display:block;color:var(--muted);font-size:12px}.metric strong{display:block;font-size:22px;margin-top:5px;font-weight:500}.grid2,.split{display:grid;grid-template-columns:1fr 1fr;gap:14px}.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.action-grid a,.master-card{border:1px solid var(--border);padding:12px;display:block;background:#fff}.action-grid b,.action-grid span,.master-card b,.master-card strong,.master-card span{display:block}.action-grid span,.master-card span{font-size:12px;color:var(--muted);margin-top:4px}.future{background:#f3f2f1;color:#8a8886}.readiness{display:flex;gap:22px;flex-wrap:wrap}.readiness>div{display:grid;grid-template-columns:12px auto;column-gap:8px}.readiness small{grid-column:2;color:var(--muted)}.dot{width:9px;height:9px;border-radius:50%;background:#999}.dot.ok{background:var(--ok)}.dot.no{background:var(--danger)}.master-grid{display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:10px}.master-card strong{font-size:24px;margin:8px 0;font-weight:500}.toolbar{display:grid;grid-template-columns:1fr 240px auto auto;gap:6px;margin-bottom:10px}.toolbar input,.toolbar select,input,select,textarea{width:100%;border:1px solid #8a8886;border-radius:0;padding:7px 8px;background:#fff;color:var(--text);min-height:32px}.toolbar input:focus,.toolbar select:focus,input:focus,select:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:-2px;background:#fff}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:12px}.form-grid .wide{grid-column:span 2}label{display:block;font-size:12px;font-weight:600;color:#323130}label input,label select{margin-top:4px;font-weight:400}.check{display:flex;gap:7px;align-items:center}.check input{width:auto;margin:0}.form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:10px}.flow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:18px 0}.step{padding:12px;border:1px solid var(--border)}.step.active{background:var(--select);color:var(--accent);font-weight:600}.table-wrap{overflow:auto;max-width:100%;padding:0}.table-wrap table,table{width:100%;border-collapse:separate;border-spacing:0}.table-wrap th,.table-wrap td,th,td{text-align:left;padding:7px 9px;border-right:1px solid var(--grid);border-bottom:1px solid var(--grid);font-size:12px;white-space:nowrap}.table-wrap th,th{background:var(--head);color:#323130;position:sticky;top:0;z-index:2;font-weight:600}.table-wrap tbody tr:hover td{background:var(--select)}.ledger-table tbody tr:nth-child(even) td{background:#faf9f8}.badge{display:inline-block;background:#edebe9;border-radius:10px;padding:3px 8px;font-size:11px}.badge.big{font-size:13px}.empty{padding:20px;text-align:center}.alert{padding:10px 12px;margin-bottom:12px}.alert.error{background:#fde7e9;color:var(--danger);border-left:3px solid var(--danger)}.alert.warn{background:#fff4ce;color:var(--warn);border-left:3px solid #ffb900}.alert.ok{background:#dff6dd;color:#0b6a0b}.column-picker{margin-bottom:10px}.column-picker-head{display:flex;justify-content:space-between}.column-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:7px}.table-action{white-space:nowrap;font-weight:600}.action-col{position:sticky;left:0;background:#fff!important;z-index:3;min-width:110px}.invoice-grid{min-width:1500px}.invoice-grid th:first-child,.invoice-grid td:first-child{position:sticky;left:0;z-index:3;background:var(--head)}.invoice-grid td:first-child{background:#fff;text-align:center}.invoice-grid input,.invoice-grid select{border:0;margin:0;min-width:115px;height:32px;padding:5px;background:transparent}.invoice-grid input:focus,.invoice-grid select:focus{background:#fff;outline:2px solid var(--accent)}.invoice-grid .description{min-width:180px}.invoice-grid .account-select{min-width:250px}.invoice-grid .remove{background:transparent;border:0;color:var(--danger);padding:4px}.grid-help{display:flex;gap:16px;align-items:center;font-size:12px;color:var(--muted);margin:6px 0 10px}.paste-status{color:var(--ok);font-weight:600}.login-wrap{min-height:calc(100vh - 52px);display:flex;justify-content:center;align-items:center;padding:30px}.login-card{width:min(420px,100%);background:#fff;border:1px solid var(--border);padding:24px}.login-card form{display:grid;gap:12px}@media(max-width:900px){.layout{grid-template-columns:1fr}.sidebar{display:none}.content{padding:14px}.metrics,.master-grid{grid-template-columns:repeat(2,1fr)}.grid2,.split{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr 1fr}}@media(max-width:600px){.metrics,.master-grid,.form-grid,.action-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.toolbar{grid-template-columns:1fr}.user>span{display:none}}
.danger-zone{border-left:4px solid #b42318}.danger{background:#b42318;color:#fff;border:0;border-radius:4px;padding:9px 14px;cursor:pointer}.chip{display:inline-block;margin:3px;padding:6px 9px;background:#eaf3fb;border-radius:14px}.toolbar{display:flex;gap:8px;margin-bottom:14px}.table-wrap{overflow-x:auto}
.source-ref{display:block;color:var(--accent);font-weight:600;margin-top:3px}.receipt-dialog{width:min(96vw,1600px);max-height:90vh;border:1px solid var(--border);padding:18px}.receipt-dialog::backdrop{background:#0008}.receipt-dialog .table-wrap{max-height:65vh}.receipt-document{margin-bottom:18px}.receipt-document h3{margin:0 0 4px}.receipt-document table{min-width:1500px}.receipt-document input[type="checkbox"]{width:18px;min-height:18px}.receipt-document .receipt-qty{min-width:110px}

/* AX MCS Role Center v0.38.0 */
:root{--role-teal:#008c95;--role-teal-dark:#006f76;--role-ink:#172b4d;--role-line:#d7dce1;--role-soft:#edf8f8;--role-alert:#d83b3e}
body{background:#fff;color:#1f2933;font-family:"Segoe UI",SegoeUI,Arial,sans-serif}
.role-topbar{height:50px;display:flex;align-items:center;border-bottom:1px solid var(--role-line);padding:0 28px;background:#fff;gap:24px;position:relative;z-index:50}.role-brand{display:flex;align-items:center;gap:9px;color:var(--role-ink);min-width:205px}.role-brand-mark{width:32px;height:32px;display:grid;place-items:center;background:var(--role-teal);color:#fff;font-weight:700}.role-brand strong,.role-brand small{display:block}.role-brand small{font-size:10px;color:#667}.role-company{display:flex;align-items:center;gap:8px;min-width:0}.role-company-label{font-size:11px;color:#6b7280}.role-company strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.role-company-code{font-size:11px;color:#667;border-left:1px solid var(--role-line);padding-left:8px}.role-user-tools{margin-left:auto;display:flex;align-items:center;gap:6px}.role-user-tools form{margin:0}.role-user-name{color:#4b5563;font-size:12px}.role-icon-button{border:0;background:transparent;color:var(--role-teal-dark);font-size:20px;padding:4px 7px}.role-icon-button:hover{background:var(--role-soft);color:var(--role-teal-dark)}
.role-menu{height:42px;display:flex;align-items:stretch;padding:0 56px;border-bottom:1px solid var(--role-line);background:#fff;position:relative;z-index:40;gap:2px}.role-menu>a,.role-menu summary{height:41px;display:flex;align-items:center;padding:0 12px;color:#243b53;font-size:13px;cursor:pointer;list-style:none;white-space:nowrap}.role-menu summary::-webkit-details-marker{display:none}.role-menu summary:after{content:"⌄";margin-left:5px;color:#789}.role-menu>a:hover,.role-menu summary:hover,.role-menu details[open]>summary{color:var(--role-teal-dark);background:var(--role-soft)}.role-menu details{position:relative}.role-dropdown{position:absolute;top:41px;left:0;min-width:270px;background:#fff;border:1px solid var(--role-line);box-shadow:0 8px 20px #0002;padding:7px 0;display:grid;z-index:60}.role-menu-item{display:grid;grid-template-columns:1fr 38px;align-items:center}.role-menu-item>a{padding:9px 14px;color:#243b53;white-space:nowrap}.role-menu-item:hover{background:var(--role-soft)}.role-menu-item>a:hover{color:var(--role-teal-dark)}.role-menu-item form{margin:0}.favorite-star{border:0;background:transparent;color:#087f87;font-size:20px;line-height:1;cursor:pointer;padding:7px}.favorite-star:hover{color:#e3a008;transform:scale(1.12)}.role-dropdown-wide{grid-template-columns:1fr 1fr;min-width:560px}.role-shortcuts{min-height:38px;display:flex;align-items:center;gap:22px;padding:0 66px;border-bottom:1px solid #e7eaed;overflow-x:auto}.role-shortcuts strong,.role-shortcuts span{font-size:12px;white-space:nowrap;color:#526777}.role-shortcuts a{color:var(--role-teal-dark);font-size:13px;white-space:nowrap}.role-shortcuts .role-customize-link{margin-left:auto;font-weight:600}.role-content{padding:18px 64px 40px;overflow:visible}
.role-notifications{min-height:30px;display:flex;align-items:center;gap:14px;background:#b8e8ea;color:#173f42;padding:6px 12px;margin-bottom:24px;font-size:12px}.role-notifications a{color:#075f66;border-left:1px solid #6dbfc3;padding-left:14px}.role-notifications em{margin-left:auto;font-size:11px}.role-hero{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(360px,.7fr);gap:60px;min-height:165px}.role-hero>div>p{font-size:12px}.role-hero h1{font-size:36px;line-height:1.28;font-weight:300;max-width:800px;color:#162b46}.role-hero h1 strong{font-weight:300;color:var(--role-teal)}.role-hero-dots{display:flex;gap:5px;margin-top:22px}.role-hero-dots i{width:7px;height:7px;border-radius:50%;background:#aeb8c2}.role-hero-dots i:first-child{background:#51606f}.role-actions h2,.role-kpis h2,.role-group h2,.role-bottom-grid h2{font-size:15px;border-bottom:1px solid #6b7785;padding-bottom:7px;margin-bottom:9px}.role-actions>div{display:grid;grid-template-columns:1fr 1fr;column-gap:26px}.role-actions a{padding:5px 0;color:var(--role-teal-dark)}
.role-kpis{margin-top:8px}.role-kpi-row{display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:42px}.role-kpi-row a{color:#1f2933;min-height:102px}.role-kpi-row span,.role-kpi-row strong,.role-kpi-row small{display:block}.role-kpi-row span{font-size:12px}.role-kpi-row strong{font-size:31px;font-weight:300;margin:3px 0 7px;padding-bottom:6px;border-bottom:1px solid #bbc3ca}.role-kpi-row small{color:var(--role-teal-dark)}
.role-groups{display:grid;grid-template-columns:1.05fr 1.05fr 1fr;gap:30px;margin-top:28px}.role-cubes{display:grid;grid-template-columns:repeat(3,minmax(105px,1fr));gap:5px}.role-cube{min-height:125px;background:var(--role-teal);color:#fff!important;padding:10px;display:flex;flex-direction:column;transition:transform .12s,background .12s}.role-cube:hover{background:var(--role-teal-dark);transform:translateY(-2px)}.role-cube span{font-size:12px;line-height:1.2;min-height:32px}.role-cube strong{font-size:35px;font-weight:300;margin-top:auto;border-bottom:2px solid #cdeff0;padding-bottom:4px}.role-cube small{font-size:20px}.role-cube-alert{background:#b64245}.role-cube-alert:hover{background:#963538}
.role-bottom-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:36px;margin-top:36px}.role-link-list{display:grid;grid-template-columns:1fr 1fr}.role-link-list a{padding:6px 0;color:var(--role-teal-dark)}.role-readiness{display:grid;grid-template-columns:1fr 1fr;gap:8px}.role-readiness a{color:#334e68;display:grid;grid-template-columns:12px 1fr auto;align-items:center;gap:7px}.role-job{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid #eef0f2;color:#334e68;gap:12px}.role-job span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.role-job strong{font-size:11px;color:var(--role-teal-dark)}
.dashboard-favorites{margin-bottom:28px}.dashboard-favorites .section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.dashboard-favorites h2{margin-bottom:3px}.dashboard-favorites p{margin:0;color:#60758a}.dashboard-favorite-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:8px;margin-top:12px}.dashboard-favorite-grid>a{min-height:90px;border:1px solid #c8dde0;border-left:4px solid var(--role-teal);padding:12px;background:#fff;color:#243b53;display:flex;flex-direction:column}.dashboard-favorite-grid>a:hover{background:var(--role-soft);transform:translateY(-1px)}.dashboard-favorite-grid span{font-size:11px;color:#65798c}.dashboard-favorite-grid strong{margin-top:5px}.dashboard-favorite-grid small{margin-top:auto;color:var(--role-teal-dark)}.favorite-settings .section-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.favorite-settings-list{display:grid;grid-template-columns:1fr 1fr;gap:8px 22px}.favorite-settings-row{display:grid;grid-template-columns:42px 1fr auto;align-items:center;border:1px solid #dde5ea;border-radius:4px;padding:7px;background:#fff}.favorite-settings-row.is-favorite{border-color:#7bc3c7;background:#f1fbfb}.favorite-settings-row form{margin:0}.favorite-settings-row span{display:flex;flex-direction:column}.favorite-settings-row small{color:#65798c}.favorite-order button{border:1px solid #b8c8d2;background:#fff;padding:5px 9px;cursor:pointer}.favorite-order button+button{margin-left:4px}
@media(max-width:1250px){.role-menu{padding:0 20px;overflow-x:auto}.role-shortcuts{padding:0 28px}.role-content{padding:18px 28px}.role-groups{grid-template-columns:1fr}.role-cubes{grid-template-columns:repeat(3,1fr)}.dashboard-favorite-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:800px){.role-topbar{padding:0 12px}.role-company-code,.role-user-name{display:none}.role-menu{padding:0 8px}.role-shortcuts{padding:0 14px}.role-content{padding:14px}.role-hero{grid-template-columns:1fr;gap:20px}.role-hero h1{font-size:28px}.role-kpi-row,.role-bottom-grid{grid-template-columns:1fr 1fr}.role-notifications{align-items:flex-start;flex-wrap:wrap}.role-notifications em{margin-left:0}.dashboard-favorite-grid,.favorite-settings-list{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.role-brand{min-width:auto}.role-brand small,.role-company-label{display:none}.role-kpi-row,.role-bottom-grid,.dashboard-favorite-grid,.favorite-settings-list{grid-template-columns:1fr}.role-cubes{grid-template-columns:repeat(2,1fr)}.role-actions>div{grid-template-columns:1fr}.role-dropdown-wide{grid-template-columns:1fr;min-width:250px}.favorite-settings .section-head{align-items:flex-start;flex-direction:column}}

/* v0.45.1: contrasto esplicito per i comandi di ordinamento Preferiti. */
.master-update-dialog{max-width:680px;border:0;border-radius:12px;padding:24px;box-shadow:0 18px 60px #0005}.master-update-dialog::backdrop{background:#0007}.master-update-dialog li{margin:.65rem 0}
.favorite-order button{border:1px solid #78909c;background:#fff;color:#173f42!important;font-size:18px;font-weight:700;line-height:1;padding:6px 10px;cursor:pointer;box-shadow:0 1px 2px #0001}
.favorite-order button:hover,.favorite-order button:focus-visible{background:#dff4f5;border-color:#087f87;color:#075f66!important;outline:2px solid #69bcc1;outline-offset:1px}
.mis-toolbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.mis-warning{padding:10px 12px;border:1px solid #d99;border-radius:6px;background:#fff7f2}.mis-table{width:100%;border-collapse:collapse;font-size:13px}.mis-table th,.mis-table td{padding:7px 9px;border-bottom:1px solid #ddd;text-align:right;white-space:nowrap}.mis-table th:first-child,.mis-table td:first-child{text-align:left;min-width:320px}.mis-margin{font-weight:700;background:#f2f4f7}.mis-detail-row td:first-child{padding-left:calc(12px + var(--depth)*18px)}.mis-config-grid{display:grid;grid-template-columns:minmax(360px,1fr) minmax(460px,1.35fr);gap:18px}.mis-source,.mis-dropzone{border:1px solid #d7dce2;border-radius:8px;padding:12px;background:#fff}.mis-dropzone{min-height:90px;margin-bottom:12px}.mis-dropzone.drag-over{outline:3px solid #7aa7d8}.mis-draggable{cursor:grab;padding:5px 7px;margin:3px 0;border-radius:5px;background:#f6f7f9}.mis-chip{display:flex;justify-content:space-between;gap:8px;padding:5px 7px;margin:3px 0;background:#eef4fb;border-radius:5px}.mis-tree summary{cursor:pointer;font-weight:600}.mis-tree details{margin-left:12px}@media(max-width:980px){.mis-config-grid{grid-template-columns:1fr}}
/* v0.49.3 - WBS tree */

/* WBS compact Business Central-style grid */
.wbs-panel{padding:12px}.wbs-panel h2{margin:0 0 9px}.wbs-bc-grid{min-width:1040px;border:1px solid var(--grid);border-bottom:0}.wbs-bc-grid th{padding:6px 8px;background:#f3f2f1;font-size:11px;color:#323130;text-transform:none}.wbs-bc-grid td{height:34px;padding:0 6px;background:#fff;vertical-align:middle}.wbs-bc-grid tbody tr:hover td{background:#f3f9fb}.wbs-bc-grid .wbs-level-1 td{background:#eef8f8;font-weight:600}.wbs-bc-grid .wbs-level-1:hover td{background:#e5f4f4}.wbs-bc-grid input,.wbs-bc-grid select{height:30px;min-height:30px;margin:0;padding:3px 5px;border:0;background:transparent;font-size:12px}.wbs-bc-grid input:focus,.wbs-bc-grid select:focus{background:#fff;outline:2px solid var(--accent);outline-offset:-2px}.wbs-bc-grid .col-level{width:52px}.wbs-bc-grid .col-pos{width:62px}.wbs-bc-grid .col-actions{width:210px}.wbs-level-badge{display:inline-block;min-width:27px;padding:2px 5px;border-radius:10px;background:#0b7f86;color:#fff;text-align:center;font-size:10px;font-weight:600}.wbs-level-2 .wbs-level-badge{background:#6b8790}.wbs-tree-cell{position:relative}.wbs-tree-cell.level-2{padding-left:32px!important}.wbs-tree-cell.level-2:before{content:"";position:absolute;left:13px;top:-18px;bottom:50%;border-left:1px solid #7f9da5}.wbs-tree-cell.level-2:after{content:"";position:absolute;left:13px;top:50%;width:13px;border-top:1px solid #7f9da5}.wbs-inline-actions{display:flex;gap:4px;align-items:center;white-space:nowrap}.wbs-inline-actions form{display:inline-flex;gap:2px;margin:0}.wbs-inline-actions button{padding:4px 7px;min-height:26px;font-size:11px}.wbs-pos-input{width:52px!important;text-align:center}.danger-link{color:#a4262c!important}.wbs-model-head{display:grid;grid-template-columns:130px minmax(260px,1fr) 130px 100px auto;gap:8px;align-items:end}.wbs-model-head label{margin:0}.wbs-model-head input{margin-top:3px}.wbs-model-head .check{align-self:center;margin-top:16px}.wbs-model-head button{margin-bottom:0}@media(max-width:900px){.wbs-model-head{grid-template-columns:1fr 1fr}}

/* v0.51.0 - Project Control */
.filter-row{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.filter-row label{min-width:240px}.filter-row button{margin-bottom:0}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:12px}.kpi{border:1px solid var(--role-line);border-left:3px solid var(--role-teal);padding:11px 13px;background:#fff}.kpi span,.kpi strong,.kpi small{display:block}.kpi span{font-size:11px;color:#65798c}.kpi strong{font-size:22px;font-weight:400;margin:4px 0}.kpi small{font-size:11px;color:#60758a}.muted{color:var(--muted);font-size:11px}.alert.warning{background:#fff4ce;color:var(--warn);border-left:3px solid #ffb900}@media(max-width:900px){.kpi-grid{grid-template-columns:1fr 1fr}}@media(max-width:560px){.kpi-grid{grid-template-columns:1fr}}
/* v0.54.0 - configuratore CE gestionale a due driver */
.mis-config-tabs{display:flex;gap:8px;margin:0 0 14px}.mis-config-tabs a{padding:9px 14px;border:1px solid #cfd6de;border-radius:7px;text-decoration:none;background:#fff}.mis-config-tabs a.active{font-weight:700;background:#eef4fb;border-color:#9fb9d5}.mis-scroll-panel{max-height:72vh;overflow-y:auto;position:relative}.mis-sticky-head{position:sticky;top:0;z-index:4;background:#fff;padding:4px 0 9px;border-bottom:1px solid #e5e7eb;margin-bottom:8px}.mis-destination{border:1px solid #d7dce2;border-radius:8px;padding:12px;background:#fff}.mis-rule-help{margin-top:18px}.mis-draggable small{margin-left:6px}.mis-draggable strong{margin-left:6px;font-size:12px}.mis-dropzone h3{margin-top:0}
/* v0.54.1 - selezione libera raggruppamenti CE gestionale */
.mis-dimension-picker{display:flex;gap:8px 14px;align-items:center;flex-wrap:wrap;margin:0;padding:7px 10px;border:1px solid #d7dce2;border-radius:6px;min-width:500px}.mis-dimension-picker legend{font-size:12px;font-weight:600;padding:0 4px}.mis-dimension-picker .check{white-space:nowrap}
/* v0.54.3 - evidenza totali civilistici */
.grand-total-row td{font-weight:800;border-top:2px solid #243b53;border-bottom:2px solid #243b53;background:#f2f5f8}

/* v0.55.0 - Conto Economico Gestionale: gerarchia visiva e leggibilita */
.mis-report-panel{padding:0;overflow:auto;border-radius:8px;box-shadow:0 2px 8px #00000010}
.mis-table{font-variant-numeric:tabular-nums;background:#fff}
.mis-table thead th{background:#eef2f6;border-bottom:2px solid #9aa7b3;color:#243447;font-weight:700}
.mis-table thead th:first-child{left:0;z-index:4}
.mis-section-row td{border-top:1px solid #cbd5df;border-bottom:1px solid #cbd5df}
.mis-section-row td:first-child{position:sticky;left:0;z-index:1}
.mis-detail-section[data-section="REVENUE"] td{background:#eaf6ee;font-weight:700}
.mis-detail-section[data-section="VARIABLE_COSTS"] td,.mis-detail-section[data-section="DIRECT_FIXED_COSTS"] td,.mis-detail-section[data-section="INDIRECT_COSTS"] td,.mis-detail-section[data-section="DAA"] td,.mis-detail-section[data-section="TAXES"] td{background:#fff4e8;font-weight:700}
.mis-detail-section[data-section="FINANCIAL"] td,.mis-detail-section[data-section="NON_OPERATING"] td{background:#f4f1fb;font-weight:700}
.mis-margin td{background:#e8eef7!important;border-top:2px solid #60758a;border-bottom:2px solid #60758a;font-weight:800;font-size:13px}
.mis-margin[data-section="EBITDA"] td,.mis-margin[data-section="EBIT"] td{background:#dde9f7!important;font-size:14px}
.mis-margin[data-section="NET_RESULT"] td{background:#dfeee4!important;border-top:3px double #486b55;font-size:14px}
.mis-section-label{letter-spacing:.01em}
.mis-detail-row td{background:#fff}
.mis-detail-row:nth-child(even) td{background:#fbfcfd}
.mis-detail-row:hover td{background:#eef5fb!important}
.mis-detail-row td:first-child{padding-left:calc(18px + var(--depth)*20px);border-left:3px solid transparent}
.mis-detail-row.mis-depth-0 td:first-child{font-weight:650;border-left-color:#829ab1}
.mis-detail-row.mis-depth-1 td:first-child{font-weight:600;color:#334e68}
.mis-detail-row.mis-depth-2 td:first-child{font-weight:550;color:#486581}
.mis-detail-row.mis-depth-3 td:first-child,.mis-detail-row.mis-depth-4 td:first-child,.mis-detail-row.mis-depth-5 td:first-child{color:#5f6f7f}
.mis-table td:not(:first-child),.mis-table th:not(:first-child){text-align:right}
.danger-zone{border-left:4px solid #a4262c;background:#fff8f8}.danger-zone h2{color:#8b1e24}.danger-button{background:#a4262c;border-color:#a4262c}.danger-button:hover{background:#7f1d1d}

/* v0.59.1 - B-003 fix: badge versione leggibile su header chiaro. */
.role-version-badge{display:inline-flex;align-items:center;white-space:nowrap;padding:3px 8px;border:1px solid #b8c4cc;border-radius:12px;font-size:11px;font-weight:600;letter-spacing:.02em;color:#334155;background:#f8fafc;opacity:1}
@media(max-width:800px){.role-version-badge{font-size:10px;padding:2px 6px}}

/* v0.69.3 - Totali sempre visibili nelle tabelle economiche. */
.total-row th,.total-row td{font-weight:700;border-top:2px solid #9aa7b3;background:var(--head)}

/* v0.70.0 - Project Cost Control summary matrix */
.project-economic-summary th:not(:first-child),.project-economic-summary td:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
.project-economic-summary th:first-child,.project-economic-summary td:first-child{min-width:180px}
.project-economic-summary thead th{white-space:nowrap}


/* B-037 - Percorso guidato Controllo Commessa */
.workflow-steps{display:grid;gap:12px;margin:16px 0}.workflow-step{display:grid;grid-template-columns:46px 1fr auto;gap:14px;align-items:start;background:#fff;border:1px solid #d8e2ea;border-left:5px solid #c7d3dd;border-radius:8px;padding:16px}.workflow-step.current{border-left-color:#1677a6;background:#f5fbfe}.workflow-step.done{border-left-color:#3b8c67}.workflow-step-no{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;background:#edf3f7}.workflow-step h3{margin:0 0 6px}.workflow-step p{margin:4px 0 8px}.workflow-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}.workflow-project-head .kpi-grid{margin-top:10px}.workflow-advanced summary{cursor:pointer}.workflow-advanced summary::marker{color:#1677a6}@media(max-width:900px){.workflow-step{grid-template-columns:40px 1fr}.workflow-step>.badge{grid-column:2}}

/* v0.106.0 - UI Refresh pilot: Project Control */
.pc-project-overview{padding:0;overflow:visible;border-radius:8px;border-color:#dbe3e8;box-shadow:0 2px 9px #172b4d0d}
.pc-project-header{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;padding:20px 22px 18px;border-bottom:1px solid #e5eaee;background:linear-gradient(180deg,#fff 0%,#fbfdfd 100%);border-radius:8px 8px 0 0}
.pc-project-identity{min-width:0}.pc-eyebrow{font-size:10px;font-weight:700;letter-spacing:.12em;color:var(--role-teal-dark);margin-bottom:5px}.pc-project-identity h2{font-size:22px;font-weight:600;color:#172b4d;margin:0 0 5px}.pc-project-identity p{font-size:12px;margin:0;color:#617386}.pc-meta-sep{display:inline-block;margin:0 7px;color:#a3b0ba}
.pc-actionbar{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.pc-action{min-height:36px;display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid #b9c8cf;border-radius:5px;font-size:12px;font-weight:600;white-space:nowrap;cursor:pointer}.pc-action-icon{font-size:16px;line-height:1;font-weight:400}.pc-action-primary{background:var(--role-teal);border-color:var(--role-teal);color:#fff}.pc-action-primary:hover{background:var(--role-teal-dark);color:#fff}.pc-action-secondary,.pc-action-more{background:#fff;color:#284354}.pc-action-secondary:hover,.pc-action-more:hover{background:var(--role-soft);border-color:#91bcc0;color:var(--role-teal-dark)}
.pc-more-actions{position:relative}.pc-more-actions summary{list-style:none}.pc-more-actions summary::-webkit-details-marker{display:none}.pc-action-menu{position:absolute;right:0;top:43px;z-index:30;width:320px;background:#fff;border:1px solid #cbd6dc;border-radius:7px;box-shadow:0 12px 30px #172b4d24;padding:6px}.pc-action-menu a{display:block;padding:10px 12px;border-radius:5px;color:#243b53}.pc-action-menu a:hover{background:var(--role-soft);color:var(--role-teal-dark)}.pc-action-menu strong,.pc-action-menu small{display:block}.pc-action-menu strong{font-size:12px;font-weight:600}.pc-action-menu small{font-size:10px;color:#708293;margin-top:2px;font-weight:400}
.pc-kpi-group{padding:18px 22px 2px}.pc-kpi-group:last-child{padding-bottom:20px}.pc-kpi-group+.pc-kpi-group{border-top:1px solid #eef1f3;margin-top:14px}.pc-kpi-group-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}.pc-kpi-group-head>div{display:flex;align-items:center;gap:8px}.pc-kpi-group-head h3{font-size:13px;color:#263d50;margin:0}.pc-kpi-group-head>small{font-size:10px;color:#7b8b99}.pc-kpi-group-kicker{width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:#e9f5f5;color:var(--role-teal-dark);font-size:9px;font-weight:700}
.pc-kpi-grid{display:grid;gap:10px}.pc-kpi-grid-budget{grid-template-columns:1.2fr 1fr 1fr}.pc-kpi-grid-actual,.pc-kpi-grid-forecast{grid-template-columns:repeat(4,minmax(0,1fr))}.pc-kpi-card{position:relative;min-height:112px;padding:13px 14px 12px;border:1px solid #dce4e8;border-radius:6px;background:#fff;overflow:hidden}.pc-kpi-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#95bfc2}.pc-kpi-card>span,.pc-kpi-card>strong,.pc-kpi-card>small{display:block}.pc-kpi-card>span{font-size:10px;color:#667c8e;text-transform:uppercase;letter-spacing:.035em}.pc-kpi-card>strong{font-size:24px;line-height:1.15;font-weight:400;color:#182f44;margin:8px 0 7px;font-variant-numeric:tabular-nums}.pc-kpi-card>small{font-size:10px;line-height:1.35;color:#728596}.pc-kpi-contract{background:#fbfefe}.pc-kpi-contract:before,.pc-kpi-management:before{background:var(--role-teal)}.pc-kpi-estimate:before{background:#d9a400}.pc-kpi-margin{background:#f0f9f7;border-color:#bddbd4}.pc-kpi-margin:before{width:5px;background:#27845e}.pc-kpi-margin>span{color:#39705d}.pc-kpi-margin>strong{font-size:27px;color:#176448}.pc-forecast-badge{display:inline-flex;align-items:center;padding:4px 9px;border-radius:12px;background:#edf8f8;color:#176d73;font-size:10px;font-weight:600}
.pc-filter-panel{border-radius:7px}.pc-filter-panel .filter-row{gap:10px}.pc-filter-panel .primary{border-radius:5px;min-height:34px}.pc-guide-link{font-size:12px;font-weight:600}
@media(max-width:1200px){.pc-project-header{flex-direction:column}.pc-actionbar{justify-content:flex-start}.pc-kpi-grid-budget,.pc-kpi-grid-actual,.pc-kpi-grid-forecast{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.pc-project-header,.pc-kpi-group{padding-left:14px;padding-right:14px}.pc-actionbar{width:100%}.pc-action{flex:1;justify-content:center}.pc-more-actions{flex:1}.pc-more-actions>.pc-action{width:100%}.pc-action-menu{left:0;right:auto;width:min(320px,88vw)}.pc-kpi-grid-budget,.pc-kpi-grid-actual,.pc-kpi-grid-forecast{grid-template-columns:1fr}.pc-kpi-group-head{align-items:flex-start;flex-direction:column}.pc-project-identity h2{font-size:19px}}

/* v0.106.1 - Visual Identity Budget / Actual / Forecast */
.pc-project-overview{background:#f7f9fb}
.pc-kpi-group{margin:14px 18px 0;padding:17px 18px 18px;border:1px solid transparent;border-radius:10px}
.pc-kpi-group+.pc-kpi-group{border-top-width:1px;margin-top:12px}
.pc-kpi-group:last-child{margin-bottom:18px;padding-bottom:18px}
.pc-kpi-group-budget{background:linear-gradient(135deg,#eef6ff 0%,#f7fbff 100%);border-color:#cfe0f3}
.pc-kpi-group-actual{background:linear-gradient(135deg,#eef9f2 0%,#f7fcf9 100%);border-color:#cde6d5}
.pc-kpi-group-forecast{background:linear-gradient(135deg,#f5effc 0%,#fbf8ff 100%);border-color:#dfd1f1}
.pc-kpi-group-head{margin-bottom:13px}
.pc-kpi-group-head h3{font-size:14px;font-weight:700}
.pc-kpi-group-budget .pc-kpi-group-kicker{background:#d8eafe;color:#245f94}
.pc-kpi-group-budget .pc-kpi-group-head h3{color:#214f78}
.pc-kpi-group-actual .pc-kpi-group-kicker{background:#d8f0df;color:#2b6d46}
.pc-kpi-group-actual .pc-kpi-group-head h3{color:#285d3f}
.pc-kpi-group-forecast .pc-kpi-group-kicker{background:#e8dcf7;color:#67438f}
.pc-kpi-group-forecast .pc-kpi-group-head h3{color:#5d3e82}
.pc-kpi-card{min-height:120px;border-width:1px;box-shadow:0 4px 14px #1f38520a;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}
.pc-kpi-card:hover{transform:translateY(-1px);box-shadow:0 7px 18px #1f385215}
.pc-kpi-group-budget .pc-kpi-card{background:rgba(255,255,255,.82);border-color:#c9ddef}
.pc-kpi-group-budget .pc-kpi-card:before{width:4px;background:#5c9bd3}
.pc-kpi-group-budget .pc-kpi-card>span{color:#51728e}
.pc-kpi-group-budget .pc-kpi-card>strong{color:#193f61}
.pc-kpi-group-actual .pc-kpi-card{background:rgba(255,255,255,.84);border-color:#c9e1d1}
.pc-kpi-group-actual .pc-kpi-card:before{width:4px;background:#62a979}
.pc-kpi-group-actual .pc-kpi-card>span{color:#567562}
.pc-kpi-group-actual .pc-kpi-card>strong{color:#214d34}
.pc-kpi-group-actual .pc-kpi-estimate{background:#fff9e8;border-color:#eed8a1}
.pc-kpi-group-actual .pc-kpi-estimate:before{background:#d9a400}
.pc-kpi-group-actual .pc-kpi-estimate>span{color:#8a6a19}
.pc-kpi-group-actual .pc-kpi-estimate>strong{color:#654d12}
.pc-kpi-group-actual .pc-kpi-management{background:#f2fbf8;border-color:#bedfd5}
.pc-kpi-group-forecast .pc-kpi-card{background:rgba(255,255,255,.85);border-color:#d9caeb}
.pc-kpi-group-forecast .pc-kpi-card:before{width:4px;background:#9270bd}
.pc-kpi-group-forecast .pc-kpi-card>span{color:#6d5c80}
.pc-kpi-group-forecast .pc-kpi-card>strong{color:#4c3766}
.pc-kpi-group-forecast .pc-kpi-margin{background:linear-gradient(135deg,#e8f7ef 0%,#f4fbf7 100%);border:2px solid #9ecdb4;box-shadow:0 6px 18px #1c6b4520}
.pc-kpi-group-forecast .pc-kpi-margin:before{width:6px;background:#27845e}
.pc-kpi-group-forecast .pc-kpi-margin>span{color:#39705d}
.pc-kpi-group-forecast .pc-kpi-margin>strong{font-size:30px;color:#176448;font-weight:600}
.pc-forecast-badge{background:#eadff8;color:#65418d;border:1px solid #d7c4ee}
.pc-economic-panel{border-radius:9px;overflow:hidden}
.pc-economic-panel>.section-head{padding:15px 16px 12px;background:#f8fafc;border-bottom:1px solid #e2e8ef}
.pc-economic-panel>.section-head h2{margin:0 0 4px}
.project-economic-summary{border-collapse:separate;border-spacing:0;width:100%}
.project-economic-summary thead th{padding-top:11px;padding-bottom:11px;border-bottom:2px solid #d7e0e7}
.project-economic-summary thead th:nth-child(2){background:#e5f1fd;color:#245f94;border-bottom-color:#6fa5d4}
.project-economic-summary thead th:nth-child(3){background:#e6f5eb;color:#2b6d46;border-bottom-color:#69a97e}
.project-economic-summary thead th:nth-child(4){background:#fff3cf;color:#80621c;border-bottom-color:#d9a400}
.project-economic-summary thead th:nth-child(5),.project-economic-summary thead th:nth-child(6){background:#eee5f8;color:#65418d;border-bottom-color:#9372bd}
.project-economic-summary thead th:nth-child(7){background:#f2f4f7;color:#526270;border-bottom-color:#9aa8b3}
.project-economic-summary tbody td:nth-child(2){background:#f7fbff}
.project-economic-summary tbody td:nth-child(3){background:#f7fcf9}
.project-economic-summary tbody td:nth-child(4){background:#fffaf0}
.project-economic-summary tbody td:nth-child(5),.project-economic-summary tbody td:nth-child(6){background:#fbf8ff}
.project-economic-summary tbody tr:hover td{filter:brightness(.985)}
.project-economic-summary .total-row td{background:#f0f4f7}
.project-economic-summary .total-row td:nth-child(2){background:#eaf4fe}
.project-economic-summary .total-row td:nth-child(3){background:#eaf6ee}
.project-economic-summary .total-row td:nth-child(4){background:#fff4d8}
.project-economic-summary .total-row td:nth-child(5),.project-economic-summary .total-row td:nth-child(6){background:#f0e8f9}
@media(max-width:650px){.pc-kpi-group{margin-left:8px;margin-right:8px;padding-left:12px;padding-right:12px}}

/* v0.106.2 - AX MCS Visual Identity: Graphite Elegant */
:root{--ax-graphite:#18232c;--ax-graphite-2:#22313d;--ax-graphite-3:#2c3e4b;--ax-blue:#1473e6;--ax-blue-soft:#eaf3ff;--ax-green:#159a68;--ax-green-soft:#e9f8f1;--ax-amber:#d88900;--ax-amber-soft:#fff4dc;--ax-violet:#7651c9;--ax-violet-soft:#f0eafd;--ax-rose:#c9365d;--ax-surface:#f4f6f8;--ax-shadow:0 8px 20px rgba(24,35,44,.13)}
body{background:var(--ax-surface)}
.role-topbar{background:var(--ax-graphite);border-bottom-color:#334651;color:#fff;box-shadow:0 2px 10px #10182024}.role-brand,.role-brand strong,.role-company strong{color:#fff}.role-brand small,.role-company-label,.role-company-code,.role-user-name{color:#bdc8d0}.role-brand-mark{background:linear-gradient(145deg,#1689e8,#2352c7);border-radius:7px;box-shadow:0 3px 10px #0004}.role-company-code{border-left-color:#53636e}.role-icon-button{color:#d8e3e9}.role-icon-button:hover{background:#2d3d48;color:#fff}.role-menu{background:var(--ax-graphite-2);border-bottom-color:#344854}.role-menu>a,.role-menu summary{color:#edf3f6}.role-menu>a:hover,.role-menu summary:hover,.role-menu details[open]>summary{background:#304552;color:#fff}.role-menu summary:after{color:#aebbc3}.role-dropdown{border-color:#b9c4cb;box-shadow:0 12px 28px #0f182438}.role-menu-item:hover{background:#eef3f6}.role-menu-item>a:hover{color:#172b3a}.favorite-star{color:#526a7a}.role-shortcuts{background:#fff}.role-shortcuts a{color:#304e62}.role-content{background:var(--ax-surface)}
a{color:#245f8e}.primary,button{background:#176fbd;border-color:#176fbd;border-radius:5px}.primary:hover,button:hover{background:#125c9d}.panel{border-color:#d9e0e5;box-shadow:0 2px 8px #18232c0b;border-radius:8px}.pc-project-overview{background:#eef2f5;border-color:#d4dde3;box-shadow:0 6px 18px #18232c12}.pc-project-header{background:#fff;border-bottom-color:#dce4e9}.pc-eyebrow{color:#657986}.pc-project-identity h2{color:#172733}.pc-action-primary{background:var(--ax-green);border-color:var(--ax-green);box-shadow:0 3px 8px #159a6830}.pc-action-primary:hover{background:#117d55}.pc-action-secondary,.pc-action-more{border-color:#c4d0d7;color:#2c4556}.pc-action-secondary:hover,.pc-action-more:hover{background:#edf2f5;color:#182f3d;border-color:#8ea1ad}.pc-action-menu a:hover{background:#edf2f5;color:#182f3d}
.pc-dashboard-strip{display:grid;grid-template-columns:1.35fr .9fr .9fr 1.75fr;gap:12px;padding:14px 16px 18px;align-items:stretch}.pc-kpi-group{margin:0!important;padding:12px!important;border:0!important;border-radius:10px;box-shadow:0 5px 14px #18232c12;min-width:0}.pc-kpi-group+.pc-kpi-group{margin-top:0!important}.pc-kpi-group-head{min-height:28px;margin-bottom:9px}.pc-kpi-group-head h3{font-size:12px;text-transform:uppercase;letter-spacing:.025em}.pc-kpi-group-head>small{display:none}.pc-kpi-group-kicker{width:20px;height:20px;font-size:8px;background:#ffffffaa!important}.pc-kpi-grid,.pc-kpi-grid-budget,.pc-kpi-grid-actual,.pc-kpi-grid-forecast{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:7px}.pc-kpi-group-budget .pc-kpi-grid{grid-template-columns:repeat(3,minmax(112px,1fr))}.pc-kpi-group-actual .pc-kpi-grid,.pc-kpi-group-estimates .pc-kpi-grid{grid-template-columns:repeat(2,minmax(112px,1fr))}.pc-kpi-group-forecast .pc-kpi-grid{grid-template-columns:repeat(4,minmax(108px,1fr))}
.pc-kpi-group-budget{background:linear-gradient(145deg,#dcecff,#eef6ff)}.pc-kpi-group-actual{background:linear-gradient(145deg,#dff5ea,#effaf5)}.pc-kpi-group-estimates{background:linear-gradient(145deg,#ffedc5,#fff7e6)}.pc-kpi-group-forecast{background:linear-gradient(145deg,#e9defc,#f5f0ff)}.pc-kpi-group-budget .pc-kpi-group-head h3{color:#174d91}.pc-kpi-group-actual .pc-kpi-group-head h3{color:#176844}.pc-kpi-group-estimates .pc-kpi-group-head h3{color:#855700}.pc-kpi-group-forecast .pc-kpi-group-head h3{color:#573a99}
.pc-kpi-card{min-height:112px;padding:11px 10px 10px;border:0!important;border-radius:8px;box-shadow:var(--ax-shadow)!important;transition:transform .15s ease,box-shadow .15s ease;display:flex;flex-direction:column}.pc-kpi-card:before{display:none}.pc-kpi-card:hover{transform:translateY(-3px);box-shadow:0 11px 24px #18232c24!important}.pc-kpi-card>span{font-size:9px;font-weight:700;letter-spacing:.035em}.pc-kpi-card>strong{font-size:21px;font-weight:650;margin:8px 0 6px;white-space:nowrap}.pc-kpi-card>small{font-size:9px;margin-top:auto}.pc-kpi-group-budget .pc-kpi-card{background:linear-gradient(160deg,#fff,#edf6ff);color:#173d68}.pc-kpi-group-budget .pc-kpi-card>span{color:#2b68ad}.pc-kpi-group-budget .pc-kpi-card>strong{color:#173d68}.pc-kpi-group-actual .pc-kpi-card{background:linear-gradient(160deg,#fff,#eaf8f1)}.pc-kpi-group-actual .pc-kpi-card>span{color:#27815c}.pc-kpi-group-actual .pc-kpi-card>strong{color:#17553b}.pc-kpi-group-estimates .pc-kpi-card,.pc-kpi-group-actual .pc-kpi-estimate{background:linear-gradient(160deg,#fff,#fff1d3)}.pc-kpi-group-estimates .pc-kpi-card>span{color:#a16800}.pc-kpi-group-estimates .pc-kpi-card>strong{color:#714900}.pc-kpi-group-forecast .pc-kpi-card{background:linear-gradient(160deg,#fff,#eee7fb)}.pc-kpi-group-forecast .pc-kpi-card>span{color:#7252ad}.pc-kpi-group-forecast .pc-kpi-card>strong{color:#4d347d}.pc-kpi-group-forecast .pc-kpi-margin{background:linear-gradient(150deg,#d94a70,#b92952)!important;color:#fff;box-shadow:0 8px 18px #b9295235!important}.pc-kpi-group-forecast .pc-kpi-margin>span,.pc-kpi-group-forecast .pc-kpi-margin>strong,.pc-kpi-group-forecast .pc-kpi-margin>small{color:#fff}.pc-kpi-group-forecast .pc-kpi-margin>strong{font-size:22px}.pc-forecast-badge{background:#ffffffa8;color:#5a3a95;border:0}.pc-economic-panel{box-shadow:0 5px 16px #18232c10}.pc-economic-panel>.section-head{background:#fff}
@media(max-width:1550px){.pc-dashboard-strip{grid-template-columns:1fr 1fr}.pc-kpi-group-budget .pc-kpi-grid{grid-template-columns:repeat(3,1fr)}.pc-kpi-group-forecast .pc-kpi-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:900px){.pc-dashboard-strip{grid-template-columns:1fr}.pc-kpi-group-actual .pc-kpi-grid,.pc-kpi-group-estimates .pc-kpi-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.pc-dashboard-strip{padding:8px}.pc-kpi-group-budget .pc-kpi-grid,.pc-kpi-group-forecast .pc-kpi-grid,.pc-kpi-group-actual .pc-kpi-grid,.pc-kpi-group-estimates .pc-kpi-grid{grid-template-columns:1fr 1fr}.pc-kpi-card>strong{font-size:19px}}

/* v0.106.3 - Project Control Solid Cubes */
.pc-dashboard-strip{gap:10px;padding:12px 16px 16px}
.pc-kpi-group{padding:9px!important;border-radius:11px;box-shadow:0 7px 18px rgba(24,35,44,.16)!important}
.pc-kpi-group-budget{background:linear-gradient(145deg,#0d5c91,#164b72)}
.pc-kpi-group-actual{background:linear-gradient(145deg,#15965f,#087248)}
.pc-kpi-group-estimates{background:linear-gradient(145deg,#e4a017,#b97400)}
.pc-kpi-group-forecast{background:linear-gradient(145deg,#7650c6,#54359a)}
.pc-kpi-group-head{min-height:25px;margin-bottom:7px;padding:0 2px}.pc-kpi-group-head h3,.pc-kpi-group-budget .pc-kpi-group-head h3,.pc-kpi-group-actual .pc-kpi-group-head h3,.pc-kpi-group-estimates .pc-kpi-group-head h3,.pc-kpi-group-forecast .pc-kpi-group-head h3{color:#fff;font-weight:750;text-shadow:0 1px 2px #0002}.pc-kpi-group-kicker{background:#ffffff24!important;color:#fff!important;border:1px solid #ffffff30}
.pc-kpi-card{min-height:108px;border:1px solid #ffffff24!important;border-radius:8px;box-shadow:inset 0 1px 0 #ffffff18,0 5px 12px #10182035!important;color:#fff!important}
.pc-kpi-card:hover{transform:translateY(-3px);box-shadow:inset 0 1px 0 #ffffff22,0 10px 22px #10182055!important}
.pc-kpi-card>span,.pc-kpi-card>strong,.pc-kpi-card>small{color:#fff!important}.pc-kpi-card>span{opacity:.86}.pc-kpi-card>small{opacity:.78}.pc-kpi-card>strong{font-size:22px;font-weight:750;text-shadow:0 1px 2px #0002}
.pc-kpi-group-budget .pc-kpi-card{background:linear-gradient(155deg,#176ea5,#0d4d78)}
.pc-kpi-group-actual .pc-kpi-card{background:linear-gradient(155deg,#1baa6d,#087348)}
.pc-kpi-group-estimates .pc-kpi-card,.pc-kpi-group-actual .pc-kpi-estimate{background:linear-gradient(155deg,#eba91e,#bd7900)}
.pc-kpi-group-forecast .pc-kpi-card{background:linear-gradient(155deg,#845bd1,#5b3aa2)}
.pc-kpi-group-forecast .pc-kpi-margin{background:linear-gradient(155deg,#d83b67,#9d1f45)!important;border:1px solid #ffffff2e!important;box-shadow:inset 0 1px 0 #ffffff20,0 7px 16px #6f12343d!important}
.pc-kpi-group-forecast .pc-kpi-margin>strong{font-size:23px}.pc-forecast-badge{background:#ffffff20;color:#fff;border:1px solid #ffffff26}

/* v0.108.10 - AX MCS Main Suite Visual Refinement R2 */
:root{--ax-r2-shadow:0 10px 30px rgba(24,35,44,.10);--ax-r2-shadow-soft:0 4px 14px rgba(24,35,44,.08);--ax-r2-line:#dfe6eb;--ax-r2-ink:#172733;--ax-r2-muted:#6b7c88}
.role-content{background:linear-gradient(180deg,#f2f5f7 0,#f6f8f9 220px,#f6f8f9 100%)}
.page-head{margin:0 0 14px;padding:2px 2px 0}.page-head h1{font-size:25px;font-weight:720;letter-spacing:-.025em;color:var(--ax-r2-ink)}.page-head p{font-size:13px;color:var(--ax-r2-muted)}
.panel{border:1px solid var(--ax-r2-line);box-shadow:var(--ax-r2-shadow-soft);border-radius:11px;background:#fff}.panel+.panel{margin-top:14px}
.section-head{padding:15px 16px 12px;margin:0;border-bottom:1px solid #e8edf0}.section-head h2{font-size:16px;font-weight:720;letter-spacing:-.01em;color:var(--ax-r2-ink);margin:0 0 3px}.section-head p{font-size:12px;line-height:1.42;max-width:1120px}
.badge{border-radius:999px;padding:5px 9px;font-size:10px;font-weight:750;letter-spacing:.025em;background:#eef3f6;color:#435967;border:1px solid #dbe4e9}
.filter-row label{font-size:11px;font-weight:700;color:#536773}.filter-row select,.filter-row input{border:1px solid #cbd6dd;border-radius:7px;background:#fff;min-height:34px;box-shadow:inset 0 1px 2px #17273308}.filter-row select:focus,.filter-row input:focus{outline:none;border-color:#438bc1;box-shadow:0 0 0 3px #438bc11a}
.primary,button,.button{border-radius:7px;font-weight:650;transition:transform .12s ease,box-shadow .12s ease,background .12s ease}.primary:hover,button:hover{transform:translateY(-1px)}
.table-wrap{overflow:hidden}table{border-collapse:separate;border-spacing:0}table th{font-size:11px;font-weight:720}table td{font-size:12px}
.alert{border-radius:8px;border-width:1px;box-shadow:none}.alert.warning{background:#fff8df;border-color:#f0d68b;color:#735200}

/* Project Control: compact command deck */
.pc-filter-panel{padding:0!important;overflow:hidden;background:#fff}.pc-filter-panel .filter-row{display:grid;grid-template-columns:minmax(320px,1.6fr) minmax(190px,.65fr) auto;gap:12px;align-items:end;padding:12px 14px}.pc-filter-panel .filter-row label{display:grid;gap:5px}.pc-filter-panel .primary{height:35px;padding:0 18px;box-shadow:0 4px 10px #176fbd24}
.pc-guide-link{background:#eaf1f5!important;border:1px solid #d3dfe6!important;color:#35566b!important;font-size:11px;padding:7px 10px!important}.pc-guide-link:hover{background:#dfeaf0!important}
.pc-project-overview{padding:0!important;background:#eef3f6;border:1px solid #d9e2e8;box-shadow:var(--ax-r2-shadow);overflow:hidden}.pc-project-header{padding:15px 18px 14px;background:linear-gradient(135deg,#fff 0,#fbfcfd 72%,#f0f5f7 100%);border-bottom:1px solid #dce5ea}.pc-project-identity{min-width:0}.pc-eyebrow{font-size:9px;font-weight:800;letter-spacing:.13em;color:#71838f}.pc-project-identity h2{font-size:21px;font-weight:760;letter-spacing:-.025em;margin:4px 0 3px}.pc-project-identity p{font-size:11px}.pc-context-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.pc-context-chip{display:inline-flex;align-items:center;gap:5px;border:1px solid #dbe4e9;background:#f4f7f9;color:#506571;border-radius:999px;padding:4px 8px;font-size:9px;font-weight:700}.pc-context-chip strong{color:#263d4b;font-weight:800}.pc-context-chip.is-ok{background:#eaf7f1;border-color:#cbe9dc;color:#247052}.pc-context-chip.is-warn{background:#fff5df;border-color:#f0dca9;color:#8b6100}
.pc-actionbar{gap:7px}.pc-action{border-radius:7px!important;font-size:11px!important;font-weight:700!important;min-height:33px!important;padding:0 11px!important}.pc-action-primary{box-shadow:0 5px 12px #159a6830!important}.pc-action-icon{font-size:12px}

/* Project Control: stronger Solid Cubes, less empty surface */
.pc-dashboard-strip{gap:11px;padding:13px 14px 15px;background:linear-gradient(180deg,#eaf0f3,#edf2f4)}.pc-kpi-group{position:relative;overflow:hidden;padding:9px!important;border-radius:12px;box-shadow:0 8px 18px rgba(24,35,44,.20)!important}.pc-kpi-group:after{content:"";position:absolute;inset:-55% -20% auto 35%;height:120px;transform:rotate(-8deg);background:linear-gradient(90deg,transparent,#fff2,transparent);pointer-events:none}.pc-kpi-group-head{position:relative;z-index:1}.pc-kpi-group-head h3{font-size:11px!important;letter-spacing:.045em!important}.pc-kpi-group-kicker{width:21px!important;height:21px!important;border-radius:50%!important;box-shadow:inset 0 1px 0 #fff3}.pc-kpi-card{position:relative;z-index:1;min-height:104px;padding:10px 10px 9px!important;border-radius:9px!important;box-shadow:inset 0 1px 0 #ffffff24,0 5px 13px #1018203f!important}.pc-kpi-card:after{content:"";position:absolute;left:9px;right:9px;bottom:7px;height:1px;background:#ffffff12}.pc-kpi-card>span{font-size:8.5px!important;letter-spacing:.055em!important;text-transform:uppercase}.pc-kpi-card>strong{font-size:21px!important;line-height:1.08;margin:9px 0 7px!important;letter-spacing:-.025em}.pc-kpi-card>small{font-size:8.5px!important;line-height:1.25;padding-bottom:3px}.pc-kpi-group-budget{background:linear-gradient(145deg,#0d659d,#0c4b73)}.pc-kpi-group-actual{background:linear-gradient(145deg,#149d65,#087046)}.pc-kpi-group-estimates{background:linear-gradient(145deg,#e5a114,#b87400)}.pc-kpi-group-forecast{background:linear-gradient(145deg,#7951c9,#56379c)}.pc-kpi-group-budget .pc-kpi-card{background:linear-gradient(155deg,#1a79b4,#0c527f)}.pc-kpi-group-actual .pc-kpi-card{background:linear-gradient(155deg,#1caf71,#08734a)}.pc-kpi-group-estimates .pc-kpi-card{background:linear-gradient(155deg,#eeae21,#bf7a00)}.pc-kpi-group-forecast .pc-kpi-card{background:linear-gradient(155deg,#895fd5,#5c3aa3)}.pc-kpi-group-forecast .pc-kpi-margin{background:linear-gradient(155deg,#d83a66,#a31f48)!important}

/* Economic summary: dashboard table rather than legacy grid */
.pc-economic-panel{border:1px solid #dbe4e9;box-shadow:var(--ax-r2-shadow);border-radius:11px!important}.pc-economic-panel>.section-head{background:linear-gradient(90deg,#fff,#f9fbfc);padding-left:17px}.pc-economic-panel>.section-head:before{content:"";width:4px;align-self:stretch;min-height:36px;border-radius:4px;background:linear-gradient(#243b4a,#4d7187);margin-right:10px}.pc-economic-panel>.section-head>div{flex:1}.pc-economic-panel>.alert,.pc-economic-panel>p.muted{margin:10px 14px}.project-economic-summary{width:100%;border-top:1px solid #e4eaee}.project-economic-summary thead th{height:37px;padding:8px 10px;text-transform:uppercase;letter-spacing:.035em;font-size:9px}.project-economic-summary tbody td{padding:8px 10px;border-bottom:1px solid #e8edf0}.project-economic-summary tbody tr:last-child td{border-bottom:0}.project-economic-summary tbody td:first-child{font-weight:560;color:#2d4351}.project-economic-summary .total-row td{font-weight:760!important;border-top:1px solid #cbd6dd}.project-economic-summary tbody tr:hover td{filter:none!important;box-shadow:inset 0 1px #0000,inset 0 -1px #0000;background-image:linear-gradient(#f8fafb,#f8fafb)}

/* Secondary KPI sections inherit a cleaner card language */
.pc-project-overview~.panel .kpi-grid{gap:9px;padding:12px 14px 14px}.pc-project-overview~.panel .kpi{border:1px solid #e0e7eb;border-radius:9px;background:linear-gradient(160deg,#fff,#f7f9fa);box-shadow:0 3px 10px #18232c0b;padding:11px}.pc-project-overview~.panel .kpi span{font-size:9px;font-weight:750;text-transform:uppercase;letter-spacing:.04em;color:#71818c}.pc-project-overview~.panel .kpi strong{font-size:18px;color:#243947}
@media(max-width:1100px){.pc-filter-panel .filter-row{grid-template-columns:1fr 1fr auto}.pc-project-header{align-items:flex-start}.pc-actionbar{flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:720px){.pc-filter-panel .filter-row{grid-template-columns:1fr}.pc-filter-panel .primary{width:100%}.pc-project-header{display:block}.pc-actionbar{margin-top:12px;justify-content:flex-start}.pc-context-chips{margin-bottom:4px}}

/* v0.108.11 - AX MCS Visual Language Candidate R3
   Pilot Project Control: unified lower-page language for official suite standard. */
:root{--ax-budget:#12679d;--ax-actual:#128858;--ax-estimate:#d89108;--ax-forecast:#6845b1;--ax-margin:#ad294e;--ax-graphite:#223541;--ax-surface:#f4f7f8}
.pc-economic-panel>.section-head,.pc-secondary-panel>.section-head{position:relative;background:linear-gradient(105deg,#fff 0,#fbfcfd 70%,#f2f6f8 100%)}
.pc-economic-panel>.section-head:after,.pc-secondary-panel>.section-head:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:linear-gradient(90deg,var(--ax-graphite) 0 9%,#dce5ea 9% 100%)}
.pc-economic-panel>.section-head h2,.pc-secondary-panel>.section-head h2{font-size:16px}.pc-economic-panel>.section-head .badge{box-shadow:0 2px 7px #17273312}
.project-economic-summary thead th:first-child{background:#f1f4f6;color:#3e5360;border-bottom-color:#8b9aa4}.project-economic-summary thead th:nth-child(2){background:#e4f0f8;color:#155b86;border-bottom-color:var(--ax-budget)}.project-economic-summary thead th:nth-child(3){background:#e4f3eb;color:#17643f;border-bottom-color:var(--ax-actual)}.project-economic-summary thead th:nth-child(4){background:#fff0c9;color:#795407;border-bottom-color:var(--ax-estimate)}.project-economic-summary thead th:nth-child(5),.project-economic-summary thead th:nth-child(6){background:#eee7f8;color:#5a3c94;border-bottom-color:var(--ax-forecast)}
.project-economic-summary tbody tr.total-row td{box-shadow:inset 0 1px #cad5db}.project-economic-summary .pc-margin-row td{background:#f8f1f4!important;border-top:2px solid #d9a8b7!important;color:#5d2638}.project-economic-summary .pc-margin-row td:first-child{box-shadow:inset 4px 0 var(--ax-margin)}.project-economic-summary .pc-margin-row strong{font-size:13px}.project-economic-summary .pc-margin-pct-row td{background:#fcf9fa!important;color:#5f4a52}.project-economic-summary .pc-margin-pct-row td:first-child{font-weight:720;color:#6c3144}
.pc-economic-panel>p.muted:last-child{margin:0!important;padding:10px 14px 11px;background:#f6f8f9;border-top:1px solid #e1e7eb;font-size:10px;line-height:1.4;color:#60717c}
.pc-secondary-panel{overflow:hidden;border:1px solid #dbe4e9!important;box-shadow:var(--ax-r2-shadow-soft)!important}.pc-secondary-panel>.section-head{padding:13px 15px 12px}.pc-secondary-panel>.section-head p{max-width:1080px}.pc-secondary-panel>.section-head a:not(.button){display:inline-flex;align-items:center;min-height:31px;padding:0 10px;border:1px solid #d2dde4;border-radius:7px;background:#fff;color:#32607b;font-size:11px;font-weight:700;text-decoration:none;white-space:nowrap;box-shadow:0 2px 7px #1727330b}.pc-secondary-panel>.section-head a:not(.button):hover{background:#f3f7f9;border-color:#bfcfd8}
.pc-variants-panel>.section-head:before,.pc-wbs-panel>.section-head:before,.pc-closing-panel>.section-head:before{content:"";width:4px;align-self:stretch;min-height:34px;border-radius:4px;margin-right:10px}.pc-variants-panel>.section-head:before{background:linear-gradient(#7650c6,#56379c)}.pc-wbs-panel>.section-head:before{background:linear-gradient(#176ea5,#0d4d78)}.pc-closing-panel>.section-head:before{background:linear-gradient(#15965f,#087248)}.pc-secondary-panel>.section-head>div{flex:1}
.pc-variants-panel table,.pc-wbs-panel table{margin:0;width:100%}.pc-variants-panel thead th,.pc-wbs-panel thead th{background:#f0f4f6;color:#50636f;border-bottom:2px solid #cbd7de;text-transform:uppercase;letter-spacing:.035em;font-size:9px;padding:9px 9px}.pc-variants-panel tbody td,.pc-wbs-panel tbody td{padding:8px 9px;border-bottom:1px solid #e7ecef}.pc-variants-panel tbody tr:nth-child(even) td,.pc-wbs-panel tbody tr:nth-child(even) td{background:#fbfcfc}.pc-variants-panel tbody tr:hover td,.pc-wbs-panel tbody tr:hover td{background:#f3f7f9}.pc-variants-panel .empty,.pc-wbs-panel .empty{padding:24px!important;background:linear-gradient(180deg,#fff,#f8fafb)!important;color:#7b8992;text-align:center}
.pc-wbs-panel .section-head button{background:#176fbd;color:#fff;border:1px solid #176fbd;box-shadow:0 4px 10px #176fbd28;min-height:32px;padding:0 12px}.pc-wbs-panel .cost-group{background:#e9eef2!important;color:#405762!important}.pc-wbs-panel tfoot th{background:#e9eff2!important;border-top:2px solid #aebdc6;font-weight:780;padding:9px}.pc-wbs-panel .warning-row td{background:#fff8e4!important;color:#735200}.pc-wbs-panel>.alert{margin:10px 12px 12px}
.pc-closing-panel .kpi-grid{background:linear-gradient(180deg,#f5f8f9,#eef3f5);padding:12px 14px!important}.pc-closing-panel .kpi{min-height:92px;background:linear-gradient(155deg,#fff,#f8fafb)!important;border-top:3px solid #178a5b!important}.pc-closing-panel .kpi strong{font-size:19px!important}.pc-closing-panel .form-actions{margin:0;padding:10px 14px;border-top:1px solid #e1e8ec;background:#fff;display:flex;gap:10px;align-items:center}.pc-closing-panel>p.muted{margin:0;padding:9px 14px 11px;background:#f6f8f9;border-top:1px solid #e3e9ed;font-size:10px}
@media(max-width:900px){.pc-secondary-panel>.section-head{align-items:flex-start}.project-economic-summary{min-width:850px}}

/* v0.108.12 - AX MCS Design System Candidate R4
   Final pilot refinement before suite-wide rollout. */
:root{--ax-budget-soft:#e4f0f8;--ax-actual-soft:#e4f3eb;--ax-forecast-soft:#eee7f8;--ax-neutral-soft:#eef2f4}
/* WBS semantic matrix: color only the information architecture, never every cell. */
.pc-wbs-panel .cost-matrix thead tr:first-child th:nth-child(3),
.pc-wbs-panel .cost-matrix thead tr:first-child th:nth-child(4){background:var(--ax-budget-soft)!important;color:#155b86!important;border-bottom-color:var(--ax-budget)!important}
.pc-wbs-panel .cost-matrix thead tr:first-child th:nth-child(5),
.pc-wbs-panel .cost-matrix thead tr:first-child th:nth-child(6){background:var(--ax-actual-soft)!important;color:#17643f!important;border-bottom-color:var(--ax-actual)!important}
.pc-wbs-panel .cost-matrix thead tr:first-child th:nth-child(7),
.pc-wbs-panel .cost-matrix thead tr:first-child th:nth-child(8),
.pc-wbs-panel .cost-matrix thead tr:first-child th:nth-child(9),
.pc-wbs-panel .cost-matrix thead tr:first-child th:nth-child(10){background:var(--ax-forecast-soft)!important;color:#5a3c94!important;border-bottom-color:var(--ax-forecast)!important}
.pc-wbs-panel .cost-matrix thead tr:first-child th:first-child,
.pc-wbs-panel .cost-matrix thead tr:first-child th:nth-child(2){background:var(--ax-neutral-soft)!important;color:#425762!important;border-bottom-color:#8fa0aa!important}
.pc-wbs-panel .cost-matrix tbody td:first-child{font-weight:570;color:#263e4c}.pc-wbs-panel .cost-matrix tbody td:nth-child(2){color:#657681;font-size:10px;text-transform:uppercase;letter-spacing:.02em}
.pc-wbs-panel .cost-matrix tbody td:not(:first-child):not(:nth-child(2)),.pc-wbs-panel .cost-matrix tfoot th:not(:first-child):not(:nth-child(2)){text-align:right;font-variant-numeric:tabular-nums}
.pc-wbs-panel .cost-matrix tbody tr:hover td{background:#f5f8fa!important}.pc-wbs-panel .cost-matrix tfoot th{background:linear-gradient(180deg,#eaf0f3,#e3eaee)!important;color:#213945!important;border-top:2px solid #8fa2ad!important;border-bottom:0!important;box-shadow:inset 0 1px #fff;font-size:10px!important}
.pc-wbs-panel .cost-matrix tfoot th:first-child{font-size:11px!important;text-transform:uppercase;letter-spacing:.035em}.pc-wbs-panel .cost-matrix{border-bottom:1px solid #d8e1e6}
/* Empty states become intentional UI states rather than blank table space. */
.pc-variants-panel .empty,.pc-wbs-panel .empty{position:relative;padding:27px 20px!important;color:#70818b!important;font-size:11px}.pc-variants-panel .empty:before,.pc-wbs-panel .empty:before{content:"";display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#b7c4cb;box-shadow:0 0 0 4px #edf2f4;vertical-align:1px}
/* Closing KPIs: secondary mini-cubes, intentionally quieter than the primary Solid Cubes. */
.pc-closing-panel .kpi-grid{gap:11px!important;padding:13px 14px 15px!important;background:linear-gradient(180deg,#f1f6f4,#eaf1ef)!important}
.pc-closing-panel .kpi{position:relative;overflow:hidden;min-height:100px!important;padding:12px 13px!important;border:1px solid #cfe0d9!important;border-top:0!important;border-radius:10px!important;background:linear-gradient(145deg,#ffffff 0,#f5faf7 72%,#edf6f1 100%)!important;box-shadow:0 6px 15px rgba(23,79,58,.10)!important}
.pc-closing-panel .kpi:before{content:"";position:absolute;left:0;top:0;right:0;height:4px;background:linear-gradient(90deg,#15965f,#087248)}.pc-closing-panel .kpi:after{content:"";position:absolute;width:78px;height:78px;border-radius:50%;right:-38px;top:-42px;background:#15965f0c}
.pc-closing-panel .kpi span{position:relative;z-index:1;color:#527064!important}.pc-closing-panel .kpi strong{position:relative;z-index:1;font-size:20px!important;font-weight:720!important;color:#173c2f!important;letter-spacing:-.02em;margin-top:8px!important}.pc-closing-panel .kpi small{position:relative;z-index:1;color:#71867e;font-size:9px}.pc-closing-panel .form-actions .button{box-shadow:0 4px 10px #176fbd1f}.pc-closing-panel .badge{background:#eef6f2;border-color:#d2e5dc;color:#346653}
/* One consistent panel rhythm for the official AX language. */
.pc-secondary-panel{border-radius:11px!important}.pc-secondary-panel>.section-head{min-height:66px}.pc-secondary-panel>.section-head h2{font-weight:740;letter-spacing:-.012em}.pc-secondary-panel>.section-head p{color:#687b87;line-height:1.38}.pc-secondary-panel>.section-head:after{height:2px!important}.pc-variants-panel>.section-head:after{background:linear-gradient(90deg,var(--ax-forecast) 0 9%,#dce5ea 9% 100%)}.pc-wbs-panel>.section-head:after{background:linear-gradient(90deg,var(--ax-budget) 0 9%,#dce5ea 9% 100%)}.pc-closing-panel>.section-head:after{background:linear-gradient(90deg,var(--ax-actual) 0 9%,#dce5ea 9% 100%)}
@media(max-width:900px){.pc-closing-panel .kpi-grid{grid-template-columns:repeat(2,minmax(160px,1fr))}}

/* AX MCS v0.113.0 - B-044: CE Commessa YTD / LTD. Solo riallineamento semantico colonne. */
.project-economic-summary-ytd-ltd thead th:nth-child(2){background:#e4f0f8;color:#155b86;border-bottom-color:var(--ax-budget)}
.project-economic-summary-ytd-ltd thead th:nth-child(3),
.project-economic-summary-ytd-ltd thead th:nth-child(4){background:#e4f3eb;color:#17643f;border-bottom-color:var(--ax-actual)}
.project-economic-summary-ytd-ltd thead th:nth-child(5){background:#fff0c9;color:#795407;border-bottom-color:var(--ax-estimate)}
.project-economic-summary-ytd-ltd thead th:nth-child(6),
.project-economic-summary-ytd-ltd thead th:nth-child(7){background:#eee7f8;color:#5a3c94;border-bottom-color:var(--ax-forecast)}
.project-economic-summary-ytd-ltd thead th:nth-child(8){background:#f2f4f7;color:#526270;border-bottom-color:#9aa8b3}
.project-economic-summary-ytd-ltd tbody td:nth-child(2){background:#f7fbff}
.project-economic-summary-ytd-ltd tbody td:nth-child(3),
.project-economic-summary-ytd-ltd tbody td:nth-child(4){background:#f7fcf9}
.project-economic-summary-ytd-ltd tbody td:nth-child(5){background:#fffaf0}
.project-economic-summary-ytd-ltd tbody td:nth-child(6),
.project-economic-summary-ytd-ltd tbody td:nth-child(7){background:#fbf8ff}
.project-economic-summary-ytd-ltd .total-row td:nth-child(2){background:#eaf4fe}
.project-economic-summary-ytd-ltd .total-row td:nth-child(3),
.project-economic-summary-ytd-ltd .total-row td:nth-child(4){background:#eaf6ee}
.project-economic-summary-ytd-ltd .total-row td:nth-child(5){background:#fff4d8}
.project-economic-summary-ytd-ltd .total-row td:nth-child(6),
.project-economic-summary-ytd-ltd .total-row td:nth-child(7){background:#f0e8f9}
