:root{font-family:Inter,Arial,sans-serif;color:#192c29;background:#f5f7f5;font-synthesis:none}*{box-sizing:border-box}body{margin:0}.demo{background:#e7eee7;color:#496355;text-align:center;padding:9px;font-size:11px;letter-spacing:.7px}header{background:white;border-bottom:1px solid #e1e7e3;padding:22px 38px;display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{display:flex;align-items:center;gap:18px;color:inherit;text-decoration:none}.brand>b{font-size:31px;letter-spacing:-2px;border-right:1px solid #dde4df;padding-right:20px}.brand span{color:#ddad5a}.brand div{font-size:21px;font-weight:600}small{display:block;color:#708078;font-size:12px;font-weight:400;line-height:1.8}.brand small{font-size:9px;letter-spacing:1.4px}.profile{font-size:11px;color:#64756e;min-width:240px}.layout{display:grid;grid-template-columns:225px 1fr;min-height:85vh}aside{padding:34px 20px;background:white;border-right:1px solid #e1e7e3;display:flex;flex-direction:column}.company{padding:0 16px 30px;font-size:14px;font-weight:600}nav{display:grid;gap:8px}nav button{text-align:left;background:none;color:#65726d;border:0;padding:14px 16px}nav button.active{background:#e9f0eb;color:#123e36;font-weight:700}.aside-foot{margin-top:auto;padding:60px 16px 0;font-size:12px;color:#7b8881}main{padding:44px;max-width:1450px;width:100%;margin:auto}h1{font-size:32px;letter-spacing:-1px;margin:8px 0 12px}h2{font-size:19px;margin:0 0 18px}p{line-height:1.6}.eyebrow{color:#6b7f74;font-size:11px;letter-spacing:1.8px;font-weight:bold}.sub{color:#6f7e76;margin:0 0 30px}.top{display:flex;justify-content:space-between;align-items:center;gap:15px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:28px 0}.stat,.card{background:white;border:1px solid #e0e7e1;border-radius:14px;padding:26px}.stat strong{display:block;font-size:34px;margin-top:14px;font-weight:500}.stat span{font-size:13px;color:#65796c}.stat:first-child{background:#123e36;color:white;border-color:#123e36}.stat:first-child span{color:#c4d7cd}.card{margin-bottom:22px}.cardhead{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:15px}.cardhead h2{margin:0}button{font:inherit;background:#164e40;color:white;border:1px solid transparent;border-radius:8px;padding:12px 18px;cursor:pointer;font-size:13px;min-height:44px}button:hover{filter:brightness(.94)}button:disabled{opacity:.4;cursor:not-allowed}.secondary{background:white;color:#244c3c;border-color:#d9e3da}.danger{background:#fff1ed;color:#923f2e}select,input{font:inherit;padding:11px;border:1px solid #d8e1db;border-radius:7px;width:100%;background:white;color:#253c31;min-height:44px;font-size:16px}label{display:block;font-size:13px;margin:0 0 15px}label input,label select{margin-top:6px}.profile{margin:0}.profile select{font-size:13px;padding:8px}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;color:#829086;font-size:11px;font-weight:500;letter-spacing:.5px;background:#fafbf9}td,th{padding:15px 10px;border-bottom:1px solid #edf0ed}td small{font-size:11px}.badge{display:inline-block;padding:6px 9px;border-radius:6px;background:#eaf3ed;color:#34744f;font-size:11px;white-space:nowrap}.muted{background:#f1f2ee;color:#7c8474}.gold{background:#fcf0d9;color:#947038}.tablewrap{overflow:auto}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.split{display:grid;grid-template-columns:1.4fr 1fr;gap:22px}.clock{font-size:52px;letter-spacing:-2px;margin:22px 0 6px}.empty{padding:30px;color:#78867c;text-align:center}.row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #edf0ed}.row label{margin:0}.row input[type=checkbox]{width:20px;min-height:20px;margin-right:10px}.notice{font-size:13px;color:#766342;background:#fcf5e6;padding:13px 18px;border-radius:8px;margin:15px 0}dialog{border:0;border-radius:16px;padding:28px;max-width:480px;width:92%;box-shadow:0 20px 100px #142e3244}dialog::backdrop{background:#09251d66}#error{color:#a2352d;font-size:13px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#173d32;color:white;border-radius:9px;padding:14px 24px;display:none;z-index:20;max-width:90%}button:focus-visible,a:focus-visible{outline:3px solid #d5a441;outline-offset:3px}.checkgrid{display:grid;gap:6px}.checkgrid label{display:flex;align-items:center;gap:10px}.checkgrid input{width:20px;min-height:20px;margin:0}.hint{font-size:12px;color:#7b877d}@media(max-width:900px){main{padding:28px 20px}.layout{grid-template-columns:180px 1fr}.split{grid-template-columns:1fr}header{padding:20px}.stats{gap:10px}.stat{padding:18px}}@media(max-width:620px){header{padding:15px;align-items:flex-start;flex-direction:column;gap:15px}.profile{width:100%}.layout{display:block}aside{padding:10px;border-right:0;border-bottom:1px solid #ddd}.company,.aside-foot{display:none}nav{display:flex;overflow-x:auto;gap:4px}nav button{white-space:nowrap;padding:10px}main{padding:25px 15px}h1{font-size:27px}.stats{gap:8px}.stat{padding:14px 10px}.stat span{font-size:11px}.stat strong{font-size:26px}.card{padding:18px}.top,.cardhead{flex-wrap:wrap}.demo{font-size:9px}.clock{font-size:44px}}
.report-title{display:flex;justify-content:space-between;gap:15px;border-bottom:2px solid #174437;padding-bottom:16px}.report-title strong{font-size:25px}.monthly-table td,.monthly-table th{font-size:11px;padding:8px 5px}.weekend{background:#f1f3ee}.report-sign{display:flex;justify-content:space-between;gap:15px;font-size:11px;margin-top:26px}@media print{@page{size:A4 landscape;margin:10mm}body{background:white}.demo,header,aside,.report-controls,.eyebrow,main>div>h1,main>div>.sub,#toast,dialog{display:none!important}.layout{display:block}main{padding:0;max-width:none}.report-page{border:0;padding:0;margin:0;break-after:page}.report-page:last-child{break-after:auto}.monthly-table td,.monthly-table th{padding:4px;font-size:9px}.tablewrap{overflow:visible}.report-title{padding-bottom:8px}.report-sign{margin-top:15px}}
.brand-logo{width:130px;height:auto;display:block}.report-logo{width:95px;display:block;margin-bottom:10px}.locked #app{display:none}#login:empty{display:none}.login-card{width:min(440px,calc(100% - 32px));margin:6vh auto;padding:32px;background:white;border:1px solid #dce3de;border-radius:15px}.login-card>img{width:180px;display:block;margin:0 auto 30px}.login-card button{width:100%}#loginerror{color:#b32626}.saving #app{pointer-events:none;opacity:.7}.saving:after{content:'Salvataggio nell’archivio condiviso…';position:fixed;bottom:20px;left:20px;background:#123e36;color:white;padding:18px;border-radius:8px;z-index:100}.download-link{display:inline-block;padding:13px;background:#164e40;color:white;border-radius:8px;text-decoration:none}.profile .actions{margin:6px 0 0}.profile .actions button{padding:5px 12px;font-size:12px;min-height:35px}@media(max-width:620px){.brand-logo{width:100px}.profile{font-size:12px}.row{flex-wrap:wrap}}
.accountant{background:#243d48;color:#f5f8fa;border-radius:16px;padding:24px;margin-top:28px}.accountant h2,.accountant th,.accountant td{color:#f5f8fa}.accountant th{background:#182c35}.accountant td{border-color:#526670}.accountant button{background:#ecf3f0;color:#163b32}.accountant input{background:white;color:#172f38;min-width:70px;padding:8px}.accountant input[data-key=sites]{min-width:160px}.accountant #account-error{color:#ffd3c7}.accountant .actions{flex-wrap:wrap}.accountant .tablewrap{margin-top:18px}@media print{.accountant{display:none!important}}
.report-notes{white-space:pre-wrap;overflow-wrap:anywhere}.accountant textarea{display:block;width:100%;padding:12px;background:white;color:#172f38;border-radius:8px;margin:8px 0 16px;font:inherit}
.meal-choice{display:flex;align-items:center;gap:10px;margin:14px 0}.meal-choice input[type=checkbox]{width:20px;height:20px;flex:none}
.day-filter{display:flex;align-items:end;gap:14px;flex-wrap:wrap}.day-filter .actions{flex-wrap:wrap;margin-bottom:0}.day-filter input{min-width:170px}
/* Daily attendance: clear actions, readable controls and compact phone layout. */
button,label,nav button{font-size:14px}.attendance-table table{font-size:14px}.attendance-table th{font-size:12px;color:#435b51}.attendance-table td small{font-size:12px;color:#53695e}.attendance-actions{min-width:235px}.attendance-actions button{margin:3px 2px;min-height:44px}.selected-day{text-transform:capitalize;margin:22px 0 12px}.edit-person{background:#eef4f0;padding:14px;border-radius:10px;font-size:16px}.day-filter{background:#f1f5f3;padding:14px;border-radius:12px}.day-filter label{margin-bottom:0;font-weight:600}.stat:first-child small{color:#d4e5dc}.stat small{line-height:1.4;margin-top:8px}dialog{max-height:90dvh;overflow:auto}dialog .actions{position:sticky;bottom:-28px;background:white;padding:14px 0;margin-top:12px}#error:empty{display:none}
@media(max-width:620px){.attendance-table .attendance-actions{position:sticky;right:0;background:#fff;min-width:125px;box-shadow:-4px 0 8px #192c2910}.attendance-actions button{display:block;width:100%;padding:8px}.stats{grid-template-columns:1fr;gap:8px;margin:16px 0}.stat{display:grid;grid-template-columns:1fr auto;align-items:center;padding:14px}.stat strong{margin:0;font-size:28px}.stat span{font-size:14px}.stat small{grid-column:1/-1;font-size:12px}.day-filter{width:100%}.day-filter label{width:100%}.day-filter .actions{display:grid;grid-template-columns:1fr auto 1fr;width:100%;gap:6px}.day-filter button{padding:8px;font-size:12px}.cardhead>.actions{width:100%;margin-top:4px}.cardhead>.actions button{flex:1}main{padding:20px 12px}.sub{margin-bottom:18px}}
/* Unified company hub */
.hub-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.hub-metrics button{text-align:left;white-space:normal;line-height:1.4}.hub-metrics strong{display:block;font-size:30px;margin-bottom:7px}.hub-shortcuts{display:flex;gap:8px;flex-wrap:wrap}.hub-shortcuts b{margin-left:8px}.hub-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.hub-toolbar label{margin:0 0 14px}.hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.hub-card{margin:0;min-width:0}.hub-card h3{font-size:18px;line-height:1.4;margin:15px 0 8px;overflow-wrap:anywhere}.hub-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.hub-badge{font-size:11px;font-weight:700;padding:5px 8px;border-radius:7px;background:#e7f2ed;white-space:nowrap}.hub-badge.overdue{background:#fce5e5;color:#972e2e}.hub-badge.soon,.hub-badge.review,.hub-badge.missing{background:#fff0cd;color:#805c11}.hub-card dl{margin:16px 0}.hub-card dl div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #e6ebe8}.hub-card dd{margin:0;text-align:right;font-weight:600}.hub-card dd.overdue{color:#a02c2c}.hub-code{font-weight:700;overflow-wrap:anywhere}.hub-notes{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.hub-card .actions{margin-top:18px;gap:8px;flex-wrap:wrap}.hub-card .actions button{padding:8px 10px;font-size:12px}.hub-source{display:inline-block;margin-top:14px;color:#176453}.hub-review{font-size:12px;color:#845911;font-weight:700}.hub-pagination{justify-content:center;margin:20px 0}.hub-deadline-field{border-bottom:1px solid #ddd;margin-bottom:12px}.hub-deadline-field .meal-choice{font-size:12px;margin-top:0}textarea{font:inherit;width:100%;box-sizing:border-box;padding:10px;border:1px solid #ccd8d2;border-radius:8px}.hub-card summary{cursor:pointer;font-size:13px}
@media(max-width:700px){.hub-grid,.hub-toolbar{grid-template-columns:1fr}.hub-metrics{grid-template-columns:1fr}.hub-metrics button{display:flex;align-items:center;gap:15px}.hub-metrics strong{margin:0;min-width:45px}.hub-card-top{flex-wrap:wrap}.hub-overview .cardhead{align-items:flex-start}}
button.secondary.danger{color:#a02c2c;border-color:#e5baba}button.secondary.danger:hover{background:#fff0f0}
.pay-print{display:none}.pay-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pay-grid label{font-size:12px}.pay-cell{white-space:nowrap;min-width:85px;padding:7px!important}.monthly-table td:last-child{white-space:nowrap}
@media print{.pay-print{display:inline}.pay-cell{display:none!important}.monthly-table th,.monthly-table td{font-size:8px;padding:4px}}

/* Payroll: readable on phones and desktop. */
.payroll-row{gap:18px;align-items:flex-start;flex-wrap:wrap}.payroll-row>div:first-child{flex:1;min-width:220px}.payroll-row input[type=email]{max-width:420px}.payroll-row .actions{flex-wrap:wrap}.button{display:inline-block;padding:11px 16px;border-radius:8px;background:#123e36;color:white;text-decoration:none;font-weight:600}.button.secondary{background:#edf2ef;color:#123e36}#payroll-draft h3{margin-top:24px}#payroll-draft .checkgrid{max-height:320px;overflow:auto}#payroll-mail a{margin:8px 0}
.payroll-review{max-height:45vh;overflow:auto;margin:16px 0}.payroll-review .row{padding:12px 0}.payroll-review small{display:block;margin:4px 0}.payroll-review a{display:inline-block;margin:4px 0}#payroll-selected-count{font-weight:600}

.payroll-message{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}

.directory-toolbar{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:16px 0 24px}.directory-toolbar label{flex:1;min-width:220px;margin:0}.directory-toolbar button{margin-top:20px}.directory-actions{display:flex;gap:8px;flex-wrap:wrap}.directory-card td{vertical-align:middle}.directory-card td:first-child{min-width:180px}.directory-card td small{display:block;margin-top:6px}.directory-card details{max-width:240px;line-height:1.7}.directory-card summary{cursor:pointer}.directory-card .cardhead small{display:block;margin-top:8px;color:#6f7e76}[hidden]{display:none!important}

/* Compact operational register: one record per row, with actions always visible. */
main:has(.hub-controls){min-width:0}.hub-register-summary{display:flex;flex-wrap:wrap;gap:8px;margin:-10px 0 20px}.hub-register-summary button{padding:9px 14px;font-size:13px}.hub-register-summary strong{font-size:18px;margin-right:6px}.hub-controls{padding:20px}.hub-controls .actions{margin-top:12px}.hub-controls .hint{margin-bottom:0}.hub-toolbar{grid-template-columns:1fr 1.1fr 1.2fr 1.5fr;gap:12px}.hub-toolbar label{margin:0}.hub-register{border:1px solid #dce5df;border-radius:12px;background:white;max-width:100%;position:relative}.hub-table{min-width:890px;table-layout:fixed}.hub-table-caption{text-align:left;padding:13px 16px;color:#52695d;background:#f2f6f3;font-size:12px;border-bottom:1px solid #dce5df}.hub-table thead th{font-size:11px;color:#486153;font-weight:700;padding:13px 14px;background:#f7f9f7}.hub-table thead th:nth-child(1){width:28%}.hub-table thead th:nth-child(2){width:18%}.hub-table thead th:nth-child(3){width:25%}.hub-table thead th:nth-child(4){width:15%}.hub-table thead th:nth-child(5){width:128px}.hub-table td,.hub-table tbody th{padding:15px 14px;vertical-align:top;border-bottom:1px solid #e5ece7;overflow-wrap:anywhere}.hub-table tbody th{font-size:13px;letter-spacing:normal;font-weight:400;color:#192c29;background:white}.hub-table tbody tr:nth-child(even)>*{background:#fafcfb}.hub-table tbody tr:hover>*{background:#eef5f0}.hub-table tbody tr:last-child>*{border-bottom:0}.hub-kind{display:block;font-size:10px;font-weight:700;letter-spacing:.5px;color:#61796a;margin-bottom:6px}.hub-record-title>strong{display:block;font-size:14px;line-height:1.45}.hub-record-title .hub-code{display:block;font-size:12px;color:#4d6657;margin-top:4px}.hub-record-people>span{display:block;line-height:1.6;margin-bottom:3px}.hub-date-line,.hub-performed{display:flex;justify-content:space-between;gap:12px;font-size:12px;line-height:1.5;margin-bottom:6px}.hub-date-line>span,.hub-performed>span{color:#64786a}.hub-date-line>strong,.hub-performed>time{font-variant-numeric:tabular-nums;text-align:right}.hub-performed{font-size:11px;color:#64786a}.hub-date-line.overdue>strong{color:#a02c2c}.hub-date-line.missing>strong,.hub-date-line.soon>strong{color:#805c11}.hub-record-status .hub-badge{display:inline-block;white-space:normal;line-height:1.4}.hub-badge.archived{background:#edf0ed;color:#627064}.hub-record-status .hub-review{margin-top:7px;line-height:1.5}.hub-record-actions,.hub-actions-head{position:sticky;right:0;z-index:1;box-shadow:-5px 0 7px -6px #173d3240}.hub-record-actions{background:white}.hub-record-actions>button{width:100%;padding:9px 10px;font-size:13px}.hub-more{margin-top:9px}.hub-more summary,.hub-row-notes summary{cursor:pointer;font-size:11px;color:#526b5b;min-height:26px;line-height:26px}.hub-more button{display:block;width:100%;margin-top:6px;padding:8px;font-size:11px;line-height:1.3}.hub-row-notes{margin-top:5px}.hub-row-notes p{margin:4px 0;line-height:1.5;font-weight:400}.hub-record-title .hub-source{margin-top:5px;font-size:11px;letter-spacing:normal}.hub-pagination{align-items:center;text-align:center}.hub-pagination small{line-height:1.4}.hub-register:focus-visible{outline:3px solid #d5a441;outline-offset:3px}.hub-record.is-archived .hub-record-title>strong{color:#68796d}
@media(max-width:1050px){.hub-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.hub-toolbar{grid-template-columns:1fr}.hub-controls{padding:16px}.hub-register-summary{display:grid;grid-template-columns:1fr;gap:6px}.hub-register-summary button{text-align:left;padding:8px 12px}.hub-table{min-width:850px}.hub-table td,.hub-table tbody th{padding:12px}.hub-register-summary strong{display:inline-block;min-width:30px}.hub-pagination{gap:8px}.hub-pagination button{padding:8px 10px}}

/* Shared Hub category colors across overview, shortcuts and horizontal records. */
[data-hub-kind="medical"]{--hub-accent:#2563a6;--hub-ink:#1d4e83;--hub-soft:#eaf3ff;--hub-row:#f5f9ff;--hub-row-hover:#ebf3ff}
[data-hub-kind="course"]{--hub-accent:#7753b0;--hub-ink:#62418e;--hub-soft:#f1ebfc;--hub-row:#faf7ff;--hub-row-hover:#f1ebfc}
[data-hub-kind="vehicle"]{--hub-accent:#967018;--hub-ink:#795613;--hub-soft:#fcf2d9;--hub-row:#fffdf5;--hub-row-hover:#fcf2d9}
[data-hub-kind="equipment"]{--hub-accent:#147e83;--hub-ink:#11666b;--hub-soft:#e1f5f3;--hub-row:#f3fbfa;--hub-row-hover:#e1f5f3}
[data-hub-kind="document"]{--hub-accent:#586d87;--hub-ink:#40556f;--hub-soft:#eaf0f7;--hub-row:#f7f9fc;--hub-row-hover:#eaf0f7}
.hub-overview{border-top:4px solid #216e62;background:linear-gradient(115deg,#f0f8f5,white 72%)}.hub-overview .eyebrow{color:#216e62}.hub-overview h2{color:#164f44}nav button[data-view="hub"]{box-shadow:inset 4px 0 #216e62;background:#edf6f2;color:#1a5548}nav button[data-view="hub"].active{background:#dceee6;color:#123e36}
.hub-section-colors{display:flex;flex-wrap:wrap;gap:9px}.hub-section-colors button{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--hub-soft);color:var(--hub-ink);border-color:color-mix(in srgb,var(--hub-accent) 30%,white);border-left:4px solid var(--hub-accent);font-weight:600;line-height:1.4;padding:10px 13px}.hub-section-colors b{display:inline-flex;align-items:center;justify-content:center;min-width:26px;padding:2px 7px;border-radius:6px;background:white;color:var(--hub-ink);font-size:12px;margin:0}.hub-controls .hub-section-colors{padding-bottom:16px;margin-bottom:17px;border-bottom:1px solid #e3eae6}.hub-table tbody .hub-record>*{background:var(--hub-row)}.hub-table tbody .hub-record:hover>*{background:var(--hub-row-hover)}.hub-table .hub-record-title{border-left:4px solid var(--hub-accent)}.hub-record .hub-kind,.hub-gap-line .hub-kind{display:table;max-width:100%;padding:4px 7px;border-radius:5px;background:var(--hub-soft);color:var(--hub-ink);font-size:10px;font-weight:700;letter-spacing:.2px;line-height:1.4}.hub-gap-line .hub-kind{margin:6px 0 0}.hub-record .hub-source{color:var(--hub-ink)}.hub-table .hub-record.is-archived>*{background:#f5f6f5}.hub-record.is-archived .hub-kind{background:#e8ece9;color:#59665d}
.hub-overview [data-hub-filter="overdue"],.hub-register-summary [data-hub-filter="overdue"]{background:#fff0f0;color:#9c2929;border:1px solid #efc8c8;border-left:4px solid #c13e3e}.hub-overview [data-hub-filter="soon"],.hub-register-summary [data-hub-filter="soon"]{background:#fff8d9;color:#765a0d;border:1px solid #e8d98f;border-left:4px solid #b98c17}.hub-overview [data-hub-filter="missing"],.hub-register-summary [data-hub-filter="missing"]{background:#fff1e5;color:#91491d;border:1px solid #ebcdb3;border-left:4px solid #c36c30}.hub-badge.ok{background:#e3f1e8;color:#25653c}.hub-badge.review,.hub-badge.missing{background:#fff0e1;color:#91491d}.hub-badge.soon{background:#fff3c4;color:#765a0d}
@media(max-width:620px){.hub-section-colors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.hub-section-colors button{width:100%;font-size:12px;padding:9px;gap:6px}.hub-section-colors button:last-child{grid-column:1/-1}.hub-section-colors b{min-width:24px}.hub-controls .hub-section-colors{margin-bottom:14px;padding-bottom:14px}}

/* Payroll uses the same compact register structure as the Hub. */
main:has(.payroll-controls){min-width:0}.payroll-controls{padding:18px 20px;margin-bottom:14px}.payroll-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:18px}.payroll-toolbar>label:first-child{width:220px;margin:0}.payroll-toolbar .meal-choice{flex:1;margin:0;min-width:230px}.payroll-toolbar>button{margin-top:16px}.payroll-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 20px}.payroll-metric{display:flex;align-items:center;gap:12px;padding:13px 16px;border:1px solid #dce5df;border-left:4px solid var(--pay-accent);border-radius:9px;background:var(--pay-soft);color:var(--pay-ink)}.payroll-metric strong{font-size:26px;font-weight:650;font-variant-numeric:tabular-nums}.payroll-metric span{font-size:12px;line-height:1.45}.payroll-metric.ready,[data-payroll-state="ready"]{--pay-accent:#2563a6;--pay-soft:#eaf3ff;--pay-ink:#1d4e83}.payroll-metric.sent,[data-payroll-state="sent"]{--pay-accent:#2b8054;--pay-soft:#e6f3eb;--pay-ink:#23633e}.payroll-metric.verify,[data-payroll-state="verify"]{--pay-accent:#be662a;--pay-soft:#fff0e1;--pay-ink:#91491d}.payroll-metric.archived,[data-payroll-state="archived"]{--pay-accent:#6b7886;--pay-soft:#edf1f5;--pay-ink:#4e5f70}.payroll-register-card{padding:20px}.payroll-register-card .cardhead h2{margin-top:6px}.payroll-total{display:inline-block;min-width:27px;padding:4px 8px;background:#eaf0ec;color:#315446;border-radius:6px;font-size:13px;vertical-align:middle}.payroll-selection{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #e7ece8;padding:14px 0}.payroll-selection label,.payroll-selection p{margin:0;font-size:12px}.payroll-selection #payroll-selected-count{color:#355b4b}.payroll-register{border:1px solid #dce5df;border-radius:10px;background:white;position:relative;max-width:100%}.payroll-table{min-width:1050px;font-size:13px}.payroll-table caption{text-align:left;padding:12px 14px;background:#f2f6f3;color:#52695d;font-size:12px;border-bottom:1px solid #dce5df}.payroll-table thead th{font-weight:700;color:#486153;background:#f7f9f7;font-size:11px}.payroll-table td,.payroll-table th{padding:14px 12px;vertical-align:top;border-bottom:1px solid #e5ece7}.payroll-table tbody th{background:white;color:#192c29;font-weight:400;font-size:13px;letter-spacing:normal;min-width:180px;text-align:left}.payroll-table tbody th>strong{display:block;font-size:14px;line-height:1.5}.payroll-table tbody tr:nth-child(even)>*{background:#fafcfb}.payroll-table tbody tr:hover>*{background:#f1f6f3}.payroll-table tbody tr:last-child>*{border-bottom:0}.payroll-table .payroll-select-cell{width:44px;min-width:44px;border-left:4px solid var(--pay-accent);text-align:center}.payroll-select-cell input{width:18px;min-height:18px;margin:3px 0;accent-color:#164e40}.payroll-email-cell{min-width:210px;max-width:280px;overflow-wrap:anywhere}.payroll-email-cell>span{display:block;line-height:1.5}.payroll-table .payroll-small-action{min-height:30px;padding:5px 8px;font-size:11px;margin-top:7px}.payroll-table .payroll-pdf-link{white-space:nowrap;font-size:11px;padding:9px 10px;border:1px solid #d9e3da;background:white;font-weight:600;min-height:36px}.payroll-state-cell{min-width:180px;max-width:245px}.payroll-status{display:inline-block;background:var(--pay-soft,#edf1f5);color:var(--pay-ink,#4e5f70);border-radius:6px;padding:6px 8px;font-size:11px;font-weight:700;line-height:1.45}.payroll-status.sent{background:#e6f3eb;color:#23633e}.payroll-status.verify{background:#fff0e1;color:#91491d}.payroll-state-cell>small{margin-top:6px;line-height:1.6}.payroll-record-actions,.payroll-actions-head{position:sticky;right:0;z-index:1;min-width:165px;max-width:185px;box-shadow:-5px 0 7px -6px #173d3240;background:white}.payroll-record-actions>button{display:block;width:100%;font-size:12px;padding:9px 10px;line-height:1.4}.payroll-more,.payroll-sender{margin-top:7px}.payroll-more summary,.payroll-sender summary{font-size:11px;cursor:pointer;color:#526b5b;min-height:26px;line-height:26px}.payroll-more button{width:100%;margin-top:5px;padding:8px;font-size:11px}.payroll-sender small{overflow-wrap:anywhere;line-height:1.5}.payroll-upload-card,.payroll-contacts-card,.payroll-mail-card{padding:20px}.payroll-upload-card>details>summary,.payroll-contacts-card>details>summary{cursor:pointer;min-height:32px;color:#244c3c;font-size:14px;line-height:1.6}.payroll-upload-card summary>span,.payroll-contacts-card summary>span{display:inline-block;font-size:12px;font-weight:400;color:#65796c;margin-left:12px}.payroll-contact-table{min-width:740px;margin-top:14px}.payroll-contact-table th,.payroll-contact-table td{padding:12px;vertical-align:middle}.payroll-contact-table tbody th{background:white;font-size:13px;font-weight:600;letter-spacing:normal;color:#192c29}.payroll-contact-table td:nth-child(2){overflow-wrap:anywhere}.payroll-contact-table td:last-child{white-space:nowrap}.payroll-contact-table button{font-size:12px;padding:8px 12px}.payroll-mail-card .actions{margin-top:0}.payroll-mail-card .cardhead{margin-bottom:8px}.payroll-mail-card #payroll-mail p{margin:8px 0}.payroll-mail-card>.hint{margin-bottom:0}.payroll-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.payroll-register:focus-visible{outline:3px solid #d5a441;outline-offset:3px}
@media(max-width:1050px){.payroll-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.payroll-toolbar .meal-choice{flex:auto}.payroll-mail-card .cardhead{flex-wrap:wrap}}@media(max-width:620px){.payroll-controls,.payroll-register-card,.payroll-upload-card,.payroll-contacts-card,.payroll-mail-card{padding:15px}.payroll-toolbar{gap:12px}.payroll-toolbar>label:first-child{width:100%}.payroll-toolbar>button{margin:0;width:100%}.payroll-metric{padding:10px;gap:8px}.payroll-metric strong{font-size:23px}.payroll-metric span{font-size:11px}.payroll-register-card .cardhead>button{width:100%}.payroll-table td,.payroll-table th{padding:12px 10px}.payroll-table .payroll-select-cell{width:36px;min-width:36px}.payroll-upload-card summary>span,.payroll-contacts-card summary>span{display:block;margin-left:16px}.payroll-mail-card .actions{display:grid;width:100%;grid-template-columns:1fr}.payroll-mail-card .actions button{font-size:12px}}
.payroll-page-map{max-height:320px;border:1px solid #e0e7e1;border-radius:8px}.payroll-page-map table{min-width:410px}.payroll-page-map th:first-child{width:100px}.payroll-page-map td,.payroll-page-map th{padding:8px 12px;vertical-align:middle}.payroll-page-map tbody th,.payroll-draft-table tbody th{font-size:13px;font-weight:600;letter-spacing:normal;background:white;color:#192c29}.payroll-draft-table{min-width:950px}.payroll-draft-table td,.payroll-draft-table th{vertical-align:middle;padding:12px}.payroll-draft-table input[type=email]{min-width:220px}.payroll-draft-table button{font-size:12px;white-space:nowrap}.payroll-draft-table .meal-choice{margin:0;min-width:215px;font-size:12px;line-height:1.5}

/* Daily absence panel, aligned with the operational dashboard. */
.daily-absences{border-left:5px solid #c3ceca}.daily-absences.has-absences{border-color:#edc58b;border-left-color:#bd751b;background:#fffbf4}.daily-absences .cardhead small{margin-top:6px}.daily-absence-count{background:#f9e6c7;color:#75450c;padding:10px 14px;border-radius:9px;font-size:18px;font-weight:700;white-space:nowrap}.daily-absence-row{display:grid;grid-template-columns:minmax(0,1fr) 150px 160px;gap:16px;align-items:center;padding:13px 0;border-bottom:1px solid #eadfce;font-size:14px}.daily-absence-row b{overflow-wrap:anywhere}.daily-absence-row .badge{justify-self:start}.daily-absences .actions{margin-top:16px}@media(max-width:620px){.daily-absences .cardhead{align-items:flex-start;flex-wrap:wrap}.daily-absence-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}.daily-absence-row b{grid-column:1/-1}.daily-absence-row>span:last-child{text-align:right}.daily-absence-count{font-size:16px}.daily-absences .actions button{width:100%}}

.daily-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.absence-stat{background:#fff4e2;border-color:#edc58b;color:#75450c}.absence-stat span,.absence-stat small{color:#75450c}@media(max-width:1100px) and (min-width:621px){.daily-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.daily-stats{grid-template-columns:1fr}}

/* Direct daily allowance entry and compact accountant notes. */
.monthly-table input.pay-inline-input{width:110px;min-width:95px;max-width:130px;text-align:right;border:1px solid #b7cabe;background:#fff;padding:8px!important;border-radius:6px;font-size:13px;font-variant-numeric:tabular-nums}.pay-inline-input:focus{outline:2px solid #38856a;outline-offset:1px}.pay-inline-input:invalid{border-color:#b45309}.inline-pay-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:15px 0}.inline-pay-toolbar>span{font-size:12px;color:#496252}.inline-pay-toolbar>button.pending{background:#b45309;border-color:#92400e;color:#fff}.inline-pay-toolbar [role=alert]{color:#a32727}.account-day-note{min-width:150px;max-width:230px;white-space:pre-wrap!important;overflow-wrap:anywhere}.monthly-table .account-day-note textarea{width:160px;min-width:140px;min-height:35px;resize:vertical;padding:6px;font-size:11px;line-height:1.4}@media print{.account-day-note{min-width:0;max-width:180px;white-space:pre-wrap!important;font-size:8px}.pay-inline-input,.inline-pay-toolbar{display:none!important}}
.inline-pay-toolbar{position:sticky;top:0;z-index:10;background:#f6faf7;border:1px solid #d6e4db;border-radius:7px;padding:10px 12px}.inline-pay-toolbar button{min-width:135px}

/* Calendar emphasis shared by internal and accountant monthly reports. */
.monthly-table td.report-calendar-date.date-holiday,.monthly-table td.report-calendar-date.date-preholiday{color:#b91c1c!important;font-weight:800!important}.report-calendar-legend{font-size:11px;line-height:1.5;color:#53665c;margin:12px 0}.report-calendar-legend>b{color:#b91c1c;font-weight:800}@media print{.monthly-table td.report-calendar-date.date-holiday,.monthly-table td.report-calendar-date.date-preholiday,.report-calendar-legend>b{color:#b91c1c!important;font-weight:800!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.report-calendar-legend{font-size:8px;margin:6px 0}}

/* Selected-worker accountant overview on a single A3 PDF. */
.a3-panel{border-top:4px solid #285b4b;margin-top:28px}.a3-panel h2{font-size:21px}.a3-people{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:16px 0 20px}.a3-person{display:flex;align-items:center;gap:10px;margin:0;border:1px solid #d3e0d7;border-radius:7px;background:#f8faf8;padding:11px;cursor:pointer}.a3-person input[type=checkbox]{width:20px;min-width:20px;height:20px;min-height:20px;margin:0;accent-color:#174437}.a3-person:has(input:checked){border-color:#38856a;background:#eaf5ee}.a3-person b{font-size:12px;display:block}.a3-person small{display:block;font-size:10px;color:#5c6c62;margin-top:4px}.a3-options .meal-choice{font-size:12px;margin:7px 0;align-items:flex-start}.a3-status{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.7;color:#365648}.a3-preview{width:100%;height:72vh;min-height:400px;border:1px solid #b5c8bb;background:#e8ede9;border-radius:8px}.a3-panel .actions{flex-wrap:wrap}.a3-panel .actions>span{font-size:12px;font-weight:700;color:#365648}@media(max-width:1000px){.a3-people{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.a3-people{grid-template-columns:1fr}.a3-preview{min-height:300px;height:60vh}.a3-panel .actions button,.a3-panel .actions a{font-size:12px}}
.a3-period{display:flex;flex-direction:column;gap:8px;padding:12px 0}.a3-period>span{font-size:12px;color:#5c6c62}.a3-period>strong{font-size:24px;color:#174437}.a3-period>small{font-size:11px;color:#6d7b72}

#a3-print-root{display:none}.a3-vector-preview{border:1px solid #b5c8bb;border-radius:8px;background:#fff;overflow:auto}.a3-vector-preview>svg{display:block;width:100%;height:auto;min-width:850px}.a3-status[role=alert]{color:#922b25;background:#fff0ed;border:1px solid #e4b4ac;border-radius:7px;padding:12px;font-weight:600}.a3-status[role=status]{padding:5px 0}
@media print{body.printing-accountant-a3{margin:0!important;padding:0!important;background:#fff!important}body.printing-accountant-a3>*:not(#a3-print-root){display:none!important}body.printing-accountant-a3>#a3-print-root{display:block!important;width:420mm;height:297mm;margin:0!important;padding:0!important;border:0!important;overflow:hidden;break-inside:avoid;page-break-inside:avoid}#a3-print-root>svg{display:block;width:100%;height:100%;-webkit-print-color-adjust:exact;print-color-adjust:exact}}

.a3-vector-page{margin:18px 0}.a3-vector-page>p{font-size:12px;font-weight:700;color:#365648;margin:0 0 8px}
@media print{body.printing-accountant-a3>#a3-print-root{height:auto;overflow:visible}.a3-print-page{display:block;width:420mm;height:297mm;margin:0;padding:0;overflow:hidden;break-after:page;page-break-after:always;break-inside:avoid;page-break-inside:avoid}.a3-print-page:last-child{break-after:auto;page-break-after:auto}.a3-print-page>svg{display:block;width:100%;height:100%;-webkit-print-color-adjust:exact;print-color-adjust:exact}}

[data-hub-kind="insurance"]{--hub-accent:#b54b38;--hub-ink:#903c2d;--hub-soft:#fdece6;--hub-row:#fff8f5;--hub-row-hover:#fceae3}.hub-insurance-intro{border-top:4px solid #b54b38;background:#fff8f5}.hub-insurance-intro .actions{gap:16px;flex-wrap:wrap}.hub-record-status small{display:block;margin-top:8px;max-width:240px;white-space:normal}.hub-badge.scheduled{background:#eaf0f7;color:#40556f}
