/* B2BOV-1: B2B Overview, one target compared to Gross and to Net (aminu#986 item 5).
   Values ported from docs/design/2026-10-06-remind-editable-mockup.html @ 2e8c0545, section
   #b2b-overview. Tokens are the mockup's own, scoped to the mount: several differ from
   styles.css's page-wide :root, so they are not merged into it. */
#b2b-overview {
  --surface: #FFFFFF; --surface-2: #F0F2F0;
  --ink: #1D3C5A; --ink-2: #202522; --ink-soft: #5B6670; --muted: #68716C; --line: #DDE2DE; --line-soft: #EBEEEC;
  --forest: #2A5D3C; --mint: #5EBB8C; --green: #4E8B57; --navy: #1D3C5A;
  --mint-row: #EEF8F3;
  --warn: #A65B08; --risk: #B42318;
  --shadow: 0 1px 2px rgba(26,26,24,.05), 0 1px 1px rgba(26,26,24,.02);
  min-width: 0; height: calc(100vh - 80px); min-height: 0; display: flex; flex-direction: column; gap: 8px;
  color: var(--ink-2); font-variant-numeric: lining-nums tabular-nums;
}
#b2b-overview[hidden], #b2b-nav-wrap[hidden] { display: none; }
#b2b-nav-wrap .nav-label { margin-top: 14px; }
#b2b-overview button, #b2b-overview select { font: inherit; }
#b2b-overview .b-head { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding-top: 10px; }
#b2b-overview .b-head h2 { margin: 0; font-size: 20px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
#b2b-overview .b-head .who { font-size: 13px; color: var(--muted); white-space: nowrap; }
#b2b-overview .b-seg { display: flex; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
#b2b-overview .b-seg button { border: 0; background: transparent; padding: 3px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
#b2b-overview .b-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow); }
#b2b-overview .b-asof { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
#b2b-overview .b-asof.stale { color: var(--warn); font-weight: 600; }
#b2b-overview .b-tiles { flex: 0 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
#b2b-overview .tile { height: 72px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
#b2b-overview .tile .tl { font-size: 12px; line-height: 15px; color: var(--muted); font-weight: 600; }
#b2b-overview .tile .tl span, #b2b-overview .bt th span[title], #b2b-overview .lad .k span { border-bottom: 1px dotted #A9B3AE; cursor: help; }
#b2b-overview .tile .tv { display: flex; align-items: center; gap: 8px; height: 24px; min-width: 0; }
#b2b-overview .tile .tv .v { font-size: 20px; line-height: 24px; font-weight: 600; color: var(--ink); white-space: nowrap; }
#b2b-overview .tile .chip { font-size: 12px; line-height: 18px; font-weight: 600; padding: 0 7px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; display: inline; margin: 0; letter-spacing: normal; text-transform: none; vertical-align: baseline; }
#b2b-overview .tile .ts { font-size: 11.5px; line-height: 15px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#b2b-overview .up { color: var(--green); font-weight: 600; }
#b2b-overview .dn { color: var(--risk); font-weight: 600; }
#b2b-overview .flat { color: var(--muted); }
#b2b-overview .b-legend { flex: 0 0 auto; font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#b2b-overview .b-legend b { color: var(--ink-2); }
#b2b-overview .b-legend .key, #b2b-overview .bp h3 .key { display: inline-block; width: 10px; height: 4px; border-radius: 2px; vertical-align: middle; margin: 0 3px 0 6px; }
#b2b-overview .b-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 272px; align-items: start; gap: 10px; padding-bottom: 10px; }
#b2b-overview .b-body > .b-card, #b2b-overview .b-body > .bp { max-height: 100%; }
#b2b-overview .b-card { min-height: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
#b2b-overview .b-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; }
#b2b-overview table.bt { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12px; }
#b2b-overview .bt th { position: sticky; background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 11.5px; text-align: right; padding: 0 6px; border-bottom: 1px solid var(--line); z-index: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#b2b-overview .bt tr.h1 th { top: 0; height: 24px; }
#b2b-overview .bt tr.h2 th { top: 24px; height: 22px; }
#b2b-overview .bt th.grp { text-align: center; color: var(--ink-2); border-top: 3px solid; }
#b2b-overview .bt th.grp.g { border-top-color: var(--navy); }
#b2b-overview .bt th.grp.n { border-top-color: var(--mint); }
#b2b-overview .bt td { height: 36px; padding: 0 6px; border-bottom: 1px solid var(--line-soft); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#b2b-overview .bt .bn { text-align: left; }
#b2b-overview .bt td.bn { line-height: 1.2; }
#b2b-overview .bt td.bn .bnm, #b2b-overview .bt td.bn .cnt { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#b2b-overview .bt td.bn .cnt { color: var(--muted); font-size: 11px; }
#b2b-overview .bt td.sep, #b2b-overview .bt th.sep { border-left: 1px solid var(--line); }
#b2b-overview .bt tbody tr[data-bdrill] { cursor: pointer; }
#b2b-overview .bt tbody tr[data-bdrill]:hover td { background: #F7FAF8; }
#b2b-overview .bt tbody tr.sel td { background: var(--mint-row); }
#b2b-overview .bt tbody tr.sel td.bn { box-shadow: inset 3px 0 0 var(--forest); }
#b2b-overview .b-pick { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); height: 30px; }
#b2b-overview .b-pick button { border: 0; background: transparent; width: 26px; height: 28px; font-size: 16px; line-height: 1; color: var(--ink-2); cursor: pointer; }
#b2b-overview .b-pick button:disabled { color: #C2C9C5; cursor: default; }
#b2b-overview .b-pick select { border: 0; border-left: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); background: transparent; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 0 4px; height: 28px; cursor: pointer; }
#b2b-overview .trend { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
#b2b-overview .tm { text-align: center; font-size: 11px; min-width: 0; }
#b2b-overview .tm .tmn { color: var(--muted); font-weight: 600; margin-bottom: 2px; }
#b2b-overview .tm .tv2 { display: block; font-weight: 600; color: var(--ink-2); line-height: 14px; }
#b2b-overview .tm .trk { height: 4px; margin: 1px 2px 3px; }
#b2b-overview .tm .none { display: block; line-height: 14px; padding-top: 4px; }
#b2b-overview .none { color: var(--muted); }
#b2b-overview .att { display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
#b2b-overview .att .pc { font-weight: 600; color: var(--ink-2); line-height: 1; }
#b2b-overview .trk { position: relative; display: block; height: 5px; border-radius: 3px; background: var(--surface-2); }
#b2b-overview .trk i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
#b2b-overview .trk b { position: absolute; top: -2px; bottom: -2px; width: 1.5px; background: var(--ink-2); }
#b2b-overview .bar-g { background: var(--navy); }
#b2b-overview .bar-n { background: var(--mint); }
#b2b-overview .bp { min-height: 0; display: flex; flex-direction: column; gap: 8px; }
#b2b-overview .bp .b-card { padding: 10px 12px; flex: 0 0 auto; }
#b2b-overview .bp .b-card.grow { flex: 1 1 auto; overflow-y: auto; }
#b2b-overview .bp h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); line-height: 1.35; }
#b2b-overview .lad { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; font-size: 13px; border-bottom: 1px solid var(--line-soft); }
#b2b-overview .lad .k { color: var(--ink-soft); }
#b2b-overview .lad .v { font-weight: 600; color: var(--ink-2); }
#b2b-overview .lad.sub .k { padding-left: 12px; }
#b2b-overview .lad.tot { border-bottom: 0; border-top: 1px solid var(--ink-2); }
#b2b-overview .lad.tot .k, #b2b-overview .lad.tot .v { color: var(--ink); font-weight: 700; }
#b2b-overview .bp .fn { margin: 6px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
#b2b-overview .bp .hint { font-size: 12.5px; color: var(--muted); margin: 0; }
#b2b-overview table.bd { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
#b2b-overview .bd th { text-align: right; font-size: 11px; color: var(--muted); font-weight: 600; padding: 0 4px 4px; border-bottom: 1px solid var(--line); }
#b2b-overview .bd td { text-align: right; height: 28px; padding: 0 4px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#b2b-overview .bd .bn { text-align: left; }
/* styles.css styles every bare thead th as a sortable column (uppercase, ↕ marker); these tables do not sort. */
#b2b-overview thead th { text-transform: none; letter-spacing: normal; cursor: default; user-select: auto; }
#b2b-overview thead th::after { content: none; }
/* the mockup's nav tag: plain muted text, no status dot (styles.css .nav-tag draws one) */
#b2b-nav .nav-item .lab { flex: 0 1 auto; }
#b2b-nav .nav-item .tag { margin-left: auto; font-size: 12px; font-weight: 500; color: #68716C; }
#b2b-nav .nav-item .tag::before { content: none; }
