.login-view[hidden],.app[hidden]{display:none!important}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;padding:16px}
.form-grid label{display:grid;gap:5px;color:#40596c;font-size:12px}
.form-grid input,.form-grid select,.form-grid textarea{width:100%;min-height:36px;border:1px solid #bdccd8;background:#fff;padding:7px 9px}
.form-grid textarea{min-height:76px;resize:vertical}
.form-grid .wide{grid-column:1/-1}
.dialog footer{padding:10px 16px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px;background:#f5f8fa}
.dialog footer .secondary{background:linear-gradient(#fff,#e5edf2);border-color:#aebfcd;color:#294b62}
.dialog.site-dialog{width:min(1080px,calc(100vw - 30px));max-height:calc(100vh - 28px);overflow:hidden}
.site-dialog #recordForm{display:flex;flex-direction:column;max-height:calc(100vh - 30px)}
.site-dialog header,.site-dialog footer{flex:0 0 auto}
.site-form-sections{padding:12px;overflow:auto;background:#f5f8fa;display:grid;gap:11px}
.site-form-section{margin:0;padding:0;border:1px solid #bdccd8;background:#fff;min-width:0}
.site-form-section legend{margin-left:10px;padding:0 7px;color:#176f98;font-size:13px;font-weight:700;background:#fff}
.site-form-section .form-grid{padding:11px 13px 13px;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 13px}
.site-form-section[data-primary-section] .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.site-category-guide{margin:0;padding:0 13px 12px;color:#587183;font-size:11px;line-height:1.7}
.site-category-guide strong{color:#31556c}
.site-cost-section{padding-bottom:10px}.site-cost-kpis{margin:10px 12px 8px;display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));border:1px solid #c7d7e1;background:#f8fbfd}.site-cost-kpis>div{min-height:62px;padding:8px 10px;border-right:1px solid #d6e2e9;border-bottom:1px solid #d6e2e9;display:grid;align-content:center;gap:2px}.site-cost-kpis span,.site-cost-kpis small{font-size:11px;color:#6a8292}.site-cost-kpis strong{font-size:16px;color:#174b68;font-variant-numeric:tabular-nums}.site-cost-expenses{margin:8px 12px;border:1px solid #d3dfe7;background:#fff}.site-cost-expenses summary{padding:7px 9px;cursor:pointer;background:#edf4f8;color:#31556c;font-weight:700}.site-cost-expenses>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.site-cost-expenses p{margin:0;padding:6px 8px;border-right:1px solid #e0e8ed;border-bottom:1px solid #e0e8ed;display:flex;justify-content:space-between;gap:8px;font-size:11px}.site-cost-expenses p span{color:#587183}.site-cost-expenses p strong{color:#264e67;white-space:nowrap}.site-cost-source{margin:6px 12px 0;color:#6b8190;font-size:11px}
.toast{position:fixed;right:18px;bottom:18px;z-index:20;background:#173d57;color:#fff;padding:10px 16px;box-shadow:0 8px 30px rgba(0,0,0,.25)}
.audit-table{max-height:calc(100vh - 180px)}
.account-status{font-weight:700;color:var(--ok)}.account-status.off{color:var(--danger)}
.employee-workbench{display:grid;grid-template-columns:220px minmax(0,1fr) 420px;height:calc(100vh - 172px);min-height:560px;border-bottom:1px solid var(--line);overflow:hidden}
.employee-branches,.employee-list-pane,.employee-detail-pane{min-width:0;background:#fff}
.employee-branches{border-right:1px solid var(--line);overflow:auto;background:#f7fafc}
.employee-pane-title,.employee-detail-title{min-height:42px;padding:8px 11px;border-bottom:1px solid var(--line);background:linear-gradient(#fff,#e8eff5);display:flex;align-items:center;justify-content:space-between;gap:8px}
.employee-pane-title span,.employee-detail-title span{font-weight:700}.employee-pane-title strong{font-weight:500;color:var(--muted)}
.branch-filter{width:100%;min-height:36px;border:0;border-bottom:1px solid #d7e1e8;background:#fff;padding:7px 10px;display:flex;justify-content:space-between;align-items:center;text-align:left}
.branch-filter::before{content:"▫";color:#087bb4;margin-right:7px}.branch-filter span{margin-right:auto}.branch-filter b{font-weight:500;color:#60778a}
.branch-filter:hover{background:#edf8fc}.branch-filter.active{background:#dff3fa;color:#076b98;border-left:4px solid #0d91bd;padding-left:6px;font-weight:700}
.branch-tree{border-bottom:1px solid #d7e1e8}.branch-tree-row{display:grid;grid-template-columns:28px minmax(0,1fr);background:#fff}.branch-tree-row .branch-filter{border-bottom:0}.branch-expand{width:28px;border:0;border-right:1px solid #dbe5eb;background:#fff;color:#087bb4;font-weight:700}.branch-expand:hover{background:#edf8fc}.branch-site-list{padding:2px 0 4px;background:#f4f8fb;border-top:1px solid #e0e8ee}.branch-site-list[hidden]{display:none}.site-filter{width:100%;min-height:29px;border:0;background:transparent;padding:4px 9px 4px 30px;display:flex;align-items:center;gap:7px;text-align:left;color:#405b6e}.site-filter::before{content:"▫";margin-left:-13px;color:#1692bc}.site-filter span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.site-filter b{margin-left:auto;color:#6b8190;font-size:11px;font-weight:500}.site-filter:hover{background:#e8f5fa}.site-filter.active{background:#d5eef7;color:#086f9c;font-weight:700;box-shadow:inset 4px 0 #0d91bd}.branch-all::before{content:"▤"}
.employee-list-pane{display:flex;flex-direction:column;border-right:1px solid var(--line);overflow:hidden}
.employee-list-toolbar{min-height:42px;padding:6px 8px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:6px;background:#f4f8fb}
.employee-list-toolbar input{min-width:220px;flex:1;height:29px;border:1px solid #bdccd8;padding:0 8px}.employee-list-toolbar select{height:29px;border:1px solid #bdccd8;background:#fff}
.employee-pagebar{min-height:30px;padding:4px 8px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}
.employee-pagebar button{height:23px;margin-left:4px;border:1px solid #b9c9d5;background:#fff;padding:0 8px}.employee-pagebar button:disabled{opacity:.45;cursor:default}
.employee-table-wrap{overflow:auto;flex:1;min-width:0}.employee-table{min-width:780px}.employee-table th,.employee-table td{height:33px;padding:5px 7px}.employee-row{cursor:pointer;outline:0}.employee-row.selected{background:#dff3fa!important;box-shadow:inset 3px 0 #1195bf}.employee-row:focus{box-shadow:inset 3px 0 #087cad,0 0 0 2px #4bb4d7;position:relative;z-index:1}
.employee-detail-pane{overflow:auto;background:#f8fbfd}.employee-detail-title{position:sticky;top:0;z-index:3;display:grid;justify-content:stretch}.employee-detail-title strong{font-size:12px;font-weight:500;color:#0879aa;text-align:right}
.employee-panel-form{padding:9px;display:block}
.employee-panel-form label{display:grid;gap:4px;color:#40596c;font-size:12px}.employee-panel-form label.wide{grid-column:1/-1}
.employee-panel-form input,.employee-panel-form select,.employee-panel-form textarea{width:100%;min-height:32px;border:1px solid #bdccd8;background:#fff;padding:5px 7px}
.employee-panel-form input[readonly]{background:#edf2f5;color:#60778a}.employee-panel-form textarea{min-height:72px;resize:vertical}
.employee-source-group{margin-bottom:8px;border:1px solid #c7d6e1;background:#fff}.employee-source-group>summary{min-height:36px;padding:7px 9px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;background:#edf4f8;color:#214b65;font-weight:700}.employee-source-group>summary b{font-size:11px;color:#648093;font-weight:500}.employee-source-group>summary::marker{color:#1487b4}
.employee-core-fields,.employee-source-fields{padding:9px;display:grid;grid-template-columns:1fr 1fr;gap:8px 9px}.employee-source-fields label span{white-space:normal;line-height:1.25;min-height:15px}.employee-detail-loading,.employee-detail-empty{margin:8px 0;padding:12px;border:1px dashed #b8cbd8;background:#f6fafc;color:#60778a;text-align:center}
.employee-form-actions{position:sticky;bottom:-10px;z-index:3;display:flex;justify-content:space-between;gap:8px;padding:9px 0;background:#f8fbfd;border-top:1px solid var(--line)}.employee-form-actions .primary{margin-left:auto;min-width:135px}.employee-form-actions button:disabled{opacity:.45;cursor:wait}
.site-workbench{grid-template-columns:180px minmax(0,1fr) 500px}.site-table{min-width:980px}.site-table .number{text-align:right;font-variant-numeric:tabular-nums}.site-panel-form .site-form-section{margin-bottom:8px}.site-panel-form .site-cost-kpis{grid-template-columns:repeat(2,minmax(120px,1fr));margin:10px 9px 8px}.site-panel-form .site-cost-expenses{margin:8px 9px}.site-panel-form .site-cost-expenses>div{grid-template-columns:1fr}.site-panel-form .site-cost-source{margin:6px 9px 9px}.site-detail-pane .employee-detail-title{grid-template-columns:1fr}.site-detail-pane .employee-detail-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.payroll-import-card{margin:8px;border:1px solid #b9cfdd;background:#f8fbfd;box-shadow:0 1px 2px rgba(25,65,88,.08)}
.payroll-import-heading{min-height:48px;padding:8px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #cfdae2;background:linear-gradient(#fff,#edf4f8)}.payroll-import-heading>div{display:grid;gap:3px}.payroll-import-heading strong{color:#174965}.payroll-import-heading span{font-size:12px;color:#60788a}.payroll-step{padding:4px 8px;border:1px solid #9fc4d8;background:#e4f4fa;color:#0877a5!important;white-space:nowrap}
.payroll-import-controls{min-height:48px;padding:8px 12px;display:flex;align-items:center;gap:8px}.payroll-file-button{height:30px;padding:5px 11px;border:1px solid #91afc2;background:linear-gradient(#fff,#e5edf2);color:#244c64;cursor:pointer}.payroll-file-button input{display:none}.payroll-file-name{min-width:180px;max-width:420px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#526e80;font-size:12px}.payroll-import-controls button:disabled{opacity:.5;cursor:wait}
.payroll-import-summary{display:grid;grid-template-columns:repeat(6,minmax(110px,1fr));border-top:1px solid #d6e2e9;background:#fff}.payroll-import-summary>div{min-height:66px;padding:8px 11px;border-right:1px solid #d6e2e9;display:grid;align-content:center;gap:2px}.payroll-import-summary>div:last-child{border-right:0}.payroll-import-summary span,.payroll-import-summary small{font-size:11px;color:#6a8292}.payroll-import-summary strong{font-size:17px;color:#174b68}.payroll-warning{margin:0 12px 8px;padding:6px 8px;border-left:4px solid #e5a316;background:#fff7df;color:#795817;font-size:12px}
.payroll-toolbar select{height:29px;border:1px solid #bdccd8;background:#fff;padding:0 7px}.payroll-table-wrap{max-height:calc(100vh - 390px);min-height:260px}.payroll-table{min-width:1180px}.payroll-table th,.payroll-table td{height:31px;padding:5px 7px}.payroll-table .number{text-align:right;font-variant-numeric:tabular-nums}.payroll-table .money::before{content:"$";color:#7b8d98;margin-right:2px}.payroll-table .deduction{color:#a44848}.payroll-table .net{font-weight:700;color:#16754d}
.bonus-summary strong.negative,.bonus-kpis strong.negative{color:#b04444}
.bonus-kpis{margin:8px;display:grid;grid-template-columns:repeat(6,minmax(125px,1fr));border:1px solid #c7d7e1;background:#fff;box-shadow:0 1px 2px rgba(25,65,88,.06)}
.bonus-kpis>div{min-height:68px;padding:9px 12px;border-right:1px solid #d6e2e9;display:grid;align-content:center;gap:2px}.bonus-kpis>div:last-child{border-right:0}.bonus-kpis span,.bonus-kpis small{font-size:11px;color:#6a8292}.bonus-kpis strong{font-size:18px;color:#174b68;font-variant-numeric:tabular-nums}
.bonus-table{min-width:1320px}.bonus-table td:nth-child(n+5):nth-child(-n+10){font-variant-numeric:tabular-nums}.bonus-table .tag{white-space:normal;line-height:1.35}
.duty-summary strong.negative,.duty-kpis strong.negative{color:#b04444}
.duty-kpis{margin:8px;display:grid;grid-template-columns:repeat(6,minmax(118px,1fr));border:1px solid #c7d7e1;background:#fff;box-shadow:0 1px 2px rgba(25,65,88,.06)}
.duty-kpis>div{min-height:64px;padding:8px 11px;border-right:1px solid #d6e2e9;display:grid;align-content:center;gap:2px}.duty-kpis>div:last-child{border-right:0}.duty-kpis span,.duty-kpis small{font-size:11px;color:#6a8292}.duty-kpis strong{font-size:18px;color:#174b68;font-variant-numeric:tabular-nums}
.duty-toolbar{flex-wrap:wrap}.duty-toolbar select:nth-of-type(3){max-width:270px}.duty-matrix-caption{margin:0 8px;border:1px solid #b9cfdd;border-bottom:0;min-height:34px;padding:6px 10px;display:flex;align-items:center;gap:12px;background:linear-gradient(#fff,#edf4f8);color:#40596c}.duty-matrix-caption span{font-size:11px}.duty-matrix-caption strong{color:#174b68}.duty-matrix-caption small{margin-left:auto;color:#6a8292}.duty-table-wrap{margin:0 8px 8px;max-height:calc(100vh - 430px);min-height:300px;border:1px solid #b9cfdd}.duty-table-wrap.import-open{max-height:calc(100vh - 525px);min-height:220px}.duty-table{min-width:2580px;border-collapse:separate;border-spacing:0}.duty-table th,.duty-table td{height:29px;padding:4px 5px;white-space:nowrap}.duty-table thead th{position:sticky;top:0;z-index:4;background:#e8f0f5}.duty-table thead small{display:block;font-size:9px;font-weight:400}.duty-table .day-col,.duty-table .day-cell{width:38px;min-width:38px;max-width:38px;padding-left:2px;padding-right:2px;text-align:center;font-variant-numeric:tabular-nums}.duty-table .reason-col{min-width:115px;max-width:180px;white-space:normal}.duty-table .tag{white-space:nowrap}.duty-table .sticky-col{position:sticky;z-index:3;background:inherit}.duty-table thead .sticky-col{z-index:6;background:#e8f0f5}.duty-table .col-seq{left:0;width:42px;min-width:42px}.duty-table .col-code{left:42px;width:78px;min-width:78px}.duty-table .col-name{left:120px;width:78px;min-width:78px}.duty-table .col-position{left:198px;width:72px;min-width:72px;box-shadow:2px 0 3px rgba(34,73,96,.12)}.duty-site-group th,.duty-site-group td{height:38px;border-top:8px solid #fff;border-bottom:1px solid #8fb4c8;background:#dcecf5;color:#174b68}.duty-site-group th{position:sticky;left:0;z-index:3;text-align:left;padding:6px 10px}.duty-site-group th span{margin-right:10px;font-size:10px;color:#5f7b8d}.duty-site-group th strong{margin-right:12px;font-size:13px}.duty-site-group th small{color:#60788a;font-weight:400}.duty-table tfoot th{position:sticky;bottom:0;z-index:4;background:#e7f1e7;border-top:2px solid #8ebf91;color:#174b32;font-variant-numeric:tabular-nums}.duty-table tfoot .sticky-col{z-index:5;background:#e7f1e7}.duty-row{cursor:pointer}.duty-row:nth-child(even){background:#f7fafc}.duty-row.selected{background:#dff3fa!important;box-shadow:inset 3px 0 #1195bf}.duty-row:hover{background:#edf8fc}
.duty-detail{margin:0 8px 8px;border:1px solid #b9cfdd;background:#fff}.duty-detail header{min-height:36px;padding:6px 10px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #d2dfe7;background:linear-gradient(#fff,#edf4f8)}.duty-detail header strong{color:#174b68}.duty-detail header span{font-size:12px;color:#60788a}.duty-day-grid{display:grid;grid-template-columns:repeat(16,minmax(48px,1fr));overflow:auto}.duty-day-grid>div{min-height:46px;padding:5px;border-right:1px solid #dde6ec;border-bottom:1px solid #dde6ec;display:grid;place-items:center}.duty-day-grid span{font-size:10px;color:#708594}.duty-day-grid strong{font-size:13px;color:#244d65;font-variant-numeric:tabular-nums}
/* Frozen duty columns must stay opaque while the daily grid scrolls underneath. */
.duty-table tbody .sticky-col{background:#fff}
.duty-table tbody .duty-row:nth-child(even) .sticky-col{background:#f7fafc}
.duty-table tbody .duty-row.selected .sticky-col{background:#dff3fa}
.duty-table tbody .duty-row:hover .sticky-col{background:#edf8fc}
.duty-table .col-position{box-shadow:3px 0 4px rgba(34,73,96,.2)}
.duty-matrix{width:max-content;min-width:0}
.duty-matrix th:nth-last-child(10),.duty-matrix td:nth-last-child(10){width:54px;min-width:54px;max-width:54px}
.duty-matrix th:nth-last-child(9),.duty-matrix td:nth-last-child(9),
.duty-matrix th:nth-last-child(8),.duty-matrix td:nth-last-child(8),
.duty-matrix th:nth-last-child(7),.duty-matrix td:nth-last-child(7){width:62px;min-width:62px;max-width:62px}
.duty-matrix th:nth-last-child(6),.duty-matrix td:nth-last-child(6){width:76px;min-width:76px;max-width:76px}
.duty-matrix th:nth-last-child(5),.duty-matrix td:nth-last-child(5){width:88px;min-width:88px;max-width:88px}
.duty-matrix th:nth-last-child(4),.duty-matrix td:nth-last-child(4){width:100px;min-width:100px;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.duty-matrix th:nth-last-child(3),.duty-matrix td:nth-last-child(3),
.duty-matrix th:nth-last-child(2),.duty-matrix td:nth-last-child(2),
.duty-matrix th:last-child,.duty-matrix td:last-child{width:92px;min-width:92px;max-width:92px}
.duty-site-total td,.duty-site-total th{height:30px;background:#e7f3e8;border-top:1px solid #8fbd94;border-bottom:2px solid #68a472;color:#174b32;font-weight:700;font-variant-numeric:tabular-nums}
.duty-site-total .sticky-col{background:#e7f3e8!important}
.schedule-loading,.schedule-empty-page{margin:18px;padding:28px;border:1px dashed #afc5d3;background:#f7fbfd;color:#60778a;text-align:center}
.schedule-toolbar{gap:8px}.schedule-toolbar label{display:flex;align-items:center;gap:6px;font-size:12px;color:#486578}.schedule-toolbar input,.schedule-toolbar select{height:29px}.schedule-toolbar .schedule-site-select select{min-width:280px;max-width:420px}.schedule-toolbar .summary{margin-left:auto;margin-right:0;color:#31556c}
.schedule-workbench{display:grid;grid-template-columns:240px minmax(0,1fr);height:calc(100vh - 195px);min-height:460px;border-bottom:1px solid var(--line);overflow:hidden}
.schedule-employees{border-right:1px solid var(--line);background:#f7fafc;overflow:auto}.schedule-employees>header{position:sticky;top:0;z-index:2;min-height:42px;padding:8px 10px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);background:linear-gradient(#fff,#e8eff5)}.schedule-employees>header span{font-size:12px;color:#60778a}.schedule-single-hint{margin:0;padding:7px 10px;border-bottom:1px solid #d7e1e8;color:#60778a;font-size:11px}.schedule-employee-list{padding:5px}.schedule-employee-option{width:100%;display:flex;align-items:center;gap:7px;padding:8px 7px;border:0;border-bottom:1px solid #dde6ec;background:#fff;text-align:left;cursor:pointer}.schedule-employee-option:hover{background:#eaf7fc}.schedule-employee-option.selected{background:#dff3fa;box-shadow:inset 4px 0 #0d91bd;color:#086f9c}.schedule-employee-option span{display:grid;min-width:0}.schedule-employee-option strong{font-size:13px}.schedule-employee-option small{color:#6a8292;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.schedule-employee-option .schedule-employee-hours{margin-top:2px;color:#16754d;font-weight:700}.schedule-employee-option b{margin-left:auto;color:#0879aa;font-size:11px;font-weight:500}.schedule-empty{margin:8px;padding:10px;border:1px dashed #b8cbd8;background:#fff;color:#60778a;font-size:12px;line-height:1.6}
.schedule-mobile-panel{padding:8px 7px;border-top:1px solid #b9ccd8;border-bottom:1px solid #cbd9e2;background:#eef6fa}.schedule-mobile-panel>strong{display:block;color:#155c7d;font-size:13px}.schedule-mobile-panel>small{display:block;margin:2px 0 6px;color:#60778a;font-size:10px}.schedule-mobile-panel form{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:4px}.schedule-mobile-panel input{min-width:0;height:27px;padding:0 6px;border:1px solid #aec4d2;background:#fff;font-size:12px}.schedule-mobile-panel button{height:27px;padding:0;border:1px solid #1685ae;background:#1685ae;color:#fff;font-size:11px}.schedule-mobile-list{padding-top:0}.schedule-mobile-worker{position:relative;border-bottom:1px solid #dde6ec}.schedule-mobile-worker .schedule-employee-option{padding-right:42px;border-bottom:0}.schedule-employee-option.mobile{border-left:3px solid #d59028;background:#fffaf0}.schedule-remove-mobile{position:absolute;right:5px;top:50%;z-index:1;transform:translateY(-50%);height:24px;padding:0 5px;border:1px solid #d2a6a6;background:#fff5f5;color:#a33b3b;font-size:10px}.schedule-remove-mobile:hover{background:#ffe6e6}.schedule-empty.compact{margin:5px;padding:6px;text-align:center}
.schedule-grid-pane{min-width:0;min-height:0;display:flex;flex-direction:column;background:#fff;overflow:hidden}.schedule-grid-caption{flex:0 0 42px;min-height:42px;padding:7px 10px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);background:linear-gradient(#fff,#edf4f8)}.schedule-grid-caption strong{color:#174b68}.schedule-grid-caption span,.schedule-grid-caption small{font-size:12px;color:#60788a}.schedule-grid-caption small{margin-left:auto}.schedule-calendar-wrap{flex:1;min-height:0;overflow-x:auto;overflow-y:hidden;padding:8px;background:#f5f8fa}.schedule-calendar{height:100%;min-width:812px;display:grid;grid-template-columns:repeat(7,minmax(116px,1fr));grid-template-rows:34px repeat(var(--calendar-weeks),minmax(0,1fr));border-top:1px solid #aebfcb;border-left:1px solid #aebfcb;background:#fff}.schedule-calendar-weekday{min-height:0;padding:7px;text-align:center;border-right:1px solid #aebfcb;border-bottom:1px solid #aebfcb;background:#e8f0f5;color:#405b6e;font-weight:700}.schedule-calendar-weekday.weekend{background:#f9e9dd;color:#a55428}.schedule-calendar-day{position:relative;min-height:0;padding:6px;border-right:1px solid #aebfcb;border-bottom:1px solid #aebfcb;background:#fff;overflow:hidden}.schedule-calendar-day.selectable{cursor:pointer}.schedule-calendar-day.selectable:hover{box-shadow:inset 0 0 0 2px #76bdd8}.schedule-calendar-day.active{box-shadow:inset 0 0 0 3px #0794c4!important;background:#eefaff}.schedule-calendar-day.weekend{background:#fff4eb}.schedule-calendar-day.outside{background:#e7eaed;color:#8998a3}.schedule-calendar-day.outside.weekend{background:#dfe3e6}.schedule-calendar-date{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}.schedule-calendar-date strong{font-size:16px;color:#244d65}.schedule-calendar-day.weekend .schedule-calendar-date strong{color:#a55428}.schedule-calendar-day.outside .schedule-calendar-date strong{color:#7f8b94}.schedule-calendar-date span{font-size:10px;color:#738896}.schedule-day-assignments{display:grid;gap:2px;margin-bottom:4px;max-height:48px;overflow:hidden}.schedule-day-assignments>div{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:2px 4px;border-left:3px solid #56a2c3;background:#e9f5fa;font-size:11px}.schedule-day-assignments span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.schedule-day-assignments b{color:#176f98;font-size:11px;font-weight:600;white-space:nowrap}.schedule-calendar-day label{display:grid;gap:3px}.schedule-calendar-day label span{font-size:13px;color:#60788a}.schedule-current-employee>span{font-weight:700;color:#176f98!important}.schedule-cell-hint{margin:4px 0 0;padding:4px;border:1px dashed #78b8d2;background:#f4fbfe;color:#176f98;font-size:11px;text-align:center}.schedule-hours{width:100%;height:28px;padding:0 6px;border:1px solid #aebfcb;background:#fff;text-align:center;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}.schedule-hours:focus{border-color:#0c8fbe;box-shadow:0 0 0 2px rgba(13,145,189,.16);outline:0}.schedule-hours::-webkit-inner-spin-button{opacity:.45}.schedule-clear-cell{width:100%;height:21px;margin-top:3px;padding:0 4px;border:1px solid #d2a6a6;background:#fff5f5;color:#a33b3b;font-size:10px}.schedule-clear-cell:hover{background:#ffe6e6}.schedule-calendar-empty{margin:18px;padding:46px;border:1px dashed #b8cbd8;background:#f7fbfd;color:#60778a;text-align:center}
.schedule-site-hours{display:flex;align-items:center;gap:5px;white-space:nowrap}.schedule-site-hours label{display:flex;align-items:center;gap:4px;color:#405f73;font-size:11px;font-weight:700}.schedule-site-hours select{width:78px;height:28px;padding:0 5px;border:1px solid #8fabbc;background:#fff;color:#163f58;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}.schedule-time-arrow{color:#3e718e!important;font-size:15px!important;font-weight:700}.schedule-site-hours button{height:28px;padding:0 8px;border:1px solid #1685ae;background:#1685ae;color:#fff;font-size:11px;font-weight:700}.schedule-site-hours b{padding:3px 7px;border-radius:2px;background:#e1f3e8;color:#16754d;font-size:11px}.schedule-site-hours b.unset{background:#fff2d9;color:#97651d}
@media(min-width:901px){
  .page-title{height:44px}
  .employee-workbench{height:calc(100vh - 144px)}
  .payroll-table-wrap{max-height:calc(100vh - 362px)}
  .duty-table-wrap{max-height:calc(100vh - 402px)}
  .duty-table-wrap.import-open{max-height:calc(100vh - 497px)}
  .audit-table{max-height:calc(100vh - 152px)}
  .schedule-workbench{height:calc(100vh - 195px)}
}
body.sidebar-collapsed{--sidebar:44px}
body.sidebar-collapsed .nav-title span:first-child,body.sidebar-collapsed .nav-group-button span,body.sidebar-collapsed .nav-item-button span,body.sidebar-collapsed .nav-children{display:none}
body.sidebar-collapsed .nav-group-button,body.sidebar-collapsed .nav-item-button{justify-content:center;padding:5px}
body.sidebar-collapsed .nav-title{justify-content:center}
body.sidebar-collapsed .nav-title span:last-child{transform:rotate(180deg)}
@media(max-width:900px){
  :root{--sidebar:0}
  .topbar{height:auto;min-height:62px;padding:8px 10px;flex-wrap:wrap}
  .topbar-brand{min-width:0}.topbar-brand div{display:none}
  .welcome{border:0;padding:0;margin-left:auto}
  .topbar-metrics{order:3;width:100%;margin:0;gap:8px;justify-content:space-between}
  .topbar-metrics>div{min-width:0}.workspace{display:block}
  .sidebar{position:fixed;z-index:10;left:0;top:0;bottom:0;width:260px;transform:translateX(-100%);transition:.2s;box-shadow:8px 0 30px rgba(0,0,0,.25)}
  body.mobile-nav-open .sidebar{transform:translateX(0)}
  .page-title{height:54px;padding-left:52px}.page-title::before{content:"☰";position:absolute;left:14px;font-size:22px}
  .page-title>div{display:none}.metric-row{grid-template-columns:repeat(2,1fr)}
  .dashboard-grid{grid-template-columns:1fr}.quick-grid{grid-template-columns:1fr}
  .module-toolbar input{width:100%;order:2}.table-wrap{max-height:none}
  .form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}
  .dialog.site-dialog{width:calc(100vw - 14px);max-height:calc(100vh - 14px)}.site-dialog #recordForm{max-height:calc(100vh - 16px)}.site-form-sections{padding:7px}.site-form-section .form-grid,.site-form-section[data-primary-section] .form-grid{grid-template-columns:1fr}.site-form-section .wide{grid-column:auto}.site-cost-kpis{grid-template-columns:repeat(2,1fr)}.site-cost-expenses>div{grid-template-columns:1fr}
  .employee-workbench{display:block;height:auto}.employee-branches{max-height:180px}.employee-list-pane{height:560px}.employee-detail-pane{border-top:1px solid var(--line)}
  .employee-list-toolbar{flex-wrap:wrap}.employee-list-toolbar input{width:100%;flex-basis:100%}.employee-core-fields,.employee-source-fields{grid-template-columns:1fr 1fr}
  .payroll-import-heading,.payroll-import-controls{align-items:flex-start;flex-wrap:wrap}.payroll-file-name{min-width:100%;max-width:100%}.payroll-import-summary{grid-template-columns:repeat(2,1fr)}.payroll-table-wrap,.duty-table-wrap{max-height:none}.bonus-kpis,.duty-kpis{grid-template-columns:repeat(2,1fr)}.bonus-kpis>div,.duty-kpis>div{border-bottom:1px solid #d6e2e9}.duty-day-grid{grid-template-columns:repeat(8,minmax(48px,1fr))}
  .schedule-toolbar .summary{width:100%;order:3}.schedule-toolbar .schedule-site-select{flex:1}.schedule-toolbar .schedule-site-select select{min-width:0;width:100%}.schedule-workbench{display:block;height:auto}.schedule-employees{max-height:260px;border-bottom:1px solid var(--line)}.schedule-grid-pane{height:570px}.schedule-grid-caption{flex-wrap:wrap}.schedule-grid-caption small{margin-left:0}
}
@media(min-width:901px) and (max-width:1250px){.employee-workbench,.site-workbench{grid-template-columns:170px minmax(0,1fr) 320px}.employee-list-toolbar{flex-wrap:wrap}.employee-list-toolbar input{width:100%;flex-basis:100%}.employee-core-fields,.employee-source-fields{grid-template-columns:1fr}.site-panel-form .site-cost-kpis{grid-template-columns:1fr}}

/* Electronic resignation workflow */
.resignation-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--line);background:#fff}
.resignation-kpis>div{padding:10px 16px;border-right:1px solid var(--line);background:linear-gradient(#fff,#f2f7fa)}
.resignation-kpis span{display:block;color:var(--muted);font-size:11px}.resignation-kpis strong{display:block;margin-top:2px;color:#174b68;font-size:22px;font-weight:500}
.resignation-table-wrap{max-height:calc(100vh - 234px)}.resignation-table{min-width:1000px}
.resignation-form{padding:12px;background:#f2f6f8}.resignation-section{max-width:1180px;margin:0 auto 12px;border:1px solid #b8cad6;background:#fff;box-shadow:0 1px 2px rgba(26,60,82,.05)}
.resignation-section>header{min-height:48px;padding:8px 12px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #c5d6df;background:linear-gradient(90deg,#e3f3f2,#edf6f8)}
.resignation-section>header>b{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#0c847b;color:#fff;font-size:14px}
.resignation-section>header div{display:flex;align-items:baseline;gap:12px}.resignation-section>header strong{color:#163f58;font-size:16px}.resignation-section>header span{color:#6b8190;font-size:11px}
.resignation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;padding:14px}.resignation-grid label{display:grid;gap:5px;min-width:0}.resignation-grid label>span,.resignation-inline legend{color:#274d64;font-size:12px;font-weight:700}.resignation-grid .wide{grid-column:1/-1}
.resignation-form input,.resignation-form select,.resignation-form textarea{width:100%;min-height:38px;padding:7px 9px;border:1px solid #aebfcb;background:#fbfdfe;border-radius:2px;outline:0}
.resignation-form input:focus,.resignation-form select:focus,.resignation-form textarea:focus{border-color:#0e8fba;box-shadow:0 0 0 2px rgba(14,143,186,.13);background:#fff}.resignation-form textarea{min-height:76px;resize:vertical;line-height:1.55}
.resignation-employee-field{position:relative}.resignation-employee-picker{position:relative}.resignation-employee-picker>input[type="search"]{padding-right:36px;background:#fff}.resignation-employee-results{position:absolute;z-index:20;top:calc(100% + 3px);left:0;right:0;max-height:320px;overflow:auto;border:1px solid #7fa6ba;background:#fff;box-shadow:0 10px 28px rgba(20,54,75,.2)}
.resignation-employee-result{width:100%;min-height:48px;padding:7px 11px;display:flex;align-items:center;justify-content:space-between;gap:14px;border:0;border-bottom:1px solid #d9e4ea;background:#fff;text-align:left}.resignation-employee-result:hover,.resignation-employee-result.active{background:#e7f7fb;box-shadow:inset 4px 0 #0d91bd}.resignation-employee-result strong{color:#174b68;font-size:13px}.resignation-employee-result span{color:#60778a;font-size:12px;text-align:right}.resignation-employee-hint{padding:16px;color:#60778a;text-align:center;background:#f8fbfc}
.resignation-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:14px}.return-options{border-top:1px dashed #c7d5de;border-bottom:1px dashed #c7d5de;background:#fafcfd;grid-template-columns:repeat(3,minmax(0,1fr))}
.resignation-choice{min-height:39px;padding:7px 10px;display:flex!important;grid-template-columns:none!important;align-items:center;gap:8px!important;border:1px solid #c0d0da;background:#fff;cursor:pointer}.resignation-choice:hover{border-color:#32a1bd;background:#f3fbfd}.resignation-choice input{width:19px!important;height:19px!important;min-height:0!important;margin:0;accent-color:#0c847b}.resignation-choice span{font-size:13px!important;font-weight:500!important;color:#27475b!important}
.resignation-inline{min-width:0;margin:0;padding:9px 11px;display:flex;align-items:center;gap:9px;border:1px solid #c0d0da;background:#eef6f9}.resignation-inline legend{padding:0 5px}.resignation-inline .resignation-choice{min-width:82px}.resignation-inline .compact{margin-left:auto;display:flex;grid-template-columns:auto 90px;align-items:center;gap:8px}.resignation-inline .compact input{width:90px}.money-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.signature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}.signature-card{min-width:0;border:1px solid #aebfcb;background:#fff}.signature-card>header{height:38px;padding:0 10px;display:flex;align-items:center;justify-content:space-between;background:#eaf2f7;border-bottom:1px solid #c5d4de}.signature-card>header strong{color:#163f58}.signature-card>header span{color:#708593;font-size:11px}
.signature-pad{display:block;width:100%;height:150px;background:#fff;touch-action:none;cursor:crosshair}.signature-card>footer{min-height:42px;padding:5px 8px;display:flex;align-items:center;gap:8px;border-top:1px solid #d3dfe6;background:#f8fafb}.signature-card>footer label{display:flex;align-items:center;gap:7px;color:#60778a;font-size:11px}.signature-card>footer input{width:145px;min-height:29px;padding:3px 6px}.signature-card>footer button{margin-left:auto}
.resignation-actions{position:sticky;bottom:0;z-index:5;max-width:1180px;min-height:54px;margin:0 auto;display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid #aebfcb;background:rgba(244,248,250,.96);box-shadow:0 -5px 16px rgba(20,54,75,.12);backdrop-filter:blur(5px)}.resignation-actions span{flex:1}.resignation-actions .tool-btn{height:35px}
@media(max-width:900px){.resignation-kpis{grid-template-columns:repeat(3,1fr)}.resignation-toolbar select{flex:1}.resignation-toolbar .primary{width:100%;order:3}.resignation-form{padding:7px}.resignation-grid,.money-grid,.signature-grid{grid-template-columns:1fr}.resignation-grid .wide{grid-column:auto}.resignation-options,.return-options{grid-template-columns:repeat(2,minmax(0,1fr))}.resignation-inline{align-items:stretch;flex-wrap:wrap}.resignation-inline .compact{width:100%;margin-left:0}.signature-pad{height:185px}.resignation-actions{flex-wrap:wrap}.resignation-actions span{display:none}.resignation-actions .tool-btn{flex:1;min-width:115px}}
