/* ---------------------------------------------------------------------------
 * SCKA Chart Prep — styled to match southerncaliforniakidney.com (2026-10-23):
 * warm off-white page, deep navy, a gold accent, Inter for text and Playfair
 * Display for headings. Tokens below are the website's own computed values.
 * ------------------------------------------------------------------------- */
:root {
  --bg: #f8f6f1;
  --card: #ffffff;
  --navy: #063e5c;
  --navy-dark: #042c42;
  --blue: #0e6a9b;
  --gold: #c8922a;
  --gold-dark: #a87a22;
  --line: #d4d0c9;
  --line-soft: #e8e4dc;
  --text: #0a0a0a;
  --muted: #5a5a5a;
  --warn-bg: #fdf6e7;
  --warn-line: #e3c77f;
  --danger: #b3261e;
  --danger-bg: #fdecea;
  --ok: #2a7a4b;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 4px;
}
* { box-sizing: border-box; }
/* the `hidden` attribute must win over any display rule below (.progress is flex) */
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  display: flex; flex-direction: column; min-height: 100vh;
}

/* ---- header ------------------------------------------------------------ */
.topbar { background: var(--navy); color: #fff; }
.topbar-inner {
  max-width: 1040px; margin: 0 auto; padding: 12px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; min-width: 0; }
.logo { height: 42px; width: auto; display: block; }
.brand-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.35); }
.brand-app { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: 0.2px; white-space: nowrap; }
.user { display: flex; align-items: center; gap: 14px; font-size: 14px; color: rgba(255,255,255,0.85); }
.session-note { font-size: 12px; color: var(--gold); }
.link-btn { background: none; border: none; color: #fff; cursor: pointer; font-size: 14px; font-family: var(--font); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--gold); }

/* ---- layout ------------------------------------------------------------ */
.container { max-width: 1040px; width: 100%; margin: 28px auto; padding: 0 20px; flex: 1; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 18px;
}
.card.center { text-align: center; max-width: 620px; margin: 48px auto; }
h1, h2 { font-family: var(--serif); color: var(--navy); margin: 0 0 10px; font-weight: 600; }
h1 { font-size: 28px; } h2 { font-size: 20px; }
p { margin: 0 0 12px; }
.hint { color: var(--muted); font-size: 13px; font-weight: 400; }
.fineprint { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
input[type=text] {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 16px; font-family: var(--font); background: #fff; color: var(--text);
}
input[type=text]:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }

/* ---- buttons ----------------------------------------------------------- */
.btn {
  border: 1px solid transparent; border-radius: var(--radius); padding: 11px 18px;
  font-size: 15px; font-weight: 600; font-family: var(--font); cursor: pointer; line-height: 1.3;
  transition: background 120ms ease, border-color 120ms ease;
}
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--navy-dark); }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover:not(:disabled) { background: var(--gold-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { border-color: var(--navy); }
.btn-small { padding: 6px 12px; font-size: 13px; }

.mode-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.mode-btn { text-align: left; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.mode-title { font-size: 16px; font-weight: 700; }
.mode-desc { font-size: 13px; font-weight: 400; opacity: 0.9; }
@media (max-width: 680px) { .mode-row { grid-template-columns: 1fr; } }

/* ---- notices ----------------------------------------------------------- */
.notice {
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 12px 14px; font-size: 14px; margin-bottom: 18px;
}
.status { padding: 10px 0; font-size: 14px; color: var(--muted); }
.error {
  background: var(--danger-bg); border: 1px solid var(--danger); border-left: 5px solid var(--danger);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; font-size: 15px; color: #5a1410;
}
.error code { background: #fff; padding: 1px 5px; border-radius: 3px; }

/* Patient-identity confirmation banner (safety-critical, must stand out) */
.verify {
  background: var(--danger-bg); border: 2px solid var(--danger); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 14px; font-size: 15px; line-height: 1.5;
}
.verify code { background: #fff; padding: 1px 5px; border-radius: 3px; }
.verify .verify-name { font-size: 17px; font-weight: 700; color: var(--navy); }

/* ---- progress ---------------------------------------------------------- */
.progress { display: flex; align-items: center; gap: 16px; border-left: 4px solid var(--blue); }
.progress-text { flex: 1; }
.progress-title { font-weight: 600; color: var(--navy); }
.progress-stage { color: var(--muted); font-size: 14px; }
.progress-elapsed { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; min-width: 48px; text-align: right; }
.spinner {
  width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line-soft);
  border-top-color: var(--blue); animation: spin 0.9s linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- result ------------------------------------------------------------ */
.result { margin-bottom: 18px; }
.result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.result-disclaimer { font-size: 13px; color: var(--muted); }
.result-labline { font-size: 13px; font-weight: 600; margin-top: 4px; }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sections { display: flex; flex-direction: column; gap: 12px; }
.section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.section-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--line-soft); background: #fbfaf7;
}
.section-title { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 16px; }
.section-meta { font-size: 12px; color: var(--muted); margin-left: 8px; }
.section pre {
  white-space: pre-wrap; word-wrap: break-word; font-family: var(--mono);
  font-size: 13.5px; line-height: 1.55; margin: 0; padding: 14px 16px; color: var(--text);
}
.section pre .line { display: inline; }
.section pre .line.flag { color: var(--danger); font-weight: 700; }
.section pre .line.pending { color: #8a4b00; font-weight: 600; }
.section pre .line.ocr { color: #3f3a30; }
.section pre .line.note { color: var(--muted); font-style: italic; }
.section pre .line.heading { color: var(--navy); font-weight: 700; }
.section.not-paste .section-head { background: #f3f1ec; }
.result-footer { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---- ask --------------------------------------------------------------- */
.ask-row { display: flex; gap: 10px; }
.ask-row input { flex: 1; }
.ask-thread { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.qa { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 12px 14px; background: #fbfaf7; }
.qa-q { font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.qa-a { white-space: pre-wrap; font-size: 14px; }
.qa-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; color: var(--muted); }

/* ---- footer / toast ---------------------------------------------------- */
.footer { text-align: center; font-size: 12px; color: var(--muted); padding: 18px 20px 26px; border-top: 1px solid var(--line-soft); }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,0.18); z-index: 10;
}

/* =========================================================================
 * OPS-HUB (2026-10-25): tab bar + the operations hub home screen
 * ========================================================================= */
.ico {
  width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.btn-icon { display: inline-flex; align-items: center; gap: 7px; }
.btn-icon .ico { width: 16px; height: 16px; }

/* ---- tabs -------------------------------------------------------------- */
.tabs { background: #fff; border-bottom: 1px solid var(--line); }
.tabs-inner { max-width: 1040px; margin: 0 auto; padding: 0 20px; display: flex; gap: 6px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 14px 10px;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab .ico { width: 18px; height: 18px; }
.tab:hover { color: var(--navy); }
.tab:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.tab[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }

/* ---- hub header -------------------------------------------------------- */
.hub-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.hub-head h1 { margin-bottom: 4px; }
.hub-sub { color: var(--muted); font-size: 14px; margin: 0; max-width: 580px; }
.hub-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hub-updated { color: var(--muted); font-size: 12px; text-align: right; margin: 4px 0 0; }
.hub-loading { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 28px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 11px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #9a958c; flex: none; display: inline-block; }
.chip.ok .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(42, 122, 75, 0.16); }
.chip.bad { border-color: #f0c4bf; background: var(--danger-bg); }
.chip.bad .dot { background: var(--danger); }

.attention {
  background: var(--danger-bg); border: 1px solid #f0c4bf; border-left: 4px solid var(--danger);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 20px; font-size: 14px; color: #5a1410;
}
.attention-title { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.attention-title .ico { width: 18px; height: 18px; color: var(--danger); }
.attention ul { margin: 6px 0 0; padding-left: 26px; }
.attention li + li { margin-top: 2px; }
.attention a { color: #5a1410; font-weight: 600; }

/* ---- groups and tiles -------------------------------------------------- */
.group { margin-bottom: 28px; }
.group-title {
  font-family: var(--serif); font-size: 19px; color: var(--navy); margin: 0 0 12px;
  display: flex; align-items: baseline; gap: 10px;
}
.group-title .hint { font-family: var(--font); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 780px) { .tiles { grid-template-columns: 1fr; } }

.tile {
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--line);
  border-radius: 6px; padding: 18px 20px 14px; display: flex; flex-direction: column; gap: 11px;
  min-width: 0; scroll-margin-top: 16px;
}
.tile.s-ok { border-top-color: var(--ok); }
.tile.s-running { border-top-color: var(--blue); }
.tile.s-problem { border-top-color: var(--danger); }
.tile.s-stale { border-top-color: var(--gold); }
.tile.open { grid-column: 1 / -1; }
.tile.flash { animation: flash 1.2s ease-out 1; }
@keyframes flash { 0% { box-shadow: 0 0 0 4px rgba(200, 146, 42, 0.55); } 100% { box-shadow: 0 0 0 0 rgba(200, 146, 42, 0); } }

.tile-head { display: flex; align-items: flex-start; gap: 12px; }
.tile-icon {
  width: 42px; height: 42px; border-radius: 9px; background: #e9f0f4; color: var(--navy);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.tile-icon .ico { width: 22px; height: 22px; }
.tile.s-problem .tile-icon { background: var(--danger-bg); color: var(--danger); }
.tile-titles { flex: 1; min-width: 0; }
.tile-title { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--navy); margin: 0; line-height: 1.25; }
.tile-sub { font-size: 13px; color: var(--muted); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap; flex: none;
}
.pill-ok { background: #e6f2ea; color: #1d5a37; }
.pill-ok .dot { background: var(--ok); }
.pill-running { background: #e4eff7; color: var(--blue); }
.pill-running .dot { background: var(--blue); animation: pulse 1.4s ease-in-out infinite; }
.pill-problem { background: var(--danger-bg); color: var(--danger); }
.pill-problem .dot { background: var(--danger); }
.pill-stale { background: var(--warn-bg); color: #7a5512; }
.pill-stale .dot { background: var(--gold); }
.pill-unknown { background: #f0eee9; color: var(--muted); }
@keyframes pulse { 50% { opacity: 0.3; } }

.tile-headline { font-weight: 600; font-size: 15px; margin: 0; overflow-wrap: anywhere; }
.tile-times { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13px; color: var(--muted); }
.tile-times strong { color: var(--text); font-weight: 600; }
.metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.metric { background: #fbfaf7; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 8px 10px; min-width: 0; }
.metric-value { font-size: 22px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.2; }
.metric-label { font-size: 12px; color: var(--muted); line-height: 1.3; }
.tile-notes { margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.tile-notes li + li { margin-top: 2px; }
.tile-runline {
  display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--navy);
  background: #eef4f8; border-radius: var(--radius); padding: 8px 10px;
}
.tile-runline .ico { width: 16px; height: 16px; margin-top: 1px; }
.tile-runline.failed { background: var(--danger-bg); color: #5a1410; }
.tile-msg { font-size: 13px; margin: 0; }
.tile-msg.ok { color: var(--ok); }
.tile-msg.warn { color: #7a5512; }
.tile-msg.bad { color: var(--danger); font-weight: 600; }

.tile-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft);
}
.run-off { display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; color: var(--muted); flex: 1 1 260px; }
.run-off .ico { width: 15px; height: 15px; margin-top: 2px; }
.btn-run { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; font-size: 14px; }
.btn-run .ico { width: 15px; height: 15px; }
.btn-run .ico-play { fill: currentColor; stroke: none; }
.btn-run:disabled { background: #efe7d6; color: #6b5a33; opacity: 1; }
.more-btn {
  background: none; border: none; color: var(--blue); font: 600 13px var(--font); cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 2px; margin-left: auto;
}
.more-btn:hover { color: var(--navy); }
.more-btn .ico { width: 16px; height: 16px; transition: transform 150ms ease; }
.more-btn[aria-expanded="true"] .ico { transform: rotate(180deg); }

.tile-details { border-top: 1px dashed var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.tile-desc { font-size: 14px; margin: 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: 13px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.tbl { border-collapse: collapse; width: 100%; font-size: 13px; }
.tbl caption { text-align: left; font-weight: 600; color: var(--navy); padding: 9px 10px; }
.tbl caption .hint { font-weight: 400; margin-left: 6px; }
.tbl th, .tbl td { padding: 6px 10px; border-top: 1px solid var(--line-soft); white-space: nowrap; text-align: left; }
.tbl th { background: #fbfaf7; font-weight: 600; color: var(--muted); font-size: 12px; white-space: normal; vertical-align: bottom; line-height: 1.3; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tbody tr:hover td { background: #fbfaf7; }
.tbl tfoot td { font-weight: 700; background: #f4f2ec; border-top: 2px solid var(--line); }

/* ---- confirm dialog ---------------------------------------------------- */
.dialog {
  border: none; border-radius: 8px; padding: 0; width: calc(100% - 32px); max-width: 480px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28); color: var(--text);
}
.dialog::backdrop { background: rgba(4, 44, 66, 0.5); }
.dialog form { padding: 22px 24px 20px; }
.dialog p { font-size: 15px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* =========================================================================
 * REVIEWS-1 (2026-10-25): Employee reviews
 * ========================================================================= */
.rf-grid { display: grid; grid-template-columns: minmax(220px, 2fr) auto minmax(200px, 1.4fr) auto; gap: 14px 18px; align-items: end; }
@media (max-width: 860px) { .rf-grid { grid-template-columns: 1fr 1fr; } .rf-who { grid-column: 1 / -1; } }
@media (max-width: 520px) { .rf-grid { grid-template-columns: 1fr; } }
.review-form select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font: 15px var(--font); background: #fff; color: var(--text);
}
.review-form select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.seg-btn { border: 0; background: none; padding: 11px 16px; font: 600 14px var(--font); color: var(--muted); cursor: pointer; }
.seg-btn + .seg-btn { border-left: 1px solid var(--line); }
.seg-btn[aria-pressed="true"] { background: var(--navy); color: #fff; }
.seg-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.rf-go .btn { white-space: nowrap; }
.rev-result { margin-top: 4px; }
.rev-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; border-top: 3px solid var(--gold); }
.rev-head h2 { font-size: 26px; margin: 2px 0 4px; }
.rev-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-dark); }
.rev-meta { font-size: 13.5px; color: var(--muted); }
.rev-meta + .rev-meta { margin-top: 2px; }
.rev-h3 { font-family: var(--serif); color: var(--navy); font-size: 18px; margin: 0 0 10px; }
.rev-highlights { margin: 0; padding-left: 20px; font-size: 14.5px; }
.rev-highlights li + li { margin-top: 4px; }
.rev-coverage ul { margin: 4px 0 0; padding-left: 20px; }
.rev-tbl th[scope="row"] { color: var(--text); font-size: 13px; font-weight: 600; background: #fff; position: sticky; left: 0; z-index: 1; white-space: normal; min-width: 170px; cursor: help; }
.rev-tbl thead th:first-child { position: sticky; left: 0; z-index: 2; }
.rev-tbl td.rev-period, .rev-tbl th.rev-period { background: #f6f2e7; }
.rev-delta { font-size: 11.5px; font-weight: 600; margin-left: 4px; white-space: nowrap; }
.rev-delta.up { color: var(--ok); }
.rev-delta.down { color: var(--danger); }
.rev-fn { font-size: 10px; color: var(--muted); margin-left: 1px; }
.rev-fns { margin: 10px 0 0; padding-left: 20px; font-size: 12.5px; color: var(--muted); }
.rev-rank { white-space: nowrap; }
.chip-team { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue); background: #e4eff7; border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.rev-defs summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.rev-defs[open] summary { margin-bottom: 10px; }
.rev-notes { margin: 0 0 18px; }

@media (max-width: 560px) {
  .container { padding: 0 16px; margin-top: 20px; }
  .tabs-inner { padding: 0 10px; gap: 0; overflow-x: auto; }
  .tab { white-space: nowrap; padding: 12px 10px 9px; font-size: 13.5px; }
  .topbar-inner { padding: 10px 16px; }
  .user #whoami { display: none; }
  .logo { height: 34px; }
  .brand-app { font-size: 17px; }
  .tile { padding: 16px 16px 12px; }
  .hub-meta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pill-running .dot, .spinner, .tile.flash { animation: none; }
}

@media print {
  .rev-defs { display: block; } .rev-defs > *:not(summary) { display: block; }
  .rev-tbl th[scope="row"] { position: static; }
  .topbar, .tabs, #hubRefreshBtn, .tile-foot, .review-form, .rev-actions, #reviewsView > .hub-head, #prepView .notice, #prepCard, #askCard, .result-actions, .footer, .section-head button { display: none !important; }
  body { background: #fff; }
  .section { border: none; page-break-inside: avoid; }
}
/* COMPARE-1: all employees */
.rf-go { display: flex; gap: 8px; flex-wrap: wrap; }
.rev-sort { cursor: pointer; user-select: none; }
.rev-sort.on { color: var(--text); text-decoration: underline; }
/* LAYOUT-1 (Eric 2026-11-16 "the columns width is not so wide ... pull down the header of the column into 2 or 3 lines"):
   headings wrap to 2-3 lines; each cell is the value (and grade) with rank and change on a small second line */
.rev-cmp th { white-space: normal; min-width: 64px; max-width: 104px; line-height: 1.2; vertical-align: bottom; }
.rev-cmp thead th:first-child { max-width: none; min-width: 120px; }
.rev-cmp td { white-space: nowrap; padding-left: 8px; padding-right: 8px; }
.rev-cmp .rev-cv { display: block; }
.rev-cmp .rev-sub { display: block; font-size: 11px; line-height: 1.2; color: var(--muted, #666); }
.rev-cmp .rev-sub .rev-rk { margin-left: 0; font-size: 11px; }
.rev-cmp .rev-sub .rev-delta { font-size: 11px; margin-left: 2px; }
.rev-rk { font-size: 11.5px; color: var(--muted, #666); margin-left: 4px; }
.rev-top { background: #eef6ee; }
@media print { .rev-sort { text-decoration: none; } }
#reviewsView .seg-btn { white-space: nowrap; }
/* PRINT-1 (Eric 2026-11-12): an Employee review - quarterly or 12-month - prints on a LANDSCAPE page, every column
   on the page. Only affects printing; the screen layout is unchanged. */
@page { size: letter landscape; margin: 0.35in; }
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html, body { width: auto; background: #fff; }
  .container { max-width: none; width: auto; margin: 0; padding: 0; }
  #revResult .card { box-shadow: none; border: 1px solid #d9d4c7; padding: 6px 8px; margin: 0 0 8px; }
  #revResult .tbl-wrap { overflow: visible !important; border: none; }
  #revResult .tbl { font-size: 7.5pt; width: 100%; table-layout: auto; }
  #revResult .tbl th, #revResult .tbl td { padding: 2px 3px; line-height: 1.2; }
  #revResult .tbl th { font-size: 7pt; }
  #revResult .rev-tbl th[scope="row"] { position: static; min-width: 0; max-width: 2.3in; font-size: 7.5pt; white-space: normal; }
  #revResult .rev-tbl thead th:first-child { position: static; }
  #revResult .rev-delta { display: block; margin-left: 0; font-size: 6.5pt; }
  #revResult .rev-h3 { font-size: 11pt; margin: 0 0 4px; }
  #revResult .rev-h4 { font-size: 9pt; margin: 6px 0 3px; }
  #revResult .fineprint, #revResult .hint, #revResult .rev-fns, #revResult .rev-notes-list { font-size: 6.5pt; }
  #revResult thead { display: table-header-group; }
  #revResult tr { break-inside: avoid; page-break-inside: avoid; }
  #revResult h3, #revResult h4 { break-after: avoid; page-break-after: avoid; }
}
.rev-h4 { font-size: 14px; color: var(--navy); margin: 14px 0 6px; font-weight: 600; }
/* TRANK-1 (2026-11-14): Compare all employees fits a landscape page too - headings wrap, rank and notes go under the value */
@media print {
  #revResult .rev-cmp th { white-space: normal !important; min-width: 0; max-width: 1.1in; }
  #revResult .rev-cmp td { white-space: normal !important; font-size: 7pt; }
  #revResult .rev-cmp .rev-rk, #revResult .rev-cmp td .hint { display: block; margin-left: 0; font-size: 6pt; }
}
/* GRADE-1 (2026-11-14): A-F against the practice targets */
.grade { display: inline-block; min-width: 1.6em; padding: 0 5px; border-radius: 5px; font-weight: 700; font-size: 12px; line-height: 1.6;
  text-align: center; color: #fff; vertical-align: middle; white-space: nowrap; }
.grade.g-A { background: #2e7d32; } .grade.g-B { background: #5b8f22; } .grade.g-C { background: #c59100; }
.grade.g-D { background: #d9600f; } .grade.g-F { background: #b3261e; }
.grade-up { font-size: 9px; margin-left: 2px; vertical-align: top; }
.grade-big { font-size: 34px; min-width: 64px; line-height: 64px; height: 64px; border-radius: 12px; padding: 0 10px; }
.grade-none { display: inline-block; text-align: center; color: var(--muted); background: #f1efe9; font-weight: 700; }
.rev-grade-top { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; }
.rev-grade-win { color: #2e7d32; font-weight: 600; margin-top: 4px; }
.rev-grade-row th, .rev-grade-row td { background: #fbfaf7; }
@media print {
  #revResult .grade { font-size: 7pt; line-height: 1.4; padding: 0 3px; }
  #revResult .grade-big { font-size: 22pt; min-width: 0.7in; height: 0.7in; line-height: 0.7in; }
  #revResult .rev-grade-card { break-inside: avoid; }
}
/* VIEWS-1 (2026-11-16): Administrator view (grades) <-> Staff view (rankings and changes, no grades) */
.rev-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rev-view-seg { display: inline-flex; border: 1px solid var(--line, #d9d4c7); border-radius: 8px; overflow: hidden; }
.rev-view-btn { border: 0; background: #fff; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--muted, #666); }
.rev-view-btn + .rev-view-btn { border-left: 1px solid var(--line, #d9d4c7); }
.rev-view-btn.on { background: var(--navy, #1f3a5f); color: #fff; font-weight: 600; }
.rev-view-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #f1efe9; color: var(--muted, #666); font-size: 12px; font-weight: 600; }
.rev-mom { display: block; font-size: 10.5px; margin-left: 0; line-height: 1.1; }
@media print {
  .rev-view-seg, .rev-view-chip { display: none !important; }
  #revResult .rev-mom { font-size: 6pt; }
}
/* LAYOUT-1 (2026-11-16): narrower compare columns - names and roles wrap, notes wrap under the value, and on screen the
   compare table may use up to 1400 px of the window instead of the 1040 px page column (print keeps the page width) */
.rev-cmp th[scope="row"] { min-width: 0; max-width: 150px; white-space: normal; }
.rev-cmp td.rev-role { white-space: normal; max-width: 92px; line-height: 1.25; }
.rev-cmp .rev-sub { white-space: normal; }
@media screen {
  #revResult.rev-wide { width: min(1400px, calc(100vw - 32px)); margin-left: calc((100% - min(1400px, calc(100vw - 32px))) / 2); }
}
/* GROUPS-1 (2026-11-16): a heading row per staff group on Compare all employees */
.rev-cmp tr.rev-group th { background: #f1efe9; color: var(--navy, #1f3a5f); font-weight: 700; font-size: 13px; text-align: left;
  max-width: none; white-space: nowrap; padding-top: 8px; padding-bottom: 6px; position: static; }
@media print { #revResult .rev-cmp tr.rev-group th { font-size: 8pt; break-after: avoid; } }
.rev-cmp tbody th[scope="row"], .rev-cmp tbody td { vertical-align: top; }

/* TREND-1 (Eric 2026-11-16): green up = improving, black bar = about the same, red down = slipping */
.trend { font-weight: 700; font-size: 1.15em; line-height: 1; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.trend-up { color: #1a7f37; }
.trend-flat { color: #111; }
.trend-bar { display: inline-block; width: 0.95em; height: 0.22em; background: #111; vertical-align: middle; border-radius: 1px;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.trend-down { color: #c62828; }
.trend-none { color: #9aa0a6; font-weight: 400; }
.rev-tbl td.rev-trend, .rev-tbl th.rev-trend-h { text-align: center; width: 3.2em; }
.rev-trend-legend .trend { font-size: 1em; }

/* MONTHS-6: the quarter before, shown lighter, with a rule where this quarter starts */
.rev-tbl th.rev-lead, .rev-tbl td.rev-lead { color: #6b7280; background: #fafafa; }
.rev-tbl th.rev-qstart, .rev-tbl td.rev-qstart { border-left: 2px solid #d6d3cc; }

/* GOAL-1: the goal under each measure name */
.rev-goal { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); margin-top: 1px; }
/* STICKY-1: Measure, Trend and (12-month / YTD views) the period total stay put while the months scroll */
@media screen {
  .rev-tbl .rev-stick { position: sticky; z-index: 1; background: #fff; }
  .rev-tbl thead .rev-stick { z-index: 3; background: #fbfaf7; }
  .rev-tbl .rev-stick.rev-period { background: #f6f2e7; }
  .rev-tbl .rev-stick-last { box-shadow: 3px 0 0 -1px #e5e1d8; }
}
@media print { .rev-tbl .rev-stick { position: static !important; box-shadow: none !important; } }
/* COMPARE-2 (Eric 2026-11-16 "a more visually appealing total employee comparison page, for individual team KPIs, maybe
   have a separate folder or pop up"): tabs, an overall-grade spread, initials avatars, cells tinted by their grade,
   and a Team measures tab with one card per staff group */
.rev-cmp-head .rev-actions { align-self: flex-start; }
.rev-tabs .seg-btn { padding: 8px 14px; font-size: 13px; }
.rev-spread { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 8px; }
.rev-spread-item { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; }
.rev-spread-item .grade { font-size: 13px; min-width: 1.9em; }
.rev-av { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
  margin-right: 8px; font-size: 11px; font-weight: 700; color: #fff; background: #8a8f98; vertical-align: middle; flex: none; }
.rev-av.av-A { background: #2e7d32; } .rev-av.av-B { background: #5b8f22; } .rev-av.av-C { background: #c59100; }
.rev-av.av-D { background: #d9600f; } .rev-av.av-F { background: #b3261e; }
.rev-cmp2 tbody th[scope="row"] { white-space: nowrap; }
.rev-cmp2 tbody tr:hover th, .rev-cmp2 tbody tr:hover td { filter: brightness(0.97); }
.rev-cmp2 td.rev-overall .grade { font-size: 15px; min-width: 2em; line-height: 1.7; }
.rev-cmp2 td.tint-A { background: #e9f4ea; } .rev-cmp2 td.tint-B { background: #eff5e6; } .rev-cmp2 td.tint-C { background: #fbf5e1; }
.rev-cmp2 td.tint-D { background: #fcece0; } .rev-cmp2 td.tint-F { background: #f9e3e1; }
.rev-team-link { margin-left: 10px; border: 1px solid var(--line, #d4d0c9); background: #fff; color: var(--navy, #063e5c);
  border-radius: 999px; padding: 2px 10px; font: 600 12px var(--font, inherit); cursor: pointer; }
.rev-team-link:hover { background: var(--navy, #063e5c); color: #fff; }
.rev-team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); gap: 14px; }
.rev-team-card { margin: 0; scroll-margin-top: 80px; }
.rev-team-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rev-team-people { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.rev-chip { display: inline-flex; align-items: center; padding: 2px 10px 2px 2px; border-radius: 999px; background: #f4f2ed;
  font-size: 12.5px; color: inherit; text-decoration: none; }
.rev-chip .rev-av { width: 22px; height: 22px; font-size: 10px; margin-right: 6px; }
.rev-chip:hover { background: #e8e4da; }
.rev-team-tbl { margin-top: 8px; }
.rev-team-tbl th[scope="row"] { font-weight: 600; }
@media print {
  .rev-tabs, .rev-team-link { display: none; }
  .rev-team-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  #revResult .rev-team-card { break-inside: avoid; }
  #revResult .rev-av { width: 16px; height: 16px; font-size: 6pt; margin-right: 4px; }
}

/* PAYROLL-1 (Eric 2026-11-17): Payroll tab - overtime and PTO (Eric and Ellie only) */
.pay-grid { grid-template-columns: minmax(180px, 260px) auto; }
.pay-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 14px; }
.pay-tile { background: #fff; border: 1px solid var(--line, #d9d4c7); border-radius: 10px; padding: 12px 14px; border-top: 3px solid var(--gold); }
.pay-tile-v { font-size: 24px; font-weight: 700; color: var(--navy, #1f3a5f); line-height: 1.15; }
.pay-tile-l { font-size: 12.5px; color: var(--muted, #666); margin-top: 2px; }
.pay-tbl td { text-align: right; white-space: nowrap; }
.pay-tbl thead th { white-space: normal; max-width: 110px; line-height: 1.2; vertical-align: bottom; }
.pay-tbl .pay-group th { background: #f6f3ec; color: var(--navy, #1f3a5f); font-weight: 700; text-align: left; font-size: 12.5px; letter-spacing: .02em; }
.pay-tbl .pay-total th, .pay-tbl .pay-total td { border-top: 2px solid var(--navy, #1f3a5f); font-weight: 700; background: #fbfaf7; }
.pay-tbl td.pay-ot { color: #8a4b00; font-weight: 600; }
.pay-bars { display: grid; gap: 4px; }
.pay-bar-row { display: grid; grid-template-columns: 64px minmax(120px, 1fr) 210px; gap: 8px; align-items: center; font-size: 13px; }
.pay-bar { display: block; height: 12px; background: #f1efe9; border-radius: 6px; overflow: hidden; }
.pay-bar > span { display: block; height: 100%; background: var(--navy, #1f3a5f); }
.pay-bar-ex > span { background: #8fa3bd; position: relative; }
.pay-bar-ex > span > span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--navy, #1f3a5f); }
.pay-bar-v { text-align: right; font-variant-numeric: tabular-nums; }
@media print {
  #payrollView > .hub-head { display: none !important; }
  #payResult .card { box-shadow: none; border: 1px solid #d9d4c7; padding: 6px 8px; margin: 0 0 8px; }
  #payResult .tbl-wrap { overflow: visible !important; border: none; }
  #payResult .tbl { font-size: 7.5pt; width: 100%; }
  #payResult .tbl th, #payResult .tbl td { padding: 2px 4px; }
  #payResult .pay-tile-v { font-size: 14pt; }
  #payResult tr { break-inside: avoid; page-break-inside: avoid; }
}

/* INBOX-STATUS-1: group headings inside an Operations table */
.tbl tr.tbl-group th { background: var(--bg-soft, #f4f1ea); color: var(--navy, #1d3a5f); font-weight: 700; text-align: left;
  font-size: 12.5px; letter-spacing: .02em; padding-top: 10px; }
/* Eric 11/17 07:13: phone answering sits NEXT TO inbox status at the top, both open, side by side */
.tile.open.side { grid-column: auto; }
.pay-tbl td.pay-raise-hi { color: #fff; background: var(--danger, #b3261e); font-weight: 700; }
.pay-tbl tr.pay-sub th { font-weight: 600; font-size: 12px; padding-left: 22px; opacity: .85; }
.pay-tbl b.pay-eff { color: var(--danger, #b3261e); font-weight: 800; font-size: 1.05em; }
/* HR-1: each employee's HR file */
.rev-tabs { margin-right: 10px; }
.hr-list { list-style: none; padding: 0; margin: 14px 0 0; }
.hr-entry { border-top: 1px solid var(--line, #e5e1d8); padding: 10px 0; }
.hr-entry.hr-fix { margin-left: 26px; border-top-style: dashed; }
.hr-kind { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #eef2f6; color: var(--navy, #1d3a5f); }
.hr-kind.k-write_up { background: #fbeceb; color: #9b2c22; }
.hr-kind.k-pip { background: #fdf3e2; color: #8a5a00; }
.hr-kind.k-correction { background: #f1f1f1; color: #555; }
.hr-details { white-space: pre-wrap; margin: 6px 0; }
.hr-att { font-size: 13px; margin: 4px 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue, #1d5fa8); text-decoration: underline; cursor: pointer; font: inherit; }
.hr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 10px 0 14px; }
.hr-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.hr-grid .hr-wide { grid-column: 1 / -1; }
.hr-grid input, .hr-grid select, .hr-grid textarea { font: inherit; padding: 6px 8px; }
.ok-msg { color: var(--ok, #1f7a4d); font-weight: 600; }
@media print { .no-print { display: none !important; } }
/* HR-3 (Eric 2026-11-17 14:49-14:57): the HR tab - employee grid, red when overdue, papers one click away */
.hr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 12px; }
.hr-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: #fff; border: 1px solid var(--line, #d9d4c7); border-top: 3px solid var(--navy, #1f3a5f); border-radius: 10px; padding: 10px 14px; }
.hr-stat:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, .07); }
.hr-stat.on { outline: 2px solid var(--navy, #1f3a5f); outline-offset: 1px; }
.hr-stat-v { font-size: 26px; font-weight: 700; color: var(--navy, #1f3a5f); line-height: 1.1; font-variant-numeric: tabular-nums; }
.hr-stat-l { font-size: 12.5px; color: var(--muted, #666); line-height: 1.25; }
.hr-stat-s { font-size: 11.5px; color: var(--muted, #666); }
.hr-stat.is-over { border-top-color: var(--danger, #b3261e); background: #fdecea; }
.hr-stat.is-over .hr-stat-v { color: var(--danger, #b3261e); }
.hr-stat.is-soon { border-top-color: #c58a12; background: #fdf6e6; }
.hr-stat.is-soon .hr-stat-v { color: #8a5a00; }
.hr-stat.is-ok { border-top-color: var(--ok, #1f7a4d); }
.hr-stat.is-ok .hr-stat-v { color: var(--ok, #1f7a4d); }
.hr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 14px; margin-bottom: 12px; }
.hr-bar input[type=search] { font: inherit; padding: 7px 10px; border: 1px solid var(--line, #d9d4c7); border-radius: 8px; min-width: 220px; }
.hr-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
.hr-bar-sp { flex: 1; }
.hr-grid-card { padding: 0; overflow: hidden; }
.hr-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.hr-tbl thead th { background: #f6f3ec; text-align: left; padding: 0; border-bottom: 1px solid var(--line, #d9d4c7); white-space: nowrap; }
.hr-sort { background: none; border: 0; font: inherit; font-weight: 700; font-size: 12.5px; color: var(--navy, #1f3a5f); padding: 10px 12px; cursor: pointer; text-align: left; width: 100%; }
.hr-sort.on { text-decoration: underline; }
.hr-tbl td, .hr-tbl tbody th { padding: 10px 12px; border-bottom: 1px solid #eee9de; vertical-align: top; text-align: left; font-weight: 400; }
.hr-tbl tbody tr:hover > td, .hr-tbl tbody tr:hover > th { background: #fbfaf6; }
.hr-tbl tr.has-over > th { box-shadow: inset 4px 0 0 var(--danger, #b3261e); }
.hr-tbl tr.is-former { opacity: .7; }
.hr-tbl tr.hr-grp > th { background: #faf8f3; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #666); padding: 7px 12px; }
.hr-name { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--navy, #1f3a5f); cursor: pointer; text-align: left; }
.hr-name:hover { text-decoration: underline; }
.hr-role { display: block; font-size: 12px; color: var(--muted, #666); }
.hr-date { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--blue, #1d5fa8); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.hr-pdf { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 7px; border: 1px solid #d7dde6; border-radius: 6px; background: #f5f8fc;
  color: var(--navy, #1f3a5f); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; vertical-align: 1px; }
.hr-pdf svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.hr-pdf:hover { background: #e9eff7; }
.hr-due, .hr-sub { display: block; font-size: 12px; color: var(--muted, #666); margin-top: 3px; }
.hr-c.is-over { background: #fdecea; }
.hr-c.is-over .hr-due { color: var(--danger, #b3261e); font-weight: 700; }
.hr-c.is-soon { background: #fdf6e6; }
.hr-c.is-soon .hr-due { color: #8a5a00; font-weight: 700; }
.hr-undated { display: inline-block; font: inherit; font-size: 11.5px; font-weight: 700; color: #8a5a00; background: #fdf3e2; border: 0; padding: 1px 7px; border-radius: 8px; cursor: pointer; }
.hr-legend { font-size: 12.5px; color: var(--muted, #666); padding: 10px 14px; margin: 0; border-top: 1px solid var(--line, #d9d4c7); }
.hr-key.is-over { color: var(--danger, #b3261e); }
.hr-key.is-soon { color: #8a5a00; }
/* the HR file: boxes sized so the dates fit (Eric 14:49 "the font is too big"), red when overdue, a click lists the papers */
.hr-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; margin: 0 0 12px; }
.hr-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: #fff; border: 1px solid var(--line, #d9d4c7); border-top: 3px solid var(--gold, #b8933a); border-radius: 10px; padding: 11px 13px; }
.hr-tile:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, .07); }
.hr-tile.on { outline: 2px solid var(--navy, #1f3a5f); outline-offset: 1px; }
.hr-tile-v { font-size: 22px; font-weight: 700; color: var(--navy, #1f3a5f); line-height: 1.15; font-variant-numeric: tabular-nums; max-width: 100%; }
.hr-tile-date { font-size: 18px; white-space: nowrap; }
.hr-tile-none { font-size: 14.5px; font-weight: 600; color: var(--muted, #666); }
.hr-tile-l { font-size: 12.5px; color: var(--muted, #666); line-height: 1.25; }
.hr-tile-s { font-size: 12px; color: var(--muted, #666); }
.hr-tile.is-over { border-top-color: var(--danger, #b3261e); background: #fdecea; }
.hr-tile.is-over .hr-tile-v, .hr-tile.is-over .hr-tile-none { color: var(--danger, #b3261e); }
.hr-tile.is-soon { border-top-color: #c58a12; background: #fdf6e6; }
.hr-pill { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; padding: 1px 8px; border-radius: 9px; text-transform: uppercase; }
.hr-pill.is-over { background: var(--danger, #b3261e); color: #fff; }
.hr-pill.is-soon { background: #c58a12; color: #fff; }
.hr-pill.is-ok { background: #e6f2ea; color: var(--ok, #1f7a4d); }
.hr-drawer { border: 1px solid var(--line, #d9d4c7); border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; background: #fcfbf8; }
.hr-drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hr-drawer h4, .hr-h4 { margin: 0 0 8px; font-family: var(--serif); font-size: 17px; color: var(--navy, #1f3a5f); }
.hr-h4 { margin-top: 18px; }
.hr-h5 { margin: 14px 0 6px; font-size: 14px; color: var(--navy, #1f3a5f); }
.hr-cat-tbl td, .hr-cat-tbl th { text-align: left; vertical-align: top; }
.hr-cat-tbl td.num, .hr-cat-tbl th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hr-was { font-size: 11.5px; color: var(--muted, #666); margin-top: 2px; }
.hr-fixed { display: inline-block; margin-left: 6px; font-size: 11px; color: #555; background: #f1f1f1; border-radius: 8px; padding: 1px 6px; }
.hr-pay-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; grid-column: 1 / -1; border: 1px dashed var(--line, #d9d4c7); border-radius: 8px; padding: 10px; margin: 0; }
.hr-pay-fields[hidden] { display: none; }
.hr-pay-fields legend { font-size: 12.5px; font-weight: 700; padding: 0 4px; }
@media (max-width: 780px) { .hr-tbl { font-size: 12.5px; } .hr-pay-fields { grid-template-columns: 1fr 1fr; } }
@media print {
  #hrView > .hub-head { display: none !important; }
  #hrResult .card { box-shadow: none; }
  .hr-stat, .hr-tile { box-shadow: none; }
  .hr-tbl { font-size: 7.5pt; }
  .hr-tbl td, .hr-tbl tbody th { padding: 3px 5px; }
  .hr-pdf { display: none; }
  .hr-c.is-over, .hr-tile.is-over, .hr-stat.is-over, .hr-pill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #hrResult tr { break-inside: avoid; page-break-inside: avoid; }
}
