:root{color-scheme:light;--navy:#0c2240;--deep:#13345c;--text:#142942;--muted:#52657d;--line:#dbe4ef;--paper:#fff;--orange:#ed7a25;--bg:#f1f5fa;--hi:#eaf2fe}*{box-sizing:border-box}body{margin:0;background:var(--bg);font:15px/1.55 "Segoe UI",system-ui,sans-serif;color:var(--text)}.top{display:flex;align-items:center;gap:24px;background:var(--navy);color:white;padding:13px 24px;min-height:68px;border-bottom:3px solid var(--orange)}.brand{display:flex;align-items:center;gap:8px;font-size:11px;letter-spacing:.08em;font-weight:750}.mark{font:900 italic 24px/1 system-ui;letter-spacing:-.06em;color:#fff;border-right:2px solid var(--orange);padding-right:8px}.topname{font-weight:650;margin-left:auto}.chip,.pill{font-weight:700;font-size:11px;letter-spacing:.05em;padding:5px 9px;border-radius:99px;white-space:nowrap}.chip{color:#ffe4d1;background:#2f3751;border:1px solid #705343}.pill{background:#e5efff;color:#164785}.pill.warn{background:#fff0dd;color:#813700}.layout{display:grid;grid-template-columns:218px minmax(0,1fr);min-height:calc(100vh - 68px)}aside{background:#fff;border-right:1px solid var(--line);padding:26px 14px;display:flex;flex-direction:column;gap:15px}.eyebrow{font-weight:750;font-size:11px;letter-spacing:.12em;color:var(--muted);margin:0 8px}.aside-foot{margin:30px 8px 0;color:var(--muted);font-size:12px}nav{display:grid;gap:4px}button,input,select{font:inherit}button{border:1px solid var(--line);background:#fff;color:var(--text);font-weight:650;border-radius:9px;padding:8px 12px;cursor:pointer}button:hover{border-color:#7193b9}button:focus-visible,input:focus,select:focus{outline:2px solid #1673c6;outline-offset:1px}button:disabled{opacity:.55;cursor:wait}nav button{text-align:left;border:0;background:none;color:var(--muted);padding:9px 12px;white-space:nowrap}nav .active{background:var(--hi);color:#143f73;box-shadow:inset 4px 0 var(--orange)}.primary{background:var(--deep);color:#fff;border-color:var(--deep)}.accent{background:#f59348;color:#2e1601;border-color:#e97c29}input,select{border:1px solid #bccbde;border-radius:8px;color:var(--text);padding:7px 8px;background:#fff;max-width:100%;min-width:0}input[type=file]{width:min(100%,500px)}main{padding:22px clamp(14px,3.1vw,44px) 38px;max-width:1600px;width:100%}#toolbar,.bar,.section-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.bar{justify-content:flex-start}#toolbar{padding-bottom:12px;border-bottom:1px solid var(--line);margin-bottom:13px}#toolbar:empty,#status:empty{display:none}#status{padding:10px 14px;background:#e8f1fe;border:1px solid #bed5f4;border-radius:8px;margin-bottom:12px}#status.error{color:#842d22;background:#fff0ed;border-color:#efbeb7}h1{font-size:clamp(25px,3vw,36px);margin:15px 0 2px;line-height:1.15;letter-spacing:-.03em}h2{font-size:19px;margin:0 0 8px}h3{font-size:15px;margin:0 0 7px}p{margin:7px 0 14px}.muted,small{color:var(--muted)}.card,.hero,.table-wrap{background:#fff;border:1px solid var(--line);border-radius:14px;padding:17px;margin:15px 0}.hero{background:#122e52;color:#fff;padding:clamp(19px,4vw,36px);border-top:4px solid var(--orange)}.hero p{color:#e2eaf6;max-width:660px}.hero .eyebrow{color:#ffd2a9;margin:0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:11px;margin:16px 0}.kpi{background:#fff;border:1px solid var(--line);border-top:3px solid #356ba5;padding:13px 14px;border-radius:10px}.kpi:nth-child(4){border-top-color:var(--orange)}.kpi strong{display:block;font-size:clamp(18px,2vw,25px);letter-spacing:-.03em}.table-wrap{overflow:auto;padding:0;max-height:65vh}table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px}td,th{padding:8px 9px;border-bottom:1px solid #e6edf5;white-space:nowrap;text-align:left}th{background:#eaf1f9;position:sticky;top:0;z-index:1}tbody tr:hover{background:#f5f9ff}td input{min-width:108px;max-width:150px}td select{min-width:60px}td:first-child,th:first-child{position:sticky;left:0;z-index:1;background:#f4f8fd}th:first-child{z-index:2}.fixed input{width:68px}.smallbtn{padding:3px 7px;font-size:12px}.form{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:12px}.field{display:grid;gap:4px;align-content:start;font-size:13px;font-weight:650}.field input,.field select{width:100%}.numbers{text-align:right;font-variant-numeric:tabular-nums}.subnav{margin:12px 0}.selected{border-color:#3469a2;color:#123d71;background:#eaf3ff}.note{padding-left:12px;border-left:3px solid var(--orange);color:var(--muted)}.vigilance{background:#fff7e9;color:#633807;border-color:#edd1a3}.mini{font-size:11px;min-height:18px;display:block;color:#536987}.empty{min-height:65px}.stage{background:#f4f8fe}.no-margin{margin:0}.printonly{display:none}
@media(max-width:780px){.layout{display:block}.top{padding:10px 12px;gap:9px}.topname{display:none}.chip{margin-left:auto}aside{padding:8px 10px;border-bottom:1px solid var(--line);border-right:0}aside .eyebrow,.aside-foot{display:none}nav{display:flex;overflow:auto}.table-wrap{max-height:69vh}main{padding:16px 10px 29px}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{aside,.top,#toolbar,#status,.noprint,button,select{display:none!important}.layout{display:block}body,main{background:#fff;padding:0}.table-wrap{overflow:visible;max-height:none;border-radius:0}.card{break-inside:avoid}.printonly{display:block}h1{font-size:24px}}
.storagebar{flex-basis:100%;border-top:1px solid var(--line);padding-top:8px;margin-top:3px}.storagebar button{font-size:13px;padding:5px 9px}.shift-input{width:73px!important;min-width:73px!important}.table-wrap .shift-input{color:#14365d}
.brand img{width:43px;height:43px;object-fit:contain;background:white;border-radius:8px;padding:3px}.brand span{line-height:1.23;font-size:12px}.service-kpi{border-left:4px solid var(--orange)}.service-kpi h2{margin:0}.cutline{margin:12px 0}.report-limit{display:flex;align-items:flex-end;gap:18px;flex-wrap:wrap}.report-limit p{margin-bottom:5px}.slip{padding:22px}.slip-head{display:grid;grid-template-columns:59px minmax(0,1fr) auto;gap:12px;align-items:center;padding-bottom:12px;border-bottom:3px solid var(--orange)}.slip-head img{width:55px;height:55px;object-fit:contain}.slip-head small{display:block}.slip-head h2{margin:0}.slip-period{text-align:right}.slip-id{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;background:#f0f5fb;border-radius:8px;padding:10px;margin:13px 0}.slip-id>*{display:flex;flex-direction:column;min-width:0}.slip-id span{font-size:12px;color:var(--muted)}.slip-id small{font-size:10px}.slip-tables{display:grid;grid-template-columns:1.3fr 1fr;gap:12px}.slip-tables .table-wrap{max-height:none;margin:0 0 10px}.slip-net{padding:6px 10px;background:#0c2240;color:white;margin:8px 0 13px;border-radius:6px}.signatures{display:flex;gap:24px;margin:28px 0 10px}.signatures span{width:50%;padding-top:3px;border-top:1px solid #52657d;font-size:12px}
@media(max-width:680px){.slip-id,.slip-tables{grid-template-columns:repeat(2,minmax(0,1fr))}.slip-tables{display:block}.slip-head{grid-template-columns:50px minmax(0,1fr)}.slip-period{grid-column:2;text-align:left}}
@media print{h1{display:none}.slip{margin:0;padding:0;border:0;page-break-inside:auto;font-size:11pt}.slip table{font-size:10pt}.slip th,.slip td{padding:4px}.slip-net{color:#132942;background:#eef3f9;print-color-adjust:exact}.slip-head{grid-template-columns:59px minmax(0,1fr) auto}.slip-id{grid-template-columns:repeat(4,minmax(0,1fr))}.slip-tables{display:grid;grid-template-columns:1.3fr 1fr}.slip-period{grid-column:auto;text-align:right}.signatures{margin:24px 0 6px}}
/* BASIC wordmark on a continuous light masthead. The asset itself remains transparent. */
.top{min-height:93px;padding:16px clamp(18px,3vw,45px);background:linear-gradient(105deg,#ffffff 0%,#f4f8fc 59%,#e8f1fa 100%);color:#112d50;border-bottom:3px solid #ec812b;gap:24px;box-shadow:0 1px 0 #d6e4f3}
.layout{min-height:calc(100vh - 93px)}
.brand{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;margin-right:auto}
.brand img.wordmark{width:clamp(167px,21vw,256px);height:auto;max-width:100%;display:block;background:none;padding:0;border-radius:0;object-fit:contain}
.brand img[hidden]{display:none!important}
.brand .legal-brand{font-size:11px;font-weight:550;color:#3f5872;letter-spacing:.035em;text-transform:none}
.top-product{padding-left:23px;border-left:1px solid #c9daed;display:flex;flex-direction:column;gap:2px}
.top-product .product-area{font-size:10px;letter-spacing:.12em;font-weight:750;color:#456381}
.top-product strong{font-size:20px;line-height:1.15;letter-spacing:-.025em}
.top .chip{border:1px solid #bdcfdf;background:#faffff;color:#183854;display:flex;gap:7px;align-items:center;letter-spacing:.07em}
.chip-dot{width:7px;height:7px;border-radius:50%;background:#25845f}
button[data-action]{display:inline-flex;align-items:center;justify-content:center;gap:7px;vertical-align:middle;line-height:1.25;min-height:38px}
.btn-icon{flex:0 0 18px;width:18px;height:18px}.smallbtn .btn-icon{flex-basis:15px;width:15px;height:15px}
nav button[data-action]{display:flex;width:100%;justify-content:flex-start;min-height:41px}
nav .btn-icon{color:#405d7f}nav .active .btn-icon{color:#154779}.smallbtn[data-action]{min-height:32px}
.storagebar button[data-action]{min-height:35px}.file-label{color:#4d637c;font-size:13px;overflow-wrap:anywhere}.file-actions{row-gap:12px}
@media(max-width:780px){.top{gap:12px;padding:12px 14px;min-height:74px}.top-product{padding-left:11px}.top-product strong{font-size:17px}nav button[data-action]{width:auto}.top .chip{padding:4px 7px}}
@media(max-width:470px){.top-product{display:none}.top .chip{font-size:10px}.brand .legal-brand{font-size:10px}}
/* Time workbook: compact on-screen editing, with a separate legible review. */
.time-page h1{margin-bottom:7px}
.time-cut{display:flex;align-items:center;gap:14px 22px;padding:14px 16px;border-left:4px solid var(--orange);background:linear-gradient(115deg,#fff,#f2f7fd)}
.time-cut .field{min-width:160px}.cut-copy{flex:1;min-width:215px}.cut-copy b,.cut-copy small{display:block}.cut-copy small{margin-top:2px}
.time-controls{display:flex;justify-content:space-between;align-items:end;flex-wrap:wrap;gap:10px}
.time-controls .field{min-width:190px}.time-controls select{max-width:250px}.time-controls .bar{align-items:end}
.time-note{font-size:13px;margin:12px 0 8px}
.time-grid{max-height:68vh;margin-top:8px}
.time-grid th,.time-grid td{padding:6px 8px}.time-grid td:first-child,.time-grid tbody th{background:#f8fafc}
.time-grid tbody th{position:sticky;top:auto;left:0;white-space:normal;min-width:152px;max-width:210px;line-height:1.25}
.time-grid tbody th small{display:block;margin-top:3px;font-weight:500}
.time-grid thead th{z-index:3;vertical-align:top}.time-grid thead th:first-child{z-index:4}
.date-head{min-width:75px;text-align:center;font-variant-numeric:tabular-nums}
.date-head small{display:block;text-transform:uppercase;font-weight:750;letter-spacing:.07em;font-size:10px}
.date-head strong{display:block;font-size:17px;line-height:1.3}.date-head strong span{font-size:10px;font-weight:650;text-transform:capitalize}
.date-tags{display:flex;flex-direction:column;align-items:center;gap:2px}
.date-tags span{padding:0 5px;border-radius:6px;background:#dbe9f8;color:#285783;font-size:9px;font-weight:700;line-height:15px}
.date-head:is(.holiday,.sunday){background:#fff0db}.date-tags :is(.holiday-tag,.sunday-tag){background:#ffe0b4;color:#743c02}
.date-head.cut-day{box-shadow:inset 0 -3px #e37e2e}.date-head.after-cut{background:#e9edf1}.time-mark.after-cut{background:#f7f8fa}
.time-mark{text-align:center;vertical-align:top}.time-mark .mark-state{display:flex;align-items:center;flex-direction:column;gap:2px;min-height:42px;width:100%;min-width:55px;padding:3px 4px 2px;border-radius:8px;white-space:nowrap;background:#f8fafc}
button.mark-state:hover{background:#edf5ff;border-color:#7c9cbf}.time-read .mark-state{background:none}.mark-state small{font-size:9px;font-weight:600;letter-spacing:-.01em}
.code-chip{display:inline-flex;align-items:center;justify-content:center;padding:1px 7px;min-width:28px;min-height:20px;border-radius:6px;line-height:1.15;font-size:12px;letter-spacing:.025em;background:#e7edf4;color:#31506c}
.tone-day{background:#def0ff;color:#174a7c}.tone-night{background:#eae4fc;color:#4b2d77}.tone-rest{background:#ddf4e8;color:#165a3c}.tone-special{background:#ffe8c9;color:#773b06}.tone-extra{background:#f6e2ee;color:#782b53}.tone-idle{background:#edf2f6;color:#5a6c7d}
.derived{display:block;margin-top:2px;color:#34536f;font-size:10px;font-weight:650}
.code-guide summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none}.code-guide summary::-webkit-details-marker{display:none}
.code-guide summary::after{content:'+';font-size:19px;margin-left:auto;color:#294f72}.code-guide[open] summary::after{content:'−'}
.code-guide summary small{display:block}.legend-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:#e6f0fb;font-size:14px;font-weight:850;color:#224f78}
.code-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:10px;margin-top:12px}
.code-groups section{background:#f8fbfd;border:1px solid var(--line);border-radius:9px;padding:9px}
.code-groups h3{text-transform:uppercase;font-size:10px;letter-spacing:.09em;color:var(--muted)}
.code-row,button[data-action="shiftCode"]{display:grid;grid-template-columns:minmax(36px,auto) 1fr auto;justify-items:start;align-items:center;gap:8px;width:100%;padding:5px 7px;font-size:13px;min-height:34px;text-align:left}
.code-row span{min-width:0;line-height:1.22}.code-row small{white-space:nowrap;font-variant-numeric:tabular-nums}
#shiftDialog{border:1px solid #b6cde2;border-top:4px solid var(--orange);border-radius:15px;color:var(--text);width:min(550px,calc(100vw - 24px));max-height:90vh;padding:0;box-shadow:0 18px 65px #0b244336}
#shiftDialog::backdrop{background:#091c38a8}.shift-panel{padding:15px 17px}.shift-panel header{display:flex;justify-content:space-between;align-items:start;gap:10px}.shift-panel .eyebrow{margin:0}.shift-panel h2,.shift-panel header p{margin-bottom:1px}.shift-help{color:var(--muted);font-size:13px}
.shift-current{align-items:end;padding:8px;background:#f0f6fd;border-radius:10px}.shift-current input{max-width:145px}
.shift-list{margin-top:10px;display:grid;gap:4px;max-height:44vh;overflow:auto;padding:2px}.shift-list button:hover{background:#f1f7fd}
.shift-error{color:#8f2d24;font-size:13px}.time-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr));gap:9px;margin:12px 0}
.time-summary div{border:1px solid var(--line);border-radius:9px;padding:7px 11px;background:#fff}.time-summary small,.time-summary strong{display:block}.time-paper{display:none}
@media(max-width:580px){.time-grid tbody th{min-width:120px;max-width:135px}.time-grid .date-head{min-width:70px}.time-cut{gap:9px}.time-grid{max-height:62vh}.shift-current button[data-action]{min-height:32px;padding:4px 8px}.shift-current input{max-width:115px}}
@media print{.time-print-page{print-color-adjust:exact}.time-print-page h1{display:block}.time-print-page>.time-grid,.time-print-page .code-guide{display:none}.time-paper{display:block}.time-paper .table-wrap{margin:6px 0;break-before:page}.time-paper .table-wrap:first-child{break-before:auto}.time-paper th,.time-paper td{position:static!important;padding:3px 4px;font-size:8pt}.time-paper .date-head,.time-paper tbody th{min-width:0}.time-paper .date-head strong{font-size:10pt}.time-paper .mark-state{min-height:0;min-width:0;padding:0}.time-paper .code-chip{min-height:13px;font-size:8pt}.time-paper .mark-state small{font-size:7pt}.time-paper tr{break-inside:avoid}.time-paper thead{display:table-header-group}.time-summary div{break-inside:avoid}}
/* Payroll and contractor payments: two books, separate totals. */
.payroll-kpis .kpi{min-height:75px}.payroll-kpis .kpi strong{font-size:clamp(16px,2vw,22px)}
.payroll-grid:focus-visible{outline:2px solid #1673c6;outline-offset:2px}
.payroll-grid td:first-child,.payroll-grid th:first-child{position:static;background:inherit}
.payroll-grid thead th{position:sticky;top:0;z-index:2;max-width:155px;white-space:normal;line-height:1.2;vertical-align:bottom}
.payroll-grid .pay-name{position:sticky;left:0;z-index:1;background:#f6faff;text-align:left;min-width:200px}
.payroll-grid thead .pay-name{z-index:3;background:#eaf1f9;top:0}
.payroll-grid .person-link{white-space:normal;text-align:left;justify-content:flex-start;min-width:180px;color:#173c63}
.payroll-grid .pay-emphasis{font-weight:750}.payroll-grid .pay-totals>*{position:sticky;bottom:0;background:#eaf3fb;border-top:2px solid #6689ad;font-weight:750}
.payroll-grid tfoot .pay-name{z-index:3}.report-date{background:#fff0dd;color:#793d0c}
.svc-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,365px),1fr));gap:12px;margin:15px 0}
.svc-card{margin:0;display:flex;flex-direction:column;gap:8px;border-top:3px solid #34679a;min-width:0}.svc-card.svc-selected{border-top-color:var(--orange)}
.svc-card h2{margin:1px 0;font-size:18px;line-height:1.2}.svc-card .section-bar{align-items:start}.svc-card .pill{white-space:normal;max-width:182px;line-height:1.2}
.svc-metrics,.svc-breakdown{margin:4px 0;display:grid;gap:6px}.svc-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
.svc-metrics>div{background:#edf4fb;border-radius:8px;padding:7px 8px}.svc-card dt{color:var(--muted);font-size:12px}.svc-card dd{margin:0;font-weight:750;font-variant-numeric:tabular-nums}
.svc-breakdown>div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #e9eff5;padding:2px 0}.svc-breakdown dd{text-align:right}
.svc-net{display:flex;justify-content:space-between;align-items:center;gap:7px;background:#15365f;color:white;border-radius:8px;padding:6px 11px;margin-top:auto}.svc-net strong{font-size:17px}
.svc-observation{font-size:13px;margin:0;padding:6px 9px;background:#f8fafc;border-left:3px solid #df863e}.param-ref{display:block;line-height:1.33;margin:4px 0 0}
@media(max-width:430px){.svc-metrics{grid-template-columns:1fr 1fr}.svc-metrics>div:last-child{grid-column:span 2}.payroll-grid .pay-name{min-width:132px}.payroll-grid .person-link{min-width:120px}}
@media print{.svc-card{break-inside:avoid}.time-result-summary{display:none}}
.login-card{max-width:34rem;margin:clamp(1rem,7vh,5rem) auto;padding:clamp(1.4rem,4vw,3rem)}.login-card .form{display:grid;grid-template-columns:1fr;gap:1rem}.user-row{padding:1rem 0;border-top:1px solid #dce4eb;align-items:end}.user-row>strong{align-self:center}

/* Screen-only layout refinements. The print layout and payroll rules are unchanged. */
@media screen {
  main,#view,.section-bar>*,.bar>*,.field,.grid>*,.form>*,.kpi,.svc-card,.svc-metrics>div,.slip-tables>*{min-width:0}
  .grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr))}
  .form{grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr))}
  .kpi strong,.svc-net,.svc-metrics dd,.slip-id>*{overflow-wrap:anywhere}
  .user-row>strong,#status{overflow-wrap:anywhere}
  .pill{white-space:normal}
  .table-wrap{max-width:100%;overscroll-behavior-inline:contain}
}
@media screen and (max-width:780px) {
  nav{padding:2px 0 5px;scrollbar-width:thin;scrollbar-color:#bacbdf transparent}
  nav button[data-action]{flex:0 0 auto;min-height:44px}
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .time-cut{flex-wrap:wrap}
  .time-cut .field,.cut-copy{min-width:0}
  .time-controls .field{min-width:0}
  .time-controls select,#toolbar select{max-width:100%}
  .time-grid{max-height:60dvh}
  #shiftDialog{max-height:90dvh}
  .shift-list{max-height:42dvh}
}
@media screen and (max-width:470px) {
  .top-product{display:flex;flex:0 0 100%;padding:9px 0 0;border-left:0;border-top:1px solid #c9daed}
  .top-product .product-area{display:none}
  .top{flex-wrap:wrap;row-gap:8px}
  main{padding-inline:12px}
  .card:not(.table-wrap){padding-inline:13px}
  #toolbar>.bar{flex-basis:100%}
  #toolbar>.bar:first-child #cut{flex:1 1 12rem}
  #toolbar>.bar:first-child [data-action="newForm"]{flex:0 1 auto}
  #toolbar>.bar:nth-child(2)>.pill{flex-basis:100%}
  #toolbar button,.login-card button,.time-controls button{min-height:44px}
  .login-card button[type="submit"]{width:100%}
  .time-cut .field{flex:1 1 9rem}
  .cut-copy{flex:1 1 100%}
  .time-controls>.bar,.time-controls select{width:100%}
  .code-row,button[data-action="shiftCode"]{grid-template-columns:minmax(36px,auto) minmax(0,1fr) auto}
  button[data-action="shiftCode"]{min-height:44px}
  .slip-head{gap:8px}
  .slip-head img{width:46px;height:46px}
}

@media print{.date-head:is(.holiday,.sunday){print-color-adjust:exact;-webkit-print-color-adjust:exact}}

/* Private access. Independent of the authenticated workspace. */
body:has(.access-shell){background:radial-gradient(ellipse at top,#fff 0,transparent 64%),#eaf1f8}
body:has(.access-shell)>.top,body:has(.access-shell)>.layout>aside{display:none}
body:has(.access-shell)>.layout{display:block}
body:has(.access-shell) main{display:grid;align-content:center;max-width:none;min-height:100vh;min-height:100svh;padding:clamp(14px,4vw,52px)}
.access-shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.88fr);width:min(100%,956px);margin:auto;min-height:540px;border:1px solid #c9d8e6;border-radius:25px;overflow:hidden;background:#fff;box-shadow:0 24px 64px #112c4829}
.access-story{isolation:isolate;position:relative;overflow:hidden;min-width:0;display:flex;flex-direction:column;padding:clamp(29px,5vw,59px);color:#fff;background:radial-gradient(ellipse at 94% 95%,#29648d 0,transparent 52%),linear-gradient(150deg,#102a46,#163c65 75%);border-top:4px solid #ed862e}
.access-brand{width:fit-content;max-width:100%;background:#fff;border-radius:10px;padding:11px 15px;color:#405a76}
.access-brand img{display:block;width:178px;max-width:100%;height:auto}
.access-brand span{display:block;margin-top:4px;font-size:10px;line-height:1.3;letter-spacing:.025em}
.access-intro{position:relative;z-index:1;margin-top:36px}
.access-kicker{margin:0 0 8px;color:#ffd1a7;font-size:11px;text-transform:uppercase;letter-spacing:.17em;font-weight:760}
.access-intro h1{font-size:clamp(35px,4.5vw,56px);line-height:1.04;margin:0;letter-spacing:-.047em}
.access-intro>p:last-child{max-width:34ch;margin:15px 0 0;color:#dce9f7;font-size:15px}
.access-art{height:145px;margin-top:13px;position:relative;display:grid;place-items:center}
.access-orbit{position:absolute;width:250px;height:101px;border:1px solid #b9d8f16b;border-radius:50%;transform:rotate(-17deg)}
.access-sheet{width:145px;padding:12px;border:1px solid #d7eaff9c;border-radius:13px;background:#d9ecff2b;transform:rotate(-9deg);box-shadow:0 12px 35px #091d376e}
.access-sheet-top{display:flex;gap:4px;padding-bottom:9px}
.access-sheet-top span{width:4px;height:4px;border-radius:50%;background:#ccdfef}
.access-sheet-grid{display:grid;grid-template-columns:1.5fr 1fr .75fr;gap:4px}
.access-sheet-grid i{height:12px;border-radius:3px;background:#c1dff086}
.access-sheet-grid i:nth-child(3n){background:#ffad62d1}
.access-check{position:absolute;top:57%;left:calc(50% + 47px);display:grid;place-items:center;width:40px;height:40px;border:2px solid #ffe0bf;border-radius:50%;background:#f09240;color:#19334d;box-shadow:0 5px 14px #0a1f4491}
.access-check svg{width:23px;height:23px}
.access-signature{display:flex;align-items:center;gap:8px;margin-top:auto;padding-top:16px;color:#d3e6f7;font-size:11px;letter-spacing:.035em}
.access-signature span{width:15px;height:2px;background:#f08a34}
.access-panel{align-self:center;min-width:0;padding:clamp(27px,5.1vw,61px)}
.access-preamble{display:flex;align-items:center;gap:9px;margin-bottom:13px;color:#3b5c80;text-transform:uppercase;letter-spacing:.11em;font-size:10px;font-weight:770}
.access-lock{display:grid;place-items:center;width:35px;height:35px;border-radius:9px;background:#e9f2fc;color:#22517f}
.access-lock svg,.access-submit svg{width:19px;height:19px}
.access-panel h2{color:#112e51;font-size:clamp(27px,3.2vw,37px);line-height:1.1;margin:0;letter-spacing:-.035em}
.access-copy{font-size:14px;color:#4b627e;margin:9px 0 23px}
.access-form{display:grid;gap:14px}
.access-form .field{gap:5px;color:#1d3553}
.access-form input{min-height:48px;border-color:#a6bacf;padding:8px 12px;font-size:16px;color:#142942;background:#f9fbfd}
.access-password{position:relative;min-width:0}
.access-password input{padding-right:88px;width:100%}
.access-reveal[data-action]{position:absolute;top:3px;right:3px;bottom:3px;min-height:0;padding:3px 9px;border:1px solid transparent;border-radius:6px;background:transparent;color:#234e79;font-size:12px}
.access-reveal:hover{background:#e7f0fa;border-color:#c3d7ec}
.access-notice{margin:0;padding:8px 10px;border-radius:8px;color:#164575;background:#eaf2fc;overflow-wrap:anywhere;font-size:13px}
.access-notice:empty{display:none}
.access-notice.is-error{background:#fff0ed;color:#842d22;border:1px solid #ebc4bb}
.access-submit{min-height:49px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#14385e;color:#fff;border-color:#14385e;border-radius:9px;padding:10px 14px}
.access-submit:hover{background:#1c4d7c;border-color:#1c4d7c}
.access-submit svg{flex:none}
.access-help{margin:24px 0 0;padding-top:17px;border-top:1px solid #dce6ef;color:#4b627e;font-size:12px}
@media(max-width:700px){
 .access-shell{grid-template-columns:1fr;max-width:480px;min-height:0;border-radius:19px}
 .access-story{padding:23px 23px 24px}
 .access-brand{padding:8px 11px}
 .access-brand img{width:136px}
 .access-intro{margin-top:19px}
 .access-intro h1{font-size:clamp(30px,8vw,43px)}
 .access-intro>p:last-child{margin-top:7px;font-size:13px}
 .access-art,.access-signature{display:none}
 .access-panel{padding:25px 23px 24px}
 .access-copy{margin-bottom:17px}
 .access-help{margin-top:18px;padding-top:12px}
}
@media(forced-colors:active){.access-submit,.access-reveal[data-action],.access-lock{border:1px solid ButtonText}}

/* The original transparent wordmark sits on a continuous light brand strip. */
.access-brand{width:auto;max-width:none;margin:calc(-1 * clamp(29px,5vw,59px)) calc(-1 * clamp(29px,5vw,59px)) 0;padding:17px clamp(29px,5vw,59px) 15px;background:linear-gradient(105deg,#fff,#edf5fc);border-radius:0}
@media(max-width:700px){.access-brand{margin:-23px -23px 0;padding:12px 23px 10px}}

/* Payroll table. A single sticky header block keeps both levels aligned. */
.pay-table-card{min-width:0;margin:18px 0;background:#fff;border:1px solid #cddbe9;border-radius:14px;overflow:hidden}
.pay-table-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:14px 16px;background:linear-gradient(115deg,#fff,#eef5fb)}
.pay-table-kicker{font-size:10px;font-weight:800;letter-spacing:.14em;color:#4c6785}
.pay-table-intro h2{line-height:1.15;margin:2px 0;color:#143354;font-size:22px;letter-spacing:-.024em}
.pay-table-intro p{font-size:12px;color:#4d637e;margin:5px 0 0}
.pay-table-count{flex:none;align-self:center;padding:4px 8px;border-radius:8px;border:1px solid #c9d8e7;background:#fff;color:#254666;font-size:11px;font-weight:750}
.pay-table-card .table-wrap{margin:0;border:0;border-top:1px solid #cddbe9;border-radius:0;max-height:clamp(240px,63dvh,620px);scrollbar-color:#8199b4 #edf3f8;overscroll-behavior:contain}
.pay-table-card .table-wrap:focus-visible{outline-offset:-3px}
.payroll-grid table{width:max-content;min-width:100%;table-layout:auto}
.payroll-grid thead{position:sticky;top:0;z-index:4}
.payroll-grid thead tr th{position:static;min-width:116px;max-width:155px;white-space:normal;line-height:1.22;overflow-wrap:anywhere;border-right:1px solid #d5e3ef}
.payroll-grid thead .pay-index,.payroll-grid tbody .pay-index,.payroll-grid tfoot .pay-index{text-align:center;min-width:46px;max-width:46px}
.payroll-grid thead .pay-name{position:sticky;left:0;top:auto;vertical-align:bottom}
.payroll-grid .pay-name{box-shadow:1px 0 0 #bacce0}
.payroll-grid .pay-bands th{padding:6px 10px 5px;color:#fff;background:#234d75;font-size:11px;font-weight:750;letter-spacing:.035em;border-bottom:1px solid #cedce9}
.payroll-grid .pay-bands .pay-band{text-align:left;max-width:none}
.payroll-grid .pay-bands :is(.pay-name,.pay-index){color:#fff;background:#153653;padding-bottom:10px}
.payroll-grid .pay-bands :is(.band-base,.band-horas,.band-costo){background:#2c5b7a}
.payroll-grid .pay-bands :is(.band-devengo,.band-aportes){background:#2d645e}
.payroll-grid .pay-bands .band-deduccion{background:#5b4b6d}
.payroll-grid .pay-bands .band-neto{background:#854719}
.payroll-grid .pay-labels th{padding:8px 9px;background:#eef4fa;color:#173556;font-size:12px;font-weight:750}
.payroll-grid .pay-labels :is(.band-devengo,.band-aportes){background:#e8f4ef}
.payroll-grid .pay-labels .band-deduccion{background:#f1edf6}
.payroll-grid .pay-group-start{border-inline-start:2px solid #b8cbe0}
.payroll-grid tbody td{background:#fff;border-right:1px solid #edf2f7}
.payroll-grid tbody tr:nth-child(even) td{background:#f6f9fc}
.payroll-grid tbody tr:hover td{background:#edf5fe}
.payroll-grid :is(.pay-labels,tbody,tfoot) .pay-net-column{background:#fff0da;color:#643913;font-weight:800}
.payroll-grid tbody .pay-position{max-width:178px;white-space:normal;overflow-wrap:anywhere}
.payroll-grid .person-link{max-width:214px;overflow-wrap:anywhere}
.payroll-grid tfoot .pay-totals>td:first-child{position:sticky;bottom:0;background:#eaf3fb}
@media screen and (max-width:600px){
 .pay-table-intro{padding:12px;gap:7px}
 .pay-table-count{font-size:10px;padding-inline:6px}
 .payroll-grid .pay-name{min-width:132px;max-width:150px}
 .payroll-grid .person-link{min-width:112px;max-width:128px;text-align:left}
 .payroll-grid thead tr th:not(.pay-name,.pay-index){min-width:98px}
}

.menu-config{max-width:62rem}
.menu-config h2{margin-bottom:2px}
.menu-config p{margin-top:0}
.menu-config .field{min-width:170px}
.menu-toggles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:8px;margin:14px 0 18px}
.menu-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;background:#f7fafc;border:1px solid #d5e3ee;border-radius:9px;padding:9px 12px;color:#193a5d;cursor:pointer}
.menu-toggle small{display:block;font-size:11px}
.menu-toggle input{flex:none;width:20px;height:20px;margin:0;accent-color:#224f78;cursor:pointer}
.menu-toggle:has(input:focus-visible){outline:2px solid #1673c6;outline-offset:2px}
.menu-toggle:has(input:disabled){cursor:default;background:#edf4fb}
.menu-toggle:has(input:disabled) input{cursor:default}
