/* ============================================================
   Team Dashboard — shared styles for Sales Manager + Exec views
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
    --bg:         #f6f7f9;
    --surface:    #ffffff;
    --surface-2:  #fafbfc;
    --hairline:   #ececef;
    --hairline-2: #e5e6ea;

    --ink:       #0b0f17;
    --ink-2:     #2a2f39;
    --ink-3:     #5a606b;
    --ink-mute:  #8b909a;
    --ink-faint: #b9bcc4;

    --accent:    #1f5fff;
    --accent-bg: #eaf0ff;

    --good:     #0f9d58;
    --good-bg:  #e7f6ee;
    --bad:      #d63f3f;
    --bad-bg:   #fdecec;
    --warn:     #b8730d;
    --warn-bg:  #fef4e0;

    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius:    14px;
    --radius-sm: 10px;
    --shadow-1:  0 1px 0 rgba(11,15,23,0.04), 0 1px 2px rgba(11,15,23,0.04);
    --shadow-2:  0 1px 0 rgba(11,15,23,0.04), 0 4px 16px rgba(11,15,23,0.06);
}

@supports (font-variation-settings: normal) {
    :root { --font-sans: "Inter var", -apple-system, BlinkMacSystemFont, sans-serif; }
}

html, body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    font-size: 14px; line-height: 1.45; letter-spacing: -0.005em;
    font-feature-settings: "ss01", "cv11";
}

.hidden { display: none !important; }
.muted  { color: var(--ink-mute); font-size: 12px; font-weight: 500; }

/* ============================================================
   Top bar
   ============================================================ */
.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
    position: sticky; top: 0; z-index: 40;
}
.topbar-inner {
    max-width: 1400px; margin: 0 auto;
    padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
}
.topbar-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.back-link {
    display: inline-flex; align-items: center; justify-content: center;
    height: 36px; padding: 0 14px;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    color: var(--ink-2); text-decoration: none;
    font-size: 13px; font-weight: 550;
    transition: background .15s;
    white-space: nowrap;
}
.back-link:hover { background: var(--accent-bg); color: var(--accent); }
.topbar h1 {
    font-size: 18px; font-weight: 650; letter-spacing: -0.015em;
    color: var(--ink);
}
.topbar .subtitle {
    font-size: 12px; color: var(--ink-mute); margin-top: 2px;
}
.control {
    height: 36px; padding: 0 12px;
    border: 1px solid var(--hairline-2);
    border-radius: 10px;
    background: var(--surface);
    font-family: inherit; font-size: 13px; color: var(--ink-2);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.control:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--accent-bg);
}
.control-sm { height: 32px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn-ghost {
    height: 36px; padding: 0 14px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    color: var(--ink-2);
    font-size: 13px; font-weight: 550;
    text-decoration: none;
    transition: background .15s;
}
.btn-ghost:hover { background: var(--accent-bg); color: var(--accent); }

/* ============================================================
   Tabs
   ============================================================ */
.tabs-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
    position: sticky; top: 0; z-index: 30;
}
.tabs-inner {
    max-width: 1400px; margin: 0 auto;
    padding: 0 24px;
    display: flex; gap: 4px;
}
.tab-btn {
    background: transparent;
    border: none;
    padding: 12px 18px;
    font: inherit; font-size: 13px; font-weight: 600;
    color: var(--ink-mute);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.tab-btn:hover { color: var(--ink-2); }
.tab-btn.tab-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.tab-panel.hidden { display: none; }

/* ============================================================
   Monthly goals strip (12-bar rollup — mirrors rep cockpit)
   ============================================================ */
.months-section {
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 14px 18px 18px;
}
.months-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 10px;
}
.months-head h2 {
    font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--ink-mute);
}
.months-head .muted {
    font-size: 12px;
    color: var(--ink-mute);
}
.months-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 12px 10px;
}
.month-cell {
    display: flex; flex-direction: column; align-items: center;
    padding: 4px 2px;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
    cursor: default;
    transition: background .15s;
}
.month-cell.current { background: var(--accent-bg); }
.month-name {
    font-size: 10px; font-weight: 600;
    color: var(--ink-mute);
    text-transform: uppercase; letter-spacing: 0.04em;
}
.month-cell.current .month-name { color: var(--accent); }
.month-bar-track {
    width: 70%; min-width: 22px; max-width: 40px;
    height: 50px;
    background: var(--hairline);
    border-radius: 4px;
    overflow: hidden;
    display: flex; align-items: flex-end;
    margin: 6px 0 4px;
}
.month-bar {
    width: 100%;
    background: var(--ink-faint);
    border-radius: 4px 4px 0 0;
    transition: height .3s;
}
.month-bar.good { background: var(--good); }
.month-bar.ok   { background: var(--accent); }
.month-bar.warn { background: var(--warn); }
.month-bar.bad  { background: var(--bad); }
.month-bar.empty { background: transparent; }
.month-actual { font-size: 12px; font-weight: 650; color: var(--ink); }
.month-actual.empty { color: var(--ink-faint); }
.month-goal   { font-size: 10px; color: var(--ink-mute); }
.month-pct    { font-size: 10px; font-weight: 600; margin-top: 1px; }
.month-pct.good { color: var(--good); }
.month-pct.ok   { color: var(--accent); }
.month-pct.warn { color: var(--warn); }
.month-pct.bad  { color: var(--bad); }
.month-pct.empty { color: var(--ink-faint); }

/* ============================================================
   Sales hero (4 big numbers at top of Sales tab)
   ============================================================ */
.sales-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}
.sales-hero-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 18px 22px;
    box-shadow: var(--shadow-1);
}
.sales-hero-label {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--ink-mute);
}
.sales-hero-value {
    font-size: 28px; font-weight: 650; letter-spacing: -0.02em;
    color: var(--ink);
    margin-top: 6px;
    font-variant-numeric: tabular-nums;
}
.sales-hero-sub {
    font-size: 11px; color: var(--ink-mute);
    margin-top: 2px;
}
.sales-hero-influenced .sales-hero-value { color: var(--accent); }

/* ============================================================
   Goal pacing table
   ============================================================ */
.pace-cell {
    display: inline-flex; align-items: center; gap: 6px;
    font-variant-numeric: tabular-nums;
}
.pace-bar {
    display: inline-block;
    width: 40px; height: 6px;
    background: var(--hairline);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}
.pace-bar span {
    display: block; height: 100%; border-radius: 3px;
}
.pace-pill {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 10px; font-weight: 650;
    min-width: 44px; text-align: center;
}
.pace-good { background: var(--good-bg); color: var(--good); }
.pace-warn { background: var(--warn-bg); color: var(--warn); }
.pace-bad  { background: var(--bad-bg);  color: var(--bad);  }

/* ============================================================
   Filter strip (below topbar)
   ============================================================ */
.filter-strip {
    background: var(--surface-2);
    border-bottom: 1px solid var(--hairline);
}
.filter-strip-inner {
    max-width: 1400px; margin: 0 auto;
    padding: 10px 24px;
    display: flex; align-items: flex-end; gap: 14px;
    flex-wrap: wrap;
}
.filter-strip .filter {
    display: flex; flex-direction: column; gap: 3px;
    min-width: 0;
}
.filter-strip .filter > span {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--ink-mute); font-weight: 600;
}
.filter-strip .filter input,
.filter-strip .filter select {
    min-width: 140px;
}
#filter-brand, #filter-sku { min-width: 170px; }
.btn-ghost-sm {
    height: 32px; padding: 0 10px;
    border: 1px solid var(--hairline-2); border-radius: 8px;
    background: var(--surface);
    font-size: 12px; color: var(--ink-3);
    cursor: pointer;
    align-self: flex-end;
    transition: background .15s;
}
.btn-ghost-sm:hover { background: var(--accent-bg); color: var(--accent); }
.filter-status {
    align-self: flex-end;
    padding-bottom: 6px;
    font-style: italic;
    flex: 1; min-width: 0;
    text-align: right;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============================================================
   Revenue panel
   ============================================================ */
.revenue-head-meta {
    display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
}
.revenue-total {
    font-size: 22px; font-weight: 650; letter-spacing: -0.02em;
    color: var(--ink); font-variant-numeric: tabular-nums;
}
.revenue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
}
.revenue-col + .revenue-col {
    border-left: 1px solid var(--hairline);
}
.revenue-col .subheading { padding: 14px 20px 6px; }
.revenue-col .table-wrap { padding: 0 0 6px; }
@media (max-width: 1000px) {
    .revenue-grid { grid-template-columns: 1fr; }
    .revenue-col + .revenue-col { border-left: none; border-top: 1px solid var(--hairline); }
}

/* ============================================================
   Layout
   ============================================================ */
.wrap {
    max-width: 1400px; margin: 0 auto;
    padding: 24px;
    display: flex; flex-direction: column; gap: 24px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
    overflow: hidden;
}
.card-head {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--hairline);
    gap: 12px;
}
.card-head h2 {
    font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
    color: var(--ink);
}
.subheading {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink-mute);
    padding: 14px 20px 8px;
}
.row-two {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.row-two-thin {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
    padding: 8px 20px 20px;
}
@media (max-width: 960px) {
    .row-two, .row-two-thin { grid-template-columns: 1fr; }
}
.card-tall { min-height: 360px; }

/* ============================================================
   KPI strip
   ============================================================ */
.kpi-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.kpi {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    box-shadow: var(--shadow-1);
}
.kpi-label {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--ink-mute);
}
.kpi-value {
    font-size: 24px; font-weight: 650; letter-spacing: -0.02em;
    color: var(--ink);
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}
.kpi-sub { font-size: 11px; color: var(--ink-mute); margin-top: 2px; }
.kpi-value .kpi-pct { font-size: 18px; color: var(--ink-3); font-weight: 600; }
.kpi.kpi-bad .kpi-value { color: var(--bad); }
.kpi.kpi-good .kpi-value { color: var(--good); }
.loading {
    padding: 40px 20px; text-align: center; color: var(--ink-mute);
    font-size: 13px;
}

/* ============================================================
   Tables
   ============================================================ */
.table-wrap { overflow-x: auto; }
.data-table {
    width: 100%; border-collapse: collapse;
    font-size: 13px;
}
.data-table thead th {
    padding: 10px 12px;
    text-align: left;
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--ink-mute);
    border-bottom: 1px solid var(--hairline);
    background: var(--surface-2);
    position: sticky; top: 0;
}
.data-table thead th.num { text-align: right; }
.data-table thead th.sortable { cursor: pointer; user-select: none; }
.data-table thead th.sortable:hover { color: var(--ink-2); }
.data-table thead th.sort-asc::after  { content: " ↑"; color: var(--accent); }
.data-table thead th.sort-desc::after { content: " ↓"; color: var(--accent); }
.data-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--hairline);
    color: var(--ink-2);
    vertical-align: top;
}
.data-table tbody td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.data-table tbody tr:hover td { background: var(--surface-2); }
.data-table-compact thead th,
.data-table-compact tbody td { padding: 6px 10px; }

.rep-name { font-weight: 600; color: var(--ink); }
.rep-sub  { font-size: 11px; color: var(--ink-mute); margin-top: 1px; }
.state-pill {
    display: inline-block;
    padding: 1px 6px;
    background: var(--accent-bg);
    color: var(--accent);
    border-radius: 4px;
    font-size: 10px; font-weight: 650;
    margin-left: 6px;
    letter-spacing: 0.02em;
}

.row-action a {
    font-size: 11px; color: var(--accent);
    text-decoration: none; font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--accent-bg);
    transition: background .15s;
}
.row-action a:hover { background: #d6e1ff; }

/* ============================================================
   Sentiment bars
   ============================================================ */
.sentiment-bar {
    display: inline-flex;
    height: 8px; width: 80px;
    border-radius: 4px; overflow: hidden;
    background: var(--hairline);
}
.sentiment-bar span { display: block; height: 100%; }
.sentiment-bar .s-pos { background: var(--good); }
.sentiment-bar .s-neu { background: var(--ink-faint); }
.sentiment-bar .s-neg { background: var(--bad); }
.sentiment-legend {
    font-size: 10px; color: var(--ink-mute); margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   Weekly bars
   ============================================================ */
.weekly-bars {
    display: flex; align-items: flex-end;
    gap: 6px;
    padding: 20px 20px 10px;
    height: 240px;
}
.weekly-bar {
    flex: 1;
    display: flex; flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 3px;
    min-width: 0;
    position: relative;
}
.weekly-bar .bar-v { width: 12px; background: var(--ink-faint); border-radius: 3px 3px 0 0; min-height: 2px; }
.weekly-bar .bar-a { width: 12px; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; }
.weekly-bar .pair { display: flex; gap: 2px; align-items: flex-end; }
.weekly-bar .lbl {
    font-size: 10px; color: var(--ink-mute);
    font-variant-numeric: tabular-nums;
    margin-top: 4px;
    white-space: nowrap;
}
.weekly-bar:hover .bar-v { background: var(--ink-3); }
.weekly-legend { padding: 0 20px 18px; font-size: 11px; }

/* ============================================================
   Notes feed
   ============================================================ */
.filters {
    display: flex; gap: 8px; flex-wrap: wrap;
    padding: 12px 20px;
    border-bottom: 1px solid var(--hairline);
    background: var(--surface-2);
}
.notes-list {
    max-height: 560px; overflow-y: auto;
}
.note-item {
    padding: 14px 20px;
    border-bottom: 1px solid var(--hairline);
}
.note-item:last-child { border-bottom: none; }
.note-meta {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 11px; color: var(--ink-mute); margin-bottom: 4px;
    gap: 8px;
}
.note-meta .note-rep { font-weight: 600; color: var(--ink-2); }
.note-meta .note-acct { color: var(--accent); }
.note-body {
    font-size: 13px; color: var(--ink-2); line-height: 1.5;
    white-space: pre-wrap; word-wrap: break-word;
}
.note-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.note-tag {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    background: var(--accent-bg);
    color: var(--accent);
    font-size: 10px; font-weight: 600;
}
.note-tag.sentiment-positive { background: var(--good-bg); color: var(--good); }
.note-tag.sentiment-negative { background: var(--bad-bg);  color: var(--bad);  }
.note-tag.sentiment-neutral  { background: var(--hairline); color: var(--ink-3); }
.note-voice {
    display: inline-block; margin-left: 6px;
    font-size: 10px; color: var(--ink-mute);
    vertical-align: middle;
}

/* ============================================================
   Follow-ups
   ============================================================ */
.followups-list { max-height: 560px; overflow-y: auto; }
.followup-item {
    padding: 12px 20px;
    border-bottom: 1px solid var(--hairline);
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px;
}
.followup-item:last-child { border-bottom: none; }
.followup-body { flex: 1; min-width: 0; }
.followup-desc {
    font-size: 13px; color: var(--ink-2);
    word-wrap: break-word;
}
.followup-meta {
    font-size: 11px; color: var(--ink-mute); margin-top: 4px;
}
.overdue-badge {
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--bad-bg);
    color: var(--bad);
    font-size: 11px; font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   Priority gap list
   ============================================================ */
.gap-list {
    max-height: 260px; overflow-y: auto;
    padding: 0 20px 20px;
}
.gap-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 13px;
    gap: 8px;
}
.gap-item:last-child { border-bottom: none; }
.gap-item .gap-name { color: var(--ink-2); flex: 1; min-width: 0; }
.gap-item .gap-name strong { font-weight: 600; color: var(--ink); }
.gap-item .gap-name .brand { color: var(--ink-mute); font-size: 11px; margin-top: 1px; }
.gap-item .gap-msrp {
    font-variant-numeric: tabular-nums;
    font-size: 11px; color: var(--ink-mute); font-weight: 600;
}

.coverage-bar {
    display: inline-block;
    height: 6px; width: 60px;
    border-radius: 3px; background: var(--hairline);
    position: relative; overflow: hidden;
    vertical-align: middle; margin-left: 6px;
}
.coverage-bar span {
    position: absolute; top: 0; left: 0; height: 100%;
    background: var(--accent);
    border-radius: 3px;
}
.coverage-bar.lo span { background: var(--bad); }
.coverage-bar.mid span { background: var(--warn); }
.coverage-bar.hi span  { background: var(--good); }

.empty {
    padding: 30px 20px; text-align: center; color: var(--ink-mute);
    font-size: 13px;
}

/* ============================================================
   Rep drawer (slide-in from right)
   ============================================================ */
.drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(11, 15, 23, 0.38);
    z-index: 50;
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
}
.drawer-overlay.shown {
    opacity: 1;
    pointer-events: auto;
}
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 520px; max-width: 100vw;
    background: var(--surface);
    border-left: 1px solid var(--hairline);
    box-shadow: -24px 0 48px rgba(11,15,23,0.10);
    z-index: 60;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .25s ease;
}
.drawer.shown { transform: translateX(0); }

.drawer-head {
    padding: 18px 22px 14px;
    border-bottom: 1px solid var(--hairline);
    background: var(--surface);
    position: sticky; top: 0; z-index: 2;
    display: flex; align-items: flex-start; gap: 12px;
}
.drawer-head-body {
    flex: 1; min-width: 0;
}
.drawer-head h2 {
    font-size: 18px; font-weight: 650; letter-spacing: -0.015em;
    color: var(--ink);
}
.drawer-head-sub {
    font-size: 12px; color: var(--ink-mute);
    margin-top: 3px;
}
.drawer-close {
    width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--hairline); background: var(--surface);
    border-radius: 8px; cursor: pointer;
    font-size: 14px; color: var(--ink-3);
    transition: background .15s;
}
.drawer-close:hover { background: var(--bad-bg); color: var(--bad); }

.drawer-body {
    padding: 0 22px 40px;
}
.drawer-sec {
    padding: 16px 0;
    border-bottom: 1px solid var(--hairline);
}
.drawer-sec:last-child { border-bottom: none; }
.drawer-subheading {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--ink-mute);
    margin-bottom: 10px;
}

/* Pace hero inside drawer */
.drawer-pace {
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-top: 16px;
}
.drawer-pace-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.drawer-pace-label {
    font-size: 10px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--ink-mute);
}
.drawer-pace-value {
    font-size: 18px; font-weight: 650; color: var(--ink);
    font-variant-numeric: tabular-nums; margin-top: 2px;
}
.drawer-pace-goal {
    font-size: 11px; color: var(--ink-mute); font-variant-numeric: tabular-nums;
}
.drawer-pace-bar {
    margin-top: 8px; height: 6px; background: var(--hairline);
    border-radius: 3px; overflow: hidden;
}
.drawer-pace-bar span {
    display: block; height: 100%; border-radius: 3px;
}

/* KPI row */
.drawer-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 16px 0;
}
.drawer-kpi {
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}
.drawer-kpi-label {
    font-size: 10px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--ink-mute);
}
.drawer-kpi-value {
    font-size: 18px; font-weight: 650; color: var(--ink);
    font-variant-numeric: tabular-nums; margin-top: 2px;
}

/* Revenue cards */
.drawer-rev-cards {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.drawer-rev-card {
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}
.drawer-rev-label {
    font-size: 10px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--ink-mute);
}
.drawer-rev-value {
    font-size: 16px; font-weight: 650; color: var(--ink);
    font-variant-numeric: tabular-nums; margin-top: 2px;
}

/* Lists inside drawer */
.drawer-list {
    display: flex; flex-direction: column; gap: 6px;
}
.drawer-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 10px;
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    gap: 10px;
}
.drawer-row .row-name {
    flex: 1; min-width: 0;
    color: var(--ink-2); font-size: 13px;
}
.drawer-row .row-name strong {
    font-weight: 600; color: var(--ink);
    display: block;
}
.drawer-row .row-name .row-sub {
    font-size: 11px; color: var(--ink-mute); margin-top: 1px;
}
.drawer-row .row-nums {
    display: flex; gap: 10px; font-variant-numeric: tabular-nums;
    font-size: 12px; color: var(--ink-3);
    flex-shrink: 0;
}
.drawer-row .row-nums strong {
    color: var(--ink); font-weight: 650;
}

/* Visit row */
.drawer-visit {
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    padding: 10px 12px;
}
.drawer-visit-head {
    display: flex; justify-content: space-between; gap: 8px;
    font-size: 11px; color: var(--ink-mute);
    margin-bottom: 4px;
}
.drawer-visit-head strong { color: var(--ink-2); font-weight: 600; }
.drawer-visit-body { font-size: 13px; color: var(--ink-2); white-space: pre-wrap; }

/* Clickable rep rows in the leaderboard */
#rep-tbody tr[data-rep-code] { cursor: pointer; }
#rep-tbody tr[data-rep-code]:hover td { background: var(--accent-bg); }
#pacing-tbody tr[data-rep-code] { cursor: pointer; }
#pacing-tbody tr[data-rep-code]:hover td { background: var(--accent-bg); }
#revenue-reps-tbody tr[data-rep-code] { cursor: pointer; }
#revenue-reps-tbody tr[data-rep-code]:hover td { background: var(--accent-bg); }
