/* The Credentialing app's look (Samantha 11/24/2026: "everything to follow the credentialing app style"): its colors,
   near-black header and sidebar, leaf-green section labels, amber selected item, teal buttons. Look only; no code. */
:root {
  --bg: #f7f8f7; --card: #ffffff; --ink: #15231d; --muted: #64748b; --line: #e2e8f0;
  --teal: #207967; --teal-dark: #1a6456; --teal-soft: #e9f7f5; --brand-teal: #259d8d;
  --red: #dc2626; --red-soft: #fde8e8; --amber: #d97706; --amber-soft: #fdf0d9;
  --green: #16a34a; --green-soft: #dcf5e4; --gray-soft: #f1f5f9;
  --side: #171c1a; --side-fg: #cdd5d1; --side-muted: #85938c; --side-active: #433519; --side-active-fg: #f3bb49; --side-section: #9cbc5c;
  --radius: 8px; --shadow: 0 1px 2px rgba(0,0,0,.05);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }

body > header { background: var(--side); color: #fff; padding: 0 16px; display: flex; align-items: center; gap: 12px; height: 56px;
  position: sticky; top: 0; z-index: 50; }
body > header .logo { display: flex; align-items: center; gap: 10px; white-space: nowrap; min-width: 0; }
body > header .logo img { height: 36px; width: auto; display: block; flex: none; }
body > header h1 { font-size: 16px; font-weight: 600; letter-spacing: -.4px; margin: 0; white-space: nowrap; }
body > header h1 span { color: var(--side-muted); font-weight: 400; }
body > header .who { margin-left: auto; position: relative; }
/* Initials and first name, as in the Credentialing app; clicking opens the account menu. */
.whoami { display: flex; align-items: center; gap: 8px; background: none; padding: 4px 6px; border-radius: 6px; cursor: pointer;
  border: none; color: var(--side-fg); }
.whoami:hover { background: rgba(255,255,255,.05); color: #fff; }
.whoami .name { font-size: 14px; }
.chip { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 12px; font-weight: 600;
  color: #fff; background: var(--brand-teal); flex: none; }
.whomenu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 8px 28px rgba(16,32,48,.18); padding: 6px; min-width: 190px; z-index: 80; display: flex; flex-direction: column; }
.whomenu button { background: none; border: none; text-align: left; padding: 8px 12px; border-radius: 6px; font-weight: 500;
  color: var(--ink); cursor: pointer; }
.whomenu button:hover { background: var(--gray-soft); }
.navToggle { display: none; background: none; border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 6px;
  width: 36px; height: 34px; font-size: 17px; align-items: center; justify-content: center; flex: none; cursor: pointer; }

/* The sidebar stays put while the page scrolls, and never scrolls itself (there are only a few items). Three tiers, as in
   the Credentialing app: leaf-green section labels, semibold items, lighter sub-items on an indented rail. */
.layout { display: flex; align-items: flex-start; min-height: calc(100vh - 56px); }
nav { background: var(--side); color: var(--side-fg); width: 240px; flex: none; padding: 12px; display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: 56px; height: calc(100vh - 56px); overflow: hidden; }
nav .navgroup { display: flex; flex-direction: column; gap: 2px; }
nav .navlabel { padding: 0 12px 4px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--side-section);
  background: none; border: none; text-align: left; display: flex; align-items: center; }
nav button.navlabel { cursor: pointer; }
nav button.navlabel:hover { color: #b8d27c; }
nav .navlabel .chev { margin-left: auto; font-size: 11px; color: var(--side-muted); }
nav .navlink { background: transparent; border: none; color: var(--side-fg); padding: 8px 12px; border-radius: 6px; font-size: 14px;
  font-weight: 600; text-align: left; width: 100%; cursor: pointer; white-space: nowrap; }
nav .navlink:hover { background: rgba(255,255,255,.05); color: #fff; }
nav .navlink.active { background: var(--side-active); color: var(--side-active-fg); }
nav .subnav { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 0 16px; padding-left: 4px; border-left: 1px solid rgba(255,255,255,.1); }
nav .subnav .navlink { font-size: 13px; font-weight: 400; padding: 6px 12px; color: var(--side-muted); }
nav .subnav .navlink.active { color: var(--side-active-fg); font-weight: 500; }
nav .navfoot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding: 12px 12px 0; font-size: 12px; color: var(--side-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navScrim { display: none; }
main { flex: 1; min-width: 0; padding: 32px 24px 56px; max-width: 1536px; margin: 0 auto; }
main.wide { max-width: none; }   /* the billing dashboard uses the whole screen (Samantha 11/24) */
@media (max-width: 860px) {
  body > header { padding: 0 12px; gap: 10px; }
  body > header h1 { font-size: 15px; }
  body > header h1 span { display: none; }
  .navToggle:not([hidden]) { display: inline-flex; }
  .whoami .name { display: none; }
  .whoami { padding: 5px; }
  nav { position: fixed; top: 56px; left: 0; bottom: 0; height: auto; width: 270px; max-width: 82vw; transform: translateX(-100%);
    transition: transform .22s ease; z-index: 70; box-shadow: 0 0 40px rgba(0,0,0,.55); }
  .layout.navOpen nav { transform: translateX(0); }
  .navScrim { display: block; position: fixed; inset: 56px 0 0 0; background: rgba(0,0,0,.45); z-index: 65; opacity: 0;
    pointer-events: none; transition: opacity .22s ease; }
  .layout.navOpen .navScrim { opacity: 1; pointer-events: auto; }
  main { padding: 16px 14px 60px; }
}
main h2 { font-size: 24px; font-weight: 600; letter-spacing: -.6px; margin: 0 0 4px; }
.sub { color: var(--muted); margin: 0 0 20px; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 20px; margin-bottom: 16px; }
.center { display: flex; justify-content: center; padding: 64px 16px; }
.narrow { width: 100%; max-width: 420px; }
.narrow h2 { font-size: 20px; margin: 0 0 6px; }
label { display: block; font-weight: 600; font-size: 13px; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], select {
  width: 100%; padding: 10px 12px; border: 1px solid #cfd8e0; border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, select:focus, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
input.code { font-size: 24px; letter-spacing: 6px; text-align: center; font-variant-numeric: tabular-nums; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; }

.primary { background: var(--teal); color: #f2fbf8; border: 1px solid var(--teal); border-radius: 6px; padding: 8px 16px; font-weight: 500; cursor: pointer; }
.primary:hover { background: var(--teal-dark); }
.primary:disabled { opacity: .6; cursor: default; }
.ghost { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 7px 14px; font-weight: 500; cursor: pointer; color: var(--ink); }
.ghost:hover { background: var(--gray-soft); }
.link { background: none; border: none; color: var(--teal-dark); font-weight: 600; cursor: pointer; padding: 0; }
.danger { color: var(--red); }
.muted { color: var(--muted); }
.msg { margin-top: 12px; font-size: 13px; min-height: 1em; }
.msg.err { color: var(--red); }
.msg.ok { color: var(--green); }

.status { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status.needs { background: var(--red-soft); color: #b91c1c; }
.status.waiting { background: var(--amber-soft); color: #92400e; }
.status.done { background: var(--green-soft); color: #166534; }
.status.none { background: var(--gray-soft); color: var(--muted); }
.status.sent { background: #dfeafd; color: #1d4ed8; }   /* sent, not yet paid: blue, so green means paid */
.status.ready { background: var(--teal-soft); color: var(--teal-dark); }
.inv summary .status, .pay-item .status { white-space: normal; max-width: 260px; border-radius: 10px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
tr:last-child td { border-bottom: 0; }
td select { width: auto; padding: 6px 8px; }
.scroll { overflow-x: auto; }
.actions { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; white-space: nowrap; }
td .what + .muted { font-size: 12.5px; }
.qr { display: block; margin: 14px auto; border: 1px solid var(--line); border-radius: 8px; }
.secret { font-family: ui-monospace, Menlo, monospace; font-size: 13px; word-break: break-all; background: var(--gray-soft); padding: 8px 10px; border-radius: 6px; }
.copybox { display: flex; gap: 8px; margin-top: 10px; }
.copybox input { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item .what { font-weight: 600; }
.item .more { color: var(--muted); font-size: 13px; margin-top: 2px; }
.checks { display: flex; gap: 16px; flex-wrap: wrap; }
.checks label { font-weight: 500; display: flex; gap: 6px; align-items: center; margin: 6px 0; }


/* ---------------------------------------------------------------- sections moved in (payroll first, 11/24) */
.card.flush { padding: 0; }
.card.block, .block { padding: 18px 20px; display: grid; gap: 10px; }
.pr .card h3, .pr-h { font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); margin: 0; }
.pr-h { margin: 0 0 8px; }
.pr { display: grid; gap: 20px; }
.pr-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.pr-head h2 { margin: 0; }
.pr-item { padding: 16px 20px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.pr-item:last-child { border-bottom: 0; }
.pr-item p, .block p { margin: 0; max-width: 72ch; white-space: pre-wrap; }
.kind { font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.what { font-weight: 600; }
.money { font-family: ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row.tight { margin-top: 0; }
.row.spread { justify-content: space-between; }
.stack { display: grid; gap: 8px; }
textarea { font: inherit; width: 100%; min-height: 64px; border: 1px solid #cfd8e0; border-radius: 8px; background: #fff; color: var(--ink); padding: 10px 12px; resize: vertical; }
textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
a { color: var(--teal-dark); }

.pr-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.pr-tab { border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); padding: 10px 14px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.pr-tab:hover { color: var(--ink); }
.pr-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--teal); }
.monthbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.monthnav { display: flex; align-items: center; gap: 6px; }
.monthnav b { font-size: 17px; min-width: 9.5em; text-align: center; }
.monthnav button { width: 38px; padding: 6px 0; font-size: 16px; }
.monthnav button:disabled { opacity: .4; cursor: default; }
.month { display: grid; gap: 14px; }
.subtabs { display: flex; gap: 4px; background: var(--gray-soft); padding: 4px; border-radius: 10px; width: max-content; max-width: 100%; overflow-x: auto; }
.subtabs button { border: 0; background: transparent; padding: 7px 16px; border-radius: 8px; font-weight: 700; color: var(--muted); white-space: nowrap; cursor: pointer; }
.subtabs button:hover { color: var(--ink); }
.subtabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; }
.kv .lbl { color: var(--muted); }
.kv .tot { font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); padding-top: 6px; }
.kv.cmp { grid-template-columns: 1fr auto auto auto; }
.kv.cmp .h { font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; text-align: right; }
.kv.calc { max-width: 460px; }
.kv.calc .money, .kv.cmp .money { text-align: right; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; }
.stat.main { background: var(--teal-soft); border-color: transparent; }
.stat .l { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 700; }
.stat .v { font-size: 21px; font-weight: 700; color: var(--ink); }
.stat .s { font-size: 12.5px; color: var(--muted); }
.sect { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 8px; }
.sect h4 { margin: 0; font-size: 14.5px; display: flex; gap: 8px; align-items: center; }
.sect h4 .count { font-size: 11.5px; background: var(--gray-soft); color: var(--muted); border-radius: 999px; padding: 1px 8px; }
.sect.attn { background: var(--amber-soft); border: 0; border-radius: 10px; padding: 12px 14px; }
.sect.attn h4 { color: #92400e; }
.sect.attn h4 .count { background: #fff; color: #92400e; }
details summary { cursor: pointer; }
ul.plain { margin: 0; padding-left: 18px; color: var(--muted); }
ul.plain li { margin: 3px 0; }

.ready .next { background: var(--teal-soft); border-radius: 10px; padding: 12px 14px; font-size: 15px; font-weight: 700; }
.ready .next small { display: block; font-weight: 600; font-size: 11.5px; color: var(--teal-dark); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 2px; }
.ready .next.hold { background: var(--amber-soft); }
.ready .next.hold small { color: #92400e; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.step { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; border: 2px solid var(--line); color: var(--muted); background: #fff; }
.step.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.step.now .dot { border-color: var(--teal); color: var(--teal-dark); }
.step.now.hold .dot { border-color: var(--amber); color: var(--amber); }
.step.later { color: var(--muted); }
.step .st-title { font-weight: 700; line-height: 1.35; }
.step.later .st-title { font-weight: 500; }
.step .st-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.step .st-meta b { color: var(--ink); }
.step .st-meta .tag { background: var(--teal-soft); color: var(--teal-dark); border-radius: 999px; padding: 1px 8px; font-weight: 700; margin-right: 6px; }
.step.now.hold .st-meta .tag { background: var(--amber-soft); color: #92400e; }
.step p { margin: 6px 0 0; }
.step ul { margin: 6px 0 0; }
.step a.filelink { display: inline-block; margin-top: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 600; }
.step a.filelink:hover { background: var(--teal-soft); }
.step ul.subs { list-style: none; padding: 0; display: grid; gap: 4px; }
.step ul.subs li { display: grid; grid-template-columns: 18px 22px 1fr; align-items: baseline; }
.step ul.subs .mark { font-weight: 700; color: var(--muted); }
.step ul.subs .k { color: var(--muted); }
.step ul.subs .sub-done .mark { color: var(--green); }
.step ul.subs .sub-now .mark { color: var(--teal); }
.step ul.subs .sub-now .t { font-weight: 600; }
.step ul.subs .sub-later { color: var(--muted); }
.step ul.subs .note, .auto { color: var(--muted); font-size: 12.5px; font-weight: 400; }
label.tick { display: inline-flex; gap: 8px; align-items: baseline; cursor: pointer; font-weight: inherit; font-size: inherit; margin: 0; }
label.tick input { width: 16px; height: 16px; margin: 0; accent-color: var(--teal); cursor: pointer; transform: translateY(2px); }
label.tick input:disabled { cursor: default; }
.step > div > label.tick { margin-top: 8px; }
.step details { margin-top: 8px; }

.est-t { font-size: 13px; }
.est-t th, .est-t td { padding: 5px 8px; white-space: nowrap; }
.est-t td.money { text-align: right; }
.est-t .totrow td { font-weight: 700; }
.doc-t td { vertical-align: top; padding: 8px; }
.doc-t td.what { white-space: normal; font-weight: 400; }
.doc-t td.when { font-weight: 700; font-variant-numeric: tabular-nums; }
.doc-t .who { font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.doc-t .tag { font-size: 11px; font-weight: 700; background: var(--gray-soft); color: var(--muted); border-radius: 999px; padding: 1px 8px; }
.doc-t .quote.more { cursor: pointer; text-decoration: underline dotted var(--muted); text-underline-offset: 3px; }
.doc-t tr:hover td { background: var(--bg); }
.doc-t .how { color: var(--muted); font-size: 12px; margin-top: 2px; }

.ex { border-top: 1px solid var(--line); }
.ex summary { list-style: none; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 12px 20px; }
.ex summary::-webkit-details-marker { display: none; }
.ex .who { font-weight: 700; }
.ex .txt { color: var(--muted); font-size: 13px; margin-top: 2px; }
.ex .body { padding: 0 20px 14px; display: grid; gap: 8px; }
.run { padding: 14px 20px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.run:last-child { border-bottom: 0; }
.run .when { font-size: 12.5px; color: var(--muted); }
.run ul { margin: 0; padding-left: 18px; }
.run .err { color: #92400e; }
.feedmore { padding: 12px 20px; }
.note-item { padding: 14px 20px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.note-item .reply { color: var(--muted); border-left: 2px solid var(--line); padding-left: 10px; }
.today-group { margin: 22px 0 8px; }
.item .go { margin-left: auto; white-space: nowrap; }
/* No sideways scroll at any width (11/24): grid and flex children may shrink below their content's natural width;
   long text wraps, and a tab row scrolls inside itself. Zero specificity, so a component can still set its own. */
:where(.block, .pr, .pr-item, .stack, .month, .kv, .stats, .stat, .sect, .steps, .step, .ex summary, .ex .body, .run,
  .note-item, .inv summary, .inv .detail, .latest, .cal-item, .miss, .chg, .chg .pairs, .chg .pair, .chg .ba, .upload) > * { min-width: 0; }
.item > div { flex: 1; min-width: 0; }
@media (max-width: 560px) {
  .kv.cmp { font-size: 12px; gap: 4px 8px; }
  .monthnav b { min-width: 0; }
  .ex summary { grid-template-columns: 1fr auto; }
}

/* Stipends (11/24) */
.big-line { font-size: 17px; }
.late-line { color: #b91c1c; font-weight: 600; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts button.picked { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-dark); }
.inv { border-bottom: 1px solid var(--line); }
.inv:last-of-type { border-bottom: 0; }
.inv summary { list-style: none; display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 20px; }
.inv summary::-webkit-details-marker { display: none; }
.inv summary .fac { font-weight: 700; min-width: 0; }
.inv summary .fac small { display: block; white-space: normal; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.inv[open] summary { background: var(--bg); }
.inv .detail { padding: 6px 20px 18px; display: grid; gap: 8px; color: var(--muted); }
.inv .detail p { margin: 0; }
.inv .detail b { color: var(--ink); }
.inv .detail .math { color: var(--ink); font-size: 15px; }
.callout { background: var(--amber-soft); border-left: 3px solid var(--amber); border-radius: 6px; padding: 10px 12px; color: var(--ink); display: grid; gap: 6px; }
.latest { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 6px; }
.latest .ntext { color: var(--ink); }
.history summary { font-weight: 700; color: var(--teal-dark); padding: 4px 0; }
.history ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 10px; }
.nhead { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ndate { font-weight: 700; color: var(--ink); }
.nlabel { font-weight: 700; color: var(--teal-dark); }
.ntext { max-width: 72ch; }
.totals { padding: 12px 20px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); color: var(--muted); flex-wrap: wrap; }
.totals .money { color: var(--ink); font-weight: 700; }
.cal-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 12px 20px; border-bottom: 1px solid var(--line); align-items: center; }
.cal-item .when { font-size: 12.5px; color: var(--muted); grid-column: 1; }
/* Payments due (11/24): a row per invoice. */
.pay-item { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.pay-item > * { min-width: 0; }
.pay-block { margin-bottom: 16px; }
.pay-item .fac { font-weight: 700; }
.pay-item .fac small, .pay-item .money small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.pay-item .money { text-align: right; }
.group { padding: 9px 20px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); background: var(--bg); border-bottom: 1px solid var(--line); }
@media (max-width: 560px) {
  .inv summary { grid-template-columns: 1fr auto; padding: 14px 16px; }
  .inv summary .status { grid-column: 1; justify-self: start; }
  .inv summary .money { grid-row: 1; grid-column: 2; }
  .pay-item { grid-template-columns: 1fr auto; padding: 12px 16px; }
  .pay-item .status { grid-column: 1; justify-self: start; }
  .pay-item .money { grid-row: 1; grid-column: 2; }
}

/* Billing dashboard (11/24) */
.dash-frame { width: 100%; height: calc(100vh - 230px); min-height: 640px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: block; }
.miss { padding: 12px 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; }
.miss .who { color: var(--muted); font-size: 13px; grid-column: 2; }
.havefold { padding: 10px 20px 14px; border-top: 1px solid var(--line); }
.chg { padding: 14px 20px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.chg:last-child { border-bottom: 0; }
.chg .where { font-size: 12px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.chg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.tab-tag { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.chg .meaning { margin: 0; font-size: 14.5px; line-height: 1.45; }
.chg .pairs { display: grid; gap: 8px; }
.chg .pair { display: grid; grid-template-columns: 5.5em 1fr; gap: 2px 10px; padding: 8px 10px; background: var(--bg); border-radius: 6px; }
.chg .pair .lbl { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; padding-top: 2px; }
.chg .pair .lbl.add { color: var(--green); }
.chg .pair .lbl.del { color: var(--red); }
.chg .pair .old { color: var(--muted); }
.chg .pair .gone { color: var(--muted); text-decoration: line-through; }
.chg .pair > div { min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.pr-item .gist { margin: 6px 0 10px; padding-left: 18px; display: grid; gap: 4px; }
.chg .ba { display: grid; grid-template-columns: 4.5em 1fr; gap: 4px 10px; }
.chg .ba span:nth-child(odd) { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; padding-top: 2px; }
.nums, .pts { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.nums .out { color: var(--red); text-decoration: line-through; }
.nums .in { color: var(--green); }
.pts { margin: 0; padding-left: 18px; }
@media (max-width: 560px) { .chg .ba, .chg .pair { grid-template-columns: 1fr; } .dash-frame { height: 75vh; min-height: 480px; } }
.pr .block .sub, .pr .pr-item .sub { margin: 0; }

/* Payroll steps: short tables, ADP report upload, one-question cards (Samantha 11/24/2026) */
.pr-table { margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pr-table th, .pr-table td { padding: 8px 10px; font-size: 13.5px; vertical-align: top; }
.pr-table td.money, .pr-table td.pay { white-space: nowrap; font-variant-numeric: tabular-nums; font-family: inherit; }
.pr-table td.strong { font-weight: 700; }
.pr-table details summary { font-size: 12.5px; cursor: pointer; margin-top: 2px; }
.pr-table details p { margin-top: 4px; max-width: 48ch; }
.upload { margin-top: 10px; display: grid; gap: 6px; }
.upload .sub { margin: 0; }
.row.wrap { flex-wrap: wrap; }
.q-card .q-ask { font-weight: 600; font-size: 15px; }
.q-card .q-who { font-weight: 700; }
.q-rec { background: var(--teal-soft); border-radius: 10px; padding: 10px 12px; max-width: 72ch; }
.q-rec small { display: block; font-weight: 700; font-size: 11.5px; color: var(--teal-dark); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 2px; }
.q-card details summary { cursor: pointer; }
.pr-tab .grp-n { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--amber-soft); color: #92400e; font-size: 12px; font-weight: 700; }
.pr-tab .grp-n:empty { display: none; }
