/* Bundled fonts (SIL Open Font License), latin subset — copied from Incident Reports. */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-mono-bc87d8.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-mono-a80b2c.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-mono-2137a5.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('../fonts/source-sans-3-e6c9ca.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 600 700; font-display: swap; src: url('../fonts/source-serif-4-3adec7.woff2') format('woff2'); }

/* BSE design language. Section accent: TEAL (Data & Reporting). NIGHT sidebar + PAPER surface; one breakpoint at 880px. */
:root {
  --navy:#1C5571; --steel:#2E7396; --blue:#3297CF; --sky:#A1D4EE;
  --ink:#363636; --gray:#4F4F4F; --mist:#EDEDED; --paper:#FBFCFD; --white:#FFFFFF;
  --alert:#B5491F; --night:#060D18; --night-body:#C7D4DE; --night-muted:#8FA3B5;
  --teal:#10707E; --teal-tint:#E8F3F4;
  --good-text:#2E7D4F; --good-tint:#EFF7F2;
  --watch-text:#8F5A12; --watch-tint:#FBF1E3; --watch:#E08A2B;
  --risk-tint:#FAEFEA; --neutral-tint:#F2F2F2; --hover:#F5F8FA;
  /* headcount stack parts (.hc-tone-*): the tenure steps under 5 years between --sky and --navy (CIELAB L* 82 / 68 / 52 / 34),
     the 5-year steps past it a warm ramp light -> dark (L* 88 / 76 / 64 / 52 / 40 / 27; every pair of the eleven ΔE >= 15),
     and the neutral grey for "unknown" (no start date, not mapped yet) */
  --hc-tenure-2:#6FADD2; --hc-tenure-3:#4283A6; --hc-unknown:#BDBDBD;
  --hc-tenure-5:#FDD891; --hc-tenure-6:#F5AC5B; --hc-tenure-7:#E68043; --hc-tenure-8:#C55E3B; --hc-tenure-9:#9B4333; --hc-tenure-10:#6E2A27;
  --r-sm:4px; --r-md:8px; --r-lg:12px; --r-full:999px;
  --font-sans:'Source Sans 3', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --font-mono:'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --font-serif:'Source Serif 4', Cambria, Georgia, serif;
  color-scheme: light;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{min-height:100%}
body{margin:0;background:var(--paper);color:var(--ink);font:400 15px/1.55 var(--font-sans);-webkit-text-size-adjust:100%}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.ico{width:20px;height:20px;flex:none;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.ico.s16{width:16px;height:16px}.ico.s24{width:24px;height:24px}
.mono{font-family:var(--font-mono);font-size:13px}
.tnum,.num{font-variant-numeric:tabular-nums}
.muted{color:var(--gray)}
.code{font:400 12px var(--font-mono);color:var(--gray);letter-spacing:.02em;text-transform:uppercase;margin:0}
.eyebrow{font:600 11px var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--teal);margin:0}

/* ---------- gate (sign-in, no access, fatal) on NIGHT ---------- */
.gate{min-height:100vh;background:var(--night);display:flex;align-items:center;justify-content:center;padding:32px 16px}
.gate-card{max-width:420px;width:100%;text-align:center;color:var(--night-body)}
.gate-card .seal{width:96px;height:96px;margin:0 auto 24px;display:block}
.gate-eyebrow{font:600 11px var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--blue);margin:0 0 8px}
.gate-card h1{font:700 28px/1.2 var(--font-sans);color:var(--sky);margin:0 0 16px}
.gate-card p{margin:0 0 24px}
.gate-state{display:flex;flex-direction:column;align-items:center;gap:12px;color:var(--sky);margin-bottom:12px}
.gate-state .gate-title{font-weight:600;font-size:18px;color:var(--sky);margin:0}
.gate-who{font:400 13px var(--font-mono);color:var(--night-muted)}
.gate .btn.primary{background:var(--white);border-color:var(--white);color:var(--navy)}
.gate .btn.primary:hover{background:var(--sky);border-color:var(--sky)}
.btn.ghost-dark{background:none;border-color:rgba(161,212,238,.5);color:var(--night-body)}
.btn.ghost-dark:hover{border-color:var(--sky);color:var(--sky);background:none}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:var(--r-sm);font-weight:600;font-size:15px;padding:10px 18px;min-height:44px;border:1px solid var(--navy);background:var(--white);color:var(--navy);transition:background .12s ease-out,color .12s ease-out;text-decoration:none;white-space:nowrap}
.btn:hover{background:var(--navy);color:#fff}
.btn.primary{background:var(--navy);color:#fff}
.btn.primary:hover{background:#164457}
.btn.tertiary{border-color:transparent;background:none;padding-left:0;padding-right:0}
.btn.tertiary:hover{background:none;color:var(--navy);text-decoration:underline}
.btn.big{min-height:52px;font-size:17px;padding:12px 32px}
.btn[disabled]{opacity:.45;pointer-events:none}
.back{margin:-8px 0 8px}

/* ---------- chips ---------- */
.chip{display:inline-flex;align-items:center;border-radius:var(--r-sm);border:1px solid var(--gray);background:var(--neutral-tint);color:var(--gray);font:600 11px var(--font-mono);letter-spacing:.06em;text-transform:uppercase;padding:2px 8px;white-space:nowrap}
.chip.good{border-color:var(--good-text);background:var(--good-tint);color:var(--good-text)}
.chip.watch{border-color:var(--watch-text);background:var(--watch-tint);color:var(--watch-text)}
.chip.risk{border-color:var(--alert);background:var(--risk-tint);color:var(--alert)}
.chip.info{border-color:var(--teal);background:var(--teal-tint);color:var(--teal)}
.chip .ico{width:13px;height:13px;margin-right:4px}
.chip.review-flag{margin-left:8px;vertical-align:1px}

/* ---------- shell ---------- */
.shell{min-height:100vh}
.side{width:248px;background:var(--night);color:var(--night-body);position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:20px 0 16px;z-index:20;overflow-y:auto}
.brand{display:flex;align-items:center;gap:12px;padding:0 20px 20px;border-bottom:1px solid rgba(161,212,238,.18)}
.brand img{width:40px;height:40px}
.brand b{display:block;color:var(--sky);font-weight:700;font-size:15px;line-height:1.2}
.brand span{font:500 11px var(--font-mono);letter-spacing:.08em;color:var(--night-muted);text-transform:uppercase}
/* menu density pass: 14px regular labels, 18px icons, 34px rows 2px apart (the phone menu shares these rules) */
.nav{display:flex;flex-direction:column;padding:12px 0}
.nav a{display:flex;align-items:center;gap:12px;border-left:3px solid transparent;color:var(--night-muted);padding:6px 20px 6px 17px;font-size:14px;font-weight:400;line-height:1.3;text-decoration:none;min-height:34px}
.nav a + a{margin-top:2px}
.nav a .ico{width:18px;height:18px}
.nav a:hover{color:var(--night-body)}
.nav a .badge{margin-left:auto}
.nav-head{margin:16px 20px 4px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--night-muted)}
.nav-group:first-child .nav-head{margin-top:0}
.nav a.on{color:var(--sky);border-left-color:var(--blue);background:rgba(50,151,207,.08)}
.side-foot{margin-top:auto;padding:16px 20px 0;border-top:1px solid rgba(161,212,238,.18);font-size:13px;color:var(--night-muted)}
.side-foot p{margin:0}
.side-foot b{display:block;color:var(--night-body);font-weight:600;overflow-wrap:anywhere;margin-bottom:8px}
.signout{display:inline-flex;align-items:center;gap:8px;background:none;border:0;color:var(--night-muted);padding:8px 0;font-size:13px;font-weight:600}
.signout:hover{color:var(--sky)}
.topbar{display:none}
.main{margin-left:248px;min-width:0}
.wrap{max-width:1200px;margin:0 auto;padding:32px 32px 96px}

/* ---------- page header (navy-into-sky rule, once per page) ---------- */
.page-header{padding-bottom:12px;border-bottom:3px solid var(--sky);position:relative;margin-bottom:24px}
.page-header::after{content:"";position:absolute;left:0;bottom:-3px;width:72px;height:3px;background:var(--navy)}
.page-header h1{font:700 28px/1.2 var(--font-sans);color:var(--navy);margin:4px 0 4px}
.page-header .count{margin:0;font-size:13px}

/* ---------- states ---------- */
.state{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:48px 0;color:var(--steel)}
.state p{margin:0;color:var(--gray);font-size:15px}

/* ---------- summary tiles (light variant: teal tint) ---------- */
.summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:24px}
.tile{display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:4px;background:var(--teal-tint);border:1px solid var(--teal-tint);border-radius:var(--r-md);padding:16px;min-width:0;color:var(--ink);transition:border-color .12s ease-out}
button.tile:hover{border-color:var(--teal)}
.tile.on{border-color:var(--teal);background:var(--white)}
.tile.eligible{background:var(--white);border-color:var(--mist)}
.tile .hero{font:700 36px/1.1 var(--font-serif);color:var(--teal);font-variant-numeric:tabular-nums}
.tile .bands{display:flex;flex-direction:column;margin-top:4px}
.band-line{display:flex;justify-content:space-between;gap:8px;font-size:13px;color:var(--gray);line-height:1.5}
.band-line .n{font-family:var(--font-mono);font-variant-numeric:tabular-nums;color:var(--ink)}
.tile .caption{font-size:13px;color:var(--gray)}

/* ---------- attendance flags (attendanceflags.js) ---------- */
table.flags tbody tr{cursor:pointer}
table.flags tbody tr:hover td{background:var(--hover)}
table.flags tbody tr.empty{cursor:default}
table.flags .name{display:block;color:var(--navy);font-weight:600;text-decoration:none}
table.flags .name:hover{text-decoration:underline}
table.flags td{vertical-align:top}
table.flags td.c-person{min-width:150px}
table.flags td.c-location,table.flags td.c-flag{min-width:96px}
table.flags td.c-last_review{min-width:150px;overflow-wrap:anywhere}
table.flags td.c-why{min-width:240px}
table.flags td.c-last_date{white-space:nowrap}
.attendance-msg{margin:0 0 16px}
.attendance-msg .btn{margin-left:8px}

/* ---------- filters ---------- */
.filters{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:flex-end;margin-bottom:16px}
.field{display:flex;flex-direction:column;gap:4px;min-width:0}
.field > span:first-child{font-size:13px;font-weight:600;color:var(--ink)}
.field.search{flex:1 1 260px}
.input-ico{position:relative;display:block}
.input-ico .ico{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--steel);pointer-events:none}
input[type=search],select{border:1px solid var(--mist);border-radius:var(--r-sm);background:var(--white);padding:10px 12px;font-size:15px;min-height:44px;width:100%}
input[type=search]{padding-left:36px}
select{padding-right:32px}
input[type=search]:focus,select:focus{border-color:var(--navy)}
.sort-mobile{display:none}

/* ---------- tables ---------- */
.table-wrap{background:var(--white);border:1px solid var(--mist);border-radius:var(--r-md);overflow-x:auto}
table{border-collapse:collapse;width:100%}
th{font:600 11px var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--gray);text-align:left;padding:12px 16px;border-bottom:1px solid var(--mist);white-space:nowrap;vertical-align:bottom}
td{padding:10px 16px;border-bottom:1px solid var(--mist);vertical-align:middle}
tbody tr:last-child td{border-bottom:0}
th.num,td.num{text-align:right}
tr.empty td{color:var(--gray);padding:24px 16px}
table.people th button,table.sortable th button{background:none;border:0;padding:0;font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;display:inline-flex;align-items:center;gap:4px}
table.people th button,table.sortable th button{text-align:left}
table.people th.num button,table.sortable th.num button{text-align:right;justify-content:flex-end}
table.people th button:hover,table.sortable th button:hover{color:var(--navy)}
table.people th[aria-sort] button,table.sortable th[aria-sort] button{color:var(--teal)}
table.people th[aria-sort=ascending] button::after,table.sortable th[aria-sort=ascending] button::after{content:"\2191"}
table.people th[aria-sort=descending] button::after,table.sortable th[aria-sort=descending] button::after{content:"\2193"}
table.people{table-layout:fixed}
/* the Exec Absence list: ten columns with the Likely job (Nov 11 2026; without a job column the nine share the 100%). On a desktop
   it is never narrower than 55rem (880px; the desktop block below): the name keeps ~185px, as PR #12 keeps person cells >= 150px */
table.people th.c-full_name{width:21%}
table.people th.c-likely_job_name{width:14%}
table.people th.c-service_start,table.people th.c-class_name{width:9.5%}
table.people th.c-location{width:8.5%}
table.people th.c-band,table.people th.c-absence_pct{width:9%}
table.people th.c-unplanned_days{width:7%}
table.people th.c-no_call_days{width:6.5%}
table.people th.c-pto_eligible{width:6%}
table.people td{overflow-wrap:anywhere}
.more{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:12px;font-size:13px}
table.people th,table.people td{padding-left:12px;padding-right:12px}
table.people th{white-space:normal;line-height:1.3}
table.people td.c-service_start{white-space:nowrap}
table.people tbody tr{cursor:pointer}
table.people tbody tr:hover td{background:var(--hover)}
table.people .name{display:block;color:var(--navy);font-weight:600;text-decoration:none}
table.people .name:hover{text-decoration:underline}
table.people td.c-full_name .code{font-size:11px}
/* People likely job (emp_28): the job number under the job name, the chip after it */
table.people td.c-likely_job_name .code{display:block;font-size:11px}
table.people td.c-likely_job_name .chip{margin-top:2px}
/* Likely PM (emp_67): "PM <name>" or a division after a Medium / Low job - People, the person page, Who's out, Time off */
.likely-pm{display:block;font-size:11px;color:var(--gray)}

/* ---------- person page ---------- */
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px 24px;margin:0 0 32px}
.facts div{min-width:0}
.facts dt{font:600 11px var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--gray)}
.facts dd{margin:2px 0 0;font-variant-numeric:tabular-nums}
.block{margin-bottom:32px}
.block h2{font:700 18px/1.3 var(--font-sans);color:var(--navy);margin:0 0 12px}
.rate .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.stat{background:var(--teal-tint);border-radius:var(--r-md);padding:16px;display:flex;flex-direction:column;gap:4px;min-width:0}
.stat .hero{font:700 36px/1.1 var(--font-serif);color:var(--teal);font-variant-numeric:tabular-nums}
.stat .stat-text{font-weight:700;font-size:18px;color:var(--teal);line-height:1.3;padding-top:6px}
.stat .stat-chip{padding-top:8px}
.rate .facts{margin-bottom:0}
.reasons-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border:1px solid var(--mist);border-left:3px solid var(--teal);border-radius:0 var(--r-md) var(--r-md) 0;background:var(--white);padding:12px 16px;margin-bottom:32px}
.reasons-bar p{margin:0;color:var(--gray);font-size:15px;flex:1 1 280px}
.reasons-bar.shown{background:var(--teal-tint)}
tr.reason td{background:var(--teal-tint);padding-top:8px;padding-bottom:10px}
.reason-label{display:block;font:600 11px var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--teal)}
.reason-text{margin:2px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.leftover{margin-top:12px;background:var(--teal-tint);border-radius:var(--r-md);padding:12px 16px}
.card-label{font:600 13px var(--font-mono);text-transform:uppercase;color:var(--gray);margin:0 0 8px}
.leftover-item + .leftover-item{margin-top:8px}

/* ---------- call-ins (Part B): form panel, search, lists ---------- */
.btn.small{min-height:36px;padding:6px 12px;font-size:14px}
.btn.tertiary.small{padding-left:4px;padding-right:4px}
.btn.destructive{background:var(--alert);border-color:var(--alert);color:#fff}
.btn.destructive:hover{background:#9A3D19;border-color:#9A3D19;color:#fff}
.help{font-size:13px;line-height:1.45;color:var(--gray);font-weight:400}
.nowrap{white-space:nowrap}
.sub{margin:-4px 0 12px;font-size:13px}
.panel{background:var(--white);border:1px solid var(--mist);border-radius:var(--r-md);padding:24px;margin-bottom:32px}
.panel-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-bottom:12px;margin-bottom:16px;border-bottom:1px solid var(--mist)}
.panel-head h2{font:700 18px/1.3 var(--font-sans);color:var(--navy);margin:0}
.callin-form>summary{cursor:pointer;list-style:none;min-height:44px;align-items:center}
.callin-form>summary::-webkit-details-marker{display:none}
.callin-form>summary h2::before{content:'';display:inline-block;width:8px;height:8px;margin:0 10px 2px 2px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .15s}
.callin-form:not([open])>summary h2::before{transform:rotate(-45deg)}
.callin-form:not([open])>summary{border-bottom:0;margin-bottom:0;padding-bottom:0}
.callin-form:not([open]){padding-top:12px;padding-bottom:12px}
.person-block{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-bottom:20px}
.person-block > *{width:100%}
.person-block > .btn.tertiary{width:auto}
.person-search .field{max-width:560px}
.search-status{margin:4px 0 0;font-size:13px}
.search-status:empty{display:none}
.results{list-style:none;margin:8px 0 0;padding:0;max-width:560px;max-height:320px;overflow-y:auto;border:1px solid var(--mist);border-radius:var(--r-md);background:var(--white)}
.results li + li{border-top:1px solid var(--mist)}
.result{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;text-align:left;background:none;border:0;padding:10px 16px;min-height:44px}
.result:hover{background:var(--hover)}
.who{font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.result .who{color:var(--navy)}
.meta{display:block;font:400 12px var(--font-mono);color:var(--gray);letter-spacing:.02em;overflow-wrap:anywhere}
.picked{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:560px;background:var(--teal-tint);border-radius:var(--r-md);padding:12px 16px}
.picked .who{display:block}
.picked .meta{margin-top:2px}
.picked .help{display:block;margin-top:2px}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;max-width:560px}
.grid2 .span2{grid-column:1 / -1;justify-self:start}
.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 24px;align-items:start}
.form-grid .span-all{grid-column:1 / -1}
input[type=text],input[type=tel],input[type=number],input[type=date],input[type=time],input[type=datetime-local],textarea{border:1px solid var(--mist);border-radius:var(--r-sm);background:var(--white);padding:10px 12px;font:inherit;font-size:15px;min-height:44px;width:100%;color:var(--ink)}
input[type=date],input[type=time],input[type=datetime-local]{font-variant-numeric:tabular-nums}
textarea{resize:vertical;min-height:88px;line-height:1.5}
input:focus,textarea:focus{border-color:var(--navy)}
[aria-invalid=true]{border-color:var(--alert)!important}
.seg{display:inline-flex;flex-wrap:wrap;border:1px solid var(--navy);border-radius:var(--r-sm);overflow:hidden;align-self:flex-start;max-width:100%}
.seg-btn{background:var(--white);color:var(--navy);border:0;border-left:1px solid var(--navy);padding:8px 16px;min-height:42px;font-weight:600;transition:background .12s ease-out,color .12s ease-out}
.seg-btn:first-child{border-left:0}
.seg-btn:hover{background:var(--hover)}
.seg-btn[aria-pressed=true]{background:var(--navy);color:#fff}
/* Labor hours' Staff / Period controls: one line at any width; on a phone the control takes the whole row and its buttons share it equally */
.seg-fit .seg{flex-wrap:nowrap}
.form-msg:empty{display:none}
.form-msg{margin-top:16px}
.form-msg.top{margin:0 0 16px}
.cell-stack{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.cell-stack .chip{margin:2px 0 0}
.sub-line{font-size:13px;color:var(--gray);overflow-wrap:anywhere}
.notice{display:flex;align-items:flex-start;gap:8px;border:1px solid var(--gray);border-radius:var(--r-md);background:var(--neutral-tint);color:var(--ink);padding:12px 16px}
.notice .ico{margin-top:3px}
.notice p{margin:0}
.notice p + p{margin-top:2px}
.wrap > .notice{margin-bottom:16px}
.notice.good{border-color:var(--good-text);background:var(--good-tint)}
.notice.good .ico,.notice.good p:first-child{color:var(--good-text)}
.notice.watch{border-color:var(--watch-text);background:var(--watch-tint)}
.notice.watch .ico,.notice.watch p:first-child{color:var(--watch-text);font-weight:600}
.notice.risk{border-color:var(--alert);background:var(--risk-tint)}
.notice.risk .ico,.notice.risk p{color:var(--alert)}
.notice.info{border-color:var(--mist);background:var(--white);color:var(--gray)}
.form-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:20px}
.view > .form-msg{margin:0 0 16px}

table.callins td{vertical-align:top}
table.callins td.by{font-size:13px;color:var(--gray);overflow-wrap:anywhere}
table.callins td.dates{white-space:nowrap}
table.callins td.job{min-width:160px}
table.callins td.note{min-width:180px;max-width:320px}
table.callins td.note .reason-text{margin:0}
table.callins .place{margin:4px 0 0;font-size:13px;color:var(--gray);overflow-wrap:anywhere}
/* the tables are wider than a laptop screen (.table-wrap scrolls them, and macOS hides the bar): Note / Follow-up stay
   pinned to the right edge, and Person keeps whole words at a readable width (Oct 27 2026) */
table.callins th.actions,table.callins td.actions{text-align:right;white-space:nowrap;position:sticky;right:0;background:var(--white);box-shadow:inset 1px 0 0 var(--mist)}
table.callins td.person{min-width:150px}
table.callins td.person .who{overflow-wrap:break-word}
table.callins td.actions .btn + .btn{margin-left:8px}
table.leave td{vertical-align:top}
table.leave td.by{font-size:13px;color:var(--gray);overflow-wrap:anywhere}
table.leave th.actions,table.leave td.actions{text-align:right;white-space:nowrap}
.leave-block > .form-actions{margin-top:16px}
.leave-form{margin-top:16px}
tr.confirm td{background:var(--teal-tint);padding:16px}
.confirm-box{display:flex;flex-direction:column;gap:12px;max-width:560px}
.confirm-box .form-actions,.confirm-box .form-msg{margin-top:0}

/* profile links in call-in lists (Exec only) */
a.who{color:var(--navy);text-decoration:none}
a.who:hover{text-decoration:underline}

/* ---------- Call-in history and PTO requests: filtered lists ---------- */
.list-filters{margin-bottom:8px}
.list-filters .field.date{flex:0 0 168px}
.list-filters .field.loc{flex:0 0 184px}
.list-filters .seg-btn{min-height:44px}
.filter-hint{margin:0 0 16px}
.list-msg{margin:0 0 16px}
.list-count{margin:0 0 8px;font-size:13px}
.list-count:empty{display:none}
table.history th,table.history td,table.timeoff th,table.timeoff td{padding-left:12px;padding-right:12px}
table.timeoff td{vertical-align:top}
table.history td.dates,table.timeoff td.dates{white-space:normal;min-width:104px}
.list-filters .field.search{flex:1 1 200px}

/* ---------- Export (every list): a bar right above the table, the count left, Export right ---------- */
.list-bar{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;margin:0 0 8px}
.list-bar .list-count{margin:0}
.export{display:flex;align-items:center;justify-content:flex-end;gap:8px 12px;flex-wrap:wrap;margin-left:auto}
.export-msg{font-size:13px;color:var(--alert);max-width:520px}
.export-msg:empty{display:none}

/* ---------- one person search (usability §1): did you mean, match tags, a stale index ---------- */
.match-tag{display:inline-flex;align-items:center;border:1px solid var(--mist);border-radius:var(--r-sm);background:var(--neutral-tint);color:var(--gray);font:600 10px var(--font-mono);letter-spacing:.06em;text-transform:uppercase;padding:1px 6px;margin-top:2px;white-space:nowrap}
table.people .match-tag{margin:0 0 0 8px;vertical-align:1px}
.results .results-head{padding:8px 16px;font:600 11px var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--gray);background:var(--neutral-tint)}
.search-stale{margin:4px 0 0;font-size:13px}
.search-note{display:flex;flex-direction:column;gap:2px;margin:-4px 0 16px}
.search-note p{margin:0;font-size:13px}
.search-note .search-head{font-weight:600;color:var(--ink)}

/* ---------- Today: Note on tap (usability §2) ---------- */
table.callins tr.is-open td{border-bottom-color:transparent}
tr.note-row td{padding-top:8px;padding-bottom:12px}
tr.note-row .reason-text,tr.note-row p{margin:2px 0 0}
.note-error{color:var(--alert)}

/* ---------- Call-in follow-up: the Team cell and the panel under a row (Today; History reuses both) ---------- */
td.team{min-width:150px}
tr.follow-row td{padding:16px}
.followup-panel{display:flex;flex-direction:column;gap:12px;max-width:720px}
.fu-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.fu-entry{background:var(--white);border:1px solid var(--mist);border-radius:var(--r-sm);padding:8px 12px}
.fu-head{margin:0;font-size:13px;color:var(--gray);overflow-wrap:anywhere}
.fu-kind{font:600 11px var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--teal)}
.fu-text{margin:2px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.fu-entry.is-voided .fu-body{text-decoration:line-through;color:var(--gray)}
.fu-void{margin:2px 0 0;overflow-wrap:anywhere}
.fu-actions{margin-top:4px}
.fu-none{margin:0}
.fu-forms{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.fu-form{display:flex;flex-direction:column;gap:12px;min-width:0}
.fu-form .form-actions,.followup-panel .form-msg{margin-top:0}
.fu-title{margin:0;font-weight:600;color:var(--navy)}
.fu-form .help{margin:0}
.fu-ticks{display:flex;flex-wrap:wrap;gap:4px 16px}
/* the call-in edit (callinedit.js, spec 2026-11-11 E4): the change lines above the follow-up, the form in a grid */
.callin-edit{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}
.ce-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.ce-entry{background:var(--white);border:1px solid var(--mist);border-left:3px solid var(--gray);border-radius:var(--r-sm);padding:6px 12px}
.ce-text{margin:0;overflow-wrap:anywhere}
.ce-entry .sub-line{margin:2px 0 0}
.ce-form{max-width:720px}
.ce-msg:empty{display:none}
.ce-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.ce-grid .span-all{grid-column:1 / -1}
.callin-edit > .btn{align-self:flex-start}
.fu-tick{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:15px;color:var(--ink)}
.fu-tick input{width:20px;height:20px;margin:0}
.fu-count{font:600 12px var(--font-mono);font-variant-numeric:tabular-nums;white-space:nowrap}
.fu-count.over{color:var(--alert)}
.fu-remove{max-width:none}

/* ---------- Email the team (call-in team email: the third part of the Follow-up panel, Today only) ---------- */
.fu-email{grid-column:1 / -1;min-width:0}
.fu-lines{display:flex;flex-direction:column;gap:4px}
.fu-lines:empty{display:none}
.fu-line{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;min-width:0}
.fu-line.fu-tick{justify-content:flex-start}
.fu-line-text{display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere}
.fu-results{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.fu-results:empty{display:none}
.fu-pick{min-height:44px;max-width:100%;justify-content:flex-start;text-align:left;white-space:normal;overflow-wrap:anywhere}
.fu-unpick{min-height:44px;min-width:44px;padding:0 12px}
.fu-sentbox{display:flex;flex-direction:column;gap:8px}
.fu-sentbox:empty{display:none}
.fu-sent{padding:6px 0;border-top:1px solid var(--mist);overflow-wrap:anywhere}
.fu-sent .chip{white-space:normal}
.fu-email .form-actions{display:flex;align-items:center;gap:16px}
.fu-msg:empty,.fu-confirm:empty{display:none}

/* ---------- Payroll export (usability §4) ---------- */
table.payroll th,table.payroll td{padding-left:12px;padding-right:12px}
table.payroll td{vertical-align:top}
table.payroll td.by{font-size:13px;color:var(--gray);overflow-wrap:break-word}
table.payroll td.c-name{min-width:140px}
table.payroll th.actions,table.payroll td.actions{text-align:right;white-space:nowrap}
.confirm-q{margin:0;font-weight:600;color:var(--navy)}
.payroll-confirm .help{margin:0}
.confirm-panel{background:var(--teal-tint);border-radius:var(--r-md);padding:16px;margin:0 0 12px}
.unfiled-list{display:flex;flex-direction:column;gap:8px;margin:0 0 16px}
.unfiled .btn,.unfiled .payroll-confirm{margin-top:8px}

/* ---------- PTO requests: status, flags, the decision panel ---------- */
.chip.active{border-color:var(--blue);background:#EAF4FB;color:var(--navy)}
/* a milestone anniversary (1 year and every 5): filled, so it stands out from the outlined other years (calendar.js) */
.chip.milestone{border-color:var(--navy);background:var(--navy);color:var(--white)}
.chips{display:flex;flex-wrap:wrap;gap:4px}
.list-filters .field.status{flex:0 0 184px}
table.timeoff{font-size:14px}
table.timeoff th,table.timeoff td{padding-left:6px;padding-right:6px}
table.timeoff th{white-space:normal;line-height:1.3}
table.timeoff td.mono{font-size:12px}
table.timeoff td.status{min-width:132px}
table.timeoff td.status .notify{font-size:12px;line-height:1.4;margin-top:2px}
table.timeoff td.status .outside{font-size:12px;line-height:1.4;margin-top:2px}
/* compact layout: the table fits a ~1,100 px window (771 px box) - Rate stacks, a long band chip (Codes not mapped) wraps */
table.timeoff td.rate{min-width:90px}
table.timeoff td.job{min-width:120px;max-width:200px;overflow-wrap:anywhere}
table.timeoff td.job .chip{white-space:normal}
table.timeoff .sub-line.reply{overflow-wrap:anywhere}
table.timeoff .sub-line.reply.none{color:var(--watch-text);font-weight:600}
table.timeoff td.rate .rate-line{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px}
table.timeoff td.rate .chip{white-space:normal}
table.timeoff td.rate .sub-line{font-size:12px}
table.timeoff .team-line{display:flex;align-items:flex-start;gap:6px;margin-top:6px;font-size:12px}
table.timeoff .team-line .team-label{color:var(--gray);padding-top:2px}
.outside-box{display:flex;flex-direction:column;gap:4px}
/* the Decide buttons stay pinned to the right edge of the sideways-scrolling table, as Call-ins Today's (Oct 28 2026) */
table.timeoff th.actions,table.timeoff td.actions{text-align:right;position:sticky;right:0;background:var(--white);box-shadow:inset 1px 0 0 var(--mist)}
.decide-btns{display:flex;flex-direction:column;align-items:stretch;gap:4px}
.decide-btns .btn.small{min-height:30px;padding:3px 8px;font-size:13px}
.decide-btns .btn[aria-expanded=true]{background:var(--navy);color:#fff}
table.timeoff tr.is-open td{border-bottom-color:transparent}
.decide-box{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:24px;align-items:start}
.decide-main{display:flex;flex-direction:column;gap:16px;min-width:0;max-width:560px}
.decide-main .form-actions,.decide-main .form-msg{margin-top:0}
.decide-side{display:flex;flex-direction:column;gap:12px;min-width:0}
.side-block{background:var(--white);border:1px solid var(--mist);border-radius:var(--r-md);padding:12px 16px}
.side-block > .help{margin:8px 0 0}
.flag-box{display:flex;flex-direction:column;gap:8px}
.flag-box .card-label,.flag-box .help{margin:0}
.plain-list{list-style:none;margin:0;padding:0}
.emails li{position:relative;padding-left:16px;font-size:14px;line-height:1.45}
.emails li + li{margin-top:4px}
.emails li::before{content:"";position:absolute;left:2px;top:.55em;width:6px;height:6px;border-radius:var(--r-full);background:var(--teal)}
.history-list li{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 0;border-top:1px solid var(--mist)}
.history-list li:first-child{border-top:0;padding-top:0}
.history-list li:last-child{padding-bottom:0}
.history-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.history-what{font-weight:600;font-size:14px}
.history-list .reason-text{font-size:14px}
tr.saved td{padding:8px 16px 12px}

/* ---------- manpower (spec 2026-10-22 manpower §3) ---------- */
.mix{display:flex;height:8px;min-width:80px;border-radius:var(--r-full);overflow:hidden;background:var(--mist)}
.mix span{display:block;height:100%}
.mix-fm{background:var(--navy)}.mix-jiw{background:var(--steel)}.mix-apr{background:var(--blue)}.mix-cw{background:var(--sky)}.mix-other{background:#C9CED3}
.legend{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--gray);margin:0 0 12px}
.legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:6px;vertical-align:-1px}
table.jobs{table-layout:fixed}
table.jobs th.c-job{width:34%}
table.jobs tr.job{cursor:pointer}
table.jobs tr.job:hover td{background:var(--hover)}
table.jobs tr.job.open td{background:var(--teal-tint)}
table.jobs .jobname{display:block;color:var(--navy);font-weight:600;overflow-wrap:anywhere}
table.jobs tr.crew > td{background:var(--white);padding:0 0 12px}
.crew-list{margin:0 16px 0 32px;border-left:3px solid var(--teal);padding:4px 0 4px 16px}
.crew-list .table-wrap{border:0}
.crew-list td,.crew-list th{padding:6px 12px}
.findings-list{background:var(--white);border:1px solid var(--mist);border-radius:var(--r-md)}
.finding-block + .finding-block{border-top:1px solid var(--mist)}
.finding-block .table-wrap{border:0;border-top:1px solid var(--mist);border-radius:0}
.finding{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;text-align:left;background:none;border:0;padding:16px;min-height:44px}
.finding:hover{background:var(--hover)}
.finding b{display:block;color:var(--navy)}
.finding .n{font:700 28px/1 var(--font-serif);color:var(--teal);font-variant-numeric:tabular-nums}
.timeline{position:relative;height:28px;border-radius:var(--r-sm);overflow:hidden;margin:8px 0 4px;background:var(--mist)}
.timeline span{position:absolute;top:0;height:100%;border-right:1px solid var(--white)}
.tl-axis{display:flex;justify-content:space-between;gap:8px;font:400 11px var(--font-mono);color:var(--gray);margin-bottom:16px}
.swatch{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:6px;vertical-align:-1px}
.tl-0{background:var(--navy)}.tl-1{background:var(--teal)}.tl-2{background:var(--blue)}.tl-3{background:var(--steel)}
.tl-4{background:var(--sky)}.tl-5{background:var(--night-muted)}.tl-6{background:#4F7F8C}.tl-7{background:#6BB3D6}
.assignment .facts{margin-bottom:12px}

/* full-screen menu (under 880px only) */
.top-actions{display:flex;align-items:center;gap:4px}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;background:none;border:0;color:var(--night-body);border-radius:var(--r-sm)}
.icon-btn:hover{color:var(--sky)}
.menu-overlay{display:none}

/* ---------- under 880px: top bar, stacked rows ---------- */
/* ---------- headcount ---------- */
.hc-section{margin:0 0 32px}
.hc-section h2{font:700 20px/1.3 var(--font-sans);color:var(--navy);margin:0 0 12px}
/* Job box results under the filters (Labor hours, Headcount): a rule sets them apart from the rest of the screen (James, Nov 10 2026) */
.hc-slot[data-slot="jobs-search"]:not(:empty){margin:0 0 32px;padding-bottom:8px;border-bottom:2px solid var(--navy)}
.hc-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:12px}
.hc-tile.total{background:var(--white);border-color:var(--teal)}
.hc-tile .card-label{overflow-wrap:anywhere}
.hc-chart-wrap{background:var(--white);border:1px solid var(--mist);border-radius:var(--r-md);padding:12px;max-width:760px;min-width:0}
.hc-chart{display:block;width:100%;max-width:100%;height:auto}
.hc-chart:focus{outline:none}
.hc-chart:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.hc-grid{stroke:var(--mist);stroke-width:1}
.hc-zero{stroke:var(--gray);stroke-width:1}
.hc-axis{font:400 11px var(--font-mono);fill:var(--gray)}
.hc-year{stroke:var(--gray);stroke-opacity:.25;stroke-width:1}
.hc-yearband{fill:var(--teal-tint);fill-opacity:.55}
.hc-line{stroke:var(--teal);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.hc-dot{fill:var(--teal);stroke:var(--white);stroke-width:1.5}
.hc-last{font:600 12px var(--font-mono);fill:var(--navy);paint-order:stroke;stroke:var(--white);stroke-width:4px;stroke-linejoin:round}
.hc-guide{stroke:var(--gray);stroke-width:1;stroke-dasharray:3 3}
.hc-tip{pointer-events:none}
.hc-tip rect{fill:var(--navy)}
.hc-tip text{font:500 12px var(--font-mono);fill:var(--white)}
.hc-bar-up{fill:var(--teal)}
.hc-bar-down{fill:var(--watch)}
.hc-net{stroke:var(--navy);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.hc-rowlabel{font:400 12px var(--font-sans);fill:var(--ink)}
.hc-value{font:400 11px var(--font-mono);fill:var(--gray)}
/* stack parts, coloured by what the part is (hcchart.js stackBars tone), the same in the bar and its key:
   tenure light -> dark by service (t1 <90 d .. t4 3–5 y blue, t5 5–10 y .. t10 30+ y warm), t0 no start date grey; crew a distinct colour per group, not mapped
   yet grey; p0..p5 the positional fallback. test/headcount-chart.test.js checks each set is told apart. */
.hc-part{fill:var(--part,var(--mist))}
.hc-key.hc-tone{background:var(--part,var(--mist))}
.hc-tone-t1{--part:var(--sky)}.hc-tone-t2{--part:var(--hc-tenure-2)}.hc-tone-t3{--part:var(--hc-tenure-3)}.hc-tone-t4{--part:var(--navy)}
.hc-tone-t5{--part:var(--hc-tenure-5)}.hc-tone-t6{--part:var(--hc-tenure-6)}.hc-tone-t7{--part:var(--hc-tenure-7)}
.hc-tone-t8{--part:var(--hc-tenure-8)}.hc-tone-t9{--part:var(--hc-tenure-9)}.hc-tone-t10{--part:var(--hc-tenure-10)}.hc-tone-t0{--part:var(--hc-unknown)}
.hc-tone-crew-journeyman{--part:var(--navy)}.hc-tone-crew-apprentice{--part:var(--blue)}.hc-tone-crew-helper{--part:var(--sky)}
.hc-tone-crew-limited_energy{--part:var(--watch)}.hc-tone-crew-other{--part:var(--good-text)}.hc-tone-crew-unmapped{--part:var(--hc-unknown)}
.hc-tone-p0{--part:var(--navy)}.hc-tone-p1{--part:var(--watch)}.hc-tone-p2{--part:var(--sky)}
.hc-tone-p3{--part:var(--good-text)}.hc-tone-p4{--part:var(--blue)}.hc-tone-p5{--part:var(--hc-unknown)}
/* Labor hours (labor.js): hours by class (reg teal, OT amber, DT darker amber, holiday a light band above), the eight busiest jobs j0..j7 and
   all other jobs; a pending period (payroll still arriving, "to date") is drawn hollow, Office flat hours hatched. test/labor-screen.test.js
   checks each set is told apart. */
.hc-tone-reg{--part:var(--teal)}.hc-tone-ot{--part:var(--watch)}.hc-tone-dt{--part:var(--watch-text)}.hc-tone-holiday{--part:var(--sky)}
.hc-tone-j0{--part:var(--navy)}.hc-tone-j1{--part:var(--watch)}.hc-tone-j2{--part:var(--sky)}.hc-tone-j3{--part:var(--good-text)}
.hc-tone-j4{--part:var(--blue)}.hc-tone-j5{--part:var(--alert)}.hc-tone-j6{--part:#7B5EA7}.hc-tone-j7{--part:#C9B037}.hc-tone-other{--part:var(--hc-unknown)}
.hc-part.hc-pending{fill:none;stroke:var(--part,var(--mist));stroke-width:1.5;stroke-dasharray:3 2}
.hc-line.hc-pending{stroke-dasharray:4 3}
.hc-dot.hc-hollow{fill:var(--white);stroke:var(--teal);stroke-width:2}
.hc-line2{stroke:var(--navy);stroke-width:2;stroke-dasharray:6 3;stroke-linejoin:round;stroke-linecap:round}
.hc-hatch-bg{fill:var(--white);fill-opacity:.35}
.hc-hatch-line{stroke:var(--navy);stroke-width:2;stroke-opacity:.7}
.hc-key.hc-key-hatch{background:repeating-linear-gradient(45deg,var(--navy) 0 2px,var(--white) 2px 5px);border:1px solid var(--navy)}
.hc-key.hc-key-line{height:3px;background:var(--teal)}
.hc-key.hc-key-line2{height:0;border-top:2px dashed var(--navy);background:none;border-radius:0}
/* the person page's Labor tab (personlabor.js): the two current-job lines, the stint rows that open their months, the note */
.labor-line{margin:0 0 6px;overflow-wrap:anywhere}
.labor .block{margin-bottom:32px}
.labor-note{margin:16px 0}
table.labor-stints tr.stint{cursor:pointer}
table.labor-stints tr.stint:hover td{background:var(--hover)}
table.labor-stints tr.stint.open td{background:var(--teal-tint)}
table.labor-stints tr.months > td{background:var(--white);padding:0 0 12px 32px}
table.labor-stints tr.months .table-wrap{border:0}
.hc-span{fill:var(--mist);fill-opacity:.7}
.hc-gap{font-style:italic}
.hc-key.hc-key-span{background:var(--mist);border:1px solid var(--gray)}
.hc-check{display:inline-flex;align-items:center;gap:6px;margin:0 0 8px;font-size:14px;min-height:32px}
.hc-chiprow{margin:0 0 8px}
.hc-chiprow .chip{white-space:normal}
.hc-flatband{margin:0 0 12px;padding:12px 16px;border-left:4px solid var(--navy);background:var(--teal-tint);border-radius:var(--r-sm);max-width:760px}
.hc-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hc-metric .caption{font-size:13px;margin:0}
.hc-foot{margin:8px 0 0;font-size:13px;max-width:72ch}
table.headcount td.c-month{white-space:nowrap}
/* the insight sections (Headcount insights §8): caption, headline, key, small multiples, the numbers under "Show numbers" */
.hc-section .hc-caption{margin:-6px 0 12px;font-size:14px;max-width:72ch}
.hc-headline{margin:0 0 12px;font-size:14px;max-width:760px}
.hc-note{margin:0 0 12px;font-size:14px;max-width:72ch}
.hc-legend{display:flex;flex-wrap:wrap;gap:4px 16px;list-style:none;margin:8px 0 0;padding:0;font-size:13px;color:var(--gray);max-width:760px}
.hc-legend li{display:inline-flex;align-items:center;gap:6px}
.hc-key{display:inline-block;width:12px;height:12px;border-radius:var(--r-sm)}
.hc-key-up{background:var(--teal)}.hc-key-down{background:var(--watch)}.hc-key-net{height:2px;background:var(--navy)}
.hc-warm .hc-bar-up{fill:var(--watch)}
.hc-multiples{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:12px;max-width:760px}
.hc-panel h3{font:600 14px/1.3 var(--font-sans);color:var(--navy);margin:0 0 4px;overflow-wrap:anywhere}
.hc-numbers{margin:12px 0 0;max-width:760px}
/* Hires vs terms: + opens a month's weeks (Oct 28 2026) */
.hc-month-cell{display:inline-flex;align-items:center;gap:8px}
.hc-expand{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;flex:none;border:1px solid var(--blue);border-radius:var(--r-sm);background:var(--white);color:var(--navy);font:600 16px/1 var(--font-mono);cursor:pointer}
.hc-expand:hover{background:var(--hover)}
.hc-expand:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
table.hc-table tr.hc-week td{background:var(--paper);color:var(--gray);font-size:13px}
@media (min-width:880px){table.hc-table tr.hc-week td.hc-week-label{padding-left:48px}}
.hc-numbers>summary{cursor:pointer;padding:12px 0;font:600 14px var(--font-sans);color:var(--blue)}
.hc-section .list-bar{margin:12px 0 0;max-width:760px}
@media (min-width:880px){
  .hc-numbers>summary{display:none}
  .hc-numbers .table-wrap{max-height:360px;overflow:auto}
}
.hc-link{color:inherit;text-decoration:none;border-bottom:1px solid transparent}
.hc-link:hover,.hc-link:focus-visible{color:var(--navy);border-bottom-color:currentColor}
/* Headcount by job (Nov 6 2026, hcjobs.js): the job number in the Jobs table opens the Job view */
.hc-link-btn{background:none;border:0;padding:0;font:inherit;font-weight:700;color:var(--teal);cursor:pointer;border-bottom:1px solid currentColor}
.hc-link-btn:hover,.hc-link-btn:focus-visible{color:var(--navy)}
.hc-job-view>.btn.tertiary{margin-bottom:8px}

@media (max-width:879px){
  .hc-metrics{grid-template-columns:minmax(0,1fr)}
  .side{display:none}
  .topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:20;background:var(--night);padding:calc(8px + env(safe-area-inset-top,0px)) 16px 8px}
  .top-brand{display:flex;align-items:center;gap:10px;text-decoration:none}
  .top-brand img{width:32px;height:32px}
  .top-brand b{color:var(--sky);font-weight:700}
  .topbar .signout{min-width:44px;min-height:44px;justify-content:center}
  .main{margin-left:0}
  .wrap{padding:24px 16px 64px}
  .summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rate .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
  .tile,.stat{padding:12px}
  .tile .hero,.stat .hero{font-size:28px}
  .band-line{font-size:12px;line-height:1.4}
  .filters .field{flex:1 1 calc(50% - 8px)}
  .filters .field.search{flex-basis:100%}
  .filters .field.seg-fit{flex:1 1 100%}
  .seg-fit .seg{display:flex;width:100%}
  .seg-fit .seg-btn{flex:1 1 0;padding-left:8px;padding-right:8px}
  .sort-mobile{display:flex}

  /* every table becomes a list of rows; each cell carries its label */
  .table-wrap{overflow:visible}
  .table-wrap thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .table-wrap table,.table-wrap tbody,.table-wrap tr,.table-wrap td{display:block;width:100%}
  .table-wrap tbody tr{border-bottom:1px solid var(--mist);padding:10px 16px}
  .table-wrap tbody tr:last-child{border-bottom:0}
  .table-wrap td{border:0;padding:2px 0;display:flex;justify-content:space-between;gap:16px;text-align:right}
  .table-wrap td::before{content:attr(data-label);font:600 11px var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--gray);text-align:left;padding-top:2px}
  .table-wrap tr.empty td,.table-wrap tr.reason td{display:block;text-align:left}
  .table-wrap tr.empty td::before,.table-wrap tr.reason td::before{content:none}
  .table-wrap tbody tr.reason{background:var(--teal-tint);margin-top:-1px}
  .table-wrap tr.reason td{padding:0}

  /* people: name line, then a compact grid of facts */
  table.people tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:12px;padding:12px 16px}
  /* off-screen cards skip layout and paint until scrolled near (most of a 200-row page) */
  table.people tbody tr{content-visibility:auto;contain-intrinsic-size:auto 150px}
  table.people td{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:0;text-align:left;padding:3px 0;font-size:14px;line-height:1.35;min-width:0;overflow-wrap:anywhere}
  table.people td.c-location,table.people td.c-class_name,table.people td.c-service_start{white-space:normal}
  table.people td::before{padding-top:0;font-size:10px}
  table.people td.c-full_name{grid-column:1 / -1;flex-direction:row;align-items:baseline;justify-content:flex-start;gap:8px;flex-wrap:wrap}
  table.people td.c-full_name::before{content:none}
  table.people:not(.workforce) td.c-likely_job_name{grid-column:1 / -1}
  table.people tr.empty td{grid-column:1 / -1}

  /* manpower */
  .crew-list{margin:0;border-left:0;padding:0}
  table.jobs th.c-job{width:auto}
  .table-wrap td .mix{flex:1 1 auto;max-width:60%;align-self:center}

  /* call-ins */
  .panel{padding:16px}
  .form-grid,.grid2{grid-template-columns:minmax(0,1fr);gap:16px}
  .btn.small{min-height:44px}
  .menu-overlay{display:flex;flex-direction:column;position:fixed;inset:0;z-index:40;background:var(--night);color:var(--night-body);padding:calc(8px + env(safe-area-inset-top,0px)) 0 16px;overflow-y:auto}
  .menu-overlay[hidden]{display:none!important}
  .menu-head{display:flex;align-items:center;justify-content:space-between;padding:0 8px 8px 20px;border-bottom:1px solid rgba(161,212,238,.18)}
  .menu-head b{color:var(--sky);font-weight:700}
  .menu-overlay .side-foot{margin-top:auto}
  .table-wrap tr.confirm td{display:block;text-align:left;padding:12px 0}
  .table-wrap tr.confirm td::before{content:none}
  .table-wrap tbody tr.confirm{background:var(--teal-tint);margin-top:-1px}
  table.callins td.note{flex-direction:column;align-items:flex-start;text-align:left;max-width:none;gap:2px}
  table.callins td.actions{justify-content:flex-start;gap:8px;padding-top:8px;white-space:normal;position:static;box-shadow:none}
  table.callins td.actions::before{content:none}
  table.callins td.actions .btn + .btn{margin-left:0}
  table.callins td .cell-stack{align-items:flex-end;text-align:right}
  table.callins td.dates{white-space:normal}
  table.leave td.actions{justify-content:flex-start;gap:8px;padding-top:8px;white-space:normal}
  table.leave td.actions::before{content:none}
  table.timeoff td .cell-stack{align-items:flex-end;text-align:right}
  table.timeoff td.dates{white-space:normal}
  table.history td,table.timeoff td{padding:2px 0}
  table.history td.dates,table.timeoff td.dates{min-width:0}
  .list-filters .field.date,.list-filters .field.loc,.list-filters .field.status{flex:1 1 calc(50% - 8px)}
  table.timeoff td.status{min-width:0}
  table.timeoff td.status .chips{justify-content:flex-end}
  table.timeoff td.actions{justify-content:flex-start;padding-top:8px;position:static;box-shadow:none}
  table.timeoff td.actions::before{content:none}
  .decide-btns{flex-direction:row;flex-wrap:wrap;gap:8px;width:100%}
  .decide-btns .btn.small{min-height:44px;flex:1 1 0;font-size:14px}
  .decide-box{grid-template-columns:minmax(0,1fr);gap:16px}
  .table-wrap tr.saved td{display:block;text-align:left;padding:4px 0 8px}
  .table-wrap tr.saved td::before{content:none}
  .list-filters .field.apply{flex:1 1 100%}
  table.payroll td .cell-stack,table.payroll td .chips{align-items:flex-end;justify-content:flex-end;text-align:right}
  table.payroll td{padding:2px 0}
  table.payroll td.actions{justify-content:flex-start;padding-top:8px;white-space:normal}
  table.payroll td.actions::before{content:none}
  table.people .match-tag{margin:0}
  .payroll-go{flex:1 1 100%}
  .payroll-go .btn{width:100%}
  .list-filters .field.apply .btn{width:100%}
  /* workforce: People table rows, person page, top-bar search */
  table.people.workforce td.c-work_email,table.people.workforce td.c-personal_email,table.people.workforce td.c-department{grid-column:1 / -1}
  table.people.workforce td.c-empnum{white-space:normal}
  .topbar.has-search{flex-wrap:wrap}
  .topbar.has-search .top-search{order:3;flex:1 1 100%;max-width:none}
  .top-results{max-width:none}
  .spell-dates{margin-left:0;flex-basis:100%}
  .page-actions .copy-link{min-height:44px}
}

/* ---------- % glossary (glossary.js), freshness line (freshness.js), copy link (share.js) ---------- */
.pct{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.pct-info{display:inline-flex;align-items:center;justify-content:center;min-width:24px;min-height:24px;padding:0;border:0;border-radius:var(--r-full);background:none;color:var(--steel);cursor:pointer}
.pct-info:hover,.pct-info[aria-expanded=true]{color:var(--navy)}
.pct-info .ico{width:14px;height:14px}
.pct-tip{position:fixed;z-index:40;box-sizing:border-box;max-width:320px;background:var(--white);border:1px solid var(--navy);border-radius:var(--r-md);box-shadow:0 4px 16px rgba(6,13,24,.18);padding:12px 14px;font-size:13px;line-height:1.45;color:var(--ink);font-weight:400;text-transform:none;letter-spacing:0;white-space:normal;text-align:left}
.pct-tip b{display:block;color:var(--navy);margin-bottom:2px}
.pct-tip p{margin:4px 0 0}
.pct-tip .pct-now{font-variant-numeric:tabular-nums;color:var(--teal)}
.pct-tip .pct-source{color:var(--gray);font-size:12px}
.freshness{margin:0 0 12px;font:500 12px var(--font-mono);color:var(--gray)}
.copy-link{min-height:44px}

/* ---------- People (people.js), person tabs (person.js), Overview (overview.js), top-bar search (topsearch.js) ---------- */
.page-header h1,.facts dd{overflow-wrap:anywhere}
.recent{margin:12px 0 16px}
.recent h2{font:600 11px var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--gray);margin:0 0 6px}
.recent-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 16px}
.recent-list .who{color:var(--navy);font-weight:600;text-decoration:none;overflow-wrap:anywhere}
.recent-list .who:hover{text-decoration:underline}
.bar-left{display:flex;align-items:center;gap:4px 16px;flex-wrap:wrap}
.opt-in{display:inline-flex;align-items:center;gap:8px;font-size:14px;min-height:44px}
.opt-in input{width:18px;height:18px;margin:0}
table.people.workforce{table-layout:auto}
table.people.workforce th{width:auto}
table.people.workforce td{overflow-wrap:normal}
table.people.workforce td.c-full_name{min-width:140px}
table.people.workforce td.c-work_email,table.people.workforce td.c-personal_email{min-width:150px;overflow-wrap:anywhere}
table.people.workforce td.c-full_name .code{display:block}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 0}
.page-actions{display:flex;align-items:center;justify-content:space-between;gap:4px 16px;flex-wrap:wrap;margin:0 0 8px}
.page-actions .freshness{margin:0}
.tabs{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid var(--mist);margin:0 0 24px}
.tab{background:none;border:0;border-bottom:3px solid transparent;padding:10px 16px;min-height:44px;font-weight:600;color:var(--gray)}
.tab:hover{color:var(--navy)}
a.tab{display:inline-flex;align-items:center;gap:8px;text-decoration:none}
.tab[aria-selected=true],.tab[aria-current=page]{color:var(--navy);border-bottom-color:var(--teal)}
.badge{display:inline-block;min-width:20px;padding:0 6px;border-radius:10px;background:var(--blue);color:var(--white);font-size:12px;font-weight:700;line-height:20px;text-align:center}
.badge[hidden]{display:none}
.overview .facts{margin-bottom:24px}
.spells{list-style:none;margin:0 0 12px;padding:0 0 0 16px;border-left:3px solid var(--sky)}
.spell{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;padding:8px 0}
.spell .marker{min-width:84px;justify-content:center}
.spell.rehire .marker{border-color:var(--teal);background:var(--teal-tint);color:var(--teal)}
.spell.transfer .marker{border-color:var(--steel);color:var(--steel)}
.spell-what{min-width:0;overflow-wrap:anywhere}
.spell-dates{margin-left:auto;color:var(--gray)}
.service-how{margin:8px 0 0;font-size:14px;max-width:72ch}
.top-search{position:relative;flex:1 1 320px;min-width:0;max-width:480px}
.top-results{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:30;box-sizing:border-box;max-width:480px;max-height:60vh;overflow-y:auto;background:var(--white);border:1px solid var(--mist);border-radius:var(--r-md);box-shadow:0 4px 16px rgba(6,13,24,.18);color:var(--ink)}
.top-results .search-status{margin:0;padding:8px 16px}
.top-results .results{margin:0;max-width:none;max-height:none;border:0;border-radius:0}
.top-results .result .chip{margin-top:2px}
.top-results .search-stale{margin:0;padding:8px 16px;font-size:13px}
@media (min-width:880px){
  table.people.workforce th,table.people.workforce td{padding-left:8px;padding-right:8px}
  /* the Absence list's ten columns: a narrow laptop scrolls the table inside .table-wrap instead of crushing it (a phone has cards) */
  table.people:not(.workforce){min-width:55rem}
  .topbar.has-search{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-left:248px;padding:10px 32px;background:var(--white);border-bottom:1px solid var(--mist);position:sticky;top:0;z-index:15}
  .topbar.has-search .top-brand,.topbar.has-search .top-actions{display:none}
}

/* ---------- Certifications (certs.js, credform.js): tabs as links (a.tab, shared with tabs.js), holders strip, tables, the add / correct / void dialog ---------- */
/* the Review count on the Certifications tabs (the shared .badge above is the menu / tab-bar slot) */
.tabs[aria-label="Certifications"] .badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:var(--r-full);background:var(--navy);color:#fff;font:600 12px var(--font-mono);font-variant-numeric:tabular-nums}
.cert-fresh{min-height:0}
.cert-msg:empty{display:none}
.cert-msg{margin:0 0 12px}
.license-line{margin:0 0 12px;padding:10px 12px;border:1px solid var(--mist);border-radius:var(--r-md)}
.license-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.license-detail{margin:6px 0 0;font-size:.9em}
.license-form{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}
.license-form input{min-width:14rem;flex:1 1 14rem}
.license-msg:empty{display:none}
.license-msg{margin-top:8px}
.tab-bar{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;margin:0 0 12px}
.tab-bar h2{font:700 18px/1.3 var(--font-sans);color:var(--navy);margin:0}
.holders{list-style:none;margin:0 0 12px;padding:12px 16px;display:flex;flex-wrap:wrap;gap:8px 24px;background:var(--teal-tint);border-radius:var(--r-md)}
.holders-head{flex:1 1 100%;font:600 11px var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--teal)}
.holder{display:flex;flex-direction:column;min-width:120px}
.holder .where{font-weight:600;color:var(--ink)}
.holder .n{font:400 13px var(--font-mono);color:var(--gray);font-variant-numeric:tabular-nums}
.holder.none .n{color:var(--watch-text)}
table.certs th,table.certs td{padding-left:12px;padding-right:12px}
table.certs th{white-space:normal;line-height:1.3}
table.certs td.c-expires,table.certs td.c-license_number{white-space:nowrap}
table.certs td.c-full_name{min-width:140px}
table.certs td.detail{overflow-wrap:anywhere;max-width:360px}
table.certs th.actions,table.certs td.actions{text-align:right;white-space:nowrap}
table.certs td.actions .btn{display:flex;margin-left:auto;min-height:32px}
table.certs .chips{margin:0}
table.certs{font-size:14px}
table.certs .chip{white-space:normal;line-height:1.3}
table.certs td.c-flags{min-width:150px}
table.certs td.c-tdlr_link{min-width:110px}
.cert-section{margin:32px 0 0}
.cert-section h2{font:700 18px/1.3 var(--font-sans);color:var(--navy);margin:0 0 12px}
table.certs .decide-btns{align-items:flex-end}
table.certs .ask{max-width:360px}
.history-panel{max-width:640px}
.history-panel .plain-list li{padding:0}
.history-list > li{padding:10px 0}
.history-list .plain-list{margin:2px 0 0}
.dialog-overlay{position:fixed;inset:0;z-index:50;display:flex;align-items:flex-start;justify-content:center;background:rgba(6,13,24,.55);padding:calc(24px + env(safe-area-inset-top,0px)) 16px 24px;overflow-y:auto}
.dialog{background:var(--white);border-radius:var(--r-lg);width:100%;max-width:560px;padding:24px;box-shadow:0 8px 32px rgba(6,13,24,.28)}
.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:12px;margin-bottom:16px;border-bottom:1px solid var(--mist)}
.dialog-head h2{font:700 20px/1.3 var(--font-sans);color:var(--navy);margin:0}
.icon-btn.dark{color:var(--steel)}
.icon-btn.dark:hover{color:var(--navy)}
.dialog-body{display:flex;flex-direction:column;gap:16px}
.dialog-body .grid2{max-width:none}
.dialog-body .form-msg{margin-top:0}
.dialog-actions{margin-top:20px}
select[aria-invalid=true],input[aria-invalid=true],textarea[aria-invalid=true]{border-color:var(--alert)}
@media (max-width:879px){
  table.certs tbody tr{padding:12px 16px}
  table.certs td.actions{justify-content:flex-start;flex-wrap:wrap;gap:8px;padding-top:8px;white-space:normal}
  table.certs td.actions .btn{display:inline-flex;margin-left:0;min-height:44px}
  table.certs td.actions::before{content:none}
  table.certs td .chips{justify-content:flex-end}
  table.certs td.detail{max-width:none}
  table.certs .ask{max-width:none}
  table.certs .decide-btns{flex-direction:row;align-items:stretch}
  .table-wrap tr.confirm td{display:block}
  .holders{gap:8px 16px}
  .dialog{padding:16px}
  .dialog-overlay{padding-left:8px;padding-right:8px}
  .dialog-actions .btn{flex:1 1 auto}
}

/* ---------- Attendance tab (attendance.js; Exec only) ----------
   Calendar families, from the brand palette (bse-design): the three pattern families carry the strong marks - sick NAVY,
   personal BLUE, no-call WATCH (the mark variant; amber is the one warm hue, kept for the family most worth a look) - and the
   three that never flag stay light: weather / RIP SKY, planned TEAL tint with a TEAL edge, not counted neutral with a dashed
   edge. Checked with the dataviz validator (all pairs, light): worst normal-vision dE 20.8, CVD dE 19.2. The legend, each day's
   label and the list view carry identity too, so colour is never the only channel. Protected days are hatched. */
.fam-sick{--fam:var(--navy);--fam-ink:#fff;--fam-edge:var(--navy)}
.fam-personal{--fam:var(--blue);--fam-ink:#fff;--fam-edge:var(--blue)}
.fam-nocall{--fam:var(--watch);--fam-ink:var(--ink);--fam-edge:var(--watch)}
.fam-weather{--fam:var(--sky);--fam-ink:var(--navy);--fam-edge:var(--sky)}
.fam-planned{--fam:var(--teal-tint);--fam-ink:var(--teal);--fam-edge:var(--teal)}
.fam-not_counted{--fam:var(--neutral-tint);--fam-ink:var(--gray);--fam-edge:var(--gray)}
.attendance .freshness{margin:0 0 12px}
.att-rate p{margin:0 0 4px}
.att-rate .stats{margin-bottom:12px}
.flag-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px;align-items:start}
.flag-card{background:var(--white);border:1px solid var(--mist);border-top:3px solid var(--teal);border-radius:var(--r-md);padding:16px 20px;min-width:0}
.flag-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px 12px;flex-wrap:wrap}
.flag-top h3{font:700 16px/1.3 var(--font-sans);color:var(--navy);margin:0}
.flag-why{margin:8px 0 12px}
.flag-dates-label{margin:0 0 4px}
.flag-dates{list-style:none;display:flex;flex-wrap:wrap;gap:4px;margin:0 0 16px;padding:0}
.flag-dates .chip{text-transform:none;letter-spacing:0;font-weight:500}
.flag-actions{display:flex;flex-wrap:wrap;gap:8px}
.flag-actions .btn[aria-expanded=true]{background:var(--navy);color:#fff}
.review-panel{margin-top:16px;padding-top:16px;border-top:1px solid var(--mist)}
.review-head{margin:0;font-weight:700;color:var(--navy)}
.warn-line{margin:-8px 0 0;color:var(--watch-text);font-weight:600}
table.reviews td.by{overflow-wrap:anywhere}
.cal-legend,.dow-key{list-style:none;display:flex;flex-wrap:wrap;gap:8px 16px;margin:0 0 8px;padding:0;font-size:13px;color:var(--gray)}
.cal-legend li,.dow-key li{display:inline-flex;align-items:center;gap:6px}
.cal-swatch{display:inline-block;width:14px;height:14px;border-radius:var(--r-sm);background:var(--fam);border:1px solid var(--fam-edge)}
.cal-detail{margin:0 0 16px;min-height:1.45em;font:400 13px/1.45 var(--font-mono);color:var(--ink)}
.cal-months{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:20px 16px}
.cal-month{min-width:0}
.cal-title{margin:0 0 4px;font:600 11px var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--gray)}
.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
.cal-wd{font:400 10px var(--font-mono);color:var(--gray);text-align:center}
.cal-day{display:flex;align-items:center;justify-content:center;aspect-ratio:1;min-width:0;padding:0;border:1px solid transparent;border-radius:var(--r-sm);font:500 10px var(--font-mono);font-variant-numeric:tabular-nums;color:var(--gray);background:none}
.cal-day.empty{color:#9AA5AE}
button.cal-day{background:var(--fam);color:var(--fam-ink);border-color:var(--fam-edge);cursor:pointer}
.cal-day.fam-not_counted,.cal-swatch.fam-not_counted{border-style:dashed}
.cal-day.protected,.cal-swatch.protected{background:repeating-linear-gradient(135deg,var(--fam) 0 3px,var(--white) 3px 6px);color:var(--ink);font-weight:700;border-color:var(--ink)}
button.cal-day:hover{outline:2px solid var(--steel);outline-offset:1px}
button.cal-day:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.cal-list{margin-top:16px}
.cal-list summary{cursor:pointer;color:var(--navy);font-weight:600;min-height:44px;display:flex;align-items:center}
.dow-chart{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;max-width:420px;margin:8px 0 12px}
.dow-col{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}
.dow-value{font:500 13px var(--font-mono);color:var(--ink)}
.dow-track{position:relative;width:100%;max-width:48px;height:120px;border-bottom:1px solid var(--gray)}
.dow-bar{position:absolute;left:0;right:0;bottom:0;background:var(--teal);border-radius:var(--r-sm) var(--r-sm) 0 0}
.dow-marker{position:absolute;left:-6px;right:-6px;height:2px;margin-bottom:-1px;background:var(--ink);outline:1px solid var(--paper)}
.dow-label{font:600 11px var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--gray)}
.dow-key-bar{display:inline-block;width:12px;height:12px;border-radius:var(--r-sm);background:var(--teal)}
.dow-key-marker{display:inline-block;width:16px;height:2px;background:var(--ink)}
.dow-summary{margin:0}
.leave-ranges{list-style:none;margin:8px 0 0;padding:0}
.leave-ranges li{padding:6px 0;border-bottom:1px solid var(--mist)}
@media (max-width:879px){
  .flag-cards{grid-template-columns:minmax(0,1fr)}
  .flag-card{padding:16px}
  .flag-actions .btn{flex:1 1 0}
  .cal-months{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
  .cal-day{font-size:9px}
  .dow-chart{gap:12px}
}
@media (max-width:879px){
  table.flags td.c-why{min-width:0;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:2px;text-align:left}
  .filters.af-filters .field{flex:1 1 100%}
  table.flags td.c-person{font-size:15px}
  table.flags td .cell-stack{align-items:flex-end;text-align:right}
}

/* ---------- Anniversaries & birthdays (calendar.js): the month bar, the scope note and the list ---------- */
.bday-nav{display:flex;align-items:center;gap:12px;margin:0 0 16px}
.bday-month{font:700 22px/1.2 var(--font-sans);color:var(--navy);margin:0;min-width:11ch;text-align:center}
.bday-step{min-width:44px;padding:8px 14px;font-size:20px;line-height:1}
.bday-note{margin:-4px 0 12px;font-size:13px}
.bday-fresh:empty{display:none}
table.calendar td{vertical-align:top}
table.calendar .name{color:var(--navy);font-weight:600;text-decoration:none}
table.calendar a.name:hover{text-decoration:underline}
table.calendar td.c-date{white-space:nowrap}
table.calendar .cell-stack .chip{margin-top:4px}
@media (max-width:879px){
  .bday-nav{justify-content:space-between}
  .bday-month{font-size:20px;min-width:0;flex:1 1 auto}
  table.calendar td.blank{display:none}
  table.calendar td .cell-stack{align-items:flex-end;text-align:right}
}

/* ---------- Reports (reports.js): the list, a report's parameters, the preview and the sheet row counts ---------- */
.rpt-list{display:grid;gap:12px;max-width:760px}
.rpt-card{display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--white);border:1px solid var(--mist);border-radius:var(--r-md);padding:16px 20px}
.rpt-card-text{min-width:0}
.rpt-card-text h2{font:700 18px/1.3 var(--font-sans);color:var(--navy);margin:0 0 2px}
.rpt-card-text p{margin:0;font-size:14px}
.rpt-back{display:inline-block;margin:0 0 12px;font-size:14px;color:var(--navy);text-decoration:none}
.rpt-back::before{content:"\2039\00a0"}
.rpt-back:hover{text-decoration:underline}
.rpt-params{margin-bottom:8px}
.rpt-note{margin:0 0 8px;font-size:13px}
.rpt-out{margin-top:8px}
.rpt-ran{margin:0 0 4px;font-weight:600;color:var(--ink)}
.rpt-sheet{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;font:700 18px/1.3 var(--font-sans);color:var(--navy);margin:16px 0 8px}
.rpt-asof{text-transform:none;letter-spacing:0;font-weight:500}
.rpt-sheets{list-style:none;margin:20px 0 0;padding:0;border-top:1px solid var(--mist)}
.rpt-sheets li{display:flex;align-items:center;flex-wrap:wrap;gap:4px 16px;padding:8px 0;border-bottom:1px solid var(--mist)}
.rpt-sheet-name{font-weight:600;color:var(--ink);min-width:14ch}
table.rpt-table td{vertical-align:top}
@media (max-width:879px){
  .rpt-card{flex-direction:column;align-items:stretch;padding:16px}
  table.rpt-table td.blank{display:none}
  .rpt-params .btn{flex:1 1 100%}
}

/* Time-off calendar (spec §20): counts first. The month is a 7-column grid of day buttons shaded by how many are out (lvl-0 .. lvl-4, the
   busiest day on show = 4); a day opens the day panel (people by location → job → crew). The week is a roster table, one row per person.
   Its own tcal- names: .cal-grid / .cal-day belong to the attendance profile's mini calendar (attendance.js). Time off decisions
   (spec §17): the auto-approve and metrics cards. */
.tcal-title{margin:16px 0 4px;font:600 13px var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--gray)}
.tcal-legend{margin:0 0 8px}
.tcal-head,.tcal-body{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.tcal-head div{font:600 11px var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--gray);padding:4px}
.tcal-day{min-height:88px;min-width:0;border:1px solid var(--mist);border-radius:var(--r-sm);padding:6px;display:flex;flex-direction:column;align-items:flex-start;gap:2px;background:var(--white);color:var(--ink);font:inherit;font-size:12px;text-align:left}
button.tcal-day{cursor:pointer}
button.tcal-day:hover{outline:2px solid var(--steel);outline-offset:1px}
button.tcal-day:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.tcal-day.out{background:none;border-color:transparent;color:#9AA5AE}
.tcal-day.lvl-1{background:#EEF6FB}
.tcal-day.lvl-2{background:#D3E9F6}
.tcal-day.lvl-3{background:#A1D4EE}
.tcal-day.lvl-4{background:#6DB5DD}
.tcal-day.today .tcal-date{color:var(--blue);text-decoration:underline}
.tcal-day.flagged{border-color:var(--watch-text)}
.tcal-day.on{outline:3px solid var(--navy);outline-offset:0}
.tcal-date{font:600 12px var(--font-mono)}
.tcal-total{font:700 16px/1.2 var(--font-sans);font-variant-numeric:tabular-nums}
.tcal-lines{display:flex;flex-direction:column;font-size:11px;line-height:1.3;color:var(--gray)}
.tcal-day.lvl-4 .tcal-lines{color:var(--ink)}
.tcal-holiday{font-size:11px;color:var(--gray)}
.tcal-flag{font-size:11px;font-weight:600;color:var(--watch-text)}
.tcal-flags{font-size:13px;color:var(--watch-text);margin:4px 0 8px}
.tcal-detail .card{padding:8px 12px;margin:8px 0}
.tcal-panel .card{padding:16px;margin:12px 0}
.tcal-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tcal-panel-head h3{margin:0;font-size:17px}
/* The day panel's two sections (Time off, Called in): a full-width rule and a bold heading the size of the location rows below it. */
.tcal-panel h4.tcal-section{margin:24px 0 2px;padding-top:12px;border-top:2px solid var(--navy);font:700 15px/1.3 var(--font-sans);letter-spacing:.04em;text-transform:uppercase;color:var(--ink)}
.tcal-conf{font-weight:400;opacity:.75;margin-left:.4em}
.tcal-cat{font-weight:400;opacity:.85;margin-left:.4em}
.tcal-group{border-top:1px solid var(--mist);padding:6px 0}
.tcal-group>summary{cursor:pointer;font-weight:600;padding:4px 0}
.tcal-job{margin:6px 0 6px 12px}
.tcal-job-head{font-weight:600;font-size:14px}
.tcal-crew{margin:4px 0 6px 12px}
.tcal-crew-head{font-size:13px;color:var(--gray);margin-bottom:2px}
.tcal-panel .chips{display:flex;flex-wrap:wrap;gap:4px}
.chip.outline{background:transparent}
.tcal-person{cursor:pointer;text-transform:none;letter-spacing:0;white-space:normal;text-align:left}
table.tcal-roster{width:100%;border-collapse:collapse}
table.tcal-roster th,table.tcal-roster td{padding:6px 8px}
table.tcal-roster td.who{min-width:180px}
table.tcal-roster .tcal-cell{text-align:center;width:9%;font-variant-numeric:tabular-nums}
table.tcal-roster tr.tcal-group-row th{background:var(--neutral-tint);color:var(--ink);text-transform:none;letter-spacing:0;font:600 13px var(--font-sans)}
table.tcal-roster tfoot th,table.tcal-roster tfoot td{font-weight:700;border-top:2px solid var(--mist)}
.tcal-wd{text-align:center}
.tcal-wd.on{background:var(--hover)}
.tcal-wd .tcal-holiday{display:block;text-transform:none;letter-spacing:0;font-family:var(--font-sans)}
.tcal-wd-btn{border:0;background:none;font:inherit;color:var(--blue);cursor:pointer;padding:4px;text-transform:inherit;letter-spacing:inherit}
.tcal-mark{font-weight:700}
.tcal-mark.approved{color:var(--good-text)}
.tcal-mark.pending{color:var(--steel)}
.tcal-mark.called_in{color:var(--alert)}
.auto-box,.metrics-box{padding:12px 16px;margin:12px 0}
/* the auto-approve options (emp_71): the summary, the form and its review under the switch table */
.auto-options{margin-top:16px;padding-top:12px;border-top:1px solid var(--mist)}
.auto-options h3{margin:0 0 8px}
.auto-options .plain-list li{padding:2px 0}
.auto-options-form{display:flex;flex-direction:column;gap:10px;max-width:760px;margin:8px 0}
.auto-options-form label.check{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.auto-options-form label.check input[type=number]{width:96px;min-height:36px;padding:6px 8px}
.auto-options-form .field input[type=number]{max-width:140px}
.auto-options-form input:disabled{opacity:.5}
.auto-options-confirm{margin-top:12px;padding:12px;border:1px solid var(--mist);border-radius:var(--r-sm)}
.badge-line{font-weight:600;color:var(--watch-text)}
.sub-line.facts{white-space:normal}
@media (max-width:720px){.tcal-head div{padding:2px;font-size:10px;letter-spacing:0}.tcal-head,.tcal-body{gap:2px}.tcal-day{min-height:52px;padding:4px}.tcal-lines,.tcal-day .tcal-holiday{display:none}.tcal-total{font-size:13px}}

/* ---------- Who's out (spec 2026-10-29 §6): job cards -> foreman groups -> person rows; the week's jobs x days grid; Exec's Settings panel ---------- */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.wo-bar{align-items:center;margin-bottom:12px}
.wo-step{display:flex;gap:8px}
.wo-bar .btn[data-action=settings]{margin-left:auto}
/* three filters a row until the content is wide enough for six (content = window - 248px sidebar - 64px gutters; the phone layout below takes two) */
.wo-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px;margin-bottom:20px}
@media (min-width:1312px){.wo-filters{grid-template-columns:repeat(6,minmax(0,1fr))}}
.wo-title{font:700 18px/1.3 var(--font-sans);color:var(--navy);margin:0 0 8px}
.wo-total{margin:0 0 16px}
.wo-total b{font:700 28px/1.1 var(--font-serif);color:var(--teal);margin-right:4px}
.wo-job{background:var(--white);border:1px solid var(--mist);border-radius:var(--r-md);margin-bottom:16px;overflow:hidden}
.wo-job.over{border-color:var(--watch-text)}
.wo-job-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--mist);background:var(--teal-tint)}
.wo-job.over .wo-job-head{background:var(--watch-tint);border-bottom-color:var(--watch-text)}
.wo-job-head h3{margin:0;font:700 16px/1.3 var(--font-sans);color:var(--navy);overflow-wrap:anywhere}
.wo-count{font-size:12px;flex:none}
.wo-crew{border-bottom:1px solid var(--mist)}
.wo-crew:last-child{border-bottom:0}
.wo-crew.over .wo-crew-head{background:var(--watch-tint)}
.wo-crew-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 16px}
.wo-foreman{font:600 11px var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--gray);overflow-wrap:anywhere}
.wo-people{margin:0}
.wo-person{border-top:1px solid var(--mist)}
.wo-person:first-child{border-top:0}
.wo-row{display:grid;grid-template-columns:minmax(160px,1.2fr) minmax(0,1.4fr) minmax(0,1.4fr);align-items:center;gap:8px 16px;padding:10px 16px;width:100%;text-align:left;background:none;border:0;color:inherit;min-height:44px}
.wo-row-btn:hover{background:var(--hover)}
.wo-name{font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.wo-loc{display:block;font-weight:400;font-size:12px;color:var(--gray)}
.wo-chips{display:flex;flex-wrap:wrap;gap:4px}
/* no separator characters: a wrapped line never starts with one */
.wo-meta{display:flex;flex-wrap:wrap;gap:0 16px;font-size:13px;color:var(--gray)}
.wo-meta span{white-space:nowrap}
.wo-person.muted .wo-name{font-weight:400;color:var(--gray)}
.wo-person.muted .chip{background:var(--white)}
.wo-person.is-open{background:var(--paper)}
.wo-detail{padding:4px 16px 16px;border-top:1px dashed var(--mist);background:var(--teal-tint)}
.wo-detail .facts{margin:12px 0}
.wo-facts{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
.wo-emergency{margin-top:8px}
.wo-emergency textarea{min-height:64px}
.wo-week{margin-bottom:8px}
table.wo-grid th,table.wo-grid td{padding:8px 12px}
table.wo-grid .wo-jobcol{text-align:left;min-width:180px;position:sticky;left:0;background:var(--white);text-transform:none;letter-spacing:0;font:600 14px var(--font-sans);color:var(--navy);box-shadow:inset -1px 0 0 var(--mist)}
table.wo-grid thead .wo-jobcol{font:600 11px var(--font-mono);text-transform:uppercase;letter-spacing:.06em;color:var(--gray)}
table.wo-grid tfoot td,table.wo-grid tfoot th{border-top:1px solid var(--mist);border-bottom:0;font-weight:700}
.wo-daybtn{background:none;border:0;padding:0;font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;display:inline-flex;flex-direction:column;align-items:flex-end;gap:2px;min-height:44px;justify-content:center}
.wo-daybtn:hover{color:var(--navy);text-decoration:underline}
.wo-hol{font:400 10px var(--font-sans);text-transform:none;letter-spacing:0;color:var(--gray);max-width:9ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wo-cell{min-width:44px;min-height:36px;border:1px solid var(--mist);border-radius:var(--r-sm);background:var(--white);color:var(--navy);font:600 14px var(--font-sans);font-variant-numeric:tabular-nums}
.wo-cell:hover{background:var(--hover);border-color:var(--navy)}
.wo-cell.over{border-color:var(--watch-text);background:var(--watch-tint);color:var(--watch-text)}
.wo-settings{margin-bottom:24px}
.wo-settings-panel{margin-bottom:0}
.wo-block{padding:16px 0;border-top:1px solid var(--mist)}
.wo-block:first-of-type{border-top:0;padding-top:0}
.wo-block h3{margin:0 0 12px;font:600 11px var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--gray)}
.wo-sub{margin:16px 0 8px;color:var(--gray);font-size:14px}
.wo-setting{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 12px;max-width:560px}
.wo-setting .field{flex:1 1 220px}
.wo-setting .form-msg{flex:1 1 100%;margin-top:0}
.wo-limits{display:flex;flex-direction:column;gap:16px}
table.wo-cutoffs td{vertical-align:top}
table.wo-cutoffs input[type=time]{min-width:120px}
table.wo-cutoffs .wo-actions{white-space:nowrap}
table.wo-cutoffs .form-msg{margin-top:8px;white-space:normal}
.wo-add{margin-top:16px;max-width:560px}
.wo-add-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}
.wo-add-row .field{flex:1 1 140px}
.wo-family{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 4px}
/* Who's out late calls (emp_47, spec L3 / L5 / L6): the received time on every call-in row; a late call nobody excused is a red row (left bar + risk
   tint) with the words in its badge, an excused one a neutral chip; the day summary is the view's one ALERT element; with the foreman switch off the
   day is Location -> Job -> names (.wo-loc-group) */
.wo-time{display:block;margin-top:2px;font:600 12px var(--font-mono);letter-spacing:.02em;color:var(--ink)}
.wo-person.is-late{background:var(--risk-tint);border-left:4px solid var(--alert)}
.wo-person.is-late .wo-row{padding-left:12px}
.wo-person.is-late .wo-row-btn:hover{background:var(--risk-tint)}
.wo-person.is-late:focus{outline:2px solid var(--blue);outline-offset:-2px}
.wo-late-badge{white-space:normal;line-height:1.35}
.wo-shift{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0}
.wo-shift-badge{font-weight:600}
/* the Shift column (Call-ins Today) and Who's out row: Day | Night side by side, compact */
.seg.seg-shift{flex-wrap:nowrap}
.seg.seg-shift .seg-btn{padding:4px 10px;min-height:32px;white-space:nowrap}
.wo-late-summary{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:0 0 16px;padding:10px 16px;border:1px solid var(--alert);border-left-width:4px;border-radius:var(--r-md);background:var(--risk-tint);color:var(--alert);font-weight:600}
.wo-late-summary svg{flex:none}
.wo-late-text{flex:1 1 260px}
.wo-late-jump{flex:none}
.wo-loc-group{margin-bottom:24px}
.wo-loc-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid var(--mist)}
.wo-loc-head h3{margin:0;font:600 12px var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--navy)}
/* Who's out > Digest (emp_44, Exec): the settings rows reuse .wo-setting; the recipient table, the bulk bar and the add form */
.wo-digest-panel .wo-setting+.wo-setting{margin-top:12px}
.wo-dg-test{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:16px}
.wo-dg-test .form-msg{flex:1 1 100%;margin-top:0}
table.wo-dg-table td{vertical-align:top;overflow-wrap:anywhere}
table.wo-dg-sends td.num{text-align:right;font-variant-numeric:tabular-nums}
.wo-dg-bulk,.wo-dg-scope,.wo-dg-digests,.wo-dg-kind,.wo-dg-locs{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 16px}
.wo-dg-bulk{margin-top:12px;padding:12px;border:1px solid var(--mist);border-radius:8px}
.wo-dg-bulk .card-label,.wo-dg-bulk .form-msg{flex:1 1 100%;margin:0}
.wo-dg-scope .field{flex:0 1 200px}
.wo-dg-scope input[type=text]{flex:1 1 260px;min-width:0}
.wo-dg-scope .help{flex:1 1 100%}
.wo-digest-panel textarea{width:100%;min-height:72px}
.wo-digest-panel label.check{display:inline-flex;align-items:center;gap:6px}
.wo-digest-panel section.wo-block > .wo-dg-digests,.wo-digest-panel section.wo-block > .wo-dg-scope,.wo-digest-panel section.wo-block > .wo-dg-kind{margin:12px 0}
.btn.danger{color:var(--risk-text,#b42318)}
@media (max-width:640px){.wo-dg-bulk{padding:8px}.wo-dg-scope .field{flex:1 1 100%}}
/* Call-ins Today: where a call-in came from (Phone = the phone line or system, Form = the website) and the emergency action inside Follow-up */
.chip.src-phone{border-color:var(--steel);background:var(--steel);color:var(--white)}
.chip.src-form{border-color:var(--teal);background:var(--teal-tint);color:var(--teal)}
td .cell-stack .chip.src-phone,td .cell-stack .chip.src-form{margin-top:4px}
.btn.is-told .told-mark{color:var(--good-text);font-weight:700}
.follow-row .mark-block{margin-top:12px;padding-top:12px;border-top:1px solid var(--mist)}
.follow-row .mark-box{margin-top:8px;background:var(--teal-tint);border-radius:var(--r-sm);padding:12px}
@media (max-width:879px){
  .wo-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wo-row{grid-template-columns:minmax(0,1fr)}
  .wo-bar .btn[data-action=settings]{margin-left:0}
  .wo-step{flex:1 1 100%}
  .wo-step .btn{flex:1}
  table.wo-grid .wo-jobcol{min-width:120px}
}

/* ---------- Timekeeping (timekeeping.js, ttupload.js, tttab.js, ttexports.js; Crew Time) ---------- */
.tt-panel[hidden]{display:none}
.tt-file{max-width:560px}
.tt-progress{margin:12px 0 0;max-width:560px}
.tt-progress progress{width:100%;height:12px}
.tt-fileline{margin:0 0 4px;font-weight:600;overflow-wrap:anywhere}
.tt-back{margin:0 0 8px}
/* Clearer tab page (Nov 16 2026): breadcrumb, step strip, what-next line */
.tt-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0 0 12px;font-size:14px;color:var(--gray)}
.tt-crumbs a{color:var(--steel)}
.tt-crumbs [aria-current]{color:var(--ink);font-weight:600;overflow-wrap:anywhere}
.tt-steps{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px;padding:0}
.tt-steps li{display:inline-flex;align-items:center;gap:6px;padding:4px 12px 4px 4px;border:1px solid var(--mist);border-radius:var(--r-full);background:var(--white);color:var(--gray);font-size:13px;font-weight:600}
.tt-stepno{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:var(--r-full);background:var(--neutral-tint);font:600 12px var(--font-mono)}
.tt-steps li.done{color:var(--good-text)}
.tt-steps li.done .tt-stepno{background:var(--good-tint)}
.tt-steps li.now{border-color:var(--teal);background:var(--teal-tint);color:var(--navy)}
.tt-steps li.now .tt-stepno{background:var(--teal);color:var(--white)}
.tt-next{border:1px solid var(--mist);border-left-width:4px;border-radius:var(--r-md);background:var(--white);padding:10px 16px;margin:4px 0 16px;max-width:880px}
.tt-next.good{border-color:var(--good-text);background:var(--good-tint)}
.tt-next.watch{border-color:var(--watch-text);background:var(--watch-tint)}
.tt-next.risk{border-color:var(--alert);background:var(--risk-tint)}
.tt-next p{margin:0}
.tt-nextlead{font-weight:700;font-size:16px;color:var(--navy)}
.tt-nextparts{margin-top:2px!important}
.tt-nextparts .btn{min-height:32px;text-decoration:underline;white-space:normal;text-align:left;max-width:100%}
.tt-recheck{margin-left:8px;vertical-align:middle}
.tt-testhelp{max-width:720px;margin:-8px 0 16px}
.tt-job{font-size:34px;line-height:1.15}
.tt-facts{margin-top:8px}
.tt-actions-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 16px}
.tt-actions{display:inline-flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
table.tt th,table.tt td{padding-left:12px;padding-right:12px;vertical-align:top}
table.tt td.actions{text-align:right}
table.tt tr.total td{font-weight:700}
.tt-details > summary{cursor:pointer;display:flex;align-items:center;gap:8px;min-height:44px;font:700 18px/1.3 var(--font-sans);color:var(--navy)}
.tt-details[open] > summary{margin-bottom:8px}
.tt-flaggroup{margin:0 0 16px}
.tt-flaggroup h3,.tt-diffgroup h3{font:700 15px/1.3 var(--font-sans);color:var(--navy);margin:0 0 8px}
.tt-flags{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.tt-flag{display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px 12px;padding:8px 12px;border:1px solid var(--mist);border-radius:var(--r-md);background:var(--white)}
.tt-flagtext{flex:1 1 260px;min-width:0;overflow-wrap:anywhere}
.tt-resolve{flex:1 1 100%;display:flex;flex-direction:column;gap:8px}
.tt-resolve textarea{min-height:64px}
.tt-diffgroup{margin:0 0 16px}
.field-error{margin:0;color:var(--alert);font-size:13px}
.tt-voidrow td{background:var(--neutral-tint)}
@media (max-width:640px){
  .tt-job{font-size:26px}
  .tt-actions-bar .btn{flex:1 1 100%}
  table.tt td.actions{text-align:left}
  .tt-actions{justify-content:flex-start}
}
.tt-codetools{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 8px}
.tt-codeform{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 16px;margin:8px 0}
.tt-codeform .field{display:flex;flex-direction:column;gap:4px}
.tt-headcheck{display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.tt-headcheck input,.tt-codecell input{width:20px;height:20px;margin:0}
table.tt-grid td.tt-codecell .cell-stack{display:flex;flex-direction:column;gap:4px;align-items:flex-start}
/* the PM list (pms.js; spec 2026-11-11-pm-list-design.md §5) */
.pm-body .filters,.pm-body .actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0}
.pm-body section{margin:20px 0}
.pms tr.group th{background:var(--neutral-tint);text-align:left;font-weight:600}
.pms tr.row{cursor:pointer}
.pm-preview{border:1px solid var(--mist);border-radius:var(--r-md);padding:12px 16px;margin:12px 0;background:var(--white)}
.pm-impact li{margin:4px 0}
.pm-facts{display:grid;grid-template-columns:max-content 1fr;gap:4px 16px}
.pm-facts dt{color:var(--gray)}
.chip.confirmed_exec,.chip.confirmed_by_sync,.chip.confirmed_by_hand{border-color:var(--good-text);background:var(--good-tint);color:var(--good-text)}
.chip.matched_by_name,.chip.proposed,.chip.inactive{border-color:var(--watch-text);background:var(--watch-tint);color:var(--watch-text)}
/* Badges (emp_69): header Tap badge, the badge card in its dialog, the Badge tab */
.top-actions .tap-badge{white-space:nowrap}
/* Step 3: the badge card with its certs block (badgecard.js; the #/badge view and the tap dialog). Read on a phone: one column, labels above values,
   statuses as the app's word chips (good / watch / risk) */
.badge-open{max-width:520px}
.badge-sheet{display:flex;flex-direction:column;gap:12px;max-width:520px}
.badge-name{margin:0;font-size:22px;line-height:1.25;color:var(--navy);overflow-wrap:anywhere}
.badge-facts{display:flex;flex-direction:column;gap:10px;margin:0}
.badge-fact dt{font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--gray)}
.badge-fact dd{margin:2px 0 0;font-size:16px;display:flex;align-items:center;gap:8px;overflow-wrap:anywhere}
.div-dot{display:inline-block;width:12px;height:12px;border-radius:50%;flex:none}
.badge-certs-head{margin:8px 0 0;font-size:16px;color:var(--navy)}
.badge-certs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;border-top:1px solid var(--mist)}
.badge-cert{display:flex;flex-direction:column;gap:4px;padding:10px 0;border-bottom:1px solid var(--mist)}
.badge-cert-name{font-weight:600;overflow-wrap:anywhere}
.badge-cert-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:14px;color:var(--gray)}
.badge-result{font-size:16px;font-weight:600}
.badge-tab{display:flex;flex-direction:column;gap:16px}
.badge-step{display:flex;flex-direction:column;gap:8px;max-width:480px}
/* Badge photos (photocapture.js): the Photo block on the Badge tab and its take / crop dialog. The 3:4 frame with the printed card's circle guide
   (the card shows the middle 600 x 600, round); the crop preview is the saved picture's own drawing, scaled. */
.photo-block{display:flex;flex-direction:column;gap:8px;max-width:560px}
.photo-head{margin:0;font-size:16px;color:var(--navy)}
.photo-row{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap}
.photo-pic{width:96px;height:128px;border-radius:var(--r-md);border:1px solid var(--mist);object-fit:cover;flex:none;background:#EAF4FA}
.photo-initials{display:flex;align-items:center;justify-content:center;color:var(--navy);font-weight:900;font-size:28px}
.photo-side{display:flex;flex-direction:column;gap:8px;min-width:0;flex:1 1 220px}
.photo-side p{margin:0}
.photo-dialog{max-width:440px}
.photo-frame{position:relative;width:100%;max-width:360px;aspect-ratio:3/4;margin:0 auto;overflow:hidden;border-radius:var(--r-md);background:#0B1A24}
.photo-frame video,.photo-frame canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.photo-guide{position:absolute;left:0;right:0;top:12.5%;width:100%;aspect-ratio:1;border-radius:50%;box-shadow:0 0 0 999px rgba(6,13,24,.45);outline:2px dashed rgba(255,255,255,.85);outline-offset:-2px;pointer-events:none}
.photo-crop{cursor:grab;touch-action:none}
.photo-crop:active{cursor:grabbing}
.photo-crop:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.photo-zoom{font-weight:600;font-size:14px}
.photo-dialog input[type=range]{width:100%;max-width:360px;margin:0 auto}
.photo-camera{display:flex;flex-direction:column;gap:4px;font-weight:600;font-size:14px}

/* ---------- Jobsite map (jobmap.js, #/map): full-bleed in the content area; every overlay is a flat white card (1px MIST, --r-md), no shadow ---------- */
.wrap:has(> .jm-view:not([hidden])){max-width:none;padding:0}
.wrap:has(> .jm-view:not([hidden])) > .notice{margin:16px 32px 0}
.jm-view > .page-header.jm-plain,.jm-view > .state{margin-left:32px;margin-right:32px}
.jm-view > .page-header.jm-plain{margin-top:32px}
.jm{--k:1;position:relative;height:100vh;min-height:520px;overflow:hidden;background:#F4F8FB}
.jm-present .jm{--k:1.2}
.jm-present .side,.jm-present .topbar{display:none}
.jm-present .main{margin-left:0}
.jm .jm-map{position:absolute;inset:0;width:100%;height:100%}
.jm-top{position:absolute;left:16px;top:16px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;z-index:3;pointer-events:none}
.jm-top > *{pointer-events:auto}
.jm-title{background:var(--white);border:1px solid var(--mist);border-radius:var(--r-md);padding:12px 16px}
.jm-title p{margin:0}
.jm-title .eyebrow{font-size:calc(11px*var(--k))}
.jm-week{font:700 calc(18px*var(--k))/1.3 var(--font-sans);color:var(--navy)}
.jm-week.jm-week-big{font:700 calc(40px*var(--k))/1.1 var(--font-serif);color:var(--navy);font-variant-numeric:tabular-nums}
.jm-sub{font-size:calc(13px*var(--k));color:var(--gray);font-variant-numeric:tabular-nums}
.jm-tabs,.jm-seg{display:inline-flex;background:var(--white);border:1px solid var(--mist);border-radius:var(--r-md);padding:4px;gap:4px;flex-wrap:wrap}
.jm-tabs button,.jm-seg button{border:0;background:none;border-radius:var(--r-sm);padding:6px 12px;font-size:calc(14px*var(--k));font-weight:600;color:var(--navy);min-height:32px;transition:background .12s ease-out,color .12s ease-out}
.jm-tabs button:hover,.jm-seg button:hover{background:var(--hover)}
.jm-tabs button[aria-pressed="true"],.jm-seg button[aria-pressed="true"]{background:var(--navy);color:#fff}
.jm-tools{position:absolute;right:16px;top:16px;display:flex;gap:8px;z-index:3;transition:transform .16s ease-out}
.jm:has(.jm-panel.on) .jm-tools{transform:translateX(calc(-1*(var(--jm-panel) + 16px)))}
.jm{--jm-panel:calc(344px*var(--k))}
.jm-tool{display:inline-flex;align-items:center;gap:8px;background:var(--white);border:1px solid var(--mist);border-radius:var(--r-sm);padding:6px 12px;min-height:36px;font-size:calc(14px*var(--k));font-weight:600;color:var(--navy);transition:background .12s ease-out,color .12s ease-out}
.jm-tool:hover{background:var(--hover)}
.jm-tool[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:#fff}
.jm-legend{position:absolute;left:16px;bottom:32px;z-index:3;background:var(--white);border:1px solid var(--mist);border-radius:var(--r-md);padding:12px 16px;max-width:calc(232px*var(--k));font-size:calc(13px*var(--k))}
.jm-legend p{margin:0}
.jm-legend-head{font:600 calc(11px*var(--k)) var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--gray);margin:0 0 4px}
.jm-legend-head:not(:first-child){margin-top:12px}
.jm-dots,.jm-ramp,.jm-crew{list-style:none;margin:0;padding:0}
.jm-dots li,.jm-ramp li{display:flex;align-items:center;gap:8px;line-height:1.5}
.jm-dot{width:10px;height:10px;border-radius:var(--r-full);border:1.5px solid var(--white);outline:1px solid var(--mist);flex:none}
.jm-divbtn{display:flex;align-items:center;gap:8px;width:100%;border:0;background:none;padding:1px 4px;margin-left:-4px;border-radius:var(--r-sm);text-align:left;color:var(--ink);transition:background .12s ease-out}
.jm-divbtn:hover{background:var(--hover)}
.jm-divbtn[aria-pressed="false"]{color:var(--gray);text-decoration:line-through}
.jm-divbtn[aria-pressed="false"] .jm-dot{background:var(--white);outline-color:var(--gray)}
.jm-swatch{width:16px;height:10px;border-radius:2px;flex:none}
.jm-ramp{display:grid;grid-template-columns:repeat(2,auto);gap:2px 12px;justify-content:start}
.jm-sizes{display:block}
.jm-size-text{font:400 11px var(--font-mono);fill:var(--gray)}
.jm-missing{margin-top:12px!important;padding-top:8px;border-top:1px solid var(--mist);color:var(--gray);font-size:calc(12px*var(--k));line-height:1.4}
.jm-timeline{position:absolute;left:50%;bottom:32px;transform:translateX(-50%);z-index:3;display:flex;align-items:center;gap:12px;background:var(--white);border:1px solid var(--mist);border-radius:var(--r-md);padding:8px 12px;max-width:calc(100% - 32px)}
.jm-timeline input[type=range]{width:calc(220px*var(--k));accent-color:var(--navy)}
.jm-tl-week{font:400 calc(12px*var(--k)) var(--font-mono);color:var(--gray);white-space:nowrap;min-width:calc(104px*var(--k));font-variant-numeric:tabular-nums}
.jm-play{font-size:calc(14px*var(--k))}
.jm-label{font:500 11px/1 var(--font-mono);color:var(--ink);background:var(--white);border:1px solid var(--mist);border-radius:var(--r-sm);padding:2px 4px;white-space:nowrap;pointer-events:none}
.jm-tip{position:absolute;z-index:5;pointer-events:none;background:var(--white);border:1px solid var(--mist);border-radius:var(--r-sm);padding:4px 8px;font-size:calc(13px*var(--k));color:var(--ink);white-space:nowrap;max-width:420px;overflow:hidden;text-overflow:ellipsis}
.jm-tip-code{font:500 calc(12px*var(--k)) var(--font-mono);color:var(--navy)}
.jm-tip-n{color:var(--gray);font-variant-numeric:tabular-nums}
.jm-panel{position:absolute;right:16px;top:16px;bottom:32px;width:var(--jm-panel);z-index:4;background:var(--white);border:1px solid var(--mist);border-radius:var(--r-md);padding:16px;overflow-y:auto;opacity:0;transform:translateX(24px);transition:opacity .16s ease-out,transform .16s ease-out;font-size:calc(14px*var(--k))}
.jm-panel.on{opacity:1;transform:none}
.jm-panel-head{position:relative;padding-right:40px;margin-bottom:12px}
.jm-panel-head .code{font-size:calc(12px*var(--k))}
.jm-panel-head h2{font:700 calc(18px*var(--k))/1.3 var(--font-sans);color:var(--navy);margin:2px 0 8px;overflow-wrap:anywhere}
.jm-pm{margin:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:calc(13px*var(--k))}
.chip.jm-div{background:var(--white);font-size:calc(11px*var(--k))}
.jm-close{position:absolute;right:-8px;top:-8px;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border:0;background:none;color:var(--gray);border-radius:var(--r-sm)}
.jm-close:hover{background:var(--hover);color:var(--navy)}
.jm-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:16px}
.jm-stat{background:var(--teal-tint);border-radius:var(--r-md);padding:10px 12px;display:flex;flex-direction:column;gap:2px;min-width:0}
.jm-stat .hero{font:700 calc(28px*var(--k))/1.1 var(--font-serif);color:var(--teal);font-variant-numeric:tabular-nums}
.jm-stat .caption{font-size:calc(12px*var(--k));color:var(--gray)}
.jm-stat-note{font-size:calc(11px*var(--k));color:var(--gray);font-style:italic}
.jm-stat.risk{background:var(--risk-tint)}
.jm-stat.risk .hero{color:var(--alert)}
.jm-block{margin-bottom:16px}
.jm-block-head{font:600 calc(11px*var(--k)) var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--gray);margin:0 0 8px;padding-bottom:6px;border-bottom:1px solid var(--mist)}
.jm-spark{display:block;width:100%;height:auto}
.jm-spark-axis{font:400 11px var(--font-mono);fill:var(--gray)}
.jm-spark-now{font:600 12px var(--font-mono);fill:var(--navy)}
.jm-ringbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.jm-ring-label{font-weight:600;color:var(--ink)}
.jm-ring-note{font-size:calc(12px*var(--k));color:var(--gray)}
.jm-seg{padding:2px;border-radius:var(--r-sm)}
.jm-seg button{padding:4px 10px;min-height:28px;font-size:calc(13px*var(--k))}
.jm-seg button[aria-pressed="true"]{background:var(--teal)}
.jm-share{margin:0 0 16px;background:var(--teal-tint);border-radius:var(--r-md);padding:8px 12px;font-size:calc(13px*var(--k))}
.jm-share b{font:700 calc(18px*var(--k)) var(--font-serif);color:var(--teal)}
.jm-crew li{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--mist)}
.jm-crew-name{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jm-crew-class{margin-left:auto;color:var(--gray);font-size:calc(12px*var(--k));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:45%}
.jm-crew .chip{flex:none}
.jm .atlas-map canvas:focus-visible{outline:none}
@media (max-width:879px){
  .jm{height:calc(100vh - 60px)}
  .jm-top{right:16px}
  .jm-tools{top:auto;bottom:96px;right:16px}
  .jm-legend{display:none}
  .jm-timeline{left:16px;right:16px;transform:none;bottom:16px;flex-wrap:wrap}
  .jm-timeline input[type=range]{flex:1;width:auto}
  .jm-panel{left:16px;right:16px;top:auto;bottom:16px;width:auto;max-height:60%}
  .jm:has(.jm-panel.on) .jm-tools{transform:none}
}

/* Badges Step 2 (emp_73): the card face at real size (portrait CR80) for the card printer, the Badges screen, the Badge tab's old-card choice.
   #print-cards is shown only while a badge job prints (body.printing-badges, set by badgeprint.js); the named page keeps every other print as it was. */
.print-cards{display:none}
.badge-old{display:flex;flex-wrap:wrap;gap:8px}
.list-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.badge-print{page:badge;width:2.125in;height:3.375in;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;overflow:hidden;background:#fff;color:#060D18;
  font-family:var(--font-sans);break-after:page;page-break-after:always;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.badge-print:last-child{break-after:auto;page-break-after:auto}
/* the band like the website header (James, Nov 15 2026): flat BSE Blue (the brand allows no gradient), the 18 mm white-circle logo, the name in
   white uppercase with wide letter spacing */
.bp-band{align-self:stretch;background:#3297CF;color:#fff;display:flex;align-items:center;gap:2.5mm;padding:3mm}
.bp-seal{width:18mm;height:18mm;border-radius:50%;background:#fff;padding:.6mm;box-sizing:border-box;flex:none} /* the white disc of the white-circle variant */
.bp-co{font-weight:600;font-size:11pt;line-height:1.15;letter-spacing:.12em}
.bp-co small{display:block;font-weight:600;font-size:6pt;letter-spacing:.2em;color:#fff;opacity:.85;margin-top:1.2mm}
.bp-initials{width:19mm;height:19mm;margin:3.5mm auto 2mm;border-radius:50%;border:.6mm solid #1C5571;background:#EAF4FA;color:#1C5571;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:19pt;flex:none}
.bp-initials.has-photo{padding:0;overflow:hidden;background:#fff}
.bp-initials .photo-img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.bp-name{font-weight:900;text-align:center;line-height:1.08;padding:0 3mm;max-width:100%;overflow-wrap:anywhere}
.bp-name.n1{font-size:15pt}
.bp-name.n2{font-size:12.5pt}
.bp-name.n3{font-size:10.5pt}
.bp-name.n4{font-size:8pt}
.badge-print.bp-long .bp-initials{width:13mm;height:13mm;margin:3mm auto 2mm;font-size:12pt}
.bp-trade{font-weight:600;font-size:8pt;color:#2E7396;margin-top:1.2mm;text-align:center;padding:0 3mm}
.bp-loc{font-weight:600;font-size:7.5pt;color:#4F4F4F;text-align:center}
/* the city and the division mark, one line under the EMP #; every division in one style: a map-color dot beside the same dark label */
.bp-meta{display:flex;align-items:center;justify-content:center;gap:1.5mm;flex-wrap:nowrap;white-space:nowrap;margin-top:2mm;padding:0 3mm} /* one line, always: "Corpus Christi" + "LIMITED ENERGY" fits 48 mm */
.bp-meta .bp-loc{font-size:7pt}
.bp-div{display:inline-flex;align-items:center;gap:1mm;font-weight:700;font-size:6pt;letter-spacing:.06em;color:#363636}
.bp-dot{display:inline-block;width:2.6mm;height:2.6mm;border-radius:50%;flex:none}
/* the EMP # in the brand's non-blue contrast color, soft (James, Nov 15 2026): the burnt-orange tint with orange text and a thin orange border */
.bp-emp{margin-top:2mm;font-weight:700;font-size:10.5pt;color:#B5491F;background:#FAEFEA;border:.3mm solid #B5491F;border-radius:1.5mm;padding:.8mm 2.8mm}
.bp-emp span{font-size:6pt;color:#B5491F;opacity:.8;letter-spacing:.1em;margin-right:1.5mm}
.bp-issued{margin-top:auto;align-self:stretch;text-align:right;padding:0 3mm 3mm;font-size:6pt;letter-spacing:.1em;color:#4F4F4F}
@page badge{size:2.125in 3.375in;margin:0}
@media print{
  body.printing-badges > :not(#print-cards){display:none !important}
  body.printing-badges #print-cards{display:block !important}
  body.printing-badges{margin:0;background:#fff}
}

/* ---------- System status (status.js) ---------- */
.status-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}

/* ---------- Call-in & Time off Stats (stats.js, statscharts.js; emp_85). Charts follow James's rules (Nov 15 2026): small multiples for the
   location trend (NAVY line, light GRAY dashed company average), bars NAVY with BLUE on hover, at most four coloured parts each with a pattern,
   a light-to-NAVY ramp for the heat calendar. Light stat tiles (TEAL tint). Presentation mode: body.st-present. ---------- */
.st-bar-top{gap:12px;flex-wrap:wrap}
.st-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.st-about{background:var(--white);border:1px solid var(--mist);border-radius:var(--r-md);padding:12px 16px;margin:0 0 24px}
.st-about summary{cursor:pointer;font-weight:600;color:var(--navy)}
.st-about-body{max-width:80ch;font-size:14px}
.st-about-body p{margin:8px 0}
.st-notes{margin:0 0 12px}
.st-tiles{grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));margin:0 0 32px}
.st-tile .st-sub{font-size:13px;color:var(--gray)}
.st-tile .st-change{font:500 12px var(--font-mono);color:var(--gray);padding-top:4px}
.st-multiples{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:16px 24px}
.st-multiples-small{grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr))}
.st-multiple-wrap h3,.st-breakdown h3,.st-auto h3{font:600 13px var(--font-mono);text-transform:uppercase;color:var(--gray);margin:0 0 4px;letter-spacing:.02em}
.st-breakdowns{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr));gap:24px 32px}
.st-breakdown.st-wide{grid-column:1/-1}
.st-box{width:100%;min-width:0;overflow:hidden}
.st-chart{display:block;max-width:100%;height:auto}
.st-sm-title{font:700 14px var(--font-sans);fill:var(--navy)}
.st-grid{stroke:var(--mist);stroke-width:1}
.st-axis{font:400 11px var(--font-mono);fill:var(--gray)}
.st-rowlabel{font:400 12px var(--font-sans);fill:var(--ink)}
.st-value,.st-endlabel{font:400 11px var(--font-mono);fill:var(--gray)}
.st-line{fill:none;stroke:var(--navy);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.st-avg{fill:none;stroke:var(--gray);stroke-opacity:.45;stroke-width:1.5;stroke-dasharray:4 3}
.st-dot{fill:var(--navy)}
.st-holiday{fill:var(--mist)}
.st-bar{fill:var(--navy);transition:fill .12s ease-out}
.st-barrow:hover .st-bar,.st-chart rect.st-bar:hover{fill:var(--blue)}
.st-cell{stroke:none}
.st-cell-holiday{stroke:var(--gray);stroke-width:1.5}
.st-headline{font-size:17px;margin:0 0 8px}
.st-big{font:700 28px/1.1 var(--font-serif);color:var(--teal)}
.st-auto{margin-top:16px}
.st-auto p{margin:4px 0;font-size:14px}
.st-key{display:flex;align-items:center;gap:6px}
.st-key-line,.st-key-avg{display:inline-block;width:22px;height:0;border-top:2.5px solid var(--navy);margin-left:8px}
.st-key-avg{border-top:1.5px dashed rgba(79,79,79,.6)}
.muted-fill{fill:var(--gray)}
body.st-present .side,body.st-present .topbar{display:none}
body.st-present .main{margin-left:0}
body.st-present .st-view{font-size:18px}
body.st-present .st-view .page-header h1{font-size:36px}
body.st-present .st-view .hero{font-size:48px}
body.st-present .st-view .st-about{display:none}
body.st-present .st-view .hc-section h2{font-size:24px}
/* the jobsite map's employee lookup (emp_87): a flat white card like the other overlays; hidden in presentation mode */
.jm-find{display:flex;flex-direction:column;gap:4px;width:320px;max-width:calc(100vw - 32px)}
.jm-find-input{width:100%;border:1px solid var(--mist);border-radius:var(--r-sm);background:var(--white);padding:8px 12px;font-size:calc(14px*var(--k));color:var(--ink)}
.jm-find-input:focus{border-color:var(--navy);outline:2px solid var(--blue);outline-offset:2px}
.jm-find-list{list-style:none;margin:0;padding:4px;background:var(--white);border:1px solid var(--mist);border-radius:var(--r-md);max-height:320px;overflow:auto}
.jm-find-list button{display:block;width:100%;text-align:left;border:0;background:none;border-radius:var(--r-sm);padding:6px 8px;font-size:calc(14px*var(--k));color:var(--ink);cursor:pointer}
.jm-find-list button:hover,.jm-find-list button:focus-visible{background:var(--hover)}
.jm-find-name{font-weight:600;color:var(--navy)}
.jm-find-none{padding:6px 8px;font-size:calc(13px*var(--k))}
.jm-person{position:relative;background:var(--white);border:1px solid var(--mist);border-top:3px solid var(--navy);border-radius:var(--r-md);padding:12px 40px 12px 16px}
.jm-person p{margin:0}
.jm-person .jm-close{position:absolute;right:8px;top:8px}
.jm-person-name{font-weight:700;color:var(--navy);font-size:calc(15px*var(--k))}
.jm-person-zip{margin-top:4px!important}
.jm-person-drive{margin-top:4px!important;font-size:calc(14px*var(--k));color:var(--ink)}
.jm-crew-min{flex:none;font:500 calc(12px*var(--k)) var(--font-mono);color:var(--teal);font-variant-numeric:tabular-nums}
.jm-present .jm-find,.jm-present .jm-crew-min{display:none}
/* who lives near (emp_90): the ZIP box under the lookup, the list in the side panel; TEAL is the near accent (its ZIP areas on the map) */
.jm-near-form{display:flex;align-items:center;gap:8px;background:var(--white);border:1px solid var(--mist);border-radius:var(--r-sm);padding:0 0 0 10px;color:var(--steel)}
.jm-near-form:focus-within{border-color:var(--navy);outline:2px solid var(--blue);outline-offset:2px}
.jm-near-input{flex:1;min-width:0;border:0;background:none;padding:8px 12px 8px 0;font:calc(14px*var(--k)) var(--font-mono);color:var(--ink);outline:none}
.jm-near-btn{display:inline-flex;align-items:center;gap:6px;margin:4px 0 12px}
.jm-near-back{display:inline-flex;align-items:center;gap:4px;padding-left:0;margin-top:4px}
.jm-near-count{margin-top:4px}
.jm-near-note{margin:0 0 8px;padding:8px 12px;background:var(--watch-tint,#FBF1E3);border-radius:var(--r-sm);font-size:calc(13px*var(--k));color:#8F5A12}
.jm-near-list{list-style:none;margin:0;padding:0}
.jm-near-list li{border-bottom:1px solid var(--mist)}
.jm-near-row{display:flex;align-items:center;gap:8px;width:100%;text-align:left;border:0;background:none;padding:8px 4px;cursor:pointer;color:var(--ink)}
.jm-near-row:hover,.jm-near-row:focus-visible{background:var(--hover)}
.jm-near-main{display:flex;flex-wrap:wrap;column-gap:8px;flex:1;min-width:0}
.jm-near-sub{flex-basis:100%;font-size:calc(12px*var(--k));color:var(--gray);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.badge-photo{width:96px;height:96px;margin:0 auto 12px;border-radius:50%;border:2px solid #1C5571;overflow:hidden;background:#EAF4FA}
.badge-photo .photo-img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
/* ---- Badges tap pilot: the kiosk (kiosk.js) and foreman mode (kioskforeman.js). Full screen, large type, readable at arm's length. */
.kiosk{min-height:100vh;display:flex;flex-direction:column;background:var(--navy);color:#fff;user-select:none;-webkit-user-select:none}
.kiosk-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:20px 24px}
.kiosk-title{font-size:22px;font-weight:700}
.kiosk-job{color:var(--sky);font-size:16px}
.kiosk-clock{font-size:34px;font-weight:600}
.kiosk-banner{display:flex;align-items:center;justify-content:center;gap:16px;padding:12px 16px;background:var(--watch-tint);color:var(--watch-text);font-weight:600;font-size:18px}
.kiosk-main{flex:1;display:flex;align-items:center;justify-content:center;padding:24px}
.kiosk-idle{text-align:center;color:var(--sky);font-size:30px}
.kiosk-ico{width:72px;height:72px}
.kiosk-result{display:none;text-align:center;border-radius:var(--r-lg);padding:40px 32px;min-width:min(90vw,640px)}
.kiosk-result.is-in,.kiosk-result.is-out,.kiosk-result.is-stop,.kiosk-result.is-repeat,.kiosk-result.is-saved{display:block}
.kiosk-result.is-in{background:var(--good-text)}
.kiosk-result.is-out{background:var(--blue)}
.kiosk-result.is-stop{background:var(--alert)}
.kiosk-result.is-repeat{background:var(--watch);color:var(--night)}
.kiosk-result.is-saved{background:var(--steel)}
.kiosk-big{font-size:clamp(56px,14vw,120px);font-weight:700;line-height:1.05}
.kiosk-line{font-size:clamp(22px,4vw,34px);font-weight:600;margin-top:12px}
.kiosk-foot{display:flex;justify-content:space-between;gap:16px;padding:12px 24px;font-size:16px;color:var(--sky)}
.kiosk-reader.bad{color:var(--watch)}
.kiosk-pending{background:var(--watch);color:var(--night);border-radius:var(--r-full);padding:2px 12px;font-weight:700}
.kiosk-field{position:fixed;left:-1000px;top:0;width:10px;height:10px;opacity:0}
.kiosk-start{position:fixed;inset:0;background:rgba(6,13,24,.85);color:#fff;border:0;font-size:32px;font-weight:700}
.kiosk-overlay{position:fixed;inset:0;background:var(--paper);color:var(--ink);overflow:auto;user-select:auto;-webkit-user-select:auto}
.kf{max-width:900px;margin:0 auto;padding:16px}
.kf-head{display:flex;justify-content:space-between;align-items:center;font-size:20px;margin-bottom:12px}
.kf-actions{display:flex;flex-wrap:wrap;gap:8px}
.kf-hint{margin:8px 0}
.kf-msg{min-height:24px;font-weight:600;color:var(--navy)}
.kf-list{display:flex;flex-direction:column;border-top:1px solid var(--mist)}
.kf-row{display:grid;grid-template-columns:32px 1fr auto;grid-template-areas:"box name tap" "box code code";align-items:center;gap:4px 12px;padding:12px 4px;border-bottom:1px solid var(--mist);font-size:18px}
.kf-row input{grid-area:box;width:24px;height:24px}
.kf-name{grid-area:name;font-weight:600}
.kf-tap{grid-area:tap;color:var(--gray)}
.kf-row.is-missing .kf-tap{color:var(--alert);font-weight:600}
.kf-code{grid-area:code;justify-self:start;border:1px solid var(--mist);background:var(--white);border-radius:var(--r-sm);padding:6px 10px;font:inherit;font-size:16px;min-height:44px}
.kf-tag{margin-left:8px;font-size:13px;background:var(--teal-tint);color:var(--teal);border-radius:var(--r-full);padding:1px 8px}
.kf-modal{position:fixed;inset:0;background:rgba(6,13,24,.5);display:flex;align-items:flex-start;justify-content:center;padding:24px 12px;overflow:auto}
.kf-modal-box{background:var(--white);border-radius:var(--r-lg);padding:16px;width:min(640px,100%);display:flex;flex-direction:column;gap:12px}
.kf-modal-head{display:flex;justify-content:space-between;align-items:center;font-size:18px}
.kf-modal-box input[type=search],.kf-modal-box input[type=time]{font-size:18px;padding:10px;border:1px solid var(--gray);border-radius:var(--r-sm);min-height:44px}
.kf-codes{display:flex;flex-direction:column;max-height:60vh;overflow:auto}
.kf-code-row{display:flex;gap:8px;align-items:center;border-bottom:1px solid var(--mist)}
.kf-pick{flex:1;text-align:left;background:none;border:0;border-bottom:1px solid var(--mist);padding:12px 4px;font-size:17px;min-height:48px}
.kf-pick:hover,.kf-pick:focus-visible{background:var(--hover)}
.kf-group{margin-left:8px;font-size:13px;color:var(--gray)}
@media (max-width:600px){.kiosk-head{flex-direction:column}.kiosk-clock{font-size:26px}}

/* ---- Crew sheet (crewsheet.js, crewweek.js; spec 2026-11-18-crew-sheet-demo §3): the approved demo's tokens and classes (Time/BSE-Crew-Sheet-demo.html),
   scoped under .crewsheet - the paper BSE Sign In / Out sheet redrawn as an iPad form: header block, day strip, crew-times bar, one row per person,
   a fixed Submit bar. The table scrolls inside its box on a phone. */
.crewsheet{--mist:#E3E6E9;--card:#FFFFFF;--tint:#EDF4F8;--alert:#B5491F;--risk-tint:#FAEFEA;--good:#2E7D4F;--good-tint:#EFF7F2;--watch:#8F5A12;--watch-tint:#FBF1E3;
  --hover:#F5F8FA;--on-navy:#FFFFFF;--sans:var(--font-sans);--mono:var(--font-mono);font-size:15px;line-height:1.5;padding-bottom:120px}
.crewsheet .sheet{background:var(--card);border:1px solid var(--mist);border-radius:8px;padding:20px 22px}
.crewsheet .co{text-align:center;font-size:12px;color:var(--gray);line-height:1.4;white-space:pre-wrap}
.crewsheet .co strong{color:var(--ink);font-weight:700;letter-spacing:.02em}
.crewsheet .sheet h1{margin:10px 0 14px;text-align:center;font-size:24px;font-weight:900;color:var(--navy);letter-spacing:.04em}
.crewsheet .hdr{display:grid;grid-template-columns:1fr 1fr;gap:10px 28px;padding-bottom:14px;border-bottom:3px solid var(--sky);position:relative}
.crewsheet .hdr::after{content:"";position:absolute;left:0;bottom:-3px;width:72px;height:3px;background:var(--navy)}
.crewsheet .f{display:flex;align-items:center;gap:10px;min-width:0}
.crewsheet .f label{flex:0 0 118px;font-size:13px;font-weight:700;color:var(--gray)}
.crewsheet .f .v{flex:1;min-width:0;font-weight:600}
.crewsheet .auto{font-family:var(--mono);font-size:10px;color:var(--steel);border:1px solid var(--mist);border-radius:4px;padding:1px 5px;margin-left:6px;vertical-align:2px;letter-spacing:.06em;font-weight:400}
.crewsheet select,.crewsheet input{font:inherit;color:var(--ink);background:var(--card);border:1px solid var(--mist);border-radius:4px;padding:8px 10px;min-height:42px;max-width:100%}
.crewsheet select:focus,.crewsheet input:focus,.crewsheet button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.crewsheet select:disabled,.crewsheet input:disabled{color:var(--gray);background:var(--hover)}
.crewsheet .gfb{font:inherit;font-weight:600;color:var(--ink);background:var(--card);border:1px solid var(--mist);border-radius:4px;padding:8px 10px;min-height:42px;width:100%;text-align:left;cursor:pointer}
.crewsheet .days{display:flex;gap:6px;flex-wrap:wrap;margin:16px 0 4px}
.crewsheet .day{border:1px solid var(--mist);background:var(--card);border-radius:4px;padding:6px 10px;min-width:64px;min-height:44px;text-align:center;font-size:13px;cursor:pointer;color:var(--ink)}
.crewsheet .day small{display:block;font-family:var(--mono);font-size:10px;color:var(--gray);min-height:15px}
.crewsheet .day.on{border-color:var(--navy);background:var(--tint);font-weight:700}
.crewsheet .day.done small{color:var(--good)}
.crewsheet .day:disabled{opacity:.45;cursor:not-allowed}
.crewsheet .bar{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:end;background:var(--tint);border-radius:8px;padding:12px 14px;margin:14px 0}
.crewsheet .bar .grp{display:flex;flex-direction:column;gap:4px}
.crewsheet .bar .grp span{font-size:12px;font-weight:700;color:var(--gray)}
.crewsheet .btn{font:inherit;font-weight:600;font-size:15px;border-radius:4px;padding:9px 16px;min-height:42px;cursor:pointer;border:1px solid var(--navy);background:var(--card);color:var(--navy)}
.crewsheet .btn:hover{background:var(--hover);color:var(--navy)}
.crewsheet .btn.pri{background:var(--navy);color:var(--on-navy)}
.crewsheet .btn.pri:hover{filter:brightness(1.08);background:var(--navy);color:var(--on-navy)}
.crewsheet .btn.ter{border:0;background:none;padding:9px 6px;text-decoration:underline;text-underline-offset:3px}
.crewsheet .btn:disabled{opacity:.45;cursor:not-allowed}
.crewsheet .tbl{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--mist);border-radius:8px}
/* the demo's 900 px table floor, as max-content (the rows keep one line each; the box scrolls sideways on a narrow screen) */
.crewsheet table{width:100%;border-collapse:collapse;min-width:max-content}
.crewsheet th{font-family:var(--mono);font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--gray);text-align:left;padding:10px 6px;border-bottom:1px solid var(--mist);background:var(--card);white-space:nowrap}
.crewsheet th.r{text-align:right}
.crewsheet td{padding:8px 6px;border-bottom:1px solid var(--mist);vertical-align:middle}
.crewsheet tr:last-child td{border-bottom:0}
.crewsheet tr.out td{background:var(--hover)}
.crewsheet td.num{text-align:right;font-variant-numeric:tabular-nums;font-family:var(--mono);font-size:14px}
.crewsheet .nm{font-weight:600;white-space:nowrap}
.crewsheet .nm small{display:block;font-family:var(--mono);font-size:11px;color:var(--gray);font-weight:400}
.crewsheet .fm{font-family:var(--mono);font-size:10px;color:var(--navy);border:1px solid var(--navy);border-radius:4px;padding:0 4px;margin-left:4px}
.crewsheet input.t{width:118px}
.crewsheet input.h{width:64px;text-align:right;font-family:var(--mono)}
.crewsheet select.code{width:184px;font:inherit;color:var(--ink);letter-spacing:normal;text-transform:none;margin:0}
.crewsheet .bar select.code{width:240px}
.crewsheet select.rsn{width:156px}
.crewsheet input.oth{display:block;width:156px;margin-top:4px}
.crewsheet .need{border-color:var(--alert)!important;background:var(--risk-tint)}
.crewsheet .edited{font-family:var(--mono);font-size:10px;color:var(--watch)}
.crewsheet .al{margin-top:4px;font-family:var(--mono);font-size:11px;font-weight:500;border:1px solid;border-radius:4px;padding:2px 6px;display:inline-block;white-space:normal;max-width:220px}
.crewsheet .al.callin,.crewsheet .al.late{color:var(--watch);background:var(--watch-tint)}
.crewsheet .al.pto{color:var(--steel);background:var(--tint)}
.crewsheet .al.ovr{color:var(--alert);background:var(--risk-tint)}
.crewsheet .x{border:0;background:none;color:var(--gray);font-size:20px;cursor:pointer;padding:4px 8px;min-height:40px;min-width:40px}
.crewsheet td.oc{white-space:nowrap}
.crewsheet td.oc .chk{display:inline-flex}
.crewsheet .chk{display:flex;align-items:center;gap:6px;font-size:13px;white-space:nowrap;cursor:pointer}
.crewsheet .chk input{min-height:0;width:20px;height:20px;padding:0}
.crewsheet .chk.nl{margin-top:4px;font-size:12px;color:var(--gray)}
.crewsheet .chk.nl input{width:16px;height:16px}
.crewsheet .below{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin-top:12px}
.crewsheet .legend{display:inline;margin:0;font-size:12px;color:var(--gray)}
.crewsheet .legend.lh{display:block;margin-top:10px}
.crewsheet .panel{border:1px solid var(--navy);border-radius:8px;padding:14px;margin:12px 0 0;background:var(--card)}
.crewsheet .panel h3{margin:0 0 8px;font-size:15px;color:var(--navy)}
.crewsheet .panel input.q{width:100%;max-width:360px}
.crewsheet .plist{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:6px;margin:8px 0 12px}
.crewsheet .pick{display:flex;gap:8px;align-items:center;border:1px solid var(--mist);border-radius:4px;padding:8px 10px;cursor:pointer;min-height:44px;background:var(--card);font:inherit;color:var(--ink);text-align:left}
.crewsheet .pick input{min-height:0;width:20px;height:20px;padding:0}
.crewsheet .pick small{display:block;color:var(--gray);font-size:12px}
.crewsheet .pick.off{cursor:not-allowed;color:var(--gray)}
.crewsheet .seed{margin:12px 0 0;font-size:14px;color:var(--steel);background:var(--tint);border-radius:4px;padding:8px 12px}
.crewsheet .kept{display:flex;flex-wrap:wrap;gap:10px;align-items:center;background:var(--watch-tint);color:var(--watch);border:1px solid var(--watch);border-radius:4px;padding:8px 12px;margin:12px 0}
.crewsheet .sub{position:fixed;left:248px;right:0;bottom:0;z-index:30;margin:0;font-size:15px;background:var(--card);border-top:1px solid var(--mist);padding:12px max(16px,env(safe-area-inset-right,0px)) calc(12px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
.crewsheet .sub .in{max-width:1180px;margin:0 auto;display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;justify-content:space-between}
.crewsheet .tl{display:flex;flex-direction:column;gap:2px}
.crewsheet .tot{font-family:var(--mono);font-size:13px;color:var(--gray);font-variant-numeric:tabular-nums}
.crewsheet .tot b{color:var(--ink);font-size:15px}
.crewsheet .save{font-size:12px;color:var(--gray)}
.crewsheet .save.warn{color:var(--watch);font-weight:600}
.crewsheet .msgbox{flex:1 1 280px;min-width:0}
.crewsheet .msg{font-size:14px}
.crewsheet .msg.err{color:var(--alert)}
.crewsheet .msg.ok{color:var(--good)}
.crewsheet button.msg.more{font:inherit;font-size:14px;background:none;border:0;padding:0;text-align:left;cursor:pointer;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}
.crewsheet .locked{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;background:var(--good-tint);color:var(--good);border:1px solid var(--good);border-radius:4px;padding:10px 12px;margin:12px 0}
.crewsheet .locked .btn.ter{color:var(--good);min-height:36px;padding:4px 6px}
.crewsheet .ro{font-family:var(--mono);font-size:14px}
.crewsheet .sec{margin-top:28px}
.crewsheet .sec h2{font-size:18px;color:var(--navy);margin:0 0 4px}
.crewsheet .sec p{margin:0 0 10px;color:var(--gray);font-size:14px;max-width:70ch}
.crewsheet .foot{font-size:11px;color:var(--gray);text-align:center;margin-top:16px}
.crewsheet .crewpick{margin:0 0 12px}
.crewsheet .dlg{position:fixed;inset:0;z-index:60;background:rgba(6,13,24,.5);display:flex;align-items:center;justify-content:center;padding:16px}
.crewsheet .dlg-box{background:var(--card);border-radius:8px;padding:20px 22px;width:min(480px,100%);max-height:90vh;overflow:auto}
.crewsheet .dlg-box h3{margin:0 0 10px;font-size:18px;color:var(--navy)}
.crewsheet .dlg-box .attest{font-size:17px;margin:0 0 18px}
.crewsheet .acts{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.crewsheet .probs{margin:0 0 16px;padding-left:20px}
.crewsheet .probs li{margin:4px 0}
.crewsheet .cs-status{margin:6px 0;color:var(--gray)}
.crewsheet .cs-status.is-warn{color:var(--watch);font-weight:600}
.crewsheet .cs-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.crewsheet .cw-nav{display:flex;align-items:center;gap:12px;margin:8px 0}
/* the foreman's screen takes the demo's 16 px gutters (the table needs the width on an iPad) */
.wrap:has(> .view:not([hidden]) > .crewsheet){max-width:1180px;padding-left:16px;padding-right:16px}
@media (max-width:879px){.crewsheet .sub{left:0}}
/* timesheet.bigstateelectric.com (host.js; spec 2026-11-18-crew-sheet-demo §14.1): no sidebar, so the header spans the page at every width, the
   Submit bar runs from the left edge, and the sheet gets the whole width (the table no longer scrolls sideways at 1180px). */
.shell.host-timesheet .topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:20;margin:0;background:var(--night);padding:calc(8px + env(safe-area-inset-top,0px)) 16px 8px}
.host-timesheet .top-brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.host-timesheet .top-brand img{width:32px;height:32px}
.host-timesheet .top-brand b{color:var(--sky);font-weight:700}
.host-timesheet .top-who{color:var(--night-body);font-size:14px;font-weight:600;min-width:0;max-width:42vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.host-timesheet .topbar .signout{min-width:44px;min-height:44px;justify-content:center}
.host-timesheet .main{margin-left:0}
.host-timesheet .crewsheet .sub{left:0}
.host-timesheet .wrap:has(> .view:not([hidden]) > .crewsheet){max-width:1400px;padding-left:12px;padding-right:12px}
.host-timesheet .crewsheet .sheet{padding-left:14px;padding-right:14px}
@media (max-width:760px){.crewsheet .hdr{grid-template-columns:1fr}.crewsheet .f label{flex-basis:110px}.crewsheet .sheet{padding:16px 14px}.crewsheet{padding-bottom:170px}}
/* Who's out: the call-in line under the title (Nov 17 2026) */
.wo-callin{display:flex;align-items:center;gap:6px;margin:4px 0 0;font-size:15px;color:var(--ink)}
.wo-callin .ico{color:var(--steel)}
.wo-callin a{font-weight:700;color:var(--navy);font-variant-numeric:tabular-nums}
/* ---------- Events (events.js; spec docs/events/Events-Handoff.md §9, §11) ---------- */
.ev-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 0 8px}
.ev-table{width:100%;border-collapse:collapse;font-size:14px}
.ev-table th{font:600 11px var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--gray);text-align:left;padding:8px 10px;border-bottom:1px solid var(--mist);white-space:nowrap}
.ev-table td{padding:10px;border-bottom:1px solid var(--mist);vertical-align:top}
.ev-table td.num{font-variant-numeric:tabular-nums;white-space:nowrap}
.ev-table tbody tr[tabindex]{cursor:pointer}
.ev-table tbody tr[tabindex]:hover td{background:var(--hover)}
.ev-table .chip{margin-left:6px}
.ev-name{display:block;color:var(--navy);font-weight:600;text-decoration:none}
.ev-name:hover{text-decoration:underline}
.ev-sub{display:block;font-size:13px;color:var(--gray)}
.ev-section{margin:28px 0 0;padding:20px;background:var(--white);border:1px solid var(--mist);border-radius:var(--r-md)}
.ev-h2{font:700 18px/1.3 var(--font-sans);color:var(--navy);margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid var(--mist)}
.ev-h3{font:600 11px var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--teal);margin:20px 0 8px}
.ev-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px 16px}
.ev-grid input{min-height:40px;border:1px solid var(--mist);border-radius:var(--r-sm);padding:6px 10px;background:var(--white)}
.ev-grid input[disabled]{background:var(--neutral-tint);color:var(--gray)}
.ev-small{font-size:13px}
.ev-rules{list-style:none;margin:0 0 12px;padding:0}
.ev-rules li{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid var(--mist)}
.ev-add{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}
.ev-add input[type=search],.ev-add input[type=email],.ev-add select{min-height:40px;border:1px solid var(--mist);border-radius:var(--r-sm);padding:6px 10px;background:var(--white);min-width:220px;flex:1 1 220px;max-width:420px}
.ev-label{font-weight:600;min-width:110px}
.ev-inline{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--gray)}
.ev-weeks{width:64px;min-height:40px;border:1px solid var(--mist);border-radius:var(--r-sm);padding:6px 8px}
.ev-jobs{list-style:none;margin:0 0 12px;padding:0}
.ev-jobs li{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:6px 0;border-bottom:1px solid var(--mist)}
.ev-jobs li .btn{margin-left:auto}
.ev-preview{margin-top:16px;padding:16px;background:var(--teal-tint);border-radius:var(--r-md)}
.ev-big{margin:0 0 6px;font-size:16px;color:var(--ink)}
.ev-big strong{font:700 32px/1.1 var(--font-serif);color:var(--teal);margin-right:4px;font-variant-numeric:tabular-nums}
.ev-lines{margin:0 0 12px;padding-left:18px;color:var(--gray);font-size:14px}
.ev-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;margin:0 0 12px}
.ev-tile{display:flex;flex-direction:column;gap:2px;padding:12px 14px;background:var(--teal-tint);border-radius:var(--r-md)}
.ev-n{font:700 26px/1.1 var(--font-serif);color:var(--teal);font-variant-numeric:tabular-nums}
.ev-l{font:600 11px var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--gray)}
.ev-facts{display:flex;flex-wrap:wrap;gap:12px 28px;margin:8px 0 4px}
.ev-fact{display:flex;flex-direction:column;gap:4px}
.ev-actions{margin-top:12px}
.ev-confirm{margin-top:12px}
.ev-global{margin-top:16px;padding:12px 14px;border:1px dashed var(--steel);border-radius:var(--r-md)}
.ev-global p{margin:0 0 8px}
.ev-never{display:flex;align-items:center;gap:8px;margin:28px 0 8px;font-size:13px;color:var(--gray)}
@media (max-width:640px){.ev-section{padding:14px}.ev-label{min-width:0;width:100%}}
/* Events calendar (Nov 18 2026) */
.ev-tabs{display:flex;gap:4px;margin:0 0 16px;border-bottom:1px solid var(--mist)}
.ev-tab{background:none;border:0;border-bottom:3px solid transparent;padding:8px 14px;font-weight:600;color:var(--gray);margin-bottom:-1px;min-height:40px}
.ev-tab.on{color:var(--navy);border-bottom-color:var(--navy)}
.ev-legend{list-style:none;display:flex;flex-wrap:wrap;gap:8px 20px;margin:0 0 12px;padding:0;font-size:14px}
.ev-legend li{display:flex;align-items:center;gap:6px}
.ev-legend a{color:var(--ink);text-decoration:none}
.ev-legend a:hover{text-decoration:underline}
.ev-swatch{display:inline-block;width:12px;height:12px;border-radius:3px;flex:none}
.ev-cal-months{display:grid;gap:20px}
.ev-cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid var(--mist);border-left:1px solid var(--mist)}
.ev-cal-wd{font:600 11px var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--gray);padding:6px 8px;border-right:1px solid var(--mist);border-bottom:1px solid var(--mist);background:var(--paper)}
.ev-cal-day{min-height:92px;padding:6px;border-right:1px solid var(--mist);border-bottom:1px solid var(--mist);background:var(--white);display:flex;flex-direction:column;gap:3px;min-width:0}
.ev-cal-day.blank{background:var(--paper)}
.ev-cal-day.party{background:var(--teal-tint)}
.ev-cal-n{font:600 12px var(--font-mono);color:var(--gray)}
.ev-cal-item{display:block;font-size:12px;line-height:1.3;color:var(--ink);text-decoration:none;border-left:3px solid var(--tone);padding:1px 0 1px 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ev-cal-item.party{font-weight:700;color:var(--tone);white-space:normal}
.ev-cal-item:hover{text-decoration:underline}
.ev-agenda{display:none;list-style:none;margin:0;padding:0}
.ev-agenda > li{padding:10px 0;border-bottom:1px solid var(--mist)}
.ev-agenda-day{display:block;font:600 12px var(--font-mono);color:var(--teal);margin-bottom:4px}
.ev-agenda ul{list-style:none;margin:0;padding:0}
.ev-agenda ul li{display:flex;align-items:center;gap:8px;font-size:14px;padding:2px 0}
.ev-agenda a{color:var(--ink);text-decoration:none}
@media (max-width:720px){.ev-cal-months{display:none}.ev-agenda{display:block}}

/* ---------- Job assignments (emp_96; changejob.js, placesource.js) ---------- */
/* the placement source after a job: Assigned (active) / Job Board / Hours (neutral) */
.chip.place-src{margin-left:6px;vertical-align:1px}
.tcal-src{font-weight:400;opacity:.85;margin-left:.4em}
/* Who's out: Change job beside the row (never inside the Exec row button); the open detail takes the full width */
.wo-person.can-assign{display:flex;flex-wrap:wrap;align-items:center}
.wo-person.can-assign > .wo-row{flex:1 1 0;min-width:0}
.wo-person.can-assign > .wo-change{flex:none;margin-right:16px}
.wo-person.can-assign > .wo-detail{flex:1 1 100%}
/* the dialog */
.cj-who,.cj-now{margin:0}
.cj-now .chip{margin-left:4px}
.cj-change,.cj-remove{display:flex;flex-direction:column;gap:16px}
.cj-remove{gap:8px}
.cj-remove .btn,.cj-remove-link{align-self:flex-start}
.cj-dialog .results{max-width:none;max-height:240px}
.cj-dialog .picked{max-width:none}
/* the person page's Job assignment block */
.assign-block .cj-current{margin:0}
table.assign-history tr.is-active td:first-child{border-left:3px solid var(--blue)}
table.assign-history td .chip{margin-left:4px}
@media (max-width:879px){
  .wo-person.can-assign > .wo-row{flex:1 1 100%}
  .wo-person.can-assign > .wo-change{margin:0 16px 10px}
}
/* Bulk assign (Task 6; bulkassign.js): the "Assign job" bar above People and the Board vs assigned vs hours list, and the row checkboxes */
.bulk-assign{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:0 0 12px;padding:8px 12px;border:1px solid var(--mist);border-radius:8px;background:#F4F8FB}
.bulk-assign .bulk-count{font-weight:600;color:var(--navy)}
.bulk-assign .bulk-msg{flex:1 1 auto;font-size:13px;color:var(--watch-text)}
.bulk-assign .bulk-msg:empty{display:none}
th.c-pick,td.c-pick{width:44px;text-align:center}
table.people th.c-pick{width:44px}
input.pick{width:18px;height:18px;margin:0;accent-color:var(--navy);cursor:pointer}
.pick-label{display:inline-flex;align-items:center;gap:8px;cursor:pointer}
.pick-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
table.placement td.c-assigned .meta{display:block}
@media (max-width:879px){
  .table-wrap td.c-pick{width:100%;justify-content:flex-start;text-align:left}
  .table-wrap td.c-pick::before{content:none}
  .table-wrap td.c-pick:empty{display:none}
  .pick-label{min-height:44px}
  .pick-text{position:static;width:auto;height:auto;overflow:visible;clip:auto;font:600 11px var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--gray)}
  table.people.can-pick td.c-pick{grid-column:1 / -1;flex-direction:row;align-items:center}
}

/* Timekeeping: CE file preview and Time Tracker crew (ttsheets.js) */
.crewsheet .tbl tr.held td{background:var(--risk-tint)}
.crewsheet .notice{margin:12px 0}
.crewsheet .seg{margin:8px 0}
.crewsheet-list td.links,table[data-list=crewsheets] td.links{line-height:1.7}
table[data-list=crewsheets] td.links a{display:block;white-space:nowrap}
table[data-list=crewsheets] td:first-child{white-space:nowrap}
table[data-list=crewsheets] td[data-label=Crew]{min-width:200px}
table[data-list=crewsheets] th{white-space:normal;vertical-align:bottom}
table[data-list=crewsheets] td[data-label=Crew]{min-width:0}
