:root{font-family:Segoe UI,Arial,sans-serif;color:#172b43;background:#f5f7fa;font-size:16px}*{box-sizing:border-box}body{margin:0}header{padding:18px 28px;display:flex;align-items:center;gap:26px;background:white;border-bottom:1px solid #d9e0e8}header img{width:180px;height:auto;max-height:90px;object-fit:contain}header strong{display:block;font-size:24px}header span{display:block;color:#5a687b;margin-top:4px}#save{margin-left:auto;color:#386246;font-size:14px}#demo{padding:12px 28px;background:#fff1c4;font-weight:600}button,select,input,textarea{font:inherit}button{cursor:pointer;min-height:44px;border:1px solid #aab9ca;border-radius:6px;background:white;color:#173a62;padding:9px 15px}button:hover{background:#edf3fa}button:disabled{opacity:.6;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #d58b00;outline-offset:2px}.primary{color:white;background:#174b7d;border-color:#174b7d}.primary:hover{background:#103b65}nav{display:flex;gap:8px;padding:14px 24px 0;background:#f5f7fa}nav>button{padding:6px 10px;min-width:40px}#tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:auto;flex:1;padding:0 2px 10px}#tabs button{white-space:nowrap;flex-shrink:0}#tabs button[aria-selected=true]{background:#173f69;color:white;border-color:#173f69}main{padding:22px 28px;min-height:55vh}h1{font-size:26px;margin:0 0 8px}h2{font-size:21px;margin:0 0 14px}p{line-height:1.5}.muted{color:#5a687b}.panel{background:white;border:1px solid #d6dfe9;border-radius:10px;padding:26px;max-width:680px}.intro{margin:0 0 22px}.formgrid{display:grid;gap:20px}label{display:block;font-weight:600}label small{display:block;font-weight:400;margin-top:6px;color:#5a687b}input:not([type=checkbox]),select,textarea{width:100%;padding:11px;border:1px solid #9aacc0;border-radius:5px;background:white;color:#172b43;margin-top:7px;min-height:44px}textarea{min-height:90px;resize:vertical}input[type=checkbox]{width:20px;height:20px;vertical-align:middle;margin-right:9px}.check{font-weight:400;line-height:1.5}.actions,.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.actions{justify-content:flex-end;margin-top:24px}.toolbar{margin:18px 0}.toolbar label{font-weight:400;display:flex;gap:8px;align-items:center}.toolbar select,.toolbar input{margin:0;width:auto}.toolbar input{width:230px}.legend{font-size:14px;color:#536478;margin:12px 0;line-height:1.6}.pill{padding:3px 8px;border-radius:4px;white-space:nowrap}.done{background:#d6eedf;color:#194b2b}.todo{background:#fbe0df;color:#782c2a}.none{background:#e8ebef;color:#55606c}.progress{background:#ffedbf;color:#674b12}.verify{background:#fbe0df;color:#782c2a}.tablewrap{overflow:auto;max-height:67vh;position:relative;border:1px solid #c9d4e1;border-radius:7px;background:white}table{border-collapse:separate;border-spacing:0;min-width:100%;font-size:14px}th,td{border-bottom:1px solid #dce3eb;border-right:1px solid #e1e7ef;padding:9px;vertical-align:top}thead th{position:sticky;top:0;background:#eaf0f7;z-index:3;text-align:center;padding:14px 10px}th:first-child{position:sticky;left:0;min-width:285px;max-width:340px;background:#fff;text-align:left;z-index:2}thead th:first-child{z-index:4;background:#eaf0f7}tbody th>button{border:0;padding:0;min-height:34px;text-align:left;font-weight:600;background:transparent;width:100%}tbody th small{display:block;color:#68788b;font-size:12px;font-weight:400}td{min-width:142px}td button.cell{width:100%;min-height:64px;font-size:13px;padding:7px 4px;border-color:transparent;display:flex;flex-direction:column;align-items:center;gap:4px}td button.cell small{font-size:12px;font-weight:400}td button.cell:hover{outline:2px solid #496b8e}.empty{text-align:center;color:#8893a1;padding-top:25px}.summary td{vertical-align:middle}.summary button{width:100%;min-width:115px;font-size:14px;border-color:transparent}.month-focus{box-shadow:inset 3px 0 #d58b00,inset -3px 0 #d58b00}.notice{background:#edf3fa;border-left:4px solid #46709b;padding:12px 16px;line-height:1.5;margin:16px 0;max-width:1000px}.error{color:#9c2525;line-height:1.5}.links{padding-left:20px;line-height:1.65}.links a{color:#174b7d;overflow-wrap:anywhere}footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:20px 28px;border-top:1px solid #d9e0e8;font-size:14px}footer span{margin-left:auto;color:#5a687b}dialog{width:min(620px,94vw);max-height:92vh;overflow:auto;border:1px solid #a6b8cc;border-radius:10px;padding:26px;color:#172b43}dialog::backdrop{background:#142c4666}dialog h2{margin-top:0}dialog label{margin-top:18px}dialog .notice{font-size:14px}#message{position:fixed;bottom:20px;right:20px;max-width:460px;background:#fff0ef;color:#8b2525;border:2px solid #b75f5a;border-radius:7px;padding:18px;z-index:20;box-shadow:0 3px 16px #0002}a{color:#174b7d}.sourcecard{padding:18px 0;border-bottom:1px solid #d6dfe9;max-width:1000px}.sourcecard p{margin:6px 0}.empty-start{margin:18px 0}.keep{font-weight:600;color:#805600}.rowcount{margin-left:auto;font-size:14px;color:#5a687b}@media(max-width:720px){header{padding:14px;gap:14px;flex-wrap:wrap}header img{width:135px}header strong{font-size:20px}#save{margin-left:0}main{padding:18px 14px}nav{padding:10px 12px 0}footer{padding:18px 14px}footer span{margin-left:0}th:first-child{min-width:200px;max-width:220px}.toolbar input{width:190px}.panel{padding:20px}}
:root [hidden]{display:none!important}.controlfilters label:first-child{flex:1;min-width:260px}.controlfilters select{max-width:100%;width:auto}.controlfilters label:first-child select{width:100%;max-width:560px}.controlstats{display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:14px;margin:22px 0}.controlstats>div{padding:18px 20px;border-radius:7px;border:1px solid #d4deea}.controlstats strong{display:block;font-size:28px;line-height:1.2}.controlstats span{display:block;margin-top:7px;font-size:14px}.advance{background:white}.advance progress{width:100%;height:12px;margin-top:12px;accent-color:#1d527e}.compacttable{max-height:390px;margin-bottom:24px}.compacttable td{vertical-align:middle}.compacttable th,.compacttable td{padding:12px 14px}.activityoverview td{text-align:center;min-width:120px}.detailtable td:nth-child(2){min-width:260px}.detailtable th:first-child{min-width:200px}.cell+.cell{margin-top:8px}.controlstats~h2{margin-top:25px}@media(max-width:850px){.controlstats{grid-template-columns:repeat(2,minmax(140px,1fr))}.controlfilters label{width:100%}.controlfilters select{width:100%}}
.compact header{padding:10px 20px;gap:20px}.compact header img{width:145px;max-height:56px}.compact header strong{font-size:21px}.compact header span{font-size:14px}.compact #demo{padding:7px 20px;font-size:14px}.compact nav{padding:8px 16px 0;gap:6px}.compact #tabs{padding-bottom:6px}.compact nav button{min-height:36px;padding:6px 11px;font-size:14px}.compact main{padding:14px 20px;min-height:45vh}.compact h1{font-size:23px;margin-bottom:5px}.compact h2{font-size:19px;margin-bottom:10px}.compact .toolbar{margin:11px 0;gap:9px}.compact .toolbar button,.compact .toolbar select,.compact .toolbar input{min-height:36px;padding:7px 10px;font-size:14px}.compact .legend{font-size:13px;margin:7px 0;line-height:1.4}.compact #view-help{font-size:13px;margin:7px 0}.compact #grid th,.compact #grid td{padding:4px 5px}.compact #grid thead th{padding:9px 6px}.compact #grid th:first-child{min-width:245px;max-width:290px}.compact #grid td{min-width:116px}.compact #grid tbody th>button{min-height:32px;font-size:13px;line-height:1.25}.compact #grid tbody th small{font-size:11px}.compact #grid button.cell{min-height:44px;padding:5px 3px;gap:2px;line-height:1.2}.compact #grid button.cell strong{font-size:12px}.compact #grid button.cell small{font-size:12px}.compact #grid button.cell small:nth-of-type(n+2){display:none}.compact #grid .empty{padding-top:17px}.compact #grid .tablewrap{max-height:74vh}.compact .controlstats{gap:9px;margin:12px 0}.compact .controlstats>div{padding:11px 14px}.compact .controlstats strong{font-size:23px}.compact .controlstats span{margin-top:4px;font-size:13px}.compact .controlstats progress{margin-top:7px;height:10px}.compact .compacttable th,.compact .compacttable td{padding:7px 10px;font-size:13px}.compact .compacttable tbody th>button{min-height:30px;font-size:13px}.compact .compacttable td>button{min-height:34px;padding:6px 9px;font-size:13px}.compact footer{padding:12px 20px;gap:9px}.compact footer button{font-size:13px;min-height:36px;padding:7px 11px}.compact .cell+.cell{margin-top:4px}@media(max-width:720px){.compact main{padding:12px}.compact header{padding:9px 12px;gap:12px}.compact header img{width:125px}.compact #grid th:first-child{min-width:190px;max-width:220px}.compact #grid td{min-width:108px}}
#identity{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:8px 20px;background:#eaf0f7;border-bottom:1px solid #d4deea;font-size:14px}#identity>span{color:#536478}#identity label{display:flex;gap:8px;align-items:center;font-weight:400;margin-left:auto}#identity select{width:auto;min-height:34px;font-size:14px;margin:0;padding:6px 9px}#identity button{font-size:13px;min-height:34px;padding:6px 9px}.sectiongap{margin-top:28px!important}.compact #access-form{gap:15px}.compact #access-form input{min-height:40px;padding:9px}
.assignment{display:flex;align-items:center;gap:14px;justify-content:space-between}.assignment button{flex-shrink:0}.compact .assignment{margin:9px 0;padding:8px 12px;font-size:14px}.compact .assignment button{min-height:34px;padding:6px 10px;font-size:13px}
@media(max-width:620px){.assignmenttable table,.assignmenttable tbody{display:block;min-width:0;width:100%}.assignmenttable thead{display:none}.assignmenttable tbody tr{display:grid;grid-template-columns:1fr;border-bottom:1px solid #cbd7e5;padding:8px}.assignmenttable tbody th:first-child{position:static;min-width:0;max-width:none;background:transparent}.assignmenttable td,.assignmenttable th{display:block;min-width:0;border:0;padding:5px!important}.assignmenttable select,.assignmenttable button{width:100%;max-width:100%}.assignmenttable{max-height:65vh}}
.alertbutton{background:#fbe0df;border-color:#cb9692;color:#782c2a}.message-list{display:grid;gap:10px;max-width:1050px}.message-card{display:flex;flex-direction:column;text-align:left;gap:8px;padding:15px 18px;white-space:normal}.message-card-top{display:flex;justify-content:space-between;gap:15px;width:100%;flex-wrap:wrap}.message-card span{line-height:1.45}.message-card.unread{border-left:5px solid #174b7d;background:#edf3fa}.message-card small{color:#5a687b}.message-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;padding:16px;background:#f5f7fa;border:1px solid #d6dfe9;border-radius:6px;margin:15px 0}.compact .message-card{padding:11px 14px;font-size:14px;gap:5px}

/* Avviso persistente per le scadenze non rispettate. */
#notice-slot{flex:1 0 100%;order:10;width:100%}
.overdue-notice{display:flex;align-items:center;gap:16px;padding:18px 20px;background:#fff0f0;border:3px solid #b11624;border-left-width:10px;border-radius:8px;color:#8b101b;box-shadow:0 3px 10px #8b101b20}
.overdue-notice strong{display:block;font-size:21px;line-height:1.3;font-weight:800}
.overdue-notice span{display:block;color:#8b101b;margin-top:5px}
.overdue-notice .overdue-symbol{font-size:38px;margin:0;line-height:1}
.overdue-notice #open-alerts{margin-left:auto;min-height:52px;background:#b11624;border:2px solid #b11624;color:white;font-size:17px;font-weight:750;white-space:normal}
.overdue-notice #open-alerts:hover{background:#870e19;border-color:#870e19}
@media(max-width:700px){.overdue-notice{flex-wrap:wrap;padding:14px;gap:10px}.overdue-notice strong{font-size:18px}.overdue-notice #open-alerts{width:100%;margin:0}}
.work-progress{min-width:90px;display:grid;gap:5px}.work-progress span{font-weight:700}.work-progress progress{width:100%;height:14px;accent-color:#19724b}

.client-features{border:1px solid #bacadb;border-radius:7px;display:grid;gap:14px;padding:18px;margin:4px 0}.client-features legend{font-weight:700}.client-features p{margin:0}.client-features small{font-weight:400;color:#536478}

/* Griglia a sinistra e note sulla destra per ogni attività. */
#grid .activitygrid{min-width:0;width:auto;table-layout:auto;margin-left:0;margin-right:auto}
#grid .activitygrid th:first-child{width:260px;min-width:260px;max-width:280px}
#grid .activitygrid .activity-month-heading{width:140px;min-width:140px}
#grid .activitygrid .activity-notes-heading,#grid .activitygrid td.activity-notes{width:330px;min-width:300px;max-width:360px;text-align:left;background:#f8fbff}
#grid .activitygrid .activity-notes-heading{background:#e3edf8}
#grid .activitygrid td.activity-notes{padding:10px 12px;border-left:2px solid #c1d2e5;vertical-align:top}
#grid .activity-notes>button{display:block;margin-top:8px;min-height:32px;padding:5px 9px;font-size:13px}
#grid .activity-notes>.muted{font-size:13px}
#grid .activity-note{margin-bottom:8px;font-size:13px;line-height:1.4}
#grid .activity-note strong{display:block;font-size:12px;color:#375774;margin-bottom:3px}
#grid .activity-note-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:130px;overflow:auto}
@media(max-width:720px){#grid .activitygrid th:first-child{width:200px;min-width:200px;max-width:220px}#grid .activitygrid .activity-month-heading{width:116px;min-width:116px}#grid .activitygrid td.activity-notes,#grid .activitygrid .activity-notes-heading{min-width:250px;width:270px}}

#grid .activitygrid.quarter-notes th:first-child{width:230px;min-width:230px;max-width:250px}
#grid .activitygrid.quarter-notes .activity-month-heading{width:110px;min-width:110px}
#grid .activitygrid.quarter-notes .activity-notes-heading,#grid .activitygrid.quarter-notes td.activity-notes{width:210px;min-width:190px;max-width:230px}
.request-notice{display:block;width:100%;text-align:left;margin-top:10px;background:#fff1d7;border:2px solid #a45b0b;color:#6d3800;font-size:17px;font-weight:750;padding:14px 18px}
.request-notice:hover{background:#ffe4b2}.request-cell-badge{display:block;background:#8c4600;color:white;font-size:11px;font-weight:750;padding:3px 5px;border-radius:4px}
#grid .activity-notes>.request-row-button,.request-row-button{border:1px solid #a45b0b;background:#fff1d7;color:#6d3800;font-weight:650}
.request-list{display:grid;gap:12px;margin-top:18px;max-width:1100px}.request-card{display:grid;gap:7px;text-align:left;padding:16px;border-left:6px solid #a45b0b;background:#fffaf0;color:#172b43;white-space:normal;overflow-wrap:anywhere}
.request-card.request-risposta{border-left-color:#235d98;background:#f0f6ff}.request-card.request-risolta{border-left-color:#277245;background:#f0f8f3}.request-card-title{font-weight:750}.request-card small{color:#536478}
.request-history{display:grid;gap:10px;max-height:38vh;overflow:auto}.request-history article{padding:12px;border:1px solid #c8d6e5;border-radius:6px;background:#f5f8fc}.request-history strong,.request-history small{display:block}.request-history small{color:#536478;margin-top:4px}.request-history p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 0}.request-state{font-weight:750;color:#7c4100}

footer .quiet-register{border-color:transparent;background:transparent;color:#5a687b;font-size:13px}footer .quiet-register:hover{background:#edf3fa;text-decoration:underline}
.client-warning-dot{display:inline-flex;align-items:center;gap:4px;margin-left:7px;padding:2px 6px;background:white;border-radius:15px;color:#b00020;font-size:12px;font-weight:800;vertical-align:middle}.client-warning-dot::before{content:'';width:11px;height:11px;background:#bb1029;border-radius:50%;box-shadow:0 0 0 2px #f9bec7}
.client-request-panel{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;border:2px solid #b00020;border-radius:7px;background:#fff0f1;color:#8f0820;margin:12px 0}.client-request-panel strong{font-size:17px}.client-request-panel span{font-size:14px}.client-request-panel button{margin-left:auto;color:#990d24;border-color:#b00020;font-weight:700}
.request-level-1{border-color:#a65b00!important}.request-level-2{border-color:#b71924!important;color:#9b1321}.request-card.request-level-2,.request-card.request-level-3{background:#fff0f2;border-left-color:#b00020}.request-level-3:not(.request-card){color:#a9001c}.reminder-label{font-weight:800;padding:10px;border:2px solid #b00020;background:#fff0f1}
.request-notice.request-level-3,.client-request-panel.request-level-3,.request-cell-badge.request-level-3,.request-card.request-level-3{animation:request-alert-pulse 1.8s ease-in-out infinite;border-color:#b00020;color:#8d001b}.request-cell-badge.request-level-3{background:#b00020;color:white}.client-warning-dot.request-level-3::before{animation:client-dot-pulse 1.8s ease-in-out infinite}
@keyframes request-alert-pulse{0%,100%{box-shadow:inset 0 0 0 0 #b0002000}50%{box-shadow:inset 0 0 0 3px #b0002060}}
@keyframes client-dot-pulse{0%,100%{box-shadow:0 0 0 2px #b0002030}50%{box-shadow:0 0 0 5px #b0002070}}
@media(prefers-reduced-motion:reduce){.request-level-3,.client-warning-dot.request-level-3::before{animation:none!important}}

.request-cell-badge.request-level-2{background:#b71924;color:white}

#grid button.request-cell-badge{display:block;width:100%;margin-top:5px;min-height:32px;font-size:12px;line-height:1.25;border:1px solid #884100;padding:5px 6px;text-align:center;white-space:normal}#grid button.request-cell-badge:hover{outline:2px solid #b00020}

.request-fixed-heading{font-weight:750;font-size:18px;color:#173a62;margin:12px 0}

.request-admin-controls{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.request-admin-controls #request-close{background:#edf6ef;border-color:#2c7041;color:#245a34}

.request-history article.request-original{background:#eaf2ff;border:2px solid #315f93;border-left-width:7px;padding:16px 18px}.request-original-title{font-size:17px;font-weight:800;color:#183f6b;margin-bottom:9px}.request-history .request-original p{font-size:18px;line-height:1.55;font-weight:600;color:#142e4c}.request-history .request-original strong{font-size:13px}.request-history .request-original small{font-size:12px}

.request-entry{display:grid;gap:5px}.request-entry .request-card{width:100%}.request-manage-button{justify-self:end;font-size:13px;min-height:32px;color:#50657d;border-color:#c5d1de;background:#f5f7fa;padding:5px 10px}

.client-request-summary h2{font-size:17px;margin:14px 0 4px}.client-request-panel.request-waiting,.request-card.request-risposta{background:#f2f3f4;color:#59616a;border-color:#a6adb5;animation:none}.client-request-panel.request-waiting button{color:#59616a;border-color:#a6adb5}.request-card.request-risposta.request-level-3{animation:none;color:#59616a;border-color:#a6adb5}

/* Riepilogo avvisi compatto, con categorie e stati separati. */
.client-request-summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:5px 0;padding:5px 9px;border:1px solid #d8dee5;border-radius:6px;background:#fafbfc}
.client-request-summary h2{font-size:14px;margin:0;min-width:190px;font-weight:700}
.client-request-summary .client-request-panel{display:flex;align-items:center;gap:7px;flex:1 1 250px;margin:0;padding:4px 8px;border-width:1px;border-radius:4px;min-height:30px}
.client-request-summary .client-request-panel strong{font-size:13px}
.client-request-summary .client-request-panel button{font-size:12px;min-height:26px;padding:3px 8px;margin-left:auto}

.client-request-summary .client-request-panel{flex:0 1 auto;justify-content:flex-start}.client-request-summary .client-request-panel button{margin-left:12px}

.client-request-summary .client-request-panel:not(.request-waiting){background:#ffe4e7;border:2px solid #b00020;color:#98001c}.client-request-summary .client-request-panel:not(.request-waiting) strong{font-size:15px;font-weight:800}.client-request-summary .client-request-panel:not(.request-waiting) button{background:#b00020;color:#fff;border-color:#b00020;font-weight:750}

.request-reply-section{display:block;margin-top:16px;padding-top:12px;border-top:1px solid #ccd3dc;font-weight:700}

.client-heading{font-size:30px;font-weight:850}.request-cell-badge.request-waiting,.request-row-button.request-waiting,.request-cell-badge.request-waiting.request-level-3{background:#f0f2f4;color:#626c77;border:1px solid #adb5bf;animation:none;font-weight:600}

.request-cell-badge.request-waiting,.request-row-button.request-waiting,.request-cell-badge.request-waiting.request-level-3,.client-request-summary .client-request-panel.request-waiting,.request-card.request-risposta,.request-card.request-risposta.request-level-3{background:#dcefff;color:#075c9e;border-color:#58a7df;animation:none}
.client-request-summary .client-request-panel.request-waiting button{background:#dcefff;color:#075c9e;border-color:#58a7df}

.client-dashboard{width:100%;border-collapse:separate;border-spacing:0;min-width:1180px}.client-dashboard th,.client-dashboard td{padding:6px;border-bottom:1px solid #dce2e9;text-align:center}.client-dashboard thead th{background:#edf3f9;font-size:13px}.client-dashboard th:first-child{position:sticky;left:0;z-index:2;background:white;text-align:left;min-width:220px;max-width:290px;box-shadow:2px 0 3px #dce2e9}.client-dashboard thead th:first-child{background:#edf3f9;z-index:3}.client-dashboard th button{text-align:left;font-weight:750}.dashboard-month{display:block;width:100%;min-width:68px;padding:7px 4px;background:#f6f9fc;border:1px solid #dce5ee}.dashboard-month:hover{border-color:#2876b6;background:#eaf4fd}.dashboard-month .work-progress{display:flex;flex-direction:column;gap:5px;font-size:13px}.dashboard-month progress{width:100%;height:9px;accent-color:#2588cd}.dashboard-complete progress{accent-color:#22834b}.dashboard-late{display:block;color:#ac1732;font-size:11px;margin-top:5px}.client-dashboard tbody tr:hover th{background:#f1f7fc}

.client-dashboard.dashboard-period{min-width:600px}.client-dashboard.dashboard-period .dashboard-month{min-width:90px}.client-dashboard.dashboard-period td{padding:10px}

.client-dashboard.dashboard-year{min-width:0;width:100%;table-layout:fixed}
.client-dashboard.dashboard-year th,.client-dashboard.dashboard-year td{padding:4px 2px;min-width:0;max-width:none}
.client-dashboard.dashboard-year th:first-child{width:155px;min-width:0;max-width:155px;overflow-wrap:anywhere}
.client-dashboard.dashboard-year th:first-child button{max-width:100%;padding:4px;font-size:12px;overflow-wrap:anywhere;white-space:normal}
.client-dashboard.dashboard-year thead th{font-size:11px}
.client-dashboard.dashboard-year .dashboard-month{min-width:0;max-width:100%;padding:6px 2px;box-sizing:border-box}
.client-dashboard.dashboard-year .work-progress{min-width:0;gap:4px;font-size:11px}
.client-dashboard.dashboard-year progress{min-width:0;max-width:100%;height:7px}
.client-dashboard.dashboard-year .dashboard-late{font-size:9px;white-space:normal;overflow-wrap:anywhere}

#tabs button.overdue-tab,#tabs button.overdue-tab[aria-selected="true"]{color:#b00020;font-weight:850;border-color:#b00020;background:#fff0f2}

.control-clean{width:100%;border-collapse:collapse}.control-clean th,.control-clean td{padding:9px 12px;border-bottom:1px solid #dce2e9;text-align:left}.control-clean thead{background:#edf3f9}.control-clean tbody th{font-weight:750;min-width:180px}.control-state{font-weight:750;white-space:nowrap}.control-state.control-ok{color:#176438;background:#e8f5eb;border-color:#83b894}.control-state.control-missing{color:#a00020;background:#ffebee;border-color:#d66b7c}.control-state.control-na{color:#626b75;background:#f1f3f5;border-color:#c4cbd2}.control-note{width:26%;min-width:190px;white-space:pre-wrap}.control-note button{font-size:12px;padding:4px 8px;margin-top:4px}

.home-client-header{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:12px}.home-client-header h1{margin:0}.home-client-buttons{display:flex;gap:9px;flex-wrap:wrap;flex:1;min-width:220px}.home-client-buttons .home-client-button{background:#1765a5;color:#fff;border:1px solid #1765a5;border-radius:5px;font-size:14px;font-weight:750;padding:10px 16px;min-height:40px;white-space:normal;text-align:left}.home-client-buttons .home-client-button:hover{background:#0d477b;border-color:#0d477b}.home-client-buttons .home-client-button:focus-visible{outline:3px solid #79b9e9;outline-offset:2px}

.home-client-header{gap:0;margin:6px 0 12px;justify-content:flex-start}
.home-client-buttons{flex:1;min-width:0;gap:12px 8px;justify-content:flex-start;padding-top:10px}
.home-client-buttons .home-client-button{position:relative;box-sizing:border-box;flex:0 0 148px;width:148px;min-width:148px;max-width:148px;height:42px;min-height:42px;padding:6px 8px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:12px;line-height:1.15;font-weight:700;overflow-wrap:anywhere}
.home-client-buttons .home-client-button .client-warning-dot{position:absolute;left:50%;top:-10px;transform:translateX(-50%);margin:0;z-index:2}

.dashboard-late,.client-dashboard.dashboard-year .dashboard-late{color:#b00020;font-size:11px;font-weight:850;line-height:1.25;background:#fff0f2;border-radius:3px;padding:3px 1px;margin-top:5px}

.client-dashboard.dashboard-period{table-layout:fixed;min-width:760px}.client-dashboard.dashboard-period th:first-child{width:185px;min-width:185px}.client-dashboard.dashboard-period .home-notes-heading,.client-dashboard.dashboard-period .home-notes-cell{width:32%;text-align:left;background:#f7f9fc;vertical-align:top;border-left:1px solid #d5dfeb}.home-shared-notes{font-size:12px;text-align:left;white-space:normal}.home-shared-notes section{padding:8px 0;border-top:1px solid #dce2e9;margin-top:7px}.home-shared-notes button{font-size:12px;padding:4px 7px;min-height:28px}.home-note-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0}.home-note-text small{color:#5f6d7c}

.home-client-buttons .home-client-button .client-warning-dot{left:8px;top:-10px;transform:none}

.home-client-buttons .home-client-button .client-warning-dot{left:50%;top:-10px;transform:translateX(-50%)}
.client-dashboard tbody th:first-child .client-warning-dot{margin-left:0;margin-right:6px;vertical-align:middle}

.dashboard-client-label{display:inline-flex;flex-direction:column;align-items:center;gap:5px;max-width:100%;vertical-align:top}.client-dashboard tbody th:first-child .dashboard-client-label .client-warning-dot{margin:0;align-self:center}.client-dashboard tbody th:first-child{vertical-align:top}

body.admin-view .client-request-summary .client-request-panel.request-waiting,body.admin-view .client-request-summary .client-request-panel.request-waiting button,body.admin-view .request-cell-badge.request-waiting,body.admin-view .request-row-button.request-waiting,body.admin-view .request-card.request-risposta{background:#ffebee;border-color:#d66b7c;color:#075c9e}

.weekly-chart{width:100%;border-collapse:collapse;min-width:850px}.weekly-chart th,.weekly-chart td{padding:10px 6px;border-bottom:1px solid #dae2ec;text-align:center}.weekly-chart th:first-child{text-align:left;width:170px}.weekly-chart small{display:block;color:#627084;font-size:12px}.weekly-bar{display:flex;flex-direction:column;gap:8px;align-items:center;width:100%;background:#f3f8fd;border:1px solid #d2e1f0}.weekly-bar progress{width:100%;height:18px;accent-color:#267abe}.weekly-bar.color-1 progress{accent-color:#228368}.weekly-bar.color-2 progress{accent-color:#9452af}.weekly-bar.color-3 progress{accent-color:#bd7518}.weekly-bar:disabled{opacity:1;cursor:default}.work-goals{display:flex;gap:14px;flex-wrap:wrap}.work-goals section{display:flex;flex-direction:column;gap:9px;padding:16px;border:1px solid #cad8e6;border-radius:7px;min-width:235px;background:#f6f9fc}.work-goals progress{width:100%;height:16px;accent-color:#267abe}

.weekly-chart{table-layout:fixed;min-width:0;width:100%}.weekly-chart th,.weekly-chart td{min-width:0;max-width:none;padding:8px 5px;white-space:normal;overflow-wrap:anywhere}.weekly-chart th:first-child{min-width:0;width:135px;max-width:135px}.weekly-chart th:last-child{width:145px}.weekly-bar{min-width:0;padding:8px 5px}.weekly-bar progress{min-width:0;max-width:100%}

.work-daily{margin-top:26px}.work-daily-section{margin:12px 0;border:1px solid #d4deea;border-radius:6px;overflow:hidden;background:#fff}.work-daily-section h3{margin:0;padding:9px 12px;font-size:15px;background:#edf3fa;color:#173f69}.work-daily-section h3 span{font-weight:400;margin-left:8px}.work-day-empty{padding:8px 12px;margin:0;font-size:13px}.work-daily-table{width:100%;border-collapse:collapse}.work-daily-table th,.work-daily-table td{padding:8px 12px;text-align:left;vertical-align:top;border-bottom:1px solid #e0e6ee;font-size:13px;min-width:0}.work-daily-table th:first-child{min-width:0;width:150px;max-width:180px}.work-daily-table small{display:block;color:#627084;margin-top:4px}.work-daily-note{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:5px;color:#4b5d70}.work-goals-heading{margin-top:32px;padding-top:20px;border-top:1px solid #cad8e6}

.work-daily-clients{display:flex;gap:12px;flex-wrap:wrap;padding:12px}.work-daily-client{flex:1 1 300px;max-width:540px;padding:10px 14px;border:1px solid #dce5ef;border-radius:5px;background:#f9fbfd}.work-daily-client h4{margin:0 0 8px;font-size:15px;color:#173f69}.work-daily-client h4 small{display:block;font-size:12px;font-weight:400;color:#627084;margin-top:3px}.work-daily-client ul{margin:0;padding-left:17px}.work-daily-client li{font-size:12px;line-height:1.45;margin:7px 0}.work-daily-client li small{color:#627084}

.work-page-top{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:14px}.work-page-top>h1{flex:1}.work-page-top aside{width:340px;max-width:48%;padding:12px;border:1px solid #cad8e6;border-radius:6px;background:#f4f8fc}.work-page-top .work-goals-heading{font-size:16px;margin:0 0 5px;padding:0;border:0}.work-page-top aside>p{font-size:11px;line-height:1.3;margin:4px 0 8px}.work-page-top .work-goals{gap:7px}.work-page-top .work-goals section{min-width:0;width:100%;padding:8px;background:white;font-size:12px;gap:5px}.work-page-top .work-goals section button{min-height:28px;font-size:12px;padding:4px 8px}@media(max-width:650px){.work-page-top{flex-direction:column}.work-page-top aside{max-width:100%;width:100%}}

.work-page-top{display:block;position:relative;margin:0 0 6px;padding-right:350px;min-height:32px}
.work-page-top>h1{margin:0}
.work-page-top aside{position:absolute;right:0;top:0;width:330px;max-width:330px;padding:9px}
.work-page-top+p,.work-page-top~.toolbar,.work-page-top~p.notice{margin-right:350px}
.work-page-top+p{font-size:13px;margin-top:6px;margin-bottom:8px;line-height:1.35}
.work-page-top~.toolbar{margin-top:8px;margin-bottom:8px;gap:8px}
.work-page-top~p.notice{font-size:12px;line-height:1.35;margin-top:8px;margin-bottom:12px;padding:8px 12px;min-height:58px}
.work-page-top aside>p{font-size:10px;line-height:1.2;margin:3px 0 5px}
.work-page-top .work-goals section{padding:6px;gap:4px}
.work-daily{margin-top:16px}.work-daily h2{margin-bottom:8px}
@media(max-width:800px){.work-page-top{padding-right:0}.work-page-top aside{position:static;margin-top:8px;width:100%;max-width:100%}.work-page-top+p,.work-page-top~.toolbar,.work-page-top~p.notice{margin-right:0}}

.work-page-top{padding-right:240px}.work-page-top aside{width:220px;max-width:220px}.work-page-top+p,.work-page-top~.toolbar,.work-page-top~p.notice{margin-right:240px}.work-prize-amount{font-size:20px;font-weight:800;color:#174b7d}.work-page-top .work-goals section{display:grid;grid-template-columns:1fr auto;gap:4px 8px;align-items:center}.work-page-top .work-goals section strong{font-size:12px}.work-page-top .work-goals section button{grid-column:1/-1;justify-self:end}.work-page-top .work-goals-heading{font-size:14px}@media(max-width:800px){.work-page-top{padding-right:0}.work-page-top aside{width:100%;max-width:100%}.work-page-top+p,.work-page-top~.toolbar,.work-page-top~p.notice{margin-right:0}}

.work-days-under-chart>td,.work-days-under-chart>th{vertical-align:top;background:#fff}.work-days-under-chart .work-daily-section{margin:0;border:0;border-radius:0;background:transparent}.work-days-under-chart .work-daily-section h3{display:none}.work-days-under-chart .work-daily-clients{display:flex;flex-direction:column;gap:8px;padding:0}.work-days-under-chart .work-daily-client{flex:none;min-width:0;max-width:100%;width:100%;padding:7px 5px;text-align:left;overflow-wrap:anywhere}.work-days-under-chart .work-daily-client h4{font-size:12px;margin-bottom:5px}.work-days-under-chart .work-daily-client h4 small{font-size:10px}.work-days-under-chart .work-daily-client ul{padding-left:12px}.work-days-under-chart .work-daily-client li{font-size:11px;margin:5px 0}.work-days-under-chart .work-day-empty{font-size:11px;padding:6px 2px;text-align:left}.work-days-under-chart .work-daily-client li small{font-size:10px}.work-days-under-chart .work-daily-note{font-size:11px}

.extra-work-button{background:#7e2546;color:white;border-color:#7e2546;font-weight:700}.extra-work-button:hover{background:#611a34;color:white}.work-session-fields{border:1px solid #cad8e6;border-radius:5px;padding:12px;margin:14px 0}.work-session-fields legend{font-weight:700;font-size:14px}.work-minutes{font-weight:700;color:#3f5268}

.minute-shortcuts{display:flex;gap:6px;flex-wrap:wrap;margin:9px 0}.minute-shortcuts button{font-size:13px;min-height:30px;padding:4px 9px}.economics-table{width:100%;border-collapse:collapse}.economics-table td,.economics-table th{min-width:0;padding:10px;text-align:left;border-bottom:1px solid #d9e3ed}.economics-table td button{display:block;font-size:12px;min-height:27px;padding:3px 7px;margin-top:5px}.economic-rates>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid #d9e3ed}.economic-months{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.economic-months>div{padding:8px;background:#eef4fa;border-radius:4px;font-size:13px}.economic-months span{display:block}

.economic-signal{display:inline-block;font-weight:750;font-size:12px;padding:6px 8px;border-radius:4px}.economic-signal.signal-green{background:#e5f4e9;color:#176236}.economic-signal.signal-amber{background:#fff0bc;color:#7a5400}.economic-signal.signal-red{background:#ffdee4;color:#a40021}.economic-signal.signal-unknown{background:#edf0f3;color:#5d6977}

dialog:has(.extra-work-form){width:min(600px,94vw);max-height:92vh;padding:18px 22px}
dialog:has(.extra-work-form) h2{font-size:19px;margin:0 0 9px}
.extra-work-form{display:grid;gap:9px}.extra-work-form .extra-work-intro{font-size:12px;line-height:1.3;margin:0;color:#5a687b}.extra-work-form label{font-size:13px}.extra-work-form select,.extra-work-form input:not([type=checkbox]){padding:7px 9px;min-height:34px;margin-top:4px}.extra-work-form textarea{padding:7px 9px;min-height:62px;height:62px;margin-top:4px}.extra-work-form #manage-extra-types{justify-self:start;font-size:12px;min-height:28px;padding:4px 8px}.extra-time-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.extra-work-form .minute-shortcuts{margin:0;justify-content:flex-end}.extra-work-form .check{margin:0;line-height:1.3}.extra-work-form .check input{width:17px;height:17px}dialog:has(.extra-work-form) .actions{margin-top:12px;gap:8px}dialog:has(.extra-work-form) .actions button{min-height:35px;padding:6px 11px;font-size:13px}dialog:has(.extra-work-form) #dialog-error:empty{display:none}@media(max-width:440px){.extra-time-row{grid-template-columns:1fr}}

#identity #studio-year{font-weight:750;min-width:110px}.year-calendar-pending{display:block;flex-basis:100%;font-size:12px;color:#805600;background:#fff2cd;padding:6px 10px;border-radius:4px}

.document-preview-table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:850px}.document-preview-table th,.document-preview-table td{padding:10px 8px;border:1px solid #d8e2ed;vertical-align:top;text-align:left;min-width:0}.document-preview-table th:first-child{min-width:0;width:235px}.document-preview-table thead{background:#edf3f9}.document-preview-table th small{display:block;font-weight:400;font-size:12px;margin-top:6px}.document-work-cell{background:#fff1f2;border:1px solid #d58c97;border-radius:5px;padding:8px;color:#93122b}.document-work-cell small{display:block;font-size:11px;margin-top:4px}.document-preview-status{margin-top:7px;padding:7px 6px;font-size:12px;font-weight:750;border-radius:4px}.doc-missing{color:#a00020;background:#ffeaee}.doc-review{color:#7e5600;background:#fff0bb}.doc-verified{color:#18613a;background:#e3f4e8}.document-sim-label{font-size:11px;margin-top:9px;font-weight:400}.document-sim-label select{font-size:11px;min-height:30px;padding:5px;margin-top:3px;width:100%}.document-folder-example{padding:12px 15px;border:1px solid #b9cbdd;background:#edf4fc;border-radius:5px;font-size:14px;overflow-wrap:anywhere}.document-legend{display:flex;gap:12px;flex-wrap:wrap}.document-legend span{padding:7px 10px;font-weight:700;font-size:13px;border-radius:4px}

.bank-document-required{display:block;width:100%;padding:6px 5px;margin-top:5px;min-height:30px;font-size:11px;font-weight:750;color:#a00020;background:#ffedf0;border:1px solid #d18796}.bank-document-required:hover{background:#ffdde4}
/* Home compatta: righe ravvicinate, note e avanzamento leggibili. */
.client-dashboard th,.client-dashboard td,
.client-dashboard.dashboard-period td,
.client-dashboard.dashboard-year th,.client-dashboard.dashboard-year td{padding:3px 4px;vertical-align:middle}
.client-dashboard .dashboard-month,.client-dashboard.dashboard-year .dashboard-month{min-height:0;padding:4px 3px}
.client-dashboard .dashboard-month .work-progress,.client-dashboard.dashboard-year .work-progress{gap:2px;font-size:12px;line-height:1.15;min-width:0}
.client-dashboard .dashboard-month progress{height:8px}
.client-dashboard .dashboard-late,.client-dashboard.dashboard-year .dashboard-late{margin-top:2px;padding:1px 2px;line-height:1.15;font-size:11px}
.dashboard-client-label{gap:2px}
.client-dashboard tbody th:first-child .dashboard-client-label>button{min-height:24px;padding:2px 0;font-size:13px;line-height:1.2}
.client-dashboard .home-shared-notes{font-size:12px;line-height:1.25}
.client-dashboard .home-shared-notes button{min-height:26px;padding:3px 6px;line-height:1.2}
.client-dashboard .home-shared-notes section{padding:3px 0;margin-top:3px}
.client-dashboard .home-note-text{margin:2px 0}
.client-dashboard .home-notes-inline{display:flex;align-items:center;gap:4px;white-space:nowrap}
.client-dashboard.dashboard-period .home-notes-cell{vertical-align:middle}
.client-dashboard .dashboard-client-label{flex-direction:row;align-items:center;gap:5px;width:100%}
.client-dashboard .dashboard-client-label>button{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.client-dashboard tbody th:first-child .dashboard-client-label .client-warning-dot{flex-shrink:0}
.client-dashboard.dashboard-year .home-notes-heading,.client-dashboard.dashboard-year .home-notes-cell{width:165px;text-align:left;vertical-align:middle}
.client-dashboard.dashboard-year .home-notes-inline{gap:3px}
.client-dashboard.dashboard-year .home-notes-inline button{font-size:10px;padding:3px;white-space:normal;min-height:28px}
.comparison-actions{display:flex;gap:6px;margin-left:auto;flex-wrap:wrap}.comparison-actions button{font-size:13px;min-height:34px;padding:6px 9px}.work-comparison{margin:10px 0 24px}.work-comparison p{font-size:13px}.comparison-value{display:flex;flex-direction:column;gap:4px;width:100%;padding:6px;font-size:13px}.comparison-value progress{width:100%;height:10px;accent-color:#2186bf}
.comparison-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(510px,100%);gap:6px}
.comparison-actions button{width:100%;min-height:38px;background:#174b7d;border-color:#174b7d;color:#fff;text-align:center;line-height:1.2;font-weight:600}
.comparison-actions button:hover{background:#103b65;border-color:#103b65}
@media(max-width:600px){.comparison-actions{width:100%;margin-left:0}.comparison-actions button{font-size:12px;padding:6px 4px}}
.user-actions-heading,.user-actions{text-align:right;white-space:nowrap}.user-actions button{min-width:32px;min-height:32px;padding:4px 8px;margin-left:4px;font-size:19px}.user-actions [data-remove-user]{color:#ad1932}.archived-users{margin-top:12px;font-size:13px}.archived-users button{min-height:28px;padding:3px 8px}
.deadline-review-flag{display:block;color:#8a3600!important;background:#fff0ce;border:1px solid #d08c26;border-radius:3px;padding:2px 4px;font-weight:750!important;white-space:normal}
.deadline-review-notice{background:#fff1cc;color:#733200;border:2px solid #cf8a25;border-radius:5px;padding:10px 12px;font-size:13px;line-height:1.4}
.compact td button.cell small.deadline-review-flag,td button.cell small.deadline-review-flag{display:block!important}
.calendar-grid-actions{display:flex;gap:6px;margin-left:auto}.calendar-grid-actions button{min-width:115px;min-height:36px;padding:6px 12px}.calendar-grid-actions [aria-pressed=true]{background:#0b325a;box-shadow:inset 0 0 0 2px #fff8}
.calendar-matrix{table-layout:fixed;width:100%;min-width:0;border-collapse:separate;border-spacing:0}.calendar-matrix th,.calendar-matrix td{min-width:0;padding:3px;text-align:center;vertical-align:middle}.calendar-matrix th:first-child{width:245px;min-width:0;max-width:245px;text-align:left}.calendar-matrix thead th{font-size:12px;padding:8px 2px}.calendar-matrix tbody th>button{font-size:12px;line-height:1.2;min-height:24px;white-space:normal;overflow-wrap:anywhere}.calendar-matrix th small{font-size:10px;line-height:1.2;margin-top:2px}.calendar-date{width:100%;min-height:30px;padding:3px 1px;font-size:12px;line-height:1.2;background:#e8f1fa;border-color:#c5d8e8;color:#174b7d;font-weight:700}.calendar-date small{font-size:10px;margin-left:2px}.calendar-date-review{background:#fff0ce;border-color:#cf952e;color:#803c00}.calendar-date-internal{background:#f0f2f5;border-color:#d4dbe3;color:#45566a}.calendar-unset{font-size:10px;font-weight:400;white-space:normal}.calendar-no-date{color:#a2adba}.calendar-matrix-wrap{max-height:70vh}.calendar-grid-legend{display:flex;gap:18px;flex-wrap:wrap;font-size:12px;margin:7px 0}.calendar-review-key{color:#803c00;font-weight:700}
@media(max-width:850px){.calendar-matrix th:first-child{width:180px;max-width:180px}.calendar-matrix-year{min-width:1000px}.calendar-grid-actions{margin-left:0}}
/* Home: righe uniformi per clienti configurati e sole intestazioni. */
.client-dashboard tbody tr{height:58px}
.client-dashboard tbody th,.client-dashboard tbody td,
.client-dashboard.dashboard-period tbody td,
.client-dashboard.dashboard-year tbody th,.client-dashboard.dashboard-year tbody td{height:58px;box-sizing:border-box;padding:3px 4px;vertical-align:middle}
.client-dashboard .dashboard-client-label{height:48px;min-width:0;display:flex;align-items:center;gap:5px}
.client-dashboard tbody th:first-child .dashboard-client-label>button{flex:1;min-width:0;max-width:100%;height:30px;min-height:30px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;line-height:24px;padding:3px 0;box-sizing:border-box}
.client-dashboard .dashboard-month,.client-dashboard.dashboard-year .dashboard-month{height:48px;min-height:48px;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:0;overflow:hidden;box-sizing:border-box}
.client-dashboard .home-notes-inline{height:48px;align-items:center;justify-content:flex-start}
/* Home compatta: meno margine tra le righe, stessa altezza per tutti. */
.client-dashboard tbody tr{height:50px}
.client-dashboard tbody th,.client-dashboard tbody td,
.client-dashboard.dashboard-period tbody td,
.client-dashboard.dashboard-year tbody th,.client-dashboard.dashboard-year tbody td{height:50px;padding:1px 4px}
.client-dashboard .dashboard-client-label,.client-dashboard .home-notes-inline{height:46px}
.client-dashboard .dashboard-month,.client-dashboard.dashboard-year .dashboard-month{height:46px;min-height:46px;padding:2px 3px}

/* Selettori calendario di uguale dimensione. */
.calendar-grid-actions [data-calendar-grid]{box-sizing:border-box;width:154px;min-width:154px;height:44px;min-height:44px;padding:9px 14px;font-size:15px;font-weight:700;text-align:center;display:inline-flex;align-items:center;justify-content:center}

.home-client-actions{display:inline-flex;gap:2px;flex-shrink:0;align-items:center}
.client-dashboard tbody th:first-child .home-client-actions button{width:24px;min-width:24px;min-height:26px;padding:2px;font-size:15px;text-align:center;line-height:20px}
.client-dashboard.dashboard-period th:first-child{width:250px;min-width:250px}
.client-dashboard.dashboard-year th:first-child{width:220px;max-width:220px}
.home-archive-tools{margin-top:10px}

.accountants-list{display:flex;flex-direction:column;gap:6px;max-width:660px}
.accountants-list>button{display:flex;align-items:center;gap:18px;text-align:left;padding:10px 14px;min-height:46px;background:#f3f7fc;border:1px solid #c7d7e8}
.accountants-list>button strong{flex:1;color:#165c96;font-size:16px}
.accountants-list>button span{font-size:13px;color:#526477}
.accountant-home-heading{margin-bottom:12px}
.accountant-home-heading h1{margin:8px 0 4px}
/* Scheda contabili: rosso trasparente molto chiaro. */
.accountants-list>button{background:rgba(190,35,55,.055);border-color:rgba(190,35,55,.18)}
.accountants-list>button:hover{background:rgba(190,35,55,.10);border-color:rgba(190,35,55,.30)}
.accountants-list>button strong{color:#74313c}
.accountants-list>button span{color:#72545a}
#tabs [data-tab="accountants"]{background:rgba(190,35,55,.055);border-color:rgba(190,35,55,.22);color:#74313c}
#tabs [data-tab="accountants"][aria-selected="true"]{background:rgba(190,35,55,.11);border-color:rgba(190,35,55,.36);color:#682732}
/* Scheda contabili: stessa palette dell’avviso scadenze. */
.accountants-list>button{background:#fff0f0;border:2px solid #b11624}
.accountants-list>button:hover{background:#ffe3e5;border-color:#870e19}
.accountants-list>button strong,.accountants-list>button span{color:#8b101b}
#tabs [data-tab="accountants"],#tabs [data-tab="accountants"][aria-selected="true"]{background:#fff0f0;border:2px solid #b11624;color:#8b101b;font-weight:750}

#tabs [data-tab="accountants"],#tabs [data-tab="accountants"][aria-selected="true"]{font-weight:850}

body.staff-workspace>nav,body.staff-workspace footer #sources{display:none}
.staff-workspace-nav{margin-bottom:14px}
.staff-workspace-nav h1{margin:8px 0 10px}
.staff-home-link{border:0;background:transparent;color:#153f64;font-size:23px;font-weight:800;padding:0;text-align:left}
.staff-page-buttons{display:flex;gap:8px;flex-wrap:wrap}
.staff-page-buttons button{background:#1765a5;color:white;border:1px solid #1765a5;font-weight:700;min-height:38px;padding:8px 14px}
.staff-page-buttons button[aria-pressed="true"]{background:#103f68;box-shadow:inset 0 -3px 0 #8dc9f5}

body.staff-workspace .home-client-actions,body.staff-workspace .home-archive-tools,body.staff-workspace #identity label:has(#owner-filter){display:none}

/* Area contabile: barra originale, nella posizione originale. */
body.staff-workspace>nav{display:flex}
.staff-workspace-nav{margin:0 0 8px}

.account-access-fields{display:grid;grid-template-columns:minmax(170px,1fr) minmax(160px,1fr);gap:5px;max-width:530px}.account-access-fields input{min-width:0;width:100%;box-sizing:border-box}.account-access-fields small{grid-column:1/-1;font-size:11px}
/* Accessi contabili: campi affiancati e righe regolari. */
.account-access-fields{display:grid;grid-template-columns:minmax(165px,1.3fr) minmax(135px,1fr) minmax(135px,1fr) auto;align-items:center;gap:6px;max-width:none}
.account-access-fields input{height:34px;min-height:34px;padding:5px 7px;font-size:12px}
.account-access-fields small{display:none}
.account-access-fields button{height:34px;min-height:34px;padding:5px 8px;white-space:nowrap;font-size:12px}
.compacttable:has(.account-access-fields) table{width:100%;min-width:1000px}
.compacttable:has(.account-access-fields) th,.compacttable:has(.account-access-fields) td{vertical-align:middle;padding:6px}
.compacttable:has(.account-access-fields) tbody tr{height:48px}
.compacttable:has(.account-access-fields) th:first-child{min-width:145px;text-align:left;white-space:nowrap}
.accountants-list>button{display:grid;grid-template-columns:minmax(180px,1fr) 145px 20px;align-items:center;gap:12px;height:46px;box-sizing:border-box}

.password-saved-role{color:#17753a;font-weight:850}

/* Registro segnalazioni: stessa vista minima per entrambi i ruoli. */
.requests-register-compact>p{display:none}
.requests-register-compact .controlstats{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.requests-register-compact .controlstats>div{display:flex;align-items:center;gap:6px;padding:4px 9px}
.requests-register-compact .controlstats strong{font-size:16px;line-height:1.2}
.requests-register-compact .controlstats span{font-size:12px;margin:0}
.requests-register-compact .toolbar{margin:6px 0;gap:8px;align-items:end}
.requests-register-compact .toolbar label{display:flex;align-items:center;gap:8px;font-size:12px}
.requests-register-compact .toolbar button,.requests-register-compact .toolbar select{min-height:30px;padding:4px 8px;font-size:12px}
.requests-register-compact .request-list{max-width:none;gap:3px;margin-top:6px}
.requests-register-compact .request-entry{display:flex;align-items:stretch;gap:4px;min-width:0}
.requests-register-compact .request-card{flex:1;min-width:0;display:grid;grid-template-columns:minmax(180px,1.5fr) minmax(130px,.85fr) minmax(120px,1fr) minmax(130px,1.2fr);align-items:center;gap:10px;min-height:36px;padding:5px 9px;border-left-width:4px;font-size:12px;line-height:1.3}
.requests-register-compact .request-card>*{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.requests-register-compact .request-card small{display:none}
.requests-register-compact .request-manage-button{flex:0 0 120px;min-height:30px;padding:4px 6px;font-size:11px;white-space:normal}
@media(max-width:800px){.requests-register-compact .request-card{grid-template-columns:minmax(0,1fr) minmax(110px,.6fr);gap:3px 8px}.requests-register-compact .request-manage-button{flex-basis:85px}.requests-register-compact .toolbar label{flex-wrap:wrap}}

/* Testo prima della data nel registro compatto. */
.requests-register-compact .request-card{grid-template-columns:minmax(180px,1.5fr) minmax(130px,.85fr) minmax(130px,1.2fr) minmax(120px,1fr)}
.requests-register-compact .request-card>span:nth-child(4){grid-column:3;grid-row:1}
.requests-register-compact .request-card>span:nth-child(3){grid-column:4;grid-row:1;text-align:right}
@media(max-width:800px){.requests-register-compact .request-card{grid-template-columns:minmax(0,1fr) minmax(110px,.6fr)}.requests-register-compact .request-card>span:nth-child(4){grid-column:1;grid-row:2}.requests-register-compact .request-card>span:nth-child(3){grid-column:2;grid-row:2}}

.requests-register-compact .request-card-title{display:flex;align-items:center;gap:1cm}.requests-register-compact .request-card-title>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis}.requests-register-compact .request-short-label{flex-shrink:0}

.requests-register-compact .request-card-title{gap:2cm}.requests-register-compact .request-short-label{flex-shrink:1;min-width:0;overflow:hidden;text-overflow:ellipsis}

/* Avvisi da gestire: evidenza rossa come le scadenze non rispettate. */
.requests-register-compact .request-card.request-aperta{background:#fff0f0;border-color:#b11624;color:#8b101b}

/* Riepilogo annuale: dodici mesi nella larghezza della pagina. */
#main .annual-summary{width:100%;min-width:0;table-layout:fixed}
#main .annual-summary th,#main .annual-summary td{min-width:0;max-width:none;padding:3px 2px;text-align:center;vertical-align:middle}
#main .annual-summary th:first-child{width:19%;min-width:0;max-width:none;text-align:left;padding-left:6px}
#main .annual-summary thead th{font-size:12px;padding:8px 2px}
#main .annual-summary abbr{text-decoration:none}
#main .annual-summary button{width:100%;min-width:0;min-height:36px;padding:4px 1px;font-size:11px;line-height:1.2;white-space:normal}
#main .annual-summary tbody th button{text-align:left;font-size:12px;padding:4px;overflow-wrap:anywhere}
#main .annual-summary tbody th>small{display:none}
#main .annual-summary td small{font-size:10px}

.advancement-owner-summary{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:8px 0}
.advancement-owner-summary h2{margin:0}
.advancement-owner-summary .controlstats{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.advancement-owner-summary .controlstats>div{display:flex;align-items:center;gap:8px;padding:5px 10px}
.advancement-owner-summary .controlstats strong{font-size:22px}
.advancement-owner-summary .controlstats span{margin:0;font-size:12px}

.client-heading-row{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-bottom:5px}
.client-heading-row .client-heading{margin:0}
.client-heading-alerts{display:flex;flex:1;min-width:0}
.client-heading-alerts .client-request-summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.client-heading-alerts .client-request-summary h2{font-size:13px;margin:0}
.client-heading-alerts .client-request-panel{display:flex;align-items:center;gap:8px;margin:0;padding:5px 9px;font-size:12px}
.client-heading-alerts .client-request-panel button{min-height:28px;padding:3px 8px;font-size:12px}

#dialog-body .daily-trend-table{width:100%;min-width:0;table-layout:fixed}
#dialog-body .daily-trend-table th,#dialog-body .daily-trend-table td{min-width:0;max-width:none;padding:6px 8px;font-size:12px;line-height:1.3;vertical-align:middle;overflow-wrap:anywhere}
#dialog-body .daily-trend-table thead th{background:#174b7d;color:#fff;font-weight:750;text-align:left}
#dialog-body .daily-trend-table th:first-child{width:30%}
#dialog-body .daily-trend-table th:nth-child(2),#dialog-body .daily-trend-table th:nth-child(3){width:15%}
#dialog-body .daily-trend-table tbody tr{height:44px}
#dialog-body .daily-trend-table tbody th{font-weight:650}
#dialog-body .daily-trend-table tbody tr:nth-child(even){background:#f0f5fa}

#main .annual-progress-table{width:100%;min-width:0;table-layout:fixed}
#main .annual-progress-table th,#main .annual-progress-table td{min-width:0;max-width:none;padding:4px 3px;vertical-align:middle;text-align:center;font-size:12px}
#main .annual-progress-table th:first-child{width:19%;min-width:0;max-width:none;text-align:left;overflow-wrap:anywhere;padding-left:6px}
#main .annual-progress-table abbr{text-decoration:none}
#main .annual-progress-table .work-progress{width:100%;min-width:0;max-width:100%;gap:3px}
#main .annual-progress-table .work-progress span{font-size:11px;white-space:nowrap}
#main .annual-progress-table progress{display:block;width:100%;min-width:0;height:10px;margin:3px 0}

.calendar-client-heading{display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap}
.calendar-client-heading h1{margin:0;flex-shrink:0}
.calendar-client-filters{display:flex;flex:1;flex-wrap:wrap;gap:5px;min-width:240px}
.calendar-client-filters button{background:#174b7d;color:white;padding:5px 9px;min-height:32px;font-size:12px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.calendar-client-filters button[aria-pressed=true]{background:#092c4d;outline:2px solid #6da7d5;outline-offset:1px}

#main .calendar-matrix td.calendar-status-done,#main .calendar-matrix td.calendar-status-done .calendar-date{background:#e6f5e9;color:#176534;border-color:#69a77c}
#main .calendar-matrix td.calendar-status-todo,#main .calendar-matrix td.calendar-status-todo .calendar-date{background:#fff0f0;color:#8b101b;border-color:#d66b7c}
#main .calendar-matrix .calendar-work-state{display:block;font-size:10px;font-weight:700;line-height:1.2;margin-top:3px}

/* Shared application masthead: independent of Studio's table density. */
header.studio-app-header,.compact header.studio-app-header{min-height:99px;padding:16px 28px;gap:28px!important;display:flex;align-items:center;justify-content:flex-start;background:#fff;border-top:3px solid #a46a28;border-bottom:1px solid #dbe2e9;flex-wrap:nowrap}
.studio-app-header .studio-brand-copy{min-width:0;display:flex;flex-direction:column;gap:5px}
.studio-app-header .studio-brand-copy>span,.compact .studio-app-header .studio-brand-copy>span{font-family:Segoe UI,Arial,sans-serif;font-size:11px;line-height:1.6;font-weight:400;color:#6b7b89;margin:0}
.studio-app-header .evofin-system-logo{width:150px!important;max-height:none;height:auto;object-fit:contain}
.studio-app-header .evofin-system-title{font-size:18px!important;line-height:1.25!important}
.studio-app-header .evofin-system-title-row{align-items:center;gap:14px!important}
.studio-app-header #save{margin-left:auto;font-size:11px;line-height:1.4;max-width:180px;text-align:right}
@media(max-width:580px){header.studio-app-header,.compact header.studio-app-header{padding:14px 16px;gap:14px!important;flex-wrap:wrap}.studio-app-header .evofin-system-logo{width:120px!important}.studio-app-header .evofin-system-title{font-size:16px!important}.studio-app-header .evofin-system-title-row{gap:8px!important}.studio-app-header #save{flex-basis:100%;margin:0;text-align:left}}

/* Keep shared masthead styling in the external stylesheet allowed by Studio CSP. */
header.studio-app-header .evofin-system-title-row{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:14px!important;flex-wrap:wrap}
header.studio-app-header .evofin-system-title{font-family:Segoe UI,Arial,sans-serif!important;font-size:18px!important;font-weight:700!important;line-height:1.25!important;color:#173651!important;margin:0!important}
header.studio-app-header .evofin-home-applications{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;min-height:31px!important;height:31px!important;padding:0 11px!important;border:1px solid #173651!important;border-radius:6px!important;background:#173651!important;color:#fff!important;text-decoration:none!important;font-family:Segoe UI,Arial,sans-serif!important;font-size:11px!important;font-weight:600!important;line-height:1!important;white-space:nowrap!important}
header.studio-app-header .evofin-home-applications:hover{background:#102a42!important;border-color:#102a42!important}
@media(max-width:580px){header.studio-app-header .evofin-system-title{font-size:16px!important}header.studio-app-header .evofin-system-title-row{gap:8px!important}}
@media print{header.studio-app-header .evofin-home-applications{display:none!important}}
