/* Meridian Payroll — approved time-card design tokens.
   Locked layout: navy #1E3A8A header, blue CT / amber MA service-state tabs,
   quarter-hour steppers, summary band. Classes mirror the approved render
   (.mstp/.mstpv/.mstpb/.mcell/.mhead/.mtab/.mtile/.mtl/.mtv) and the help
   drawer (.hwrap/.hpanel/.hsec/.hh/.hp/.hli/.hk). */

:root{
  --navy:#1E3A8A; --navy-2:#1E40AF; --amber:#F59E0B; --amber-ink:#92400E;
  --page:#EAF1F4; --ink:#1E293B; --muted:#64748B; --faint:#94A3B8;
  --line:#CBD5E1; --line-2:#EEF2F6; --tile:#EAF1F4; --employer-tile:#EEF2FB;
  --blue-bg:#DBEAFE; --amber-bg:#FEF3C7; --ok:#0F6E56; --err:#B42318;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:var(--page); color:var(--ink); line-height:1.5;
  -webkit-font-smoothing:antialiased;
}

/* ---- top bar (minimal; no role-tile dashboard) ---- */
.onpay-header{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 18px; background:#fff; border-bottom:1px solid var(--line);
}
.onpay-header-brand{display:flex; align-items:center; gap:9px; text-decoration:none; color:var(--navy); font-weight:600; font-size:15px}
.onpay-header-brand img{display:block}
.onpay-header-user{display:flex; align-items:center; gap:14px}
.onpay-header-name{font-size:13px; color:var(--muted)}
.onpay-inline-form{margin:0}
.onpay-linkbtn{background:none; border:none; color:var(--navy); font-size:13px; cursor:pointer; padding:0; font-weight:500}
.onpay-linkbtn:hover{text-decoration:underline}
.onpay-main{padding:0}
.onpay-footbar{text-align:center; color:var(--faint); font-size:11px; padding:18px 0 28px}

/* ---- card wrapper + period strip ---- */
.tc-wrap{max-width:880px; margin:0 auto; padding:18px}
.tc-strip{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; flex-wrap:wrap}
.tc-strip label{font-size:12px; color:var(--muted)}
.tc-strip select{
  font:inherit; font-size:13px; color:var(--ink); padding:6px 10px;
  border:1px solid var(--line); border-radius:8px; background:#fff;
}
.tc-card{background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden}

/* ---- header bar ---- */
.tc-head{background:var(--navy); padding:13px 18px; display:flex; align-items:center; gap:12px}
.tc-logo{width:40px; height:40px; border-radius:9px; background:#fff; display:flex; align-items:center; justify-content:center; flex:none}
.tc-titles{flex:1; min-width:0}
.tc-title{font-size:15px; font-weight:500; color:#fff}
.tc-sub{font-size:12px; color:#C7D2FE}
.tc-help{
  width:30px; height:30px; border-radius:50%; border:1px solid rgba(255,255,255,.5);
  background:rgba(255,255,255,.14); color:#fff; font-size:15px; font-weight:500;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.tc-help:hover{background:rgba(255,255,255,.24)}
.tc-pill{font-size:12px; font-weight:500; padding:4px 12px; border-radius:8px; white-space:nowrap}
.tc-pill--draft{background:var(--amber-bg); color:var(--amber-ink)}
.tc-pill--submitted{background:#DBEAFE; color:#1E40AF}
.tc-pill--approved{background:#DCFCE7; color:#166534}
.tc-pill--rejected{background:#FEE2E2; color:#991B1B}
.tc-pill--processed{background:#E2E8F0; color:#334155}

.tc-body{padding:16px 18px 14px}

/* ---- identity tiles ---- */
.tc-tiles{display:grid; grid-template-columns:repeat(auto-fit,minmax(132px,1fr)); gap:10px; margin-bottom:16px}
.mtile{background:var(--tile); border-radius:8px; padding:8px 12px}
.mtile--employer{background:var(--employer-tile)}
.mtl{font-size:11px; color:var(--muted)}
.mtv{font-size:13px; font-weight:500; color:var(--ink)}
.mtv--navy{color:var(--navy)}

/* ---- service-state caption + tabs ---- */
.tc-caption{font-size:11px; color:var(--muted); margin-bottom:5px}
.tc-caption .dim{color:var(--faint)}
.tc-tabs{display:flex; align-items:flex-end; margin-bottom:-1px; flex-wrap:wrap}
.mtab{
  padding:9px 16px; font-size:13px; font-weight:500; border:1px solid var(--line);
  border-bottom:none; border-radius:8px 8px 0 0; cursor:pointer; margin-right:6px;
  background:transparent; color:var(--muted);
}
.tc-addstate{font-size:12px; color:var(--faint); padding:9px 12px}

/* ---- table ---- */
.tc-table{width:100%; border-collapse:collapse; table-layout:fixed}
.mhead{padding:9px 7px; font-size:12px; color:var(--muted); font-weight:500; border-bottom:1.5px solid var(--line); vertical-align:bottom; line-height:1.25}
.mhead--left{text-align:left}
.mcell{padding:6px 7px; text-align:center; border-bottom:1px solid var(--line-2)}
.mcell--date{text-align:left; color:var(--muted)}
.mcell--day{font-weight:500; color:var(--ink)}
.mcell--foot{font-weight:500; color:var(--ink); border-bottom:none}

/* ---- stepper ---- */
.mstp{display:inline-flex; align-items:center; gap:4px; border:1px solid var(--line); border-radius:8px; padding:1px 4px 1px 8px; background:#fff; min-width:56px; justify-content:space-between}
.mstp.is-readonly{background:#F8FAFC}
.mstpv{font-size:13px; color:var(--ink); font-weight:500; min-width:24px; text-align:right}
.mstpb{display:flex; flex-direction:column; line-height:0}
.mstpb button{border:none; background:transparent; padding:0 1px; margin:0; cursor:pointer; color:var(--muted); height:12px; display:flex; align-items:center}
.mstpb button:hover{color:#2563EB}
.mstpb button:disabled{color:#CBD5E1; cursor:default}

.tc-unit{font-size:11px; color:var(--faint); margin-top:7px}

/* ---- summary band ---- */
.tc-summary{margin-top:18px; border-top:1px solid var(--line-2); padding-top:14px}
.tc-rates{display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; gap:10px; flex-wrap:wrap}
.tc-rates-left{display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.tc-rates-label{font-size:12px; color:var(--muted)}
.ratepill{font-size:12px; font-weight:500; padding:3px 10px; border-radius:20px}
.ratepill--clinical{background:var(--tile); color:var(--navy)}
.ratepill--admin{background:var(--amber-bg); color:var(--amber-ink)}
.tc-setby{font-size:11px; color:var(--muted)}
.tc-stats{display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); gap:10px}
.tc-stat{font-size:20px; font-weight:500; color:var(--ink)}
.tc-stat--gross{color:var(--navy)}
.tc-stat--net{color:var(--muted)}
.tc-breakdown{margin-top:12px; padding:10px 12px; background:#F8FAFC; border:1px solid var(--line-2); border-radius:8px; font-size:12px; color:#475569}
.tc-breakdown b{color:var(--ink); font-weight:500}
.tc-breakdown .grs{color:var(--navy); font-weight:500}
.tc-onepay{font-size:11px; color:var(--muted); margin-top:8px}
.tc-onepay b{font-weight:500; color:var(--navy)}

/* ---- actions ---- */
.tc-actions{display:flex; justify-content:flex-end; gap:10px; margin-top:14px; align-items:center; flex-wrap:wrap}
.tc-btn{border:none; border-radius:8px; padding:9px 16px; font-size:13px; font-weight:500; cursor:pointer; font-family:inherit}
.tc-btn--primary{background:var(--navy); color:#fff}
.tc-btn--primary:hover{background:#172f6f}
.tc-btn--ghost{background:#fff; color:var(--navy); border:1px solid var(--line)}
.tc-btn--ghost:hover{background:#F8FAFC}
.tc-btn:disabled{background:#E2E8F0; color:#94A3B8; cursor:default}
.tc-savednote{font-size:12px; color:var(--ok); margin-right:auto}
.tc-windownote{font-size:11px; color:var(--muted); margin-right:auto; max-width:60%}
.tc-windownote.is-late{color:var(--amber-ink)}

/* ---- inline alerts ---- */
.tc-alert{border-radius:8px; padding:9px 12px; font-size:13px; margin:0 0 12px}
.tc-alert--ok{background:#ECFDF5; color:#065F46; border:1px solid #A7F3D0}
.tc-alert--warn{background:#FFFBEB; color:#92400E; border:1px solid #FDE68A}
.tc-alert--error{background:#FEF2F2; color:#991B1B; border:1px solid #FECACA}
.tc-alert ul{margin:6px 0 0; padding-left:18px}
.tc-empty{color:var(--muted); font-size:14px; padding:24px 0}

/* ---- signature modal ---- */
.sig-back{position:fixed; inset:0; background:rgba(15,23,30,.4); display:none; align-items:center; justify-content:center; z-index:40}
.sig-back.is-open{display:flex}
.sig-card{background:#fff; border-radius:12px; width:min(420px,92vw); padding:18px; box-shadow:0 12px 40px rgba(0,0,0,.18)}
.sig-card h3{margin:0 0 4px; font-size:15px; color:var(--ink)}
.sig-card p{margin:0 0 12px; font-size:13px; color:var(--muted)}
.sig-card label{display:block; font-size:12px; color:var(--muted); margin-bottom:5px}
.sig-card input[type=text]{width:100%; font:inherit; font-size:14px; padding:9px 11px; border:1px solid var(--line); border-radius:8px}
.sig-actions{display:flex; justify-content:flex-end; gap:10px; margin-top:14px}

/* ---- help drawer (approved) ---- */
.hwrap{position:fixed; inset:0; z-index:50; pointer-events:none}
.hback{position:absolute; inset:0; background:rgba(15,23,30,.40); opacity:0; transition:opacity .28s; pointer-events:none}
.hpanel{position:absolute; top:0; right:0; height:100%; width:342px; max-width:88vw; background:#fff; border-left:1px solid var(--line); transform:translateX(112%); transition:transform .28s ease; display:flex; flex-direction:column; pointer-events:auto}
.hwrap.is-open{pointer-events:auto}
.hwrap.is-open .hback{opacity:1; pointer-events:auto}
.hwrap.is-open .hpanel{transform:translateX(0)}
.hhead{display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid var(--tile)}
.hhead-l{display:flex; align-items:center; gap:9px}
.hbadge{width:26px; height:26px; border-radius:50%; background:var(--navy); color:#fff; display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:500}
.hhead-t{font-size:15px; font-weight:500; color:var(--ink)}
.hclose{width:28px; height:28px; border-radius:8px; border:none; background:transparent; color:var(--muted); cursor:pointer; display:flex; align-items:center; justify-content:center}
.hclose:hover{background:var(--tile)}
.hbody{flex:1; overflow:auto}
.hsec{padding:13px 16px; border-bottom:1px solid #F1F5F8}
.hsec:last-child{border-bottom:none}
.hh{display:flex; align-items:center; gap:7px; font-size:13px; font-weight:500; color:#0A5A93; margin:0 0 5px}
.hp{font-size:13px; line-height:1.55; color:#3A4754; margin:0}
.hli{font-size:13px; line-height:1.5; color:#3A4754; margin:5px 0 0}
.hk{color:var(--ink); font-weight:500}
.hfoot{padding:11px 16px; border-top:1px solid var(--tile); background:#F7FAFB}
.hfoot div{font-size:11px; color:var(--faint)}
.hsec a{color:#0070C0; font-weight:500}

/* ---- login / password / submitted (inherit the theme) ---- */
.auth-wrap{max-width:380px; margin:8vh auto 0; padding:0 18px}
.auth-card{background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden}
.auth-head{background:var(--navy); padding:18px; display:flex; align-items:center; gap:11px}
.auth-logo{width:38px; height:38px; border-radius:8px; background:#fff; display:flex; align-items:center; justify-content:center}
.auth-head-t{color:#fff; font-weight:500; font-size:15px}
.auth-head-s{color:#C7D2FE; font-size:12px}
.auth-body{padding:18px}
.auth-body h1{font-size:16px; margin:0 0 14px; color:var(--ink)}
.field{display:block; margin-bottom:12px}
.field span{display:block; font-size:12px; color:var(--muted); margin-bottom:5px}
.field input{width:100%; font:inherit; font-size:14px; padding:9px 11px; border:1px solid var(--line); border-radius:8px}
.auth-err{background:#FEF2F2; color:#991B1B; border:1px solid #FECACA; border-radius:8px; padding:9px 12px; font-size:13px; margin:0 0 12px}
.auth-ok{background:#ECFDF5; color:#065F46; border:1px solid #A7F3D0; border-radius:8px; padding:9px 12px; font-size:13px; margin:0 0 12px}
.auth-actions{margin-top:6px}
.done-wrap{max-width:560px; margin:6vh auto 0; padding:0 18px}
.done-card{background:#fff; border:1px solid var(--line); border-radius:12px; padding:22px; text-align:center}
.done-mark{width:52px; height:52px; border-radius:50%; background:#DCFCE7; color:#166534; display:flex; align-items:center; justify-content:center; margin:0 auto 12px; font-size:26px}
.done-card h1{font-size:18px; margin:0 0 6px; color:var(--ink)}
.done-card p{color:var(--muted); font-size:14px; margin:0 0 6px}
.done-actions{display:flex; gap:10px; justify-content:center; margin-top:16px; flex-wrap:wrap}
.done-link{display:inline-block; text-decoration:none}
a.tc-btn{display:inline-block; text-decoration:none; text-align:center}

@media (max-width:560px){
  .tc-wrap{padding:12px}
  .mtab{padding:8px 11px}
  .mhead,.mcell{padding:6px 4px; font-size:11px}
}

/* ---- dashboard / portal home (L16 navy) ---- */
.dash-wrap{max-width:760px;margin:0 auto;padding:18px}
.dash-top{background:var(--navy);border-radius:12px;padding:14px 18px;display:flex;align-items:center;gap:12px;margin-bottom:16px}
.dash-logo{width:36px;height:36px;border-radius:8px;background:#fff;display:flex;align-items:center;justify-content:center;flex:none}
.dash-top-t{flex:1;min-width:0}
.dash-top-title{font-size:15px;font-weight:500;color:#fff}
.dash-top-sub{font-size:12px;color:#C7D2FE}
.dash-who{font-size:12px;font-weight:500;background:rgba(255,255,255,.16);color:#fff;padding:5px 12px;border-radius:20px;white-space:nowrap}
.dash-h{font-size:16px;font-weight:500;color:var(--ink);margin:2px 2px 4px}
.dash-sub{font-size:12px;color:var(--muted);margin:0 2px 12px}
.dash-card{border:1px solid #D8E2E8;border-left:3px solid #CBD5E1;border-radius:10px;padding:13px 15px;margin-bottom:10px;display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:#fff}
.dash-card.sev-due{border-left-color:#F59E0B}
.dash-card.sev-late{border-left-color:#EA580C}
.dash-card.sev-past{border-left-color:#DC2626}
.dash-card-main{flex:1;min-width:150px}
.dash-card-title{font-size:14px;font-weight:500;color:var(--ink)}
.dash-card-meta{font-size:11px;color:var(--muted)}
.dash-card-status{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.dash-pill{font-size:11px;font-weight:500;padding:3px 10px;border-radius:20px;white-space:nowrap}
.dash-pill--neutral{background:#EAF1F4;color:#64748B}
.dash-pill--due{background:#FEF3C7;color:#92400E}
.dash-pill--late{background:#FFEDD5;color:#9A3412}
.dash-pill--past{background:#FEE2E2;color:#991B1B}
.dash-meter{display:flex;gap:3px}
.dash-seg{width:15px;height:5px;border-radius:3px;display:inline-block}
.dash-opens{font-size:11px;color:var(--muted)}
.dash-open{white-space:nowrap;text-decoration:none;text-align:center}
.dash-legend{font-size:11px;color:var(--muted);margin:8px 2px 4px;display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center}
.dash-dot{width:15px;height:5px;border-radius:3px;display:inline-block;vertical-align:middle;margin-right:2px}
.dash-hist{background:#fff;border:1px solid #D8E2E8;border-radius:10px;overflow:hidden}
.dash-month{font-size:12px;font-weight:500;color:var(--navy);padding:12px 14px 6px}
.dash-row{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid #EAF1F4}
.dash-row:last-child{border-bottom:none}
.dash-row-l{flex:1;min-width:120px}
.dash-row-title{font-size:14px;color:var(--ink)}
.dash-row-sub{font-size:11px;color:var(--muted)}
.dash-badge{font-size:11px;font-weight:500;padding:3px 10px;border-radius:20px;white-space:nowrap}
.st-submitted{background:#DBEAFE;color:#1E40AF}
.st-approved{background:#DCFCE7;color:#166534}
.st-processed{background:#E2E8F0;color:#334155}
.st-rejected{background:#FEE2E2;color:#991B1B}
.dash-amt{font-size:13px;font-weight:500;color:var(--ink);min-width:64px;text-align:right}
.dash-act{border:1px solid #D8E2E8;background:#fff;color:var(--navy);border-radius:8px;padding:4px 10px;font-size:12px;font-weight:500;cursor:pointer;text-decoration:none}
.dash-act:hover{background:#F8FAFC}
.hist-filter{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:0 2px 10px}
.hist-filter select,.hist-filter input{font:inherit;font-size:13px;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink)}
.hist-filter select{min-width:180px}
.hist-filter input{flex:1;min-width:160px}
.hist-filter select:focus,.hist-filter input:focus{outline:2px solid #93C5FD;outline-offset:-1px;border-color:#93C5FD}
.hist-none{font-size:12px;color:var(--muted);padding:14px;display:none}
.tc-back{font-size:13px;color:var(--navy);text-decoration:none;font-weight:500}
.tc-back:hover{text-decoration:underline}
@media (max-width:560px){.dash-card-status{align-items:flex-start}}

/* ===================== Admin configuration surface (slice 6) ===================== */
.adm-wrap{max-width:1040px;margin:0 auto}
.adm-head{display:flex;align-items:center;gap:12px;background:var(--navy);color:#fff;border-radius:12px;padding:14px 18px}
.adm-logo{width:25px;height:25px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:6px;flex:0 0 auto}
.adm-head-t{line-height:1.15}
.adm-head-title{font-weight:700;font-size:16px}
.adm-head-sub{font-size:12px;color:#C7D2FE}
.adm-who{margin-left:auto;font-size:13px;color:#C7D2FE}
.adm-tabs{display:flex;flex-wrap:wrap;gap:4px;margin:14px 0 0;border-bottom:1px solid var(--line)}
.atab{padding:9px 14px;font-size:14px;color:var(--muted);text-decoration:none;border-bottom:2px solid transparent;margin-bottom:-1px}
.atab:hover{color:var(--navy)}
.atab.on{color:var(--navy);font-weight:600;border-bottom-color:var(--amber)}
.adm-flash{margin:12px 0 0;padding:9px 13px;border-radius:8px;font-size:13px}
.adm-flash--ok{background:#DCFCE7;color:#166534}
.adm-flash--err{background:#FEE2E2;color:var(--err)}
.adm-panel{padding:16px 0}
.adm-users{display:grid;grid-template-columns:248px 1fr;gap:18px;align-items:start}
.adm-rail{display:flex;flex-direction:column;gap:4px}
.adm-railnew{text-align:center;margin-bottom:6px}
.urow{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:9px;text-decoration:none;color:var(--ink);border:1px solid transparent}
.urow:hover{background:var(--line-2)}
.urow.on{background:#EEF2FB;border-color:#C7D2FE}
.ini{width:30px;height:30px;border-radius:50%;background:var(--navy);color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.urow-t{display:flex;flex-direction:column;min-width:0;flex:1}
.urow-name{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.urow-name.off{color:var(--faint)}
.urow-sub{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dot{width:8px;height:8px;border-radius:50%;flex:0 0 auto}
.adm-editor{min-width:0}
.adm-editor-head{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.adm-editor-title{font-size:18px;font-weight:700;color:var(--ink)}
.ubadge{font-size:11px;font-weight:700;padding:3px 9px;border-radius:999px}
.adm-grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.adm-grid3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}
.al{display:block;font-size:12px;font-weight:600;color:var(--muted);margin:0 0 4px}
.ai{width:100%;box-sizing:border-box;padding:8px 10px;border:1px solid var(--line);border-radius:8px;font-size:14px;color:var(--ink);background:#fff}
.ai:focus{outline:none;border-color:var(--navy);box-shadow:0 0 0 3px rgba(30,58,138,.12)}
.dim{font-weight:400;color:var(--faint);font-size:12px}
.adm-inline{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.chk{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--ink);background:var(--line-2);border:1px solid var(--line);border-radius:999px;padding:5px 11px;cursor:pointer}
.chk input{accent-color:var(--navy)}
.adm-card{margin-top:14px;border:1px solid var(--line);border-radius:11px;padding:14px}
.adm-card-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.sub{font-size:13px;font-weight:600;color:var(--ink);margin:0 0 10px}
.adm-tbl{width:100%;border-collapse:collapse;font-size:13px}
.ath{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);font-weight:700;padding:6px 8px;border-bottom:1px solid var(--line)}
.atd{padding:7px 8px;border-bottom:1px solid var(--line-2);vertical-align:middle}
.adm-add{font-size:12px;font-weight:600;color:var(--navy);background:#EEF2FB;border:1px solid #C7D2FE;border-radius:8px;padding:6px 11px;cursor:pointer}
.adm-add:hover{background:#E0E8FB}
.adm-primary{font-size:12px;font-weight:700;color:var(--amber-ink)}
.adm-actions{margin-top:18px;display:flex;justify-content:flex-end}
.btnp{display:inline-block;background:var(--navy);color:#fff;border:0;border-radius:9px;padding:10px 20px;font-size:14px;font-weight:600;cursor:pointer;text-decoration:none}
.btnp:hover{background:var(--navy-2)}
.btn-secondary{display:inline-block;background:#fff;color:var(--navy);border:1px solid var(--line);border-radius:9px;padding:9px 16px;font-size:13.5px;font-weight:600;cursor:pointer}
.btn-secondary:hover{background:#F8FAFC}
.btn-secondary:disabled{opacity:.5;cursor:not-allowed}
.btn-danger{display:inline-block;background:#B42318;color:#fff;border:0;border-radius:9px;padding:9px 16px;font-size:13.5px;font-weight:600;cursor:pointer}
.btn-danger:hover{background:#912018}
.adm-danger{border:1px solid #FECACA;background:#FEF2F2}
.adm-onpay-card{border:1px solid var(--line);border-radius:10px;padding:12px}
.adm-onpay-h{font-size:13px;font-weight:700;color:var(--navy);margin-bottom:8px}
.adm-reopen{display:flex;flex-wrap:wrap;align-items:center;gap:10px;background:#FEF9EC;border:1px solid #FCE8B6;border-radius:10px;padding:11px 13px;margin:12px 0}
.adm-row-new{background:#FBFCFE}
@media(max-width:760px){.adm-users{grid-template-columns:1fr}.adm-grid2,.adm-grid3{grid-template-columns:1fr}}

/* ---- auth: reset/notice/turnstile additions ---- */
.auth-note{background:#DCFCE7;color:#166534;border-radius:8px;padding:9px 12px;font-size:13px;margin:0 0 12px}
.auth-sub{font-size:13px;color:var(--muted);margin:0 0 14px}
.auth-alt{margin:14px 0 0;font-size:13px;text-align:center}
.auth-alt a{color:var(--navy);text-decoration:none;font-weight:600}
.auth-alt a:hover{text-decoration:underline}
.auth-turnstile{margin:4px 0 12px;min-height:65px}

/* ===== Slice 4: supervisor approvals + review + returned card ===== */
.sup-head{display:flex;align-items:center;gap:10px;margin-top:6px}
.sup-count{font-size:12px;font-weight:600;background:var(--amber-bg);color:var(--amber-ink);padding:3px 11px;border-radius:20px}
.sup-row{background:#fff;border:1px solid #D8E2E8;border-radius:11px;padding:13px 15px;display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:10px}
.sup-row-main{flex:1;min-width:180px}
.sup-row-name{font-size:15px;font-weight:600;color:#1E293B}
.sup-row-meta{font-size:12px;color:#64748B;margin-top:3px}
.sup-late{color:#B45309;font-weight:600}
.sup-wait{color:#64748B}
.sup-row-nums{display:flex;gap:18px}
.sup-num{display:flex;flex-direction:column;align-items:flex-end;min-width:54px}
.sup-num-v{font-size:15px;font-weight:600;color:#1E293B}
.sup-num-l{font-size:11px;color:#94A3B8}

.rev-wrap{max-width:760px;margin:0 auto}
.rev-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.rev-status{font-size:11px;font-weight:600;padding:3px 10px;border-radius:20px;background:#EAF1F4;color:#4A606E}
.rev-status--submitted{background:#FEF3C7;color:#92400E}
.rev-status--approved{background:#DCFCE7;color:#166534}
.rev-status--draft{background:#EAF1F4;color:#4A606E}
.rev-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;background:#fff;border:1px solid #CBD5E1;border-radius:12px;padding:15px 17px;margin-bottom:14px}
.rev-head-l{min-width:200px}
.rev-title{font-size:18px;font-weight:600;color:#1E293B}
.rev-sub{font-size:12px;color:#64748B;margin-top:3px}
.rev-stats{display:flex;gap:18px}
.rev-stat{display:flex;flex-direction:column;align-items:flex-end}
.rev-stat-v{font-size:17px;font-weight:600;color:#1E293B}
.rev-stat-l{font-size:11px;color:#94A3B8}
.rev-stat--gross .rev-stat-v{color:#1E3A8A}
.rev-lockcap{font-size:12px;color:#64748B;background:#F1F5F9;border:1px solid #E2E8F0;border-radius:8px;padding:8px 11px;margin-bottom:14px}
.rev-card{background:#fff;border:1px solid #D8E2E8;border-radius:11px;padding:13px 15px;margin-bottom:12px}
.rev-card-h{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.rev-ent{font-size:14px;font-weight:600;color:#1E293B}
.rev-ent-st{font-size:11px;font-weight:600;color:#64748B;background:#EEF2FB;padding:1px 7px;border-radius:10px;margin-left:6px}
.rev-lic{font-size:11px;color:#94A3B8}
.rev-tbl{width:100%;border-collapse:collapse;font-size:13px}
.rev-tbl th{text-align:right;font-size:11px;font-weight:600;color:#64748B;padding:5px 8px;border-bottom:1px solid #EEF2F6}
.rev-tbl th.rev-th-day{text-align:left}
.rev-tbl td{text-align:right;padding:6px 8px;border-bottom:1px solid #F1F5F9;color:#1E293B}
.rev-tbl td.rev-td-day{text-align:left;color:#475569}
.rev-z{color:#CBD5E1}
.rev-ent-total{text-align:right;font-size:12px;color:#475569;padding-top:8px}
.rev-empty{font-size:13px;color:#94A3B8;padding:4px 2px}
.rev-decide{background:#fff;border:1px solid #CBD5E1;border-radius:12px;padding:16px 17px;margin-top:6px}
.rev-decide--done{color:#475569;font-size:13px}
.rev-decide-h{font-size:13px;font-weight:700;color:#1E293B;text-transform:uppercase;letter-spacing:.04em;margin-bottom:12px}
.rev-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.rev-box{border:1px solid #E2E8F0;border-radius:10px;padding:13px 14px;display:flex;flex-direction:column}
.rev-box-h{font-size:14px;font-weight:600;margin-bottom:4px}
.rev-box-h--ok{color:#166534}
.rev-box-h--no{color:#B91C1C}
.rev-box-p{font-size:12px;color:#64748B;margin:0 0 10px;line-height:1.5}
.rev-ta{resize:vertical;min-height:64px;font-family:inherit}
.rev-btn-no{background:#B91C1C;color:#fff;border:none;border-radius:9px;padding:10px 18px;font-size:14px;font-weight:600;cursor:pointer;margin-top:2px}
.rev-btn-no:hover{background:#991B1B}
@media (max-width:560px){.rev-grid{grid-template-columns:1fr}}

.dash-card--returned{border-color:#FCA5A5}
.dash-pill--returned{background:#FEE2E2;color:#B91C1C}
.dash-reason{margin-top:10px;background:#FEF2F2;border:1px solid #FECACA;border-radius:8px;padding:9px 11px;font-size:12px;color:#7F1D1D;line-height:1.5}
.dash-fix{background:#B91C1C;color:#fff;border:none;border-radius:8px;padding:8px 14px;font-size:13px;font-weight:600;cursor:pointer;text-decoration:none;display:inline-block}
.dash-fix:hover{background:#991B1B}
.dash-suplink{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:#1E3A8A;text-decoration:none;background:#EEF2FB;border:1px solid #C7D2FE;border-radius:9px;padding:8px 13px;margin-bottom:16px}
.dash-suplink:hover{background:#E0E7FF}

/* Caseload input (clinician-entered, L22) — compact number field in the identity tiles */
.mcase{width:68px;font-size:15px;font-weight:600;color:#1E293B;border:1px solid #CBD5E1;border-radius:6px;padding:3px 7px;background:#fff;font-family:inherit}
.mcase:focus{outline:2px solid #93C5FD;outline-offset:0;border-color:#2563EB}

/* ===== Admin user editor: optional-label hint for the credential field (name/credential split) ===== */
.al-opt{color:var(--faint); font-weight:400}

/* ===== Password visibility toggle (login + any password field that opts in) ===== */
.pw-field{position:relative; display:block}
.pw-field input{padding-right:42px}
.pw-toggle{position:absolute; top:0; right:0; height:100%; width:38px; display:flex; align-items:center; justify-content:center; padding:0; margin:0; background:transparent; border:none; cursor:pointer; color:var(--muted); border-radius:0 8px 8px 0}
.pw-toggle:hover{color:var(--navy)}
.pw-toggle:focus-visible{outline:2px solid #93C5FD; outline-offset:-2px}
.pw-toggle svg{width:18px; height:18px; display:block}
.pw-toggle svg[hidden]{display:none}

/* ===== Header help menu (user guides) — no-JS <details> dropdown ===== */
.onpay-help{position:relative}
.onpay-help>summary{list-style:none; cursor:pointer; color:var(--navy); font-size:13px; font-weight:500; padding:3px 7px; border-radius:6px; user-select:none}
.onpay-help>summary::-webkit-details-marker{display:none}
.onpay-help>summary::marker{content:""}
.onpay-help>summary::after{content:"\25BE"; font-size:9px; margin-left:5px; vertical-align:1px; color:var(--faint)}
.onpay-help>summary:hover{background:var(--page)}
.onpay-help[open]>summary{background:var(--page)}
.onpay-help-menu{position:absolute; right:0; top:calc(100% + 7px); min-width:178px; background:#fff; border:1px solid var(--line); border-radius:9px; box-shadow:0 8px 22px rgba(15,23,42,.16); padding:6px; z-index:60}
.onpay-help-menu a{display:block; padding:8px 10px; border-radius:6px; color:var(--ink); text-decoration:none; font-size:13.5px; white-space:nowrap}
.onpay-help-menu a:hover{background:var(--page); color:var(--navy)}

/* ====================== slice 5 — payroll processing ====================== */
.pay-back{display:inline-block; margin:14px 0 0; color:var(--navy); text-decoration:none; font-size:13px; font-weight:500}
.pay-back:hover{text-decoration:underline}

.pay-tabs{display:flex; gap:6px; border-bottom:1px solid var(--line); margin:6px 0 16px}
.pay-tab{display:inline-flex; align-items:center; gap:7px; padding:9px 14px; text-decoration:none; color:var(--muted); font-size:14px; font-weight:600; border-bottom:2px solid transparent; margin-bottom:-1px}
.pay-tab:hover{color:var(--navy)}
.pay-tab--active{color:var(--navy); border-bottom-color:var(--amber)}
.pay-tab-badge{background:var(--amber); color:#fff; border-radius:999px; font-size:11px; font-weight:700; padding:1px 8px; line-height:1.6}

.pay-periodbar{display:flex; align-items:center; gap:10px; margin:0 0 16px; flex-wrap:wrap}
.pay-periodbar label{font-size:13px; color:var(--muted); font-weight:600}
.pay-periodbar select{padding:7px 10px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink); font-size:13px; min-width:240px}

.pay-group{background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px 18px; margin:0 0 14px}
.pay-group-head{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:10px}
.pay-group-title{font-size:16px; font-weight:700; color:var(--navy)}
.pay-group-code{font-size:12px; font-weight:600; color:var(--faint); margin-left:6px}
.pay-group-meta{font-size:13px; color:var(--muted); margin-top:2px}

.pay-table{width:100%; border-collapse:collapse; font-size:13px}
.pay-table th{text-align:left; font-size:11px; letter-spacing:.04em; text-transform:uppercase; color:var(--faint); font-weight:700; padding:6px 8px; border-bottom:1px solid var(--line)}
.pay-table td{padding:8px; border-bottom:1px solid var(--line-2); color:var(--ink)}
.pay-table .num{text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap}
.pay-table th.num{text-align:right}
.pay-table th.st,.pay-table td.st{text-align:right; width:1%; white-space:nowrap}
.pay-table tbody tr:last-child td{border-bottom:1px solid var(--line)}

.pay-warn{margin:10px 0 0; font-size:13px; color:var(--amber-ink); background:var(--amber-bg); border:1px solid #FDE68A; border-radius:8px; padding:9px 12px}
.pay-warn a{color:var(--amber-ink); font-weight:600}
.pay-warn--block{margin:0 0 16px}
.pay-warn--block ul{margin:6px 0 8px; padding-left:18px}
.pay-warn-title{font-weight:700; margin-bottom:2px}

.pay-foot{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; padding-top:12px; border-top:1px solid var(--line-2); flex-wrap:wrap}
.pay-route{font-size:12px; color:var(--muted)}
.pay-route strong{color:var(--ink)}
.pay-actions{display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.pay-actions--dl{margin:10px 0 0}
.pay-reopen{color:var(--err); font-weight:600}
.pay-reopen:hover{text-decoration:underline}

.pay-phead{font-size:13px; font-weight:700; color:var(--navy); margin:18px 0 8px; padding-bottom:6px; border-bottom:1px solid var(--line)}
.pay-prow{display:flex; align-items:center; justify-content:space-between; gap:12px; background:#fff; border:1px solid var(--line); border-radius:10px; padding:12px 16px; margin:0 0 8px; flex-wrap:wrap}
.pay-prow-main{min-width:0}

.pay-meta{display:flex; gap:10px; flex-wrap:wrap; margin:6px 0 16px}
.pay-meta-cell{flex:1 1 160px; background:var(--employer-tile); border:1px solid var(--line-2); border-radius:10px; padding:10px 12px}
.pay-meta-cell span{display:block; font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--faint); font-weight:700; margin-bottom:3px}
.pay-meta-cell strong{font-size:14px; color:var(--ink); word-break:break-word}

.pay-h{font-size:14px; font-weight:700; color:var(--navy); margin:18px 0 8px}
.pay-h .pay-sub,.pay-sub{font-size:12px; font-weight:600; color:var(--faint)}
.pay-note{font-size:12px; color:var(--muted); margin:8px 0 0}
.pay-empty{color:var(--muted); text-align:center; padding:14px}
.pay-table--export tfoot td{border-top:2px solid var(--line); border-bottom:none; padding-top:10px; color:var(--navy)}
.pay-ptid{font-size:11px; color:var(--muted); font-weight:600}
.pay-missing{color:var(--err); font-weight:600}

.pay-json{background:#0F172A; color:#E2E8F0; border-radius:10px; padding:14px 16px; overflow:auto; font-size:12.5px; line-height:1.5; margin:0; max-height:360px}
.pay-json code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; white-space:pre}

.pay-foot--export{margin-top:16px}

.pay-confirm-wrap{display:flex; justify-content:center; padding:40px 16px}
.pay-confirm{background:#fff; border:1px solid var(--line); border-radius:14px; padding:26px 28px; max-width:520px; width:100%; box-shadow:0 12px 36px rgba(15,23,42,.12)}
.pay-confirm-title{font-size:19px; font-weight:700; color:var(--navy); margin-bottom:10px}
.pay-confirm-body{font-size:14px; color:var(--ink); margin:0 0 14px}
.pay-confirm-chip{display:inline-block; background:var(--blue-bg); color:var(--navy); border-radius:999px; font-size:13px; font-weight:700; padding:5px 14px; margin-bottom:14px}
.pay-confirm-note{font-size:12.5px; color:var(--muted); margin:0 0 18px}
.pay-confirm-warn{margin:0 0 18px; padding-left:18px; font-size:13px; color:var(--amber-ink)}
.pay-confirm-actions{display:flex; align-items:center; gap:10px; flex-wrap:wrap}
.pay-confirm-actions .onpay-inline-form{display:inline}

/* admin top-level nav links in the shared header (slice 5 entry point) */
.onpay-navlink{color:var(--navy); text-decoration:none; font-size:13px; font-weight:600; padding:4px 2px; border-bottom:2px solid transparent}
.onpay-navlink:hover{text-decoration:underline}
.onpay-navlink.on{border-bottom-color:var(--amber)}
