/* Commissions Engine — OSA brand (navy/cyan), light surface */

:root {
  --navy-900: #04263F;
  --navy-800: #072B4E;
  --navy-700: #0B3E6F;
  --navy-600: #0E5D96;
  --cyan: #18ACE1;
  --cyan-soft: #E8F6FC;
  --amber: #E8A33D;
  --amber-soft: #FBF3E4;
  --surface: #F5F8FB;
  --card: #FFFFFF;
  --line: #E3EAF0;
  --line-soft: #EEF3F8;
  --ink: #16222E;
  --ink-2: #3E5164;
  --muted: #5A6B7A;
  --good: #1E7F4F;
  --good-soft: #E8F5EE;
  --bad: #B3261E;
  --bad-soft: #FBEBEA;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(7, 43, 78, .05), 0 8px 24px rgba(7, 43, 78, .06);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--surface);
}

/* ---------- top bar ---------- */
.topbar {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #fff;
}
.topbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--cyan);
  display: grid; place-items: center;
}
.brand-text { display: flex; flex-direction: column; }
.brand-title { font-size: 17px; font-weight: 650; letter-spacing: .01em; }
.brand-sub { font-size: 12px; color: rgba(255, 255, 255, .62); }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.env-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 500;
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  padding: 5px 12px;
  border-radius: 999px;
}
.env-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.as-of { font-size: 12px; color: rgba(255, 255, 255, .55); }

/* ---------- layout ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 24px 24px 40px; }
.two-col {
  display: grid;
  grid-template-columns: minmax(320px, 5fr) minmax(380px, 7fr);
  gap: 18px;
  margin-bottom: 18px;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.two-col .card { margin-bottom: 0; }
.card-head { margin-bottom: 14px; }
.card-head h2 { margin: 0 0 3px; font-size: 15px; font-weight: 650; }
.card-sub { margin: 0; font-size: 12.5px; color: var(--muted); }
.row-between { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

/* ---------- stat band ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 18px;
}
.stat-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.stat-value { font-size: 26px; font-weight: 650; letter-spacing: -.01em; }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.stat-sub.accent { color: var(--navy-600); font-weight: 550; }

/* ---------- dropzone ---------- */
.dropzone {
  border: 1.5px dashed #B9CCDC;
  border-radius: 12px;
  background: #FAFCFE;
  padding: 30px 18px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .06s;
  outline: none;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--cyan); background: var(--cyan-soft); }
.dropzone.dragover {
  border-color: var(--cyan);
  background: var(--cyan-soft);
  transform: scale(1.008);
}
.dropzone.busy { pointer-events: none; opacity: .6; }
.dz-icon { color: var(--navy-600); margin-bottom: 8px; }
.dz-line { margin: 0; font-size: 14px; font-weight: 550; color: var(--ink-2); }
.dz-hint { margin: 4px 0 0; font-size: 12.5px; }
.linklike {
  border: 0; padding: 0; background: none;
  font: inherit; color: var(--navy-600); font-weight: 550;
  text-decoration: underline; text-underline-offset: 2px;
  cursor: pointer;
}

/* upload result panel */
.upload-result { margin-top: 14px; border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.upload-result.ok { background: var(--good-soft); border: 1px solid #CBE7D7; }
.upload-result.dup { background: var(--amber-soft); border: 1px solid #F0DDB8; }
.upload-result.err { background: var(--bad-soft); border: 1px solid #F1CFCC; }
.ur-title { display: flex; align-items: center; gap: 8px; font-weight: 650; margin-bottom: 6px; }
.upload-result.ok .ur-title { color: var(--good); }
.upload-result.dup .ur-title { color: #8A6116; }
.upload-result.err .ur-title { color: var(--bad); }
.ur-body { color: var(--ink-2); }
.ur-body ul { margin: 6px 0 0; padding-left: 18px; }
.ur-body li { margin: 2px 0; }
.ur-rows { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.ur-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.ur-error-list {
  margin: 6px 0 0; padding: 0; list-style: none;
  font-family: var(--mono); font-size: 12px; color: var(--bad);
}

/* ---------- chart ---------- */
.chart-wrap { min-height: 200px; }
.chart-wrap svg { display: block; width: 100%; height: auto; }
.chart-empty, .empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: #FAFCFE;
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.footnote { margin: 10px 0 0; font-size: 11.5px; color: var(--muted); }

.tooltip {
  position: fixed;
  z-index: 30;
  pointer-events: none;
  background: var(--navy-900);
  color: #fff;
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 6px 20px rgba(7, 43, 78, .28);
  max-width: 260px;
}
.tooltip .tt-title { font-weight: 650; }
.tooltip .tt-muted { color: rgba(255, 255, 255, .65); }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  white-space: nowrap;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .r, .data-table td.r { text-align: right; }
.data-table .c, .data-table td.c { text-align: center; }
.data-table td.num { font-variant-numeric: tabular-nums; }
.data-table td.mono { font-family: var(--mono); font-size: 12px; }
.data-table td.dim { color: var(--muted); }
.clickable tbody tr.ev-row { cursor: pointer; }
.clickable tbody tr.ev-row:hover td { background: #F7FAFD; }

/* expanded event detail */
tr.detail-row > td { background: #FAFCFE; padding: 14px 16px 16px; white-space: normal; }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px 18px;
}
.detail-group { grid-column: 1 / -1; margin-top: 4px; }
.detail-group:first-child { margin-top: 0; }
.detail-group-label {
  font-size: 10.5px; font-weight: 650; text-transform: uppercase;
  letter-spacing: .06em; color: var(--navy-600);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}
.detail-item .k { font-size: 11px; color: var(--muted); }
.detail-item .v { font-size: 13px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* carrier chips: colored dot + ink text — identity never color-alone */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 550; color: var(--ink-2);
  background: var(--line-soft);
  border-radius: 999px;
  padding: 3px 10px 3px 8px;
  white-space: nowrap;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }

/* status pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.pill.upcoming { background: var(--cyan-soft); color: var(--navy-700); }
.pill.due { background: var(--amber-soft); color: #8A6116; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; }
.pill.upcoming .dot { background: var(--navy-600); }
.pill.due .dot { background: var(--amber); }

.due-callout {
  font-size: 12.5px; font-weight: 600; color: #8A6116;
  background: var(--amber-soft);
  border: 1px solid #F0DDB8;
  border-radius: 999px;
  padding: 5px 12px;
}

.page-foot {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 0 12px;
}

/* ---------- top nav ---------- */
.brand { text-decoration: none; color: inherit; }
.topnav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.topnav a {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  font-size: 13px;
  font-weight: 550;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background .12s, color .12s;
}
.topnav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.topnav a.active { color: #fff; background: rgba(255, 255, 255, .13); }

/* ---------- doc pages ---------- */
.doc { max-width: 780px; margin: 8px auto 0; }
.doc-head { margin: 18px 0 6px; }
.kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy-600);
}
.doc h1 {
  margin: 0 0 10px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.2;
}
.doc-lede { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.doc section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 26px;
  margin-top: 18px;
}
.doc h2 { margin: 0 0 12px; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.doc h3 { margin: 18px 0 6px; font-size: 14px; font-weight: 650; color: var(--navy-700); }
.doc p { margin: 8px 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.doc p strong, .doc li strong { color: var(--ink); }
.doc code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--line-soft);
  border-radius: 5px;
  padding: 1px 5px;
}
.doc a { color: var(--navy-600); }

.callout {
  border-radius: 10px;
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.callout.info { background: var(--cyan-soft); border: 1px solid #CBE7F5; }
.callout.key  { background: var(--cyan-soft); border: 1px solid #CBE7F5;
                border-left: 3px solid var(--cyan); }
.callout.warn { background: var(--amber-soft); border: 1px solid #F0DDB8; }

.def-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.def-card {
  background: #FAFCFE;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.def-card h3 { margin: 0 0 4px; font-size: 13px; color: var(--navy-700); }
.def-card p { margin: 0; font-size: 12.5px; line-height: 1.5; }

.flow-steps { margin: 8px 0; padding-left: 22px; }
.flow-steps li { margin: 6px 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }

.map-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 10px 0; }
.map-table th {
  text-align: left; font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  padding: 7px 10px; border-bottom: 1px solid var(--line);
}
.map-table td {
  padding: 9px 10px; border-bottom: 1px solid var(--line-soft);
  vertical-align: top; line-height: 1.5; color: var(--ink-2);
}
.map-table td:first-child { font-weight: 550; color: var(--ink); white-space: nowrap; }
.map-table.wrap-first td:first-child { white-space: normal; }
.map-table tr:last-child td { border-bottom: 0; }
@media (max-width: 700px) { .map-table td:first-child { white-space: normal; } }

.ui-walk { margin: 8px 0; }
.ui-walk dt { font-weight: 650; font-size: 13.5px; margin-top: 12px; color: var(--navy-700); }
.ui-walk dd { margin: 3px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }

.check-list { margin: 8px 0; padding-left: 0; list-style: none; }
.check-list li {
  position: relative;
  padding-left: 26px;
  margin: 8px 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 2px; top: 0;
  color: var(--good);
  font-weight: 700;
}
.check-list.open li::before { content: "?"; color: var(--amber); }

.glossary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px 18px;
}
.glossary dt { font-weight: 650; font-size: 13px; color: var(--ink); }
.glossary dd { margin: 1px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

.pipeline {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.pipeline.vertical { flex-direction: column; align-items: stretch; gap: 4px; }
.pipe-stage {
  flex: 1 1 100px;
  background: #FAFCFE;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 110px;
}
.pipeline.vertical .pipe-stage { flex: 0 0 auto; flex-direction: row; align-items: baseline; gap: 10px; }
.pipe-name { font-size: 13px; font-weight: 650; color: var(--navy-700); white-space: nowrap; }
.pipe-desc { font-size: 11.5px; color: var(--muted); }
.pipe-arrow {
  align-self: center;
  color: var(--cyan);
  font-weight: 700;
  font-size: 15px;
}
.pipeline.vertical .pipe-arrow { align-self: flex-start; padding-left: 14px; font-size: 12px; }

.formula {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.9;
  background: #FAFCFE;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 10px 0;
  overflow-x: auto;
}
.formula .dim { color: var(--muted); }

.worked { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; }
.worked td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
.worked td.r { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); white-space: nowrap; }
.worked td.dim { color: var(--muted); font-size: 12.5px; }
.worked tr:last-child td { border-bottom: 0; }

.rule-list { margin: 8px 0; padding-left: 20px; }
.rule-list li { margin: 8px 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }

/* ---------- small screens ---------- */
.pipeline.vertical .pipe-stage { flex-wrap: wrap; }
@media (max-width: 700px) {
  .container { padding: 16px 14px 32px; }
  .topbar-inner { padding: 14px 16px; }
  .doc h1 { font-size: 22px; }
  .doc section { padding: 16px 16px; }
  .formula { font-size: 11.5px; }
  .pipe-name { white-space: normal; }
}

/* ---------- guided tour ---------- */
.tour-link {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 12px; font-weight: 550;
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .12s;
}
.tour-link:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.tour-link:disabled {
  opacity: .4;
  cursor: default;
}
.tour-link:disabled:hover { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .85); }
.tour-overlay { position: fixed; inset: 0; z-index: 60; }
.tour-spot {
  position: fixed;
  z-index: 61;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(4, 38, 63, .48), 0 0 0 2px var(--cyan);
  transition: all .28s ease;
  pointer-events: none;
  opacity: 0;
}
.tour-pop {
  position: fixed;
  z-index: 62;
  width: min(340px, calc(100vw - 24px));
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(4, 38, 63, .35);
  padding: 14px 16px 14px;
  transition: left .28s ease, top .28s ease;
}
.tour-pop.centered {
  left: 50% !important; top: 50% !important;
  transform: translate(-50%, -50%);
}
.tour-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.tour-count { font-size: 11px; font-weight: 650; color: var(--muted); letter-spacing: .04em; }
.tour-x {
  border: 0; background: none; cursor: pointer;
  font-size: 18px; line-height: 1; color: var(--muted); padding: 2px 4px;
}
.tour-x:hover { color: var(--ink); }
.tour-pop h3 { margin: 0 0 6px; font-size: 14.5px; font-weight: 650; color: var(--navy-800); }
.tour-pop p { margin: 0 0 12px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.tour-actions { display: flex; justify-content: flex-end; gap: 8px; }
.tour-btn {
  font: inherit; font-size: 12.5px; font-weight: 600;
  border-radius: 8px; padding: 6px 14px; cursor: pointer;
  transition: background .12s;
}
.tour-btn.solid { background: var(--navy-600); border: 1px solid var(--navy-600); color: #fff; }
.tour-btn.solid:hover { background: var(--navy-700); }
.tour-btn.ghost { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.tour-btn.ghost:hover { background: var(--line-soft); }
.tour-btn:disabled { opacity: .45; cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .tour-spot, .tour-pop, .dropzone { transition: none; }
}

.tour-btn.danger { background: var(--bad); border: 1px solid var(--bad); color: #fff; }
.tour-btn.danger:hover { background: #9A1F18; }
a.tour-btn { text-decoration: none; }
.tour-download { margin: -4px 0 12px; }
.tour-btn.dl { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; }

/* ---------- statements (publishing half) ---------- */
.pill.draft { background: var(--line-soft); color: var(--ink-2); }
.pill.draft .dot { background: var(--muted); }
.pill.approved { background: var(--good-soft); color: var(--good); }
.pill.approved .dot { background: var(--good); }
.pill.stale { background: var(--bad-soft); color: var(--bad); }
.pill.stale .dot { background: var(--bad); }

.statement-sheet { position: relative; overflow: hidden; }
.statement-sheet.is-draft::after {
  content: "DRAFT";
  position: absolute;
  top: 42%; left: 50%;
  transform: translate(-50%, -50%) rotate(-24deg);
  font-size: 110px; font-weight: 800; letter-spacing: .1em;
  color: rgba(7, 43, 78, .05);
  pointer-events: none;
}
.statement-band { margin: 4px 0 18px; }
.sheet-h {
  margin: 22px 0 8px;
  font-size: 12px; font-weight: 650;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--navy-600);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}
.assumptions { margin: 18px 0 6px; padding-left: 18px; }
.assumptions li { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.mono-inline { font-family: var(--mono); font-size: 12px; }
.gate-warn {
  margin: 0 0 14px;
  font-size: 13px; font-weight: 550; color: var(--bad);
  background: var(--bad-soft);
  border: 1px solid #EFD0CE;
  border-radius: 10px;
  padding: 10px 14px;
}
.gate-form { display: flex; gap: 10px; flex-wrap: wrap; }
.env-pill.confidential { border-color: var(--amber); color: #F5DEB9; }
.env-pill.confidential .env-dot { background: var(--amber); }

@media print {
  .topbar, .gate-card, .page-foot { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: none; padding: 0; }
  .statement-sheet.is-draft::after { color: rgba(7, 43, 78, .08); }
}

/* statement sheet actions + print letterhead */
.sheet-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.print-letterhead { display: none; }

@media print {
  #print-btn, .gate-warn { display: none !important; }
  .print-letterhead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 3px solid var(--navy-800);
    padding-bottom: 10px;
    margin-bottom: 18px;
  }
  .plh-brand {
    font-size: 20px; font-weight: 750; letter-spacing: .01em;
    color: var(--navy-800);
  }
  .plh-doc { font-size: 12px; color: var(--muted); }
}

/* print: paper can't scroll — tables wrap and shrink instead */
@media print {
  .container { max-width: none; padding: 0; }
  .table-scroll { overflow: visible; }
  .data-table { font-size: 10.5px; }
  .data-table th, .data-table td { white-space: normal; padding: 5px 7px; }
  .data-table tr { break-inside: avoid; }
  .statement-band { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat-tile { box-shadow: none; padding: 10px 12px; }
  .stat-value { font-size: 19px; }
  .sheet-h { break-after: avoid; }
  /* engine assumptions are internal labeling — screen only; the content
     hash prints (it's the statement's serial number in the approval trail) */
  .assumptions { display: none; }
  .footnote { font-size: 9px; }
  /* pills keep meaning even when print strips backgrounds */
  .pill { border: 1px solid currentColor; }
}

/* statement hero — the number an agent opens the page for */
.statement-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--cyan-soft) 100%);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy-600);
  color: var(--ink);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 4px 0 16px;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
.hero-label {
  font-size: 11px; font-weight: 650;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--navy-600);
  margin-bottom: 4px;
}
.hero-name { font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--navy-900); }
.hero-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.hero-pay { text-align: right; }
.hero-amount { font-size: 34px; font-weight: 750; letter-spacing: -.02em;
               font-variant-numeric: tabular-nums; color: var(--navy-700); }
@media (max-width: 640px) { .hero-pay { text-align: left; } }

/* statement tables: zebra + totals row */
.statement-sheet .data-table tbody tr:nth-child(even) td { background: #F8FBFD; }
.statement-sheet .data-table tfoot td {
  padding: 9px 10px;
  border-top: 2px solid var(--navy-800);
  font-weight: 650;
  font-size: 12.5px;
  background: var(--cyan-soft);
  white-space: nowrap;
}

@media print {
  .screen-actions { display: none !important; }
  .statement-hero { border-radius: 8px; padding: 16px 20px; }
  .hero-amount { font-size: 28px; }
  .statement-sheet .data-table tbody tr:nth-child(even) td,
  .statement-sheet .data-table tfoot td {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

/* centered tour steps (intro/finale) dim the page themselves — the spotlight
   isn't there to do it — so they land with more presence */
.tour-overlay { transition: background .3s ease; }
.tour-overlay.strong { background: rgba(4, 38, 63, .6); }

/* ---------- login (shared demo password) ---------- */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  padding: 24px;
}
.login-card {
  width: min(380px, 100%);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(4, 38, 63, .4);
  padding: 28px;
  text-align: center;
}
.login-card .brand-mark { margin: 0 auto 12px; background: var(--cyan-soft); border: 1px solid var(--line); color: var(--navy-600); }
.login-title { font-size: 17px; font-weight: 700; color: var(--navy-900); margin: 0 0 2px; }
.login-sub { font-size: 12.5px; color: var(--muted); margin: 0 0 18px; }
.login-card input[type="password"] {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
}
.login-card input[type="password"]:focus { outline: 2px solid var(--cyan); border-color: var(--cyan); }
.login-btn {
  width: 100%;
  font: inherit; font-weight: 650;
  background: var(--navy-600); color: #fff;
  border: 0; border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}
.login-btn:hover { background: var(--navy-700); }
.login-error { font-size: 12.5px; color: var(--bad); margin: 0 0 10px; }

/* version tag in the brand */
.beta-tag {
  display: inline-block;
  vertical-align: 2px;
  margin-left: 4px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--navy-900);
  background: var(--cyan);
  border-radius: 999px;
  padding: 2px 8px;
}

/* roadmap to-dos: checkbox bullets */
.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-list li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.todo-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .3em;
  width: 13px; height: 13px;
  border: 1.5px solid var(--navy-600);
  border-radius: 3.5px;
  background: #fff;
}

/* Docs dropdown in the top nav */
.nav-drop { position: relative; }
.nav-drop summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px; font-weight: 550;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background .12s, color .12s;
  user-select: none;
}
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-drop summary.active { color: #fff; background: rgba(255, 255, 255, .13); }
.nav-drop[open] summary { color: #fff; background: rgba(255, 255, 255, .13); }
.nav-drop[open] summary svg { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 6px); left: 0;
  z-index: 40;
  min-width: 170px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(4, 38, 63, .25);
  padding: 6px;
  display: flex; flex-direction: column;
}
.topnav .nav-drop-menu a {
  color: var(--ink-2);
  padding: 7px 10px;
  border-radius: 7px;
}
.topnav .nav-drop-menu a:hover { color: var(--navy-800); background: var(--cyan-soft); }
.topnav .nav-drop-menu a.active { color: var(--navy-800); background: var(--line-soft); }
