@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@800&display=swap');
/* The approved UI system's tokens (getz-brain automation/ui-system.md,
   approved 9/28/26): cream canvas and warm neutrals (D5), --text #33302e and
   --muted #6b645b, 14px radius (D4), warm shadows, palette A (D6).
   COPIED from hz-ui.css section 1, not @imported: /style.css is served before
   the login wall (server.js) and is the one asset the apply host allows, and
   /hz-ui.css is neither, so an @import would leave /login and /apply with no
   tokens at all. Keep these values identical to hz-ui.css; change them there
   first (it is byte-identical with vending's copy, D13). --brand (the logo
   red) and --nav-h are left out on purpose: see the alias block below.
   Pages repainted onto the system link /hz-ui.css BEFORE this file. */
:root {
  --bg:            #f8f5f0;
  --surface:       #ffffff;
  --surface-2:     #f3eee6;
  --selected-bg:   #ece5d9;
  --border:        #e6dfd4;
  --border-strong: #cdc3b5;
  --scrim:         rgba(31,24,16,.40);

  --text:          #33302e;   /* 13.10:1 on white, 12.05 on --bg */
  --muted:         #6b645b;   /* 5.83:1 on white, 4.66 on --selected-bg */

  /* ---------- accent and brand (§2.2, D1). Blue has three jobs only:
     the primary button, link text, and keyboard focus. ---------- */
  --accent:        #0071e3;
  --accent-hover:  #0060c0;
  --accent-soft:   #e7f1fd;   /* the input focus ring. Nothing else. */
  --accent-ink:    #0060c0;   /* link and quiet-button text */
  --on-accent:     #ffffff;
  --ink:           #2b2622;   /* selected chip, toast */

  /* ---------- status (§2.3). Always with a glyph or a word. ---------- */
  --up-fg:   #0a7d54;  --up-bg:   #e2f6ec;
  --down-fg: #b42318;  --down-bg: #fbeeec;
  --warn-fg: #b45309;  --warn-bg: #fef6ec;
  --warn-line: #d97706;                      /* 4px card borders only, never words */
  --unk-fg:  #4b4a47;  --unk-bg:  #eceae7;   /* not measured: not a warning (D9) */
  --toast-err: #7f1d1d;

  /* ---------- charts (§2.4, D6 palette A, FT Origami) ---------- */
  --cat1: #0d7680;  /* teal */
  --cat2: #c8641a;  /* mandarin */
  --cat3: #0f5499;  /* oxford: a series colour, never link blue */
  --cat4: #6e5410;  /* dark ochre */
  --cat5: #593380;  /* velvet */
  --cat6: #cc6a93;  /* candy */
  --cat7: #990f3d;  /* claret: last, it reads close to --down-fg */
  --cat8: #5d6670;  /* slate: always "Other", never a location */
  --series:       var(--cat1);
  --series-total: var(--text);
  --seq1: #f2dfce;  --seq2: #e3b59a;  --seq3: #cc7f6e;  --seq4: #a8465a;  --seq5: #6e0f30;
  --div1: #8c510a;  --div2: #d8b365;  --div3: #f5f0e8;  --div4: #5ab4ac;  --div5: #01665e;
  --on-ramp: #1d1d1f;
  --track: rgba(60,42,20,.07);

  /* ---------- type (§3, D2) ---------- */
  --font: 'Inter', -apple-system, 'SF Pro Text', system-ui, 'Segoe UI', sans-serif;
  --font-brand: 'Montserrat', var(--font);   /* the wordmark, and nothing else */
  --fs-hero:     3.2rem;
  --fs-hero-sm:  2.4rem;
  --fs-kpi:      1.85rem;
  --fs-h1:       1.5rem;
  --fs-h2:       1rem;
  --fs-body:     .9375rem;
  --fs-label:    .8125rem;
  --fs-micro:    .72rem;

  /* ---------- space, shape, depth, motion (§4, D4) ---------- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px;
  --gutter: 24px;
  --maxw: 1200px;
  --radius:      14px;
  --radius-sm:   10px;
  --radius-xs:   6px;
  --radius-pill: 999px;
  --shadow:    0 1px 2px rgba(60,42,20,.05), 0 12px 34px rgba(60,42,20,.07);
  --shadow-md: 0 2px 6px rgba(60,42,20,.07), 0 18px 44px rgba(60,42,20,.11);
  --ease: .2s ease;
  --control-h: 36px;
  --tap: 44px;
}

@media (max-width: 768px) {
  :root { --control-h: 44px; --gutter: 16px; }
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Legacy token names, kept as aliases of the approved tokens so the ~48 pages
   that still read them take the warm values without an edit. Pages adopt the
   hz-ui names as they are repainted; delete an alias once nothing reads it.
   Everything not listed here (--bg, --surface, --surface-2, --border, --text,
   --muted, --accent, --accent-soft, --up-*, --down-*, --warn-*, --radius,
   --radius-sm, --shadow, --shadow-md, --track, --font) is the approved value
   above. 9/28/26. */
:root {
  --surface2: var(--surface-2);
  --surface3: var(--selected-bg);
  --border2: var(--border-strong);
  --brand-dark: var(--accent-hover);
  --brand-light: var(--accent-soft);
  --green: var(--up-fg);
  --green-light: var(--up-bg);
  --blue: var(--accent);
  --pink: var(--down-fg);
  --pink-light: var(--down-bg);
  --yellow: var(--warn-line);   /* 4px borders only; words take --warn-fg */
  /* Was #a1a1a6, 2.6:1 on white: too faint for the Sign out link and the
     menu section labels it set. The warm muted clears 4.5:1 (spec §11). */
  --muted2: var(--muted);
  --mono: var(--font);

  --nav-h: 76px;   /* the nav at 1280; app.js syncNavHeight() writes the measured value */
}

/* Base element rules, scoped 9/29/26 (ui-system.md §14). A page on the
   system carries <body class="hz-root"> and takes its body type and headings
   from hz-ui.css §2 (15px/1.5, tabular figures, the h1-h3 scale) instead.
   Every page without it keeps these, unchanged: /login (server.js), /apply,
   set-password and any logged-in page not yet moved. The :where() wrapper
   adds no specificity, so each rule weighs exactly what it did before. */
body { min-height: 100vh; }
body:where(:not(.hz-root)) {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.35;
}

body.login-page { display: flex; align-items: center; justify-content: center; }

.login-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-md);
}

/* "Forgot password?" under the sign-in form (server.js /login), and "Back to
   Sign In" on /forgot-password. A quiet link, centered, with a 44px tap target. */
.login-forgot {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; margin-top: 0.75rem;
  color: var(--muted); font-size: 0.9rem; text-decoration: underline;
  text-underline-offset: 3px; border-radius: 6px;
}
.login-forgot:hover { color: var(--text); }
.login-forgot:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; color: var(--text); }

.logo { font-family: var(--font); font-size: 1.6rem; font-weight: 800; color: var(--text); text-align: center; margin-bottom: 0.25rem; }
.subtitle { text-align: center; color: var(--muted); margin-bottom: 2rem; font-size: 0.85rem; letter-spacing: 0.5px; }
.form-group { margin-bottom: 1.25rem; }

label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

/* D11 (owner, 9/28/26): base controls size to content. A control in a
   stacked form opts into full width: inside .form-group or .login-container,
   with .field, or with .btn-block (see "Stacked forms" below). Until 9/28/26
   this was width:100% on every input and button, and every horizontal row had
   to remember to join an exception list (the 8/10/26 trap). */
input {
  width: auto;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font);
  color: var(--text);
}

/* Field focus, on every page (ui-system §7.3, hz-ui .hz-field; owner,
   9/29/26, after seeing gray and blue side by side: "i like the blue"): a 1px
   --accent border and a 3px --accent-soft glow on every text field, select
   and textarea. It lives here, not only in hz-ui.css, because /login, /apply
   and set-password load this file alone. !important so no resting border,
   inline or page-level, survives focus. The glow is the field's focus mark,
   so the keyboard outline is off on fields only; buttons and links keep a
   ring. A field in an error state (aria-invalid, apply's .has-error,
   hz-ui's .is-invalid, form-fill's .error) keeps its red while focused. */
:is(input:not([type=checkbox],[type=radio],[type=range],[type=file],[type=color],[type=button],[type=submit],[type=reset],[type=image]), select, textarea):focus { outline: none; }
:is(input:not([type=checkbox],[type=radio],[type=range],[type=file],[type=color],[type=button],[type=submit],[type=reset],[type=image]), select, textarea):focus:not([aria-invalid="true"], [aria-invalid="true"] *, .has-error *, .is-invalid *, .error) {
  border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-soft) !important;
}

/* The 8/10/26 exception list (.filter-bar, .picker-row, .date-row, ...) is
   gone, 9/28/26: D11 made width:auto the base rule, and every row it covered
   is now the one .hz-filter-bar (§7.1), whose controls hz-ui.css sizes, or a
   plain .section-controls row. A control row needs no width patch. */

button {
  width: auto;
  padding: 0.75rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: opacity 0.15s;
}

button:hover { opacity: 0.85; }

/* What hz-ui.css §2 is NOT allowed to change on a .hz-root page yet, 9/29/26.
   - Control type. `.hz-root :where(button, input, select, textarea)
     { font: inherit }` beats the bare rules above, so every blue button lost
     its bold and grew to the body's 15px/1.5. Buttons and inputs keep the
     type they had until the page is repainted onto .hz-btn / .hz-field (both
     of which set their own and are left alone here). Selects and textareas
     had only the browser's 13px Arial and do take the system's Inter.
   (Focus is no longer held back here: the owner chose blue, 9/29/26, so
   .hz-root's 2px :focus-visible ring stands on buttons and links, and fields
   take the blue border and glow above.)
   These are 0,1,0: the same weight as hz-ui's rules and after them, so they
   win over hz-ui and lose to any page or component class declared later.
   Delete each when the controls are repainted. */
.hz-root :where(button:not([class*="hz-"])) { font-family: var(--font); font-size: 0.9rem; font-weight: 700; line-height: normal; }
.hz-root :where(input:not([class*="hz-"])) { font-family: var(--font); font-size: 0.9rem; font-weight: 400; line-height: normal; }

/* Stacked forms: label above, control below, filling the column. These are
   the opt-ins D11 asks for. The old default covered input and button only
   (never select or textarea), so that is all .form-group opts back into.
   Checkboxes and radios were stretched too; they now keep their own size,
   which is what the 100% had been breaking. Checked page by page, 9/28/26. */
.form-group input:not([type="checkbox"]):not([type="radio"]), .form-group button,
.login-container input:not([type="checkbox"]):not([type="radio"]), .login-container button,
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea,
.btn-block { width: 100%; }

.error {
  color: var(--pink);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--pink-light);
  border-radius: 6px;
  border-left: 3px solid var(--pink);
}

/* A <canvas> whose chart never drew (failed load, empty result, CDN down)
   keeps its 300px default and, inside a padded card, pushed a 320px phone's
   body sideways. Chart.js sizes the ones it does draw; this caps the rest. */
canvas { max-width: 100%; }

/* showLoadError() in app.js: a failed request, in words, with Retry, in the
   section that failed. Not .error — that one is a form-submit message with a
   bottom margin; this sits where the data would have been. */
.load-error {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem;
  padding: .75rem 1rem; margin: .25rem 0;
  color: var(--pink); background: var(--pink-light);
  border-left: 3px solid var(--pink); border-radius: 6px;
  font-size: .88rem; font-weight: 500; text-align: left; white-space: normal;
  text-transform: none; letter-spacing: 0;
}
.load-error span { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.load-error button { width: auto; min-height: 44px; padding: .5rem 1.1rem; }
/* Inside a table wider than a phone, the cell is wider than the screen; pin the
   message to the visible left edge and keep it screen-width so it never clips. */
td > .load-error { position: sticky; left: 0; max-width: calc(100vw - 4.5rem); }

nav {
  background: var(--surface);
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

nav .brand { font-family: var(--font-brand); font-weight: 800; color: var(--text); font-size: 1rem; }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
/* The nav is the same bar on every page, on the system or not. It keeps the
   16px/1.35 proportional figures a non-hz-root body gives it, and its links
   stay muted: `.hz-root :where(a)` is 0,1,0 and would beat `nav a` above.
   9/29/26. */
.hz-root nav { font-size: 1rem; line-height: 1.35; font-variant-numeric: normal; }
.hz-root nav a { color: var(--muted); }
/* The menu and close buttons (hz-ui .hz-nav-toggle) drew the ☰ and ✕ bold
   under the bare button rule; .hz-root's font:inherit thinned them. */
.hz-root .hz-nav-toggle { font-weight: 700; }

nav a:hover { color: var(--text); background: var(--surface-2); }
/* Active is a warm neutral with a 2px underline, not blue: blue has three
   jobs only, the primary button, link text and focus (spec §2.2). */
nav a.active { color: var(--text); background: var(--selected-bg); font-weight: 700; box-shadow: inset 0 -2px 0 var(--text); }
nav a.logout { color: var(--muted2); }

/* The phone nav (ui-system.md §7.9, D10). app.js renders the nav and adds
   .is-rendered; below 760px that nav is the wordmark and a 44px menu button,
   and the menus move into a left drawer (hz-ui.css .hz-drawer). It stays
   pinned: one 61px row, not the ~180px wrapped block that used to be un-stuck
   so it wouldn't eat a fifth of the screen. app.js (syncNavHeight) measures it
   into --nav-h, so the eleven pages that pin a bar at `top: var(--nav-h)` sit
   under it; 61px is only the value before that runs.

   A page whose app.js didn't load keeps its own small <nav> (wordmark, Home,
   Sign Out), which wraps rather than overflowing the body. 9/28/26. */
@media (max-width: 760px) {
  nav { flex-wrap: wrap; gap: .4rem .6rem; padding: .6rem 1rem; }
  nav.is-rendered { flex-wrap: nowrap; padding: .5rem 1rem; }
  nav.is-rendered > :not(.brand):not(.hz-nav-toggle) { display: none; }
  nav .brand { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* The flex spacer pushes Sign out to the far right on a wide row; on a
     wrapped one it forces a blank line. */
  nav > span[style*="flex"] { display: none; }
  :root { --nav-h: 61px; }
}
.site-drawer-head { display: flex; align-items: center; gap: .6rem; }
.site-drawer-head .hz-wordmark { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* The "N to count" nav badge, as a drawer row: pink with its word, like the pill. */
.hz-drawer a.site-drawer-alert { color: var(--down-fg); font-weight: 600; }

/* The nav never prints. A Letter page after margins lays out ~740px wide,
   under the 760px breakpoint above, so without this every logged-in page
   prints the phone bar (wordmark and menu button) as its first line. The
   drawer and scrim go too: printed with the menu open, the drawer covered
   the left half of page 1 and the scrim grayed the rest. applicants.html
   and hiring-sign.html already hid `nav` on their own; this agrees with
   them. 9/28/26. */
@media print {
  nav, .hz-nav, .hz-nav-toggle, .hz-drawer, .hz-drawer-scrim { display: none !important; }
}

/* Nav dropdowns */
.nav-dropdown { position: relative; }
.nav-drop-btn {
  background: none; border: 1px solid var(--border); color: var(--muted);
  font-size: .82rem; padding: .35rem .75rem; border-radius: 6px;
  cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: .3rem;
  font-family: var(--font);
}
.nav-drop-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border2); }
.nav-drop-btn.active { color: var(--text); background: var(--selected-bg); border-color: var(--text); }
.nav-drop-menu {
  display: none; position: absolute; top: calc(100% + .4rem); right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); min-width: 170px;
  box-shadow: var(--shadow-md); overflow: hidden; z-index: 200;
}
.nav-drop-menu.open { display: block; }
.nav-drop-menu a {
  display: block; padding: .6rem 1rem;
  color: var(--muted); font-size: .85rem; text-decoration: none;
  border-radius: 0; transition: background .12s;
}
.nav-drop-menu a:hover { background: var(--surface2); color: var(--text); }
.nav-drop-menu .drop-divider { height: 1px; background: var(--border); margin: .25rem 0; }
.nav-drop-menu .drop-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted2); padding: .5rem 1rem .2rem; font-weight: 700; }

.container { max-width: 1200px; margin: 0 auto; padding: 1.5rem 2rem 3rem; }

/* 2rem each side is 64px of a 320px screen — a fifth of the width, spent on
   nothing, while the table inside gives up columns to pay for it. 1rem still
   clears the 16px gutter floor and hands 32px back to the content. 9/24/26. */
@media (max-width: 480px) {
  .container { padding: 1rem 1rem 2rem; }
}

.sync-banner {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.card-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
/* line-height pinned to the 1.35 it inherited before .hz-root: at hz-root's
   1.5 a 32px figure sat in a 48px box. The system's own KPI is 1.15
   (.hz-kpi-value); this card moves to that when it is repainted. */
.card-value { font-family: var(--font); font-size: 2rem; font-weight: 700; color: var(--text); letter-spacing: -.035em; line-height: 1.35; font-variant-numeric: tabular-nums; }
.card-value.green { color: var(--up-fg); }
.card-sub { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }

.chart-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.chart-title { font-family: var(--font); font-size: 0.95rem; font-weight: 700; margin-bottom: 1rem; color: var(--text); }

.table-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  /* Was `overflow: hidden`, which is only here to clip the table's square
     corners to the 20px radius — and which also CLIPPED every table wider than
     its container, on every page, with no way to reach the columns past the
     cut. That is not a cramped table, it is columns that do not exist: the Past
     Payroll Runs table measured 476px inside 324px at 390px and the last two
     columns were simply unreachable. Pages that noticed patched themselves with
     an inline style="overflow-x:auto"; most did not. Both axes stay non-visible
     so the corners still clip. Fixed 9/24/26. */
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

table { width: 100%; border-collapse: collapse; }

th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.85rem; color: var(--text); font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface2); }

/* Headers that follow the page scroll: app.js syncStickyHeads() translates
   the thead (and any tr[data-sticky-band]) under the nav and filter bar.
   position:sticky can't do it here: .table-container is an overflow-x box,
   which traps sticky. The header paints over the rows it slides across, so
   its cells must be opaque, and it carries its own bottom rule because a
   collapsed border stays behind in the table. Owner, 10/1/26. */
/* The thead's own fill too: the collapsed border strip at its foot belongs to
   no cell, and rows showed through it once the header was moving. */
table.sticky-head thead { position: relative; z-index: 3; will-change: transform; background: var(--surface-2); }
table.sticky-head thead th { background: var(--surface-2); }
table.sticky-head thead.is-stuck { box-shadow: 0 1px 0 var(--border), 0 4px 8px -4px rgba(0,0,0,.18); }
table.sticky-head tr[data-sticky-band] { position: relative; z-index: 2; }
table.sticky-head tr[data-sticky-band].is-stuck { box-shadow: 0 1px 0 var(--border); }

/* The Item column stays put while a phone swipes the numbers sideways
   (owner, 10/1/26; same idea as hz-ui.css .hz-table, ui-system.md D8). Unlike
   the header, this IS plain position:sticky: the overflow-x box that traps a
   vertical sticky is exactly the box this one should pin to, and it rides
   along inside the translated thead. Cells need an opaque fill or the numbers
   show through; a row with an inline background (a highlighted row) hands its
   own fill down. Full-width rows (bands, section labels, empty states) can't
   pin, so their text sits in a .pin-left span that does. app.js marks the
   table .x-over while it overflows (the right-edge rule) and .x-moved once it
   is swiped (the shadow), so a desktop table that fits looks unchanged. */
table.sticky-head thead tr:first-child > th:first-child,
table.sticky-head tbody td:first-child:not([colspan]) {
  position: sticky; left: 0; z-index: 1; background: var(--surface);
}
table.sticky-head thead tr:first-child > th:first-child { background: var(--surface-2); }
table.sticky-head tbody tr:hover > td:first-child:not([colspan]) { background: var(--surface2); }
table.sticky-head tbody tr[style*="background"] > td:first-child:not([colspan]) { background: inherit; }
table.sticky-head.x-over thead tr:first-child > th:first-child,
table.sticky-head.x-over tbody td:first-child:not([colspan]) { box-shadow: inset -1px 0 0 var(--border); }
table.sticky-head.x-moved thead tr:first-child > th:first-child,
table.sticky-head.x-moved tbody td:first-child:not([colspan]) {
  box-shadow: inset -1px 0 0 var(--border), 6px 0 6px -4px rgba(0,0,0,.16);
}
/* Screen-wide at most, or a label longer than the phone could never be read
   to its end: a sticky span wider than the view never slides. */
table.sticky-head .pin-left { position: sticky; left: 1rem; display: inline-block; max-width: calc(100vw - 4.5rem); white-space: normal; }
/* On a phone the pinned column gets ~40% of the screen and wraps, so the
   numbers beside it still show. */
@media (max-width: 760px) {
  table.sticky-head tbody td:first-child:not([colspan]),
  table.sticky-head thead tr:first-child > th:first-child { width: 9.5rem; min-width: 9.5rem; max-width: 9.5rem; white-space: normal; overflow-wrap: anywhere; }
}

:where(body:not(.hz-root)) h1 { font-family: var(--font); font-size: 1.35rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--text); letter-spacing: -.02em; }

.up { color: var(--up-fg); }
.down { color: var(--down-fg); }
.neutral { color: var(--muted); }

/* Clickable table rows */
.clickable-row { cursor: pointer; }
.member-link { color: var(--text); text-decoration: none; font-weight: 600; }
.member-link:hover { color: var(--accent-ink); }

/* Member detail page */
.member-header { margin-bottom: 1.5rem; }
.back-link { font-size: 0.85rem; color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 0.5rem; }
.back-link:hover { color: var(--accent-ink); }
.member-title { display: flex; align-items: center; gap: 0.75rem; }
.member-title h1 { margin-bottom: 0; }

/* Week navigator */
.week-nav { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.week-label { font-family: var(--font); font-weight: 600; font-size: 0.95rem; color: var(--text); min-width: 200px; text-align: center; }
.week-btn { width: auto; padding: 0.4rem 0.9rem; font-size: 0.8rem; background: var(--surface); color: var(--text); border: 1px solid var(--border2); border-radius: 6px; font-family: var(--mono); cursor: pointer; transition: background 0.15s, color 0.15s; }
.week-btn:hover:not(:disabled) { background: var(--surface3); }
.week-btn:disabled { opacity: 0.35; cursor: default; }
.week-btn-today { background: var(--selected-bg); color: var(--text); border-color: var(--text); font-weight: 700; }
.week-btn-today:hover:not(:disabled) { background: var(--ink); color: #fff; }

/* Badges */
/* Badges are sentence case (ui-system.md §7.10): the word as written, no
   uppercase transform. 9/28/26. */
.badge { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0; }
.badge-green { background: var(--green-light); color: var(--green); }
.badge-muted { background: var(--surface3); color: var(--muted); }
/* A qualifier on a figure, not a verdict on it — "growing", "on the clock".
   --muted on --surface3 is 3.07:1, which is fine for a status nobody has to
   read and wrong for one that changes what a number means. 14.28:1. */
.badge-neutral { background: var(--surface3); color: var(--text); }
/* The figure above me is not settled and here is the word for why. */
.badge-warn { background: var(--warn-bg); color: var(--warn-fg); }

/* Any figure outside a <td>. `td` already carries tabular-nums; a total in a
   <p> or a card does not, and jitters as it updates while the column above it
   holds still. */
.figure { font-variant-numeric: tabular-nums; }

/* A figure that is NOT being shown, as a word. Never a 0, never a dash in a
   numeric column -- both read as a measurement. The reason lives once,
   elsewhere on the page; this is only the word.
   --warn-fg, not --yellow: 5.02:1 on --surface and 4.61:1 on --surface-2, and
   none of these strings is large text. Lived in payroll.html's own <style> as
   `.hours-warn` until 9/24/26; cash-recon.html needed the same word for the
   same shift, and two screens reading one summarizeShifts row must not spell
   it two ways. */
.withheld { color: var(--warn-fg); font-weight: 600; }

/* Open/in-progress shift row */
.shift-open td { background: rgba(22,163,74,0.04); }

/* ==========================================================================
   Aurora shared primitives (lifted from docs/aurora-mockup.html)
   ========================================================================== */

.datebar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.db-label { font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.db-select { position: relative; display: inline-flex; }
.db-select select { appearance: none; -webkit-appearance: none; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 7px 27px 7px 12px; font: inherit; font-size: .78rem; color: var(--text); cursor: pointer; }
.db-select::after { content: '▾'; position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-size: .66rem; color: var(--muted); pointer-events: none; }
.db-range { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 7px 11px; font-size: .78rem; color: var(--text); white-space: nowrap; }
.db-refresh { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.db-refresh:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
/* The icon arrives as an unsized <svg viewBox> (AuroraCharts.refIco); in a grid
   cell with no size it collapsed to nothing and the button read as blank. */
.db-refresh svg { width: 16px; height: 16px; display: block; }

.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; gap: 7px; }
.stat__label { font-size: .78rem; color: var(--muted); font-weight: 500; }
.stat__value { font-size: 1.85rem; font-weight: 700; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__foot { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: var(--muted); }

.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-size: .72rem; padding: 2px 7px; border-radius: 999px; }
.delta.up { color: var(--up-fg); background: var(--up-bg); }
.delta.down { color: var(--down-fg); background: var(--down-bg); }
.delta.flat { color: var(--text); background: var(--surface-2); }

.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 13px; }
.card__head h3 { font-size: .82rem; font-weight: 600; color: var(--muted); margin: 0; }
.card__sub { font-size: .7rem; color: var(--muted); margin-top: 3px; }
.cardfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); font-size: .74rem; color: var(--muted); }
.cardfoot b { color: var(--text); }

.card.col { display: flex; flex-direction: column; }
.card.col .donutwrap { margin: auto 0; }

.hbars { display: flex; flex-direction: column; gap: 13px; }
.hbar__top { display: flex; justify-content: space-between; font-size: .82rem; margin-bottom: 5px; gap: 8px; }
.hbar__name { font-weight: 500; }
.hbar__val { font-weight: 700; }
.hbar__track { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.hbar__fill { height: 100%; border-radius: 999px; }
.hbar__sub { font-size: .68rem; color: var(--muted); margin-top: 4px; }

.donutwrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut { width: 128px; height: 128px; flex: 0 0 auto; }
.donut-c1 { font-size: 6px; font-weight: 800; fill: var(--text); }
.donut-c2 { font-size: 3px; fill: var(--muted); }
.legend { display: flex; flex-direction: column; gap: 9px; font-size: .8rem; min-width: 120px; }
.legend__i { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.legend__i i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: 0 0 auto; }
.legend__i b { margin-left: auto; color: var(--text); }

.svgchart { width: 100%; height: auto; display: block; }
.svgtxt { fill: var(--muted); font-size: 13px; font-family: var(--font); }

.badge-live { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }   /* §7.10: --ink, never blue */

.section-title { font-size: .82rem; font-weight: 600; color: var(--muted); margin: 0 0 13px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ── Dashboard reminders ─────────────────────────────────────── */
#reminder-banners { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; }
.reminder-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text); font-size: .95rem; text-decoration: none;
}
.reminder-banner:hover { box-shadow: var(--shadow); }
.reminder-banner .rb-icon { font-size: 1.25rem; line-height: 1; }
.reminder-banner .rb-msg { flex: 1 1 auto; min-width: 0; font-weight: 500; }
.reminder-banner .rb-go { color: var(--accent-ink); font-weight: 600; white-space: nowrap; }
.reminder-banner .rb-x {
  /* width:auto overrides the global button{width:100%}; without it the flex
     basis resolves to full width and the × swallows the whole banner row. */
  flex: 0 0 auto; width: auto; margin-left: 2px;
  border: none; background: transparent; cursor: pointer;
  color: var(--muted); font-size: 1.1rem; font-weight: 400; letter-spacing: 0;
  line-height: 1; padding: 4px 8px; border-radius: 8px;
}
.reminder-banner .rb-x:hover { color: var(--text); background: var(--track); }
/* hz-ui.css .hz-btn sets display:inline-flex, which beats the UA's
   [hidden]{display:none}; a hidden button must still hide. (hz-ui.css is
   byte-identical with vending, D13, so the fix lives here.) */
.hz-btn[hidden] { display: none; }

/* Rate Watch admin banner (app.js mountRateAlert): stays until acknowledged
   on /rates, so no ×; the amber edge marks it as needing a decision. */
.reminder-banner.rate-alert { border-left: 4px solid var(--warn-line); margin: 0 0 16px; }
.reminder-banner.rate-alert .hz-badge { flex: 0 0 auto; }
/* An urgent reminder (reminders.js, r.urgent): red edge plus the "Overdue"
   badge, so the colour is never the only signal. */
.reminder-banner.urgent { border-left: 4px solid var(--down-fg); }
.reminder-banner .rb-urgent { flex: 0 0 auto; }
@media (max-width: 560px) {
  .reminder-banner { flex-wrap: wrap; }
  .reminder-banner .rb-msg { flex-basis: 100%; }
}

/* ── The one filter bar, on this site (ui-system.md §7.1) ─────────────────
   The component is hz-ui.css .hz-filter-bar; app.js hzFilterBar() wires the
   phone sheet. What is here only reconciles it with this file's bare-element
   rules (label, button) and lines it up with .container. 9/28/26. */
.hz-filter-bar.page-bar {
  padding-left: max(2rem, calc((100% - 1200px) / 2 + 2rem));
  padding-right: max(2rem, calc((100% - 1200px) / 2 + 2rem));
}
@media (max-width: 480px) {
  .hz-filter-bar.page-bar { padding-left: 1rem; padding-right: 1rem; }
}
.hz-filter-bar label { display: inline; margin: 0; }
.hz-filter-bar .hz-eyebrow { letter-spacing: .06em; }
.hz-filter-lead { margin-right: auto; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hz-filter-lead b { font-size: .95rem; font-weight: 800; letter-spacing: -.01em; }
.hz-filter-lead span { font-size: var(--fs-label); color: var(--muted); }
.hz-filter-field { display: inline-flex; align-items: center; gap: 6px; }
.hz-btn:hover, .hz-chip:hover { opacity: 1; }
.hz-btn-icon svg { width: 16px; height: 16px; display: block; }
/* A named filter that narrows the page (reports' ?location=): a chip that
   says so, with the way back. Neutral, not blue (§2.2). */
.hz-filter-tag { display: inline-flex; align-items: center; gap: 6px; min-height: var(--control-h); padding: 0 4px 0 12px; border-radius: var(--radius-pill); background: var(--selected-bg); font-size: var(--fs-label); font-weight: 600; color: var(--text); }
.hz-filter-tag a { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 28px; border-radius: 50%; color: var(--text); text-decoration: none; }
.hz-filter-tag a:hover { background: var(--surface-2); }
@media (max-width: 768px) {
  .hz-filter-lead { display: none; }
  /* The chips are the preset control in the sheet; the <select> they mirror
     stays in the DOM (it holds the value and the handler) but not on screen. */
  .hz-filter-bar .hz-chips ~ select[data-hz-preset], .hz-filter-bar .hz-chips ~ .hz-filter-field:has(select[data-hz-preset]) { display: none; }
  .hz-filter-field { flex-direction: column; align-items: stretch; gap: 4px; }
  .hz-filter-controls .hz-filter-tag { width: auto; justify-content: space-between; }
  /* The sheet's own head already states the range; the bar's range text
     would say it twice. */
  .hz-filter-controls .hz-filter-range { display: none; }
  /* A page's own buttons in the sheet (items' Sort By) reach the 44px tap. */
  .hz-filter-controls .week-btn { min-height: var(--tap); }
}

/* The filter bar's in-page form: the same component, not pinned and not
   folded into a phone sheet, for a filter that IS the content of the row and
   has to stay on screen at every width (a list's status chips and search,
   a restock run's stops). The pinned .page-bar with a sheet is the default;
   this is the exception, used where the sheet would hide the thing the page
   is for. 9/28/26. */
.hz-filter-bar.inline-bar {
  position: static; justify-content: flex-start;
  padding: 0; margin: 0 0 1.25rem; border-bottom: 0;
  background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}

/* A checkbox filter in the bar (Alerts Only, Show Inactive): the label reads
   as a label, and the box keeps its own size. hz-ui.css styles every input in
   the bar as a 36px text field and, in the phone sheet, stretches it to 100%;
   a checkbox is neither. */
.hz-filter-bar label.hz-check {
  display: inline-flex; align-items: center; gap: .45rem; min-height: var(--control-h);
  font-size: .875rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text); cursor: pointer;
}
.hz-filter-bar input[type="checkbox"], .hz-filter-bar input[type="radio"] {
  width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; border: 0; flex: 0 0 auto; accent-color: var(--accent);
}

/* A page bar placed inside .container, under the page's h1 rather than
   full-bleed above it: still pinned under the nav and still a sheet on a
   phone, but it heads the content it filters, so it starts at the left. */
.container > .hz-filter-bar:not(.inline-bar) { justify-content: flex-start; margin-bottom: 1.25rem; }

/* Controls that belong to one section, not to the page: a section's own month
   picker, an upload row, a card's settings. Not a filter bar (§7.1 is
   page-level); a plain wrapping row, labels inline. Since D11 nothing in it
   needs a width patch. 9/28/26. */
.section-controls { display: flex; gap: .6rem .75rem; align-items: center; flex-wrap: wrap; }
.section-controls label { display: inline; margin: 0; }
.section-controls select, .section-controls input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  min-height: var(--control-h); padding: 0 10px; box-sizing: border-box;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: 500 .875rem var(--font);
}
