/* Scoped to the reviewed operations screens; authentication and print styles are unchanged. */
@media screen {
html body .admin-invoice-tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(max-width:700px){html body .admin-invoice-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
html body .holiday-archive-toolbar button,html body .holiday-archive-one{min-height:44px;padding:9px 13px;border:1px solid var(--pt-line,#cbd5e1);border-radius:10px;background:var(--pt-soft,#f1f5f9);color:var(--pt-text,#172536);font:inherit;font-size:13px;cursor:pointer;box-shadow:none}
html body .holiday-archive-tabs button[aria-pressed=true]{background:var(--pt-selected,#e8f0fc);color:var(--pt-selected-text,#164b91);border-color:var(--pt-line,#cbd5e1);font-weight:750}
html body [data-holiday-id][hidden]{display:none!important}
html body .holiday-archive-feedback{color:var(--pt-muted,#526276);line-height:1.4}
html body .holiday-archive-one{margin:8px 0 0 8px}
html body .admin-invoice-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}
html body .admin-invoice-overview> :is(div,button){display:flex!important;flex-direction:column;align-items:flex-start;justify-content:center;gap:10px;box-sizing:border-box;width:100%!important;min-width:0;min-height:120px;margin:0!important;padding:20px!important;border:1px solid var(--pt-line,#cbd5e1)!important;border-radius:16px!important;background:var(--pt-soft,#f1f5f9)!important;color:var(--pt-text,#172536)!important;text-align:left;font-family:inherit;box-shadow:none!important}
html body .admin-invoice-overview>button{cursor:pointer}
html body .admin-invoice-overview small{color:var(--pt-muted,#526276)!important;font-size:14px!important;white-space:normal}
html body .admin-invoice-overview b{color:var(--pt-text,#172536)!important;font-size:clamp(24px,3vw,36px)!important;line-height:1.15;overflow-wrap:anywhere}
html body .admin-invoice-overview>button:focus-visible{outline:3px solid #ff9d18;outline-offset:3px}
html body .portal-week-overlay{position:fixed;inset:0;z-index:30000;background:#020a17b8;display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom));box-sizing:border-box}
html body .portal-week-dialog{width:min(960px,100%);max-width:100%;margin:auto;box-sizing:border-box;border:1px solid var(--pt-line,#cbd5e1);border-radius:18px;background:var(--pt-surface,#fff);color:var(--pt-text,#172536);padding:20px}
html body .portal-week-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;background:transparent;color:inherit;padding:0 0 16px;height:auto;position:static;border-bottom:1px solid var(--pt-line,#cbd5e1)}
html body .portal-week-dialog h2{margin:0;font-size:22px;color:inherit}
html body .portal-week-dialog header>div{display:flex;gap:8px;flex-wrap:wrap}
html body .portal-week-dialog button,html body .portal-week-open{min-height:44px;padding:10px 14px;border:1px solid var(--pt-line,#cbd5e1);border-radius:10px;background:var(--pt-soft,#f1f5f9);color:var(--pt-text,#172536);font:inherit;font-size:13px;font-weight:700;cursor:pointer;white-space:normal}
html body .portal-week-dialog [data-print]{background:#ff9f18;color:#152334;border-color:#ff9f18}
html body .portal-week-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px 0}
html body .portal-week-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:16px}
html body .portal-week-stats>div{min-width:0;border:1px solid var(--pt-line,#cbd5e1);background:var(--pt-soft,#f1f5f9);padding:12px;border-radius:12px}
html body .portal-week-stats :is(small,b){display:block;color:inherit}html body .portal-week-stats small{color:var(--pt-muted,#526276);font-size:12px;margin-bottom:6px}html body .portal-week-stats b{font-size:18px}
html body .portal-week-day{padding:13px;border:1px solid var(--pt-line,#cbd5e1);border-bottom:0;background:var(--pt-soft,#f1f5f9);overflow-wrap:anywhere}
html body .portal-week-day:first-child{border-radius:12px 12px 0 0}html body .portal-week-day:last-child{border-bottom:1px solid var(--pt-line,#cbd5e1);border-radius:0 0 12px 12px}
html body .portal-week-day>div:first-child{display:flex;justify-content:space-between;gap:12px}
html body .portal-week-entry{margin-top:8px}html body .portal-week-entry p{margin:5px 0;color:inherit}html body .portal-week-entry :is(span,small),html body .portal-week-dialog footer{color:var(--pt-muted,#526276);font-size:12px;line-height:1.5}html body .portal-week-dialog footer{margin-top:16px;background:transparent;padding:0;position:static}
html body #samsaraVerificationPanel.samsara-employee-bar{background:var(--pt-soft,#192637)!important;color:var(--pt-text,#edf3ff)!important;border-color:var(--pt-line,#344253)!important}
@media(max-width:600px){html body .portal-week-dialog{padding:14px}html body .portal-week-dialog header{align-items:flex-start;flex-direction:column}html body .portal-week-dialog header>div{width:100%}html body .portal-week-dialog header button{flex:1}html body .portal-week-stats{grid-template-columns:repeat(2,minmax(0,1fr))}html body .portal-week-stats>div:first-child{grid-column:1/-1}html body .admin-invoice-overview> :is(div,button){padding:14px!important;min-height:110px}html body .admin-invoice-overview small{font-size:12px!important}}
}


/* Approved weekly review: desktop table and mobile cards share the same submitted records. */
@media screen {
html body .portal-week-dialog.week-review{width:min(1500px,100%);padding:20px;min-width:0}
html body .week-review-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:16px 0}
html body .week-review-toolbar label{display:grid;gap:5px;flex:1 1 220px;font-size:12px;color:var(--pt-muted,#526276)}
html body .week-review :is(select,input){box-sizing:border-box;width:100%;min-width:0;min-height:40px;border:1px solid var(--pt-line,#cbd5e1)!important;background:var(--pt-field,#fff)!important;color:var(--pt-text,#172536)!important;border-radius:8px!important;padding:8px!important;font:inherit;font-size:14px!important;box-shadow:none!important}
html body .week-review-dates{display:flex;align-items:center;gap:8px;flex:1 1 300px;justify-content:center;border:1px solid var(--pt-line,#cbd5e1);border-radius:10px}
html body .week-review-dates b{font-size:14px;flex:1;text-align:center;white-space:nowrap}
html body .week-review-dates button{border:0;background:transparent;flex:0 0 42px}
html body .week-review-heading{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin:16px 0}
html body .week-review-heading>div:first-child{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:18px}
html body .week-review-state{font-size:12px;color:var(--pt-selected-text,#164b91);background:var(--pt-selected,#e8f0fc);padding:6px 9px;border-radius:8px}
html body .week-review-decisions{display:flex;gap:8px;flex-wrap:wrap}
html body .week-review [data-approve]{background:#16814f;color:#fff;border-color:#16814f}
html body .week-review [data-return]{color:var(--pt-bad,#a32132);border-color:var(--pt-bad,#a32132);background:var(--pt-surface,#fff)}
html body .week-review button:disabled,html body .week-review select:disabled{opacity:.5;cursor:default}
html body .week-review [data-week-message]{color:var(--pt-muted,#526276);font-size:13px;line-height:1.5;overflow-wrap:anywhere}
html body .week-review [data-week-message]:empty{display:none}
html body .week-review-table-wrap{width:100%;max-width:100%;overflow-x:auto;border:1px solid var(--pt-line,#cbd5e1);border-radius:12px}
html body table.week-review-table{width:100%!important;min-width:1050px;border-collapse:collapse!important;table-layout:fixed;background:var(--pt-surface,#fff)!important;color:var(--pt-text,#172536)!important;margin:0!important;font-size:12px}
html body table.week-review-table :is(th,td){padding:10px 8px!important;border:0!important;border-bottom:1px solid var(--pt-line,#cbd5e1)!important;vertical-align:top!important;white-space:normal!important;overflow-wrap:anywhere!important;color:var(--pt-text,#172536)!important;background:var(--pt-surface,#fff)!important;text-align:left!important}
html body table.week-review-table th{font-size:11px;font-weight:750;background:var(--pt-soft,#f1f5f9)!important;color:var(--pt-muted,#526276)!important}
html body table.week-review-table :is(th,td):nth-child(1){width:9%}html body table.week-review-table :is(th,td):nth-child(2){width:16%}html body table.week-review-table :is(th,td):nth-child(3){width:8%}html body table.week-review-table :is(th,td):nth-child(4){width:10%}html body table.week-review-table :is(th,td):nth-child(5){width:8%}html body table.week-review-table :is(th,td):nth-child(6),html body table.week-review-table :is(th,td):nth-child(7){width:6%}html body table.week-review-table :is(th,td):nth-child(8){width:8%}html body table.week-review-table :is(th,td):nth-child(9){width:8%}html body table.week-review-table :is(th,td):nth-child(10){width:12%}html body table.week-review-table :is(th,td):nth-child(11){width:9%}
html body .week-review-table button{padding:8px;min-height:38px;font-size:12px}
html body .week-inline-actions{display:flex;flex-wrap:wrap;gap:5px}
html body .week-review-table [data-review-total]{outline:2px solid #4389e8;outline-offset:1px;font-variant-numeric:tabular-nums}
html body .week-check{display:inline-flex;align-items:center;gap:4px;border-radius:7px;padding:5px 7px;font-size:11px;line-height:1.3;background:var(--pt-soft,#f1f5f9);color:var(--pt-muted,#526276)}
html body .week-check.verified{background:var(--pt-good-bg,#e8f6ed);color:var(--pt-good,#146c43)}html body .week-check.check,html body .week-check.mismatch{background:var(--pt-warn-bg,#fff3df);color:var(--pt-warn,#875000)}
html body .week-readonly{font-size:11px;color:var(--pt-muted,#526276)}html body .week-review .portal-week-stats{margin-top:16px}html body .week-pay-summary{color:var(--pt-muted,#526276);font-size:13px}html body .week-mobile-decisions{display:none}
@media(max-width:900px){
html body .portal-week-dialog.week-review{padding:14px}
html body .week-review-toolbar{gap:8px}html body .week-review-toolbar label{flex-basis:100%}html body .week-review-dates{flex-basis:100%}html body .week-review-toolbar>button{flex:1}
html body .week-review-table-wrap{border:0;overflow:visible}
html body table.week-review-table{display:block;min-width:0!important;table-layout:auto}
html body table.week-review-table thead{display:none}
html body table.week-review-table tbody{display:grid;gap:10px;width:100%}
html body table.week-review-table tr{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;padding:12px!important;border:1px solid var(--pt-line,#cbd5e1)!important;border-radius:12px!important;background:var(--pt-soft,#f1f5f9)!important}
html body table.week-review-table td{display:block!important;width:auto!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important;font-size:13px}
html body table.week-review-table td[data-label]:before{content:attr(data-label);display:block;font-size:10px;color:var(--pt-muted,#526276);margin-bottom:4px}
html body table.week-review-table td:nth-child(1){grid-column:1;grid-row:1}html body table.week-review-table td:nth-child(9){grid-column:2;grid-row:1;text-align:right!important}html body table.week-review-table td:nth-child(2){grid-column:1/-1;grid-row:2}html body table.week-review-table td:nth-child(3){grid-column:1/-1;grid-row:3}html body table.week-review-table td:nth-child(4){grid-column:1;grid-row:4}html body table.week-review-table td:nth-child(5){grid-column:2;grid-row:4}html body table.week-review-table td:nth-child(6){grid-column:1;grid-row:5}html body table.week-review-table td:nth-child(7){grid-column:2;grid-row:5}html body table.week-review-table td:nth-child(8){grid-column:1;grid-row:6}html body table.week-review-table td:nth-child(10){grid-column:2;grid-row:6}html body table.week-review-table td:nth-child(11){grid-column:1/-1;grid-row:7}
html body table.week-review-table .week-empty-day td:nth-child(2){grid-column:1/-1;grid-row:auto;color:var(--pt-muted,#526276)!important}
html body .week-inline-actions button{flex:1}
html body .week-review-heading .week-review-decisions{display:none}
html body .week-mobile-decisions{display:flex;position:sticky;bottom:-14px;z-index:2;margin:14px -14px -14px;padding:12px 14px max(12px,env(safe-area-inset-bottom));background:var(--pt-surface,#fff);border-top:1px solid var(--pt-line,#cbd5e1)}
html body .week-mobile-decisions button{flex:1;font-size:12px;min-width:0;overflow-wrap:anywhere}
}
@media(min-width:901px) and (max-width:1180px){html body table.week-review-table{min-width:1020px}}
}

@media(max-width:900px){html body .portal-week-dialog.week-review input,html body .portal-week-dialog.week-review select{font-size:16px!important}}
