:root {
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-faint: #8a8a8a;
  --rule: #dcdcdc;
  --rule-faint: #efefef;
  --paper: #ffffff;
  --revenue: #1a1a1a;
  --profit: #c1440e;
  --reference: #b8b8b8;
}

* { box-sizing: border-box; }

/* back-to-home button shown on dashboard pages */
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 10px 20px;
  text-decoration: none;
  margin-bottom: 28px;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.back-home:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
/* hide back-button when dashboard is loaded inside the preview iframe */
.is-embedded .back-home { display: none; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "General Sans", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Tabular figures for aligned numeric columns */
.kpi-value, .kpi-yoy, .multiple-total, .multiple-sub,
.tick text, .value-label, .axis-label, .margin-label,
text {
  font-variant-numeric: tabular-nums;
}

body {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 48px 96px;
}

.masthead {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
  margin-bottom: 22px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex-shrink: 0;
}

h1 {
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ink);
}

.dek { display: none; }

.chart-block {
  margin: 0 0 72px;
}

.section-title {
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.005em;
  margin: 0 0 6px;
  color: var(--ink);
}

.section-note {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 24px;
  max-width: 620px;
}

/* ---- tab nav ---- */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  margin: 0 0 22px;
}
.tab {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-faint);
  background: transparent;
  border: none;
  padding: 10px 0 11px;
  margin-right: 28px;
  cursor: pointer;
  position: relative;
  letter-spacing: 0.005em;
  transition: color 0.08s;
}
.tab:hover { color: var(--ink-soft); }
.tab.active { color: var(--ink); }
.tab.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--ink);
}

/* ---- controls: year chips, toggle, filter state ---- */
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.filter-group { display: flex; gap: 4px; }

.chip {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.08s, color 0.08s, border-color 0.08s;
  font-variant-numeric: tabular-nums;
}
.filter-group { gap: 6px; }
.chip:hover {
  color: var(--ink);
  border-color: var(--ink-faint);
}
.chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.chip.toggle.active { background: var(--profit); border-color: var(--profit); }

.select-chip {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background-color: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 5px 28px 5px 14px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M3 4.5l3 3 3-3' fill='none' stroke='%238a8a8a' stroke-width='1.25' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 9px;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.08s, color 0.08s;
}
.select-chip:hover { border-color: var(--ink-faint); }
.select-chip:focus { outline: none; border-color: var(--ink); }
.select-chip option:disabled { color: var(--ink-faint); }

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}
.chart-header .section-title { margin: 0; }

.chart-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-state {
  font-size: 13px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.filter-state button {
  font-family: inherit;
  font-size: 13px;
  background: transparent;
  border: none;
  color: var(--profit);
  cursor: pointer;
  padding: 0 0 0 6px;
  text-decoration: underline;
}

/* clickable rank rows */
.rank-row {
  cursor: pointer;
  transition: background 0.08s;
}
.rank-row:hover { background: #f6f6f4; }
.rank-row.active { background: #f0efeb; }
.rank-row.dimmed { opacity: 0.45; }

/* brush */
.brush .selection {
  fill: var(--ink);
  fill-opacity: 0.06;
  stroke: var(--ink);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}
.brush .handle { fill: var(--ink); fill-opacity: 0.25; }

/* YoY overlay line */
.series-line.revenue-prev,
.series-line.profit-prev {
  stroke-dasharray: 3 4;
  stroke-width: 1.5;
  opacity: 0.55;
}
.series-line.revenue-prev { stroke: var(--revenue); }
.series-line.profit-prev { stroke: var(--profit); }

/* ---- KPI strip ---- */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  margin: 0 0 56px;
}

.kpi {
  padding: 18px 20px 16px;
  border-right: 1px solid var(--rule-faint);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpi:last-child { border-right: none; }

.kpi-label {
  font-family: "Geist", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.kpi-value {
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.kpi-yoy {
  font-family: "Geist", sans-serif;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.kpi-yoy.up { color: #1f6a3a; }
.kpi-yoy.down { color: var(--profit); }

.kpi-spark {
  display: block;
  width: 100%;
  height: 28px;
  margin-top: 4px;
  overflow: visible;
}
.kpi-spark path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
}
.kpi-spark circle {
  fill: var(--ink);
}

/* ---- chart + side region panel ---- */
.chart-with-panel {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

.region-panel {
  border-left: 1px solid var(--rule);
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.region-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.08s;
}
.region-row:hover { background: #f6f6f4; }
.region-row.active { background: #f0efeb; }

.region-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ink-faint);
  border: 1px solid var(--ink-faint);
}
.region-row.active .region-dot {
  /* filled color comes from inline style */
}

.region-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.region-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.region-sub {
  display: flex;
  gap: 6px;
  align-items: baseline;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.region-total {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
  white-space: nowrap;
}
.region-yoy {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
  white-space: nowrap;
}
.region-yoy.up { color: #1f6a3a; }
.region-yoy.down { color: var(--profit); }

.region-spark {
  width: 72px;
  height: 22px;
  display: block;
  overflow: visible;
}

.panel-reset {
  font-family: inherit;
  font-size: 12px;
  color: var(--profit);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  text-align: left;
  text-decoration: underline;
}

#chart-revenue-profit,
#chart-main {
  display: block;
  width: 100%;
  height: 440px;
  overflow: visible;
}

/* ---- categories tab ---- */
.category-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  margin: 0 0 32px;
}
.category-card {
  padding: 16px 18px 14px;
  border-right: 1px solid var(--rule-faint);
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: background 0.08s;
  position: relative;
}
.category-card:last-child { border-right: none; }
.category-card:hover { background: #f8f7f4; }
.category-card.active { background: #f3f2ee; }
.category-card.active::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 2px;
  background: var(--ink);
}
.category-card-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.category-card-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.category-card-value {
  font-family: "Geist", sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  white-space: nowrap;
}
.category-card-sub {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.category-card-sub .yoy.up { color: #1f6a3a; }
.category-card-sub .yoy.down { color: var(--profit); }
.category-card-spark {
  display: block;
  width: 100%;
  height: 28px;
  margin-top: 4px;
  overflow: visible;
}

.cat-compare {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin: 56px 0 48px;
  align-items: start;
}
.cat-compare-block { min-width: 0; }
.cat-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.cat-block-head .cat-block-title { margin-bottom: 0; }
#cat-profit-lines {
  display: block;
  width: 100%;
  height: 260px;
  overflow: visible;
}
.cat-heatmap-note {
  font-size: 11px;
  color: var(--ink-faint);
  margin: -6px 0 12px;
  line-height: 1.4;
}
.cat-heatmap {
  display: grid;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}
.cat-heatmap .cell {
  padding: 0;
  font-size: 11px;
  color: var(--ink);
  text-align: center;
  line-height: 30px;
  height: 30px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-heatmap .cell.hdr {
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
  border: none;
  line-height: 1.2;
  height: auto;
  padding: 0 4px 8px;
  text-align: center;
  white-space: normal;
  overflow: visible;
}
.cat-heatmap .cell.row-label {
  text-align: left;
  padding-left: 0;
  color: var(--ink);
  font-size: 12px;
  background: transparent;
}
.cat-heatmap .cell.row-label .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.category-detail {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 56px;
}
.category-detail.empty { color: var(--ink-faint); font-size: 13px; }
.cat-detail-col { display: flex; flex-direction: column; gap: 28px; }
.cat-block-title {
  font-family: "Geist", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 10px;
}
#cat-trend { display: block; width: 100%; height: 220px; overflow: visible; }
.cat-brand-row {
  display: grid;
  grid-template-columns: 130px 1fr 60px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  padding: 4px 0;
}
.cat-brand-name { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-brand-bar {
  height: 22px;
  background: transparent;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.cat-brand-bar > .fill { display: block; position: absolute; left: 0; top: 0; bottom: 0; }
.cat-brand-bar > .label {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.cat-brand-margin {
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-size: 11px;
}

.cat-mix-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  padding: 4px 0;
}
.cat-mix-name { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-mix-bar {
  height: 22px;
  background: transparent;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.cat-mix-bar > .fill { display: block; position: absolute; left: 0; top: 0; bottom: 0; }
.cat-mix-bar > .label {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* ---- sales people tab ---- */
.scatter-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 2px 0 14px;
  flex-wrap: wrap;
}
.legend-part {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legend-title {
  font-family: "Geist", sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.legend-bubbles {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend-bubble-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.legend-bubble-item svg { display: block; overflow: visible; }
.legend-bubble-item span {
  font-size: 11px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.legend-bubble-sep { color: var(--ink-faint); font-size: 11px; opacity: 0.55; }
.legend-regions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  row-gap: 4px;
}
.legend-region {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--ink-soft);
}
.legend-region-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.sales-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
  margin-bottom: 48px;
}
#chart-sales-scatter,
#chart-stylist-scatter {
  display: block;
  width: 100%;
  height: 380px;
  overflow: visible;
}

.sales-side {
  border-left: 1px solid var(--rule);
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.side-block-title {
  font-family: "Geist", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 10px;
}
.side-block-note {
  font-size: 11px;
  color: var(--ink-faint);
  margin: -6px 0 8px;
}

.movers-group-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 4px 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.movers-group-label.down { color: var(--profit); }
.movers-group-label.up   { color: #1f6a3a; }
.movers-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 5px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--rule-faint);
}
.movers-row:last-child { border-bottom: none; }
.movers-name { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.movers-name .sub { color: var(--ink-faint); font-size: 11px; margin-left: 6px; font-variant-numeric: tabular-nums; }
.movers-yoy { font-size: 12px; font-variant-numeric: tabular-nums; }
.movers-yoy.up { color: #1f6a3a; }
.movers-yoy.down { color: var(--profit); }

.region-share-row {
  display: grid;
  grid-template-columns: 80px 1fr 44px;
  gap: 10px;
  align-items: center;
  padding: 5px 0;
  font-size: 12px;
}
.region-share-name {
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.region-share-bar {
  height: 6px;
  border-radius: 2px;
  background: transparent;
  position: relative;
  overflow: hidden;
}
.region-share-bar > span {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  display: block;
}
.region-share-pct {
  color: var(--ink-soft);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* inline expanded detail row */
.sales-table tbody tr.rep-detail-row {
  background: #faf9f7;
  border-bottom: 1px solid var(--rule);
  cursor: default;
}
.sales-table tbody tr.rep-detail-row:hover { background: #faf9f7; }
.sales-table tbody tr.rep-detail-row > td { padding: 16px 12px 20px; }
.rep-detail-inline {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
}
.rep-detail-col-title {
  font-family: "Geist", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.rep-detail-empty {
  font-size: 12px;
  color: var(--ink-faint);
}
.rep-detail-col-title.cats-title { margin-top: 18px; }
.rep-categories { display: flex; flex-direction: column; gap: 5px; }
.rep-cat-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.rep-cat-name { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rep-cat-bar {
  height: 20px;
  background: transparent;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.rep-cat-bar > .fill { display: block; position: absolute; left: 0; top: 0; bottom: 0; }
.rep-cat-bar > .label {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* rep detail card */
.rep-detail-hdr { margin-bottom: 12px; }
.rep-detail-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.rep-detail-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rep-detail-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rep-detail-clear {
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  border: none;
  color: var(--profit);
  cursor: pointer;
  padding: 2px 0 2px 6px;
  text-decoration: underline;
}
.rep-detail-region {
  font-size: 12px;
  color: var(--ink-faint);
  margin-left: 18px;
}
.rep-detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px 12px;
  padding: 10px 0 14px;
  border-top: 1px solid var(--rule-faint);
  border-bottom: 1px solid var(--rule-faint);
  margin-bottom: 12px;
}
.rep-stat-label {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.rep-stat-value {
  font-size: 14px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}
.rep-stat-value.up { color: #1f6a3a; }
.rep-stat-value.down { color: var(--profit); }
.rep-trend {
  display: block;
  margin: 2px 0 4px;
  overflow: visible;
}
.rep-trend-legend {
  font-size: 11px;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.rep-orders-title {
  font-family: "Geist", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 8px;
}
.rep-orders { display: flex; flex-direction: column; gap: 8px; }
.rep-order {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-faint);
  font-size: 12px;
}
.rep-order:last-child { border-bottom: none; }
.rep-order-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}
.rep-order-prod {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rep-order-rev {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rep-order-sub {
  color: var(--ink-faint);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.sales-table-wrap { margin-top: 24px; }
.sales-table-heading {
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 12px;
}
.sales-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.sales-table thead th {
  font-family: "Geist", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ink);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.sales-table thead th.num { text-align: right; }
.sales-table thead th:hover { color: var(--ink); }
.sales-table thead th.sorted { color: var(--ink); }
.sales-table thead th .sort-caret {
  margin-left: 4px;
  opacity: 0.7;
  font-size: 10px;
}
.sales-table tbody tr {
  cursor: pointer;
  transition: background 0.08s;
  border-bottom: 1px solid var(--rule-faint);
}
.sales-table tbody tr:hover { background: #f6f6f4; }
.sales-table tbody tr.active { background: #f0efeb; }
.sales-table tbody tr.dimmed { opacity: 0.45; }
.sales-table tbody td {
  padding: 9px 12px;
  font-size: 13px;
  color: var(--ink);
}
.sales-table tbody td.num {
  text-align: right;
  color: var(--ink-soft);
}
.sales-table tbody td.name-cell {
  font-weight: 500;
}
.sales-table td.rank { color: var(--ink-faint); font-size: 12px; width: 32px; }
.sales-table td.dot-cell { width: 14px; padding-right: 0; }
.sales-table td.dot-cell .sales-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
}
.sales-table td.yoy.up { color: #1f6a3a; }
.sales-table td.yoy.down { color: var(--profit); }
.sales-spark {
  width: 90px;
  height: 20px;
  display: block;
  overflow: visible;
}

/* ---- SVG typography ---- */
.tick text,
.axis-label,
.value-label,
.series-label {
  font-family: "Geist", sans-serif;
  font-size: 12px;
  fill: var(--ink-soft);
}

.series-label {
  font-family: "Geist", sans-serif;
  font-size: 13px;
  font-weight: 500;
  fill: var(--ink);
}

.series-label.profit { fill: var(--profit); }
.series-label.revenue { fill: var(--revenue); }

.tick line {
  stroke: var(--rule-faint);
  stroke-width: 1;
}

.axis-baseline {
  stroke: var(--ink);
  stroke-width: 1;
}

.series-line {
  fill: none;
  stroke-width: 1.25;
}
.series-line.revenue { stroke: var(--revenue); }
.series-line.profit { stroke: var(--profit); }

.dot {
  fill: var(--paper);
  stroke-width: 1.25;
}
.dot.revenue { stroke: var(--revenue); }
.dot.profit { stroke: var(--profit); }

.year-rule {
  stroke: var(--rule);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.year-label {
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: 13px;
  fill: var(--ink-faint);
  letter-spacing: 0.02em;
}

.margin-label {
  font-family: "Geist", sans-serif;
  font-size: 11px;
  fill: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.colophon {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  font-family: "Geist", sans-serif;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
