/* Rooftop's look (v2, Oct 31, 2026): one set of design values for every page, applied when <html> has .rt-v2.
   Settings › Organization › Look switches it off (Classic), which puts back exactly the look from before; the code
   from before is also kept on the GitHub branch "classic-look". The Board view's own colours are left alone on purpose.
   Data entry is untouched: the logs keep their grid, cell sizes and keyboard behaviour; only the frame around them,
   fonts, headers, buttons and cards change. */
:root {
  --rt-font: "Inter", Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --rt-ink: #101828; --rt-ink-2: #344054; --rt-muted: #667085; --rt-faint: #98A2B3;
  --rt-line: #E4E7EC; --rt-line-2: #F2F4F7; --rt-page: #F5F7FA; --rt-card: #FFFFFF; --rt-hover: #F9FAFB;
  --rt-brand: var(--brand, #1F3A93); --rt-brand-ink: #FFFFFF; --rt-brand-soft: #EEF2FB; --rt-brand-line: #C7D2EE;
  --rt-ok: #067647; --rt-ok-bg: #ECFDF3; --rt-ok-line: #ABEFC6;
  --rt-warn: #B54708; --rt-warn-bg: #FFFAEB; --rt-warn-line: #FEDF89;
  --rt-bad: #B42318; --rt-bad-bg: #FEF3F2; --rt-bad-line: #FECDCA;
  --rt-r-lg: 12px; --rt-r: 8px; --rt-r-sm: 6px;
  --rt-sh-1: 0 1px 2px rgba(16, 24, 40, .05); --rt-sh-2: 0 4px 12px -2px rgba(16, 24, 40, .08), 0 2px 4px -2px rgba(16, 24, 40, .04);
  --rt-ease: cubic-bezier(.2, .7, .3, 1); --rt-fast: 120ms;
}
/* ---------- the shared values the existing pages read ---------- */
html.rt-v2 { --page: var(--rt-page); --ink: var(--rt-ink); --muted: var(--rt-muted); --rule: var(--rt-line); --cds-radius: 10px;
  --font-anthropic-sans: var(--rt-font); --font-anthropic-serif: var(--rt-font); }
html.rt-v2 .lp { --lp-bg: var(--rt-page); --lp-fg: var(--rt-ink); --lp-muted: var(--rt-muted); --lp-line: var(--rt-line); --lp-hover: var(--rt-hover); --lp-sel: var(--rt-brand-soft); }
html.rt-v2 #rooftop-page, html.rt-v2 #rooftop-op { --ink: var(--rt-ink); --muted: var(--rt-muted); --line: var(--rt-line); --page: var(--rt-page); }
/* ---------- type: one family, numbers that line up ---------- */
html.rt-v2 body, html.rt-v2 button, html.rt-v2 input, html.rt-v2 select, html.rt-v2 textarea { font-family: var(--rt-font); }
html.rt-v2 body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "cv11", "ss01"; color: var(--rt-ink); }
html.rt-v2 table, html.rt-v2 .fid-tile strong, html.rt-v2 .lp-table, html.rt-v2 [class*="num"], html.rt-v2 td { font-variant-numeric: tabular-nums; }
html.rt-v2 .lp-head h1, html.rt-v2 .lp-card h2 { font-family: var(--rt-font); letter-spacing: -.01em; }
html.rt-v2 .lp-card h2 { font-size: 16px; font-weight: 600; color: var(--rt-ink); }
/* ---------- page heading (rooftop/pagehead.js) ---------- */
#rt-ph { display: none; }
html.rt-v2 #rt-ph { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 2px 8px; }
html.rt-v2 #rt-ph > div { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
html.rt-v2 #rt-ph h1 { margin: 0; font: 650 19px/1.25 var(--rt-font); letter-spacing: -.015em; color: var(--rt-ink); }
html.rt-v2 #rt-ph .ph-sub { margin: 0; font: 400 12.5px/1.4 var(--rt-font); color: var(--rt-muted); display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
html.rt-v2 #rt-ph .ph-scope { font-weight: 600; color: var(--rt-ink); }
html.rt-v2 #rt-ph .ph-sub i { width: 3px; height: 3px; border-radius: 50%; background: var(--rt-faint); display: inline-block; }
html.rt-v2 #rt-ph .ph-crumb { font: 500 12px var(--rt-font); color: var(--rt-muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 4px; }
@media (max-width: 760px) { html.rt-v2 #rt-ph { padding: 12px 2px 8px; } html.rt-v2 #rt-ph h1 { font-size: 20px; } }
/* ---------- cards ---------- */
html.rt-v2 .lp-card { border: 1px solid var(--rt-line); border-radius: var(--rt-r-lg); box-shadow: var(--rt-sh-1); }
/* ---------- tables (dashboards, reports; not the log grids) ---------- */
html.rt-v2 .lp-table th { background: var(--rt-hover); color: var(--rt-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--rt-line); padding-top: 9px; padding-bottom: 9px; }
html.rt-v2 .lp-table td { border-bottom: 1px solid var(--rt-line-2); }
html.rt-v2 .lp-table tbody tr { transition: background-color var(--rt-fast) var(--rt-ease); }
html.rt-v2 .lp-table tbody tr:hover > td { background: var(--rt-hover); }
/* ---------- KPI tiles ---------- */
html.rt-v2 .fid-tile { border: 1px solid var(--rt-line); border-top: 1px solid var(--rt-line); border-radius: var(--rt-r-lg); padding: 14px 16px; box-shadow: var(--rt-sh-1); position: relative; overflow: hidden; gap: 4px; transition: box-shadow var(--rt-fast) var(--rt-ease), border-color var(--rt-fast) var(--rt-ease); }
html.rt-v2 .fid-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--rt-brand); opacity: .9; }
html.rt-v2 .fid-tile:hover { box-shadow: var(--rt-sh-2); }
html.rt-v2 .fid-lab { font-size: 12.5px; font-weight: 500; color: var(--rt-muted); letter-spacing: 0; }
html.rt-v2 .fid-tile strong { font-size: 27px; font-weight: 650; letter-spacing: -.02em; color: var(--rt-ink); line-height: 1.15; }
html.rt-v2 .fsr-tiles .fid-tile { border-top: 1px solid var(--rt-line); }
/* the change from the prior month (rooftop/trend.js) */
.rt-delta { display: none; }
html.rt-v2 .rt-delta { display: inline-flex; align-items: center; gap: 3px; font: 600 11.5px var(--rt-font); padding: 2px 7px; border-radius: 999px; width: max-content; font-variant-numeric: tabular-nums; }
html.rt-v2 .rt-delta.up { color: var(--rt-ok); background: var(--rt-ok-bg); }
html.rt-v2 .rt-delta.down { color: var(--rt-bad); background: var(--rt-bad-bg); }
html.rt-v2 .rt-delta.flat { color: var(--rt-muted); background: var(--rt-line-2); }
html.rt-v2 .rt-delta svg { width: 10px; height: 10px; }
/* ---------- the filter bar on the dashboards: a light toolbar instead of the solid blue band ---------- */
html.rt-v2 .fid-top { background: var(--rt-card); color: var(--rt-ink); border: 1px solid var(--rt-line); border-radius: var(--rt-r-lg); box-shadow: var(--rt-sh-1); }
html.rt-v2 .fid-top * { color: inherit; }
html.rt-v2 .fid-top label, html.rt-v2 .fid-top .fid-fl, html.rt-v2 .fid-top b:not(.fib b), html.rt-v2 .fid-top .fib-l { color: var(--rt-muted); }
html.rt-v2 .fid-top select, html.rt-v2 .fid-top input { background: var(--rt-card) !important; color: var(--rt-ink) !important; border: 1px solid var(--rt-line) !important; border-radius: var(--rt-r) !important; box-shadow: var(--rt-sh-1); }
html.rt-v2 .fid-top select:focus, html.rt-v2 .fid-top input:focus { outline: 2px solid var(--rt-brand-line); outline-offset: 0; border-color: var(--rt-brand) !important; }
html.rt-v2 .fid-top button { background: var(--rt-card) !important; color: var(--rt-ink-2) !important; border: 1px solid var(--rt-line) !important; border-radius: var(--rt-r) !important; box-shadow: var(--rt-sh-1); }
html.rt-v2 .fid-top button:hover { background: var(--rt-hover) !important; color: var(--rt-ink) !important; }
html.rt-v2 .fid-top .fid-bigtop { border-top: 1px solid var(--rt-line-2) !important; }
html.rt-v2 .fid-top .fib, html.rt-v2 .fid-top .fib * { color: var(--rt-ink-2); }
html.rt-v2 .fid-top .fib > :first-child { color: var(--rt-muted); }
/* ---------- tabs: one segmented control everywhere ---------- */
html.rt-v2 .dl-sub { background: var(--rt-line-2); border: 1px solid var(--rt-line); border-radius: 10px; padding: 3px; gap: 2px; }
html.rt-v2 .dl-nav button { border: 1px solid transparent; background: transparent; color: var(--rt-ink-2); border-radius: 8px; font-weight: 500; transition: background-color var(--rt-fast), color var(--rt-fast), box-shadow var(--rt-fast); }
html.rt-v2 .dl-nav button:hover { color: var(--rt-ink); background: rgba(255, 255, 255, .6); }
html.rt-v2 .dl-nav button[aria-selected="true"] { background: var(--rt-card); color: var(--rt-ink); border-color: var(--rt-line); box-shadow: var(--rt-sh-1); font-weight: 600; }
/* ---------- buttons: one size, one shape, clear primary ---------- */
html.rt-v2 :is(.rp-btn, .op-btn, .rep-btn, .bk-btn, .cd-btn, .gs-go, .gs-ok, .gs-backbtn, .sd-ddb, .cal-settings) { border-radius: var(--rt-r); font-family: var(--rt-font); font-weight: 500; transition: background-color var(--rt-fast) var(--rt-ease), border-color var(--rt-fast) var(--rt-ease), color var(--rt-fast), box-shadow var(--rt-fast); }
html.rt-v2 :is(.rp-btn, .op-btn, .rep-btn, .bk-btn, .cd-btn, .gs-backbtn):not(.primary):not(.danger):not(.done) { box-shadow: var(--rt-sh-1); }
html.rt-v2 :is(.rp-btn, .bk-btn).primary, html.rt-v2 .gs-ok { background: var(--rt-brand); border-color: var(--rt-brand); color: var(--rt-brand-ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .12), inset 0 -1px 0 rgba(0, 0, 0, .12); }
html.rt-v2 :is(.rp-btn, .bk-btn).primary:hover, html.rt-v2 .gs-ok:hover { filter: brightness(1.08); }
html.rt-v2 :is(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--rt-brand); outline-offset: 2px; }
/* ---------- status chips: text and colour together ---------- */
html.rt-v2 :is(.rp-st, .bk-badge) { border-radius: 999px; font-weight: 600; font-size: 11.5px; padding: 2px 8px; }
/* ---------- the left menu ---------- */
html.rt-v2 .rs { font-family: var(--rt-font); }
/* ---------- small, quick transitions; nothing for people who ask their device for less motion ---------- */
@media (prefers-reduced-motion: reduce) { html.rt-v2 * { transition: none !important; animation: none !important; } }
/* the logs keep as many rows on screen as before: a one-line heading */
html.rt-v2 #rt-ph.ph-compact { padding: 10px 2px 6px; align-items: baseline; }
html.rt-v2 #rt-ph.ph-compact > div { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
html.rt-v2 #rt-ph.ph-compact h1 { font-size: 17px; }
html.rt-v2 #rt-ph.ph-compact .ph-sub { margin: 0; font-size: 12.5px; }
/* the sidebar footer wordmark */
html.rt-v2 .rs-foot-wm { display: inline-flex; align-items: center; gap: 6px; }
html.rt-v2 .rt-deltas { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 1px; }
.rt-deltas:empty { display: none; }
/* GM Dashboard tiles match the others; its own title is the page heading now */
html.rt-v2 .dyd-tile { border: 1px solid var(--rt-line); border-top: 1px solid var(--rt-line); border-radius: var(--rt-r-lg); padding: 14px 16px; box-shadow: var(--rt-sh-1); position: relative; overflow: hidden; }
html.rt-v2 .dyd-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--k, var(--rt-brand)); }
html.rt-v2 .dyd-tl { font: 500 12.5px var(--rt-font); color: var(--rt-muted); text-transform: none; letter-spacing: 0; }
html.rt-v2 .dyd-tv { font: 650 27px/1.15 var(--rt-font); letter-spacing: -.02em; color: var(--rt-ink); }
html.rt-v2 .dyd-title.dyd-generic h2 { display: none; }
/* data that isn't there yet, or is sample data: said plainly */
.rt-flag { display: inline-flex; align-items: center; gap: 4px; font: 600 11px Roboto, Arial, sans-serif; color: #B54708; background: #FFFAEB; border: 1px solid #FEDF89; border-radius: 999px; padding: 1px 8px; }
html.rt-v2 .rt-flag { font-family: var(--rt-font); }
.rt-banner { display: flex; gap: 10px; align-items: flex-start; background: #FFFAEB; border: 1px solid #FEDF89; color: #93370D; border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; font-size: 13.5px; line-height: 1.45; }
.rt-banner b { color: #7A2E0E; }
/* the "what's behind this number" panel (rooftop/drill.js): shown in both looks */
.rt-drill-back { position: fixed; inset: 0; z-index: 120; background: rgba(16, 24, 40, .35); display: flex; justify-content: flex-end; animation: rtfade .12s ease-out; }
.rt-drill { width: min(760px, 100%); height: 100%; background: #fff; display: flex; flex-direction: column; box-shadow: -12px 0 32px rgba(16, 24, 40, .18); font: 14px Inter, Roboto, Arial, sans-serif; color: #101828; animation: rtslide .16s cubic-bezier(.2, .7, .3, 1); }
.rt-drill header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid #E4E7EC; }
.rt-drill h2 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.rt-drill header p { margin: 4px 0 0; color: #667085; font-size: 13px; }
.rt-dr-x { border: 1px solid #E4E7EC; background: #fff; border-radius: 8px; width: 32px; height: 32px; font-size: 18px; cursor: pointer; color: #344054; }
.rt-dr-body { flex: 1; overflow: auto; padding: 0 8px; }
.rt-dr-t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 13px; }
.rt-dr-t th { position: sticky; top: 0; background: #F9FAFB; color: #667085; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; text-align: left; padding: 9px 10px; border-bottom: 1px solid #E4E7EC; }
.rt-dr-t td { padding: 8px 10px; border-bottom: 1px solid #F2F4F7; white-space: nowrap; }
.rt-dr-t tbody tr[data-i] { cursor: pointer; }
.rt-dr-t tbody tr[data-i]:hover td, .rt-dr-t tbody tr[data-i]:focus td { background: #EEF2FB; outline: none; }
.rt-dr-t tfoot td { font-weight: 650; border-top: 1px solid #E4E7EC; background: #F9FAFB; }
.rt-dr-none { padding: 24px 12px; color: #667085; }
.rt-drill footer { padding: 10px 20px; border-top: 1px solid #E4E7EC; color: #667085; font-size: 12.5px; }
html.rt-v2 .fid-tile[data-kpi], html.rt-v2 .fid-tile[data-fkpi] { cursor: pointer; }
html.rt-v2 .fid-tile[data-kpi]:hover, html.rt-v2 .fid-tile[data-fkpi]:hover { border-color: var(--rt-brand-line); }
.fid-tile[data-kpi], .fid-tile[data-fkpi] { cursor: pointer; }
@keyframes rtfade { from { opacity: 0; } } @keyframes rtslide { from { transform: translateX(24px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .rt-drill-back, .rt-drill { animation: none; } }
/* Sales Dashboard: compare-by and table/chart switches, and the chart */
.sd-ctls { display: flex; gap: 8px; flex-wrap: wrap; }
.sd-chart { width: 100%; max-width: 760px; height: auto; display: block; margin: 8px 0 4px; font-family: Inter, Roboto, Arial, sans-serif; }
.sd-chart .sd-cl { font-size: 13px; fill: #344054; } .sd-chart .sd-cv { font-size: 12.5px; fill: #101828; font-weight: 600; font-variant-numeric: tabular-nums; } .sd-chart .sd-cn { font-size: 11px; fill: #667085; }
.sd-grow td { background: #FCFCFD; }
/* one filter style on every dashboard: the month and period pickers, date boxes and filter chips look the same */
html.rt-v2 :is(.dyd-month, .dyd-date, .rc-psel, .xl-sel, #dl-dash-month, #fi-m-dash, #fi-t-dash, #dl-dash-type) {
  font: 500 13.5px var(--rt-font); color: var(--rt-ink); background: var(--rt-card); border: 1px solid var(--rt-line); border-radius: var(--rt-r);
  padding: 6px 10px; min-height: 34px; box-shadow: var(--rt-sh-1); }
html.rt-v2 :is(.dyd-asof, .rc-per) label, html.rt-v2 .dyd-asof > span, html.rt-v2 .rc-per > span { font: 600 11px var(--rt-font); color: var(--rt-muted); text-transform: uppercase; letter-spacing: .05em; }
html.rt-v2 .lp-chip { font: 500 13px var(--rt-font); border: 1px solid var(--rt-line); background: var(--rt-card); color: var(--rt-ink-2); border-radius: 999px; box-shadow: var(--rt-sh-1); transition: background-color var(--rt-fast), color var(--rt-fast), border-color var(--rt-fast); }
html.rt-v2 .lp-chip:hover { background: var(--rt-hover); color: var(--rt-ink); }
html.rt-v2 .lp-chip[aria-pressed="true"], html.rt-v2 .lp-chip.is-on, html.rt-v2 .lp-chip.on { background: var(--rt-brand); border-color: var(--rt-brand); color: #fff; }
html.rt-v2 .fid-seg2 button, html.rt-v2 .fid-seg button { font-family: var(--rt-font); }

/* ---------- panels where the solid blue bars were: a soft tinted surface with a fine edge, so sections stand apart ---------- */
:root { --rt-panel: linear-gradient(180deg, #FBFCFF 0%, #F1F4FB 100%); --rt-panel-line: #DCE3F1; --rt-panel-sh: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 0 rgba(255, 255, 255, .9) inset; }
html.rt-v2 .fid-top { background: var(--rt-panel); border-color: var(--rt-panel-line); box-shadow: var(--rt-panel-sh); }
html.rt-v2 .fis-bar { background: var(--rt-panel) !important; color: var(--rt-ink) !important; border: 1px solid var(--rt-panel-line); border-radius: var(--rt-r-lg) var(--rt-r-lg) 0 0; box-shadow: var(--rt-panel-sh); }
html.rt-v2 .fis-bar * { color: inherit; }
html.rt-v2 .fis-bar .fis-title { color: var(--rt-brand) !important; font-weight: 650; }
html.rt-v2 .fis-bar label, html.rt-v2 .fis-bar .fis-l, html.rt-v2 .fis-bar b { color: var(--rt-muted); }
html.rt-v2 .fis-bar select { background: var(--rt-card) !important; color: var(--rt-ink) !important; border: 1px solid var(--rt-line) !important; border-radius: var(--rt-r) !important; box-shadow: var(--rt-sh-1); }
html.rt-v2 .fis-bar button { background: var(--rt-card) !important; color: var(--rt-ink-2) !important; border: 1px solid var(--rt-line) !important; border-radius: var(--rt-r) !important; box-shadow: var(--rt-sh-1); }
html.rt-v2 .fis-bar button:hover { background: var(--rt-hover) !important; }
/* the logs' column headers and section bands (the band is matched straight away, so a redraw while typing doesn't flash the old navy first, Nov 1, 2026): the same light header on every log (the F&I log's were dark navy) */
html.rt-v2 td.afh { background: #F2F4F8 !important; color: var(--rt-brand) !important; }
html.rt-v2 td.afh button, html.rt-v2 td.afh .af { color: inherit !important; }
html.rt-v2 tr.rt-bandrow > td:not(:empty), html.rt-v2 tr:not(:has(> td.afh)):has(+ tr > td.afh:is(:first-child, :nth-child(2))) > td:not(:empty) { background: #E6EBF6 !important; color: var(--rt-brand) !important; }
/* explanations live behind a small ⓘ beside the heading instead of grey paragraphs (rooftop/pagehead.js) */
html.rt-v2 .rt-noted { display: none !important; }
.rt-info { display: none; }
html.rt-v2 .rt-info { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 50%; border: 1px solid var(--rt-line); background: var(--rt-card); color: var(--rt-muted); font: 600 11px/1 var(--rt-font); cursor: help; vertical-align: 2px; padding: 0; }
html.rt-v2 .rt-info:hover, html.rt-v2 .rt-info:focus-visible { color: var(--rt-brand); border-color: var(--rt-brand-line); }
html.rt-v2 tr.rt-bandrow > td:not(:empty) *, html.rt-v2 tr:not(:has(> td.afh)):has(+ tr > td.afh:is(:first-child, :nth-child(2))) > td:not(:empty) * { color: inherit !important; }
html.rt-v2 tr.rt-bandrow .dq-band, html.rt-v2 tr:not(:has(> td.afh)):has(+ tr > td.afh:is(:first-child, :nth-child(2))) .dq-band { background: transparent !important; }
html.rt-v2 tr.rt-bandrow button, html.rt-v2 tr:not(:has(> td.afh)):has(+ tr > td.afh:is(:first-child, :nth-child(2))) button { background: var(--rt-card) !important; border: 1px solid var(--rt-panel-line) !important; border-radius: 6px !important; box-shadow: var(--rt-sh-1); }
html.rt-v2 tr.rt-bandrow button[aria-pressed="true"], html.rt-v2 tr:not(:has(> td.afh)):has(+ tr > td.afh:is(:first-child, :nth-child(2))) button[aria-pressed="true"] { background: var(--rt-brand) !important; color: #fff !important; border-color: var(--rt-brand) !important; }

/* ================= themes (rooftop/themes.js sets the colours on <html>; these rules use them) ================= */
html.rt-v2 { --lp-card: var(--rt-card); }
html.rt-v2 body { background: var(--rt-page); }
html.rt-v2 .lp, html.rt-v2 #rooftop-page, html.rt-v2 #rooftop-op { background: var(--rt-page); }
html.rt-v2 :is(.lp-card, .fid-tile, .dyd-tile, .rp-sec.sp-sec) { background: var(--rt-card); }
html.rt-v2 tr.rt-bandrow > td:not(:empty), html.rt-v2 tr:not(:has(> td.afh)):has(+ tr > td.afh:is(:first-child, :nth-child(2))) > td:not(:empty) { background: var(--rt-band) !important; }
/* the menu */
html.rt-v2 .rs { background: var(--rs-bg); border-right-color: var(--rs-line); }
html.rt-v2 .rs-mark { background: var(--rs-mark, var(--rs-brand)) !important; color: #fff; }
html.rt-v2 .rs-item.on::before { background: var(--rs-mark, var(--rs-brand)); }
html.rt-v2 :is(.db-views button, .lp-ptab)[aria-selected="true"] { color: #fff; background: var(--brand); box-shadow: 0 2px 6px color-mix(in srgb, var(--brand) 30%, transparent); }
html.rt-v2 :is(.db-views button, .lp-ptab):hover:not([aria-selected="true"]) { color: var(--brand); background: var(--rt-brand-soft); }
html.rt-v2[data-nav="dark"] .rs { border-right: 0; box-shadow: 1px 0 0 rgba(0, 0, 0, .06); }
html.rt-v2[data-nav="dark"] .rs-item.on { color: #fff; }
html.rt-v2[data-nav="dark"] .rs-kid.on { color: #fff; }
html.rt-v2[data-nav="dark"] .rs-item[data-rs="calendar"] { background: rgba(34, 197, 94, .14); color: #A7F3C0; box-shadow: inset 0 0 0 1px rgba(134, 239, 172, .28); }
html.rt-v2[data-nav="dark"] .rs-item[data-rs="calendar"]:hover { background: rgba(34, 197, 94, .22); }
html.rt-v2[data-nav="dark"] .rs-item[data-rs="calendar"].on { background: #16A34A; color: #fff; }
html.rt-v2[data-nav="dark"] .rs-hl { box-shadow: 0 0 0 2px var(--rs-bg), 0 0 0 3px rgba(255, 255, 255, .25); }
html.rt-v2[data-nav="dark"] .rs-ebtn { background: rgba(255, 255, 255, .08); color: var(--rs-ink); }
html.rt-v2[data-nav="dark"] .rs-burger { background: var(--rs-bg); color: var(--rs-ink); border-color: var(--rs-line); }
/* statuses mean the same thing in every theme */
html.rt-v2 .rt-flag { color: var(--rt-warn); background: var(--rt-warn-bg); }
/* ================= density: Compact fits more rows on dashboards and reports (the logs keep their own Compact / Detailed) ================= */
html.rt-v2[data-density="compact"] .lp-table td, html.rt-v2[data-density="compact"] .lp-table th { padding-top: 5px; padding-bottom: 5px; }
html.rt-v2[data-density="compact"] .fid-tile, html.rt-v2[data-density="compact"] .dyd-tile { padding: 10px 12px; }
html.rt-v2[data-density="compact"] .fid-tile strong, html.rt-v2[data-density="compact"] .dyd-tv { font-size: 22px; }
html.rt-v2[data-density="compact"] .lp-card { padding: 12px; }
html.rt-v2[data-density="compact"] .rs-item { padding-top: 6px; padding-bottom: 6px; }
html.rt-v2[data-density="compact"] #rt-ph { padding-top: 8px; padding-bottom: 4px; }
/* ================= text size ================= */
html[data-text="large"] body { zoom: 1.08; }
html[data-text="larger"] body { zoom: 1.16; }
/* ================= the theme picker (Settings › Your profile) ================= */
.th-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 10px 0 6px; }
.th-card { all: unset; box-sizing: border-box; cursor: pointer; border: 1px solid #E4E7EC; border-radius: 12px; background: #fff; padding: 8px; display: flex; flex-direction: column; gap: 8px; transition: border-color .12s, box-shadow .12s; }
.th-card:hover { box-shadow: 0 4px 12px -2px rgba(16, 24, 40, .1); }
.th-card[aria-pressed="true"] { border-color: var(--brand, #1F3A93); box-shadow: 0 0 0 2px var(--brand, #1F3A93); }
.th-card:focus-visible { outline: 2px solid var(--brand, #1F3A93); outline-offset: 2px; }
.th-mini { display: grid; grid-template-columns: 26% 1fr; height: 78px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(0, 0, 0, .06); }
.th-mini i { display: block; }
.th-mini .n { display: flex; flex-direction: column; gap: 5px; padding: 8px 6px; }
.th-mini .n b { display: block; height: 5px; border-radius: 3px; opacity: .55; }
.th-mini .n b.a { opacity: 1; }
.th-mini .m { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.th-mini .bar { height: 12px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .06); }
.th-mini .cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; flex: 1; }
.th-mini .cards span { border-radius: 4px; border: 1px solid rgba(0, 0, 0, .06); position: relative; }
.th-mini .cards span::after { content: ""; position: absolute; left: 4px; top: 5px; width: 50%; height: 4px; border-radius: 2px; background: currentColor; opacity: .8; }
.th-name { font: 600 13.5px Inter, Roboto, Arial, sans-serif; color: #101828; padding: 0 4px; display: flex; justify-content: space-between; gap: 6px; }
.th-desc { font: 12px/1.35 Inter, Roboto, Arial, sans-serif; color: #667085; padding: 0 4px 2px; }
.th-prev { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 9500; display: flex; align-items: center; gap: 10px; background: #101828; color: #fff; padding: 10px 12px 10px 16px; border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, .3); font: 14px Inter, Roboto, Arial, sans-serif; }
.th-prev button { font: 600 13px Inter, Roboto, Arial, sans-serif; border-radius: 8px; padding: 7px 12px; cursor: pointer; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; }
.th-prev button.keep { background: #fff; color: #101828; border-color: #fff; }
/* pages that set their own colour names follow the theme too (the Board view keeps its own colours on purpose) */
html.rt-v2 :is(#rooftop-page, #rooftop-op) { --brand: var(--rt-brand); --soft: var(--rt-brand-soft); --page: var(--rt-page); --line: var(--rt-line); }
/* the biggest deals sit to the right of the search, smaller, so the filter panel stays slim */
@media (min-width: 1280px) {
  html.rt-v2 .fid-top.db-bar.db-has-big { grid-template-columns: minmax(0, 1fr) auto; }
  html.rt-v2 .fid-top.db-bar.db-has-big .db-r1 { grid-column: 1; grid-row: 1; }
  html.rt-v2 .fid-top.db-bar.db-has-big .db-r2 { grid-column: 2; grid-row: 1; }
  html.rt-v2 .fid-top.db-bar.db-has-big .db-r3 { grid-column: 1; grid-row: 2; align-self: center; }
  html.rt-v2 .fid-top.db-bar.db-has-big .fid-bigtop { grid-column: 2; grid-row: 2; align-self: center; justify-content: flex-end; flex-wrap: nowrap; gap: 0; padding: 0; border: 0 !important; }
  html.rt-v2 .fid-top.db-bar .fid-bigtop .fib { width: auto; max-width: 250px; padding: 4px 14px; border-left: 1px solid var(--rt-panel-line); }
  html.rt-v2 .fid-top.db-bar .fid-bigtop .fib > :first-child { font-size: 10px; letter-spacing: .05em; }
  html.rt-v2 .fid-top.db-bar .fid-bigtop .fib strong, html.rt-v2 .fid-top.db-bar .fid-bigtop .fib b:first-of-type { font-size: 14px; }
  html.rt-v2 .fid-top.db-bar .fid-bigtop .fib-who, html.rt-v2 .fid-top.db-bar .fid-bigtop .fib > :not(:first-child):not(strong) { font-size: 11.5px; line-height: 1.35; }
}
/* the sales log's Detailed summary boxes: when a box is too narrow for five columns, Avg gross sits under Gross,
   so nothing is cut off or overlaps */
html.rt-v2 .slk3-card { container-type: inline-size; }
html.rt-v2 .slk3-card .slk2-head { flex-wrap: wrap; row-gap: 4px; }
@container (max-width: 500px) {
  html.rt-v2 .slk3-cols { grid-template-columns: repeat(4, minmax(max-content, 1fr)); row-gap: 6px; }
  html.rt-v2 .slk3-cols > :nth-child(5) { grid-column: 4; grid-row: 2; }
}
/* Page tops tightened and made alike (Oct 31, 2026): the GM Dashboard and GM KPI controls sit in the same tinted bar as
   the other dashboards, with Reset filters at its end; Super Gross matches the other dashboards */
.rt-rowempty { display: none !important; }
html.rt-v2 .dyd-title { display: none; }
html.rt-v2 .dyd-head { background: var(--rt-panel); border: 1px solid var(--rt-panel-line); box-shadow: var(--rt-panel-sh); border-radius: var(--rt-r-lg); padding: 8px 12px; margin: 0 0 12px; }
html.rt-v2 .dyd-cal { flex: 1; gap: 8px 16px; }
html.rt-v2 .dyd-cal :is(.dyd-month, .dyd-date) { height: 32px; padding: 0 8px; box-sizing: border-box; }
html.rt-v2 .dyd-cal > .app-reset { margin-left: auto; height: 30px; padding: 0 12px 0 10px; font-size: 13px; border-radius: 15px; }
html.rt-v2 .dyd-save:empty { display: none; }
html.rt-v2 .sg-wrap { padding-top: 0; }
html.rt-v2 .sg-tile { background: var(--rt-card); border: 1px solid var(--rt-line); border-radius: var(--rt-r-lg); box-shadow: var(--rt-sh-1); padding: 12px 16px; position: relative; overflow: hidden; }
html.rt-v2 .sg-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--rt-brand); }
html.rt-v2 .sg-tile span { font: 500 12.5px var(--rt-font); color: var(--rt-muted); text-transform: none; letter-spacing: 0; }
html.rt-v2 .sg-tile b { font: 650 27px/1.15 var(--rt-font); letter-spacing: -.02em; color: var(--rt-ink); }
html.rt-v2 .sg-bar { background: var(--rt-panel); border: 1px solid var(--rt-panel-line); border-radius: var(--rt-r-lg) var(--rt-r-lg) 0 0; }
html.rt-v2 .sg-bar :is(.sg-tg, .sg-sort) { color: var(--rt-muted); }
html.rt-v2 .sg-st { color: var(--rt-ink); border-color: var(--rt-line); background: var(--rt-card); border-radius: 999px; }
html.rt-v2 .sg-st:hover { background: var(--rt-brand-soft); }
html.rt-v2 .sg-st.on { background: var(--rt-brand); color: #fff; border-color: var(--rt-brand); }
html.rt-v2 :is(.sg-sort select, .sg-q) { border: 1px solid var(--rt-line); border-radius: var(--rt-r); height: 30px; background: var(--rt-card); }
html.rt-v2 .sg-info { margin-left: 0; }
html.rt-v2 .cal-sync:empty { display: none; }
html.rt-v2 .rep-ask.rep-noai { display: none; }
html.rt-v2 .rep-wrap { max-width: none; margin: 0 0 60px; }
/* KPI supporting text wraps instead of being cut off (Oct 31, 2026): the GM Dashboard tiles, the sales logs' KPI cards
   (Front and Back under the averages) and the leader board's biggest-deal line */
:is(.dyd-ts, .slk2-s small, .slk3-note, .slk2-fire) { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.3; }
/* Recon: On hold opens the reason and what to do (recon.js, Oct 31, 2026) */
button.rc-held { border: 1px solid #D1D5DB; background: #F3F4F6; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
button.rc-held:hover, button.rc-held:focus-visible { border-color: var(--brand, #1F3A93); color: var(--brand, #1F3A93) !important; }
button.rc-held .rt-info { display: inline-grid; width: 14px; height: 14px; margin: 0; font-size: 9px; vertical-align: 0; }
.rc-link { font: inherit; color: var(--brand, #1F3A93); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.rc-holdbox .bk-body p { margin: 0 0 14px; line-height: 1.45; }

/* store tabs folded into one drop-down when they run out of room (rooftop/storefold.js, Nov 1, 2026) */
.sf-btn { display: none !important; }
.sf-on > button:not(.sf-btn) { display: none !important; }
.sf-on { flex-wrap: nowrap !important; }
.sf-on > .sf-btn { display: inline-flex !important; align-items: center; gap: 8px; font: inherit; font-weight: 600; cursor: pointer; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--rt-brand, #1F3A93) !important; background: var(--rt-brand, #1F3A93) !important; color: #fff !important; white-space: nowrap; }
.sf-btn svg { width: 10px; height: 10px; }
.sf-pop { position: fixed; z-index: 9500; min-width: 220px; max-width: 320px; max-height: min(70vh, 520px); overflow: auto; background: #fff; border: 1px solid #DCE1EA; border-radius: 10px; box-shadow: 0 12px 32px rgba(17, 24, 39, .18); padding: 6px; font: 13px Roboto, "Segoe UI", Arial, sans-serif; color: #1B2333; }
.sf-g + .sf-g { border-top: 1px solid #EEF1F6; margin-top: 4px; padding-top: 4px; }
.sf-h { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #5B6475; padding: 6px 10px 2px; }
.sf-it { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; font: inherit; padding: 7px 10px; border: 0; border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }
.sf-it:hover, .sf-it:focus-visible { background: #F1F3F7; outline: none; }
.sf-it.on { font-weight: 600; color: var(--rt-brand, #1F3A93); }
.sf-ck { width: 14px; height: 14px; border: 1px solid #B8C0CE; border-radius: 3px; display: inline-grid; place-items: center; font-style: normal; font-size: 10px; }
.sf-it.on .sf-ck { background: var(--rt-brand, #1F3A93); border-color: var(--rt-brand, #1F3A93); color: #fff; }
/* an ⓘ clicked or tapped shows what it says (rooftop/pagehead.js, Nov 1, 2026) */
.rt-tip { position: fixed; z-index: 9600; background: #1B2333; color: #fff; font: 12.5px/1.45 Roboto, "Segoe UI", Arial, sans-serif; padding: 8px 11px; border-radius: 8px; box-shadow: 0 8px 24px rgba(17, 24, 39, .25); white-space: normal; }
/* no stores picked on a dashboard (stores.js, Nov 1, 2026): the bar stays, the rest gives way to a note */
.sd-none > :not(.db-bar):not(.hm-bar0):not(.sd-empty):not(.hm-head):not(.hm-edit) { display: none !important; }
.sd-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 56px 16px; margin-top: 12px; background: var(--rt-card, #fff); border: 1px dashed var(--rt-line, #DCE1EA); border-radius: 14px; color: var(--rt-muted, #5B6475); font: 14px Roboto, "Segoe UI", Arial, sans-serif; }
.sd-empty svg { width: 120px; height: 80px; margin-bottom: 6px; }
.sd-empty svg rect { fill: #E8ECF7; stroke: #C9D4F0; stroke-width: 1.5; animation: sd-rise 1.8s ease-in-out infinite; transform-origin: bottom; transform-box: fill-box; }
.sd-empty svg rect:nth-child(2) { animation-delay: .25s; } .sd-empty svg rect:nth-child(3) { animation-delay: .5s; }
.sd-empty svg path { stroke: #C9D4F0; stroke-width: 2; }
.sd-empty b { color: var(--rt-ink, #1B2333); font-size: 16px; }
@keyframes sd-rise { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.6); } }
@media (prefers-reduced-motion: reduce) { .sd-empty svg rect { animation: none; } }

/* Ask Claude (rooftop/askclaude.js, Nov 1, 2026) */
.ac-back { position: fixed; inset: 0; z-index: 120; background: rgba(16, 24, 40, .35); display: flex; justify-content: flex-end; animation: rtfade .12s ease-out; }
.ac-panel { width: min(560px, 100%); height: 100%; background: #fff; display: flex; flex-direction: column; box-shadow: -12px 0 32px rgba(16, 24, 40, .18); font: 14px Inter, Roboto, Arial, sans-serif; color: #101828; animation: rtslide .16s cubic-bezier(.2, .7, .3, 1); }
.ac-panel header { display: flex; align-items: center; gap: 8px; padding: 16px 20px; border-bottom: 1px solid #EAECF0; }
.ac-panel h2 { margin: 0; font-size: 18px; font-weight: 650; }
.ac-sp { flex: 1; }
.ac-x { all: unset; cursor: pointer; font-size: 22px; line-height: 1; padding: 4px 8px; border-radius: 6px; color: #667085; }
.ac-x:hover { background: #F2F4F7; }
.ac-body { padding: 16px 20px; overflow: auto; flex: 1; }
.ac-new textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 10px 12px; border: 1px solid #D0D5DD; border-radius: 8px; resize: vertical; min-height: 96px; }
.ac-new textarea:focus { outline: 0; border-color: var(--brand, #1F3A93); box-shadow: 0 0 0 3px rgba(31, 58, 147, .12); }
.ac-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.ac-btn { font: inherit; font-weight: 600; padding: 7px 14px; border-radius: 8px; border: 1px solid #D0D5DD; background: #fff; color: #344054; cursor: pointer; }
.ac-btn.primary { background: var(--brand, #1F3A93); border-color: var(--brand, #1F3A93); color: #fff; }
.ac-btn:disabled { opacity: .55; cursor: default; }
.ac-err { color: #B42318; font-size: 13px; }
.ac-note { color: #667085; font-size: 13px; margin: 8px 0 0; }
.ac-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ac-item { border: 1px solid #EAECF0; border-radius: 10px; padding: 12px 14px; }
.ac-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ac-st { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #F2F4F7; color: #344054; }
.ac-st.ac-w { background: #EFF4FF; color: #1F3A93; }
.ac-st.ac-r { background: #ECFDF3; color: #067647; }
.ac-st.ac-p { background: #F0F9FF; color: #026AA2; }
.ac-st.ac-f { background: #FEF3F2; color: #B42318; }
.ac-when { font-size: 12px; color: #667085; }
.ac-text { margin: 8px 0 0; white-space: pre-wrap; }
.ac-sum { margin: 8px 0 0; padding-left: 18px; color: #344054; font-size: 13px; }
.ac-acts { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.ac-link { margin-left: auto; font-size: 13px; color: var(--brand, #1F3A93); }
@media (prefers-reduced-motion: reduce) { .ac-back, .ac-panel { animation: none; } }
