:root {
  --bg: #0f0b08;
  --surface: rgba(28, 20, 15, 0.9);
  --surface-2: rgba(40, 29, 22, 0.94);
  --surface-3: rgba(255, 255, 255, 0.03);
  --border: rgba(212, 163, 115, 0.18);
  --text: #f7efe7;
  --muted: #c7b4a1;
  --accent: #d4a373;
  --accent-light: #f3c89f;
  --green: #34d399;
  --red: #f87171;
  --blue: #60a5fa;
  --purple: #a78bfa;
  --orange: #fb923c;
  --cyan: #22d3ee;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }

.shell-bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(9, 7, 5, 0.72), rgba(9, 7, 5, 0.94)),
    radial-gradient(circle at top right, rgba(212, 163, 115, 0.12), transparent 30%),
    url('/hair-mechanix-promo/001-cinematic-medium-shot-of-a-freshly-groom.png') center/cover fixed;
  z-index: -1;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(12, 9, 7, 0.76);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}
.brand-mark {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-mark img {
  height: 155%;
  width: auto;
  object-fit: contain;
  display: block;
}
.brand strong,
.brand small { display: none; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  justify-content: center;
}
.nav-links a,
.nav-dropdown-trigger {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  transition: 140ms ease;
}
.nav-links a:hover,
.nav-links a.active,
.nav-dropdown:hover > .nav-dropdown-trigger,
.nav-dropdown:focus-within > .nav-dropdown-trigger,
.nav-dropdown-trigger.active {
  background: rgba(212, 163, 115, 0.14);
  color: var(--text);
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-dropdown-trigger::after {
  content: '▾';
  font-size: 12px;
  color: var(--accent-light);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 220px;
  display: none;
  gap: 4px;
  padding: 16px 10px 10px;
  border-radius: 18px;
  background: rgba(20, 14, 11, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  z-index: 80;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: grid;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
}
.meta-pill {
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
}

.wrap {
  max-width: 1380px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.ownership-filter-panel {
  padding: 18px 24px;
  margin-bottom: 18px;
}
.ownership-filter-panel.hidden { display: none; }
.ownership-filter-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.ownership-filter-group {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.ownership-filter-group button {
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.65);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.ownership-filter-group button.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.ownership-franchise-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  opacity: 0.85;
}
.ownership-franchise-picker select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: inherit;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  min-width: 12rem;
}
.ownership-franchise-picker select:disabled { opacity: 0.5; }
.ownership-filter-hint {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  flex: 1;
  min-width: 200px;
}

/* Promo × Location matrix on the Promo Activity page. Wide table — needs
   horizontal scroll inside its panel. Inherits the same typography and
   colors as the rest of the page's .table elements; only the layout
   differs (width: max-content + numeric column alignment). */
.promo-usage-matrix-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
}
.promo-usage-matrix {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
}
.promo-usage-matrix th,
.promo-usage-matrix td {
  text-align: right;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
  white-space: nowrap;
}
.promo-usage-matrix th:first-child,
.promo-usage-matrix td:first-child,
.promo-usage-matrix th:nth-child(2),
.promo-usage-matrix td:nth-child(2) {
  text-align: left;
}
/* Pin the Promotion column so it stays visible while the per-location
   columns scroll horizontally. Box-shadow draws a crisp right edge that
   doesn't fight `border-collapse: collapse`. */
.promo-usage-matrix th:first-child,
.promo-usage-matrix td:first-child {
  position: sticky;
  left: 0;
  background: var(--surface);
  box-shadow: inset -1px 0 0 var(--border);
  z-index: 1;
}
.promo-usage-matrix thead th:first-child {
  z-index: 2;
}
.promo-usage-matrix th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.promo-usage-matrix tr:last-child td { border-bottom: 0; }
.promo-usage-matrix .emphasis {
  color: var(--accent-light);
  font-weight: 600;
}
.promo-usage-matrix td {
  font-variant-numeric: tabular-nums;
}
.promo-usage-matrix td:first-child,
.promo-usage-matrix td:nth-child(2) {
  font-variant-numeric: normal;
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  padding: 28px;
  margin-bottom: 22px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(212, 163, 115, 0.12);
  color: var(--accent-light);
  letter-spacing: 0.12em;
  font-size: 12px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
  margin: 0 0 12px;
  letter-spacing: -0.04em;
}
.sub {
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.6;
  font-size: 18px;
}
.hero-side {
  display: grid;
  gap: 12px;
}
.hero-meta-card {
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px;
  display: grid;
  gap: 8px;
  align-content: center;
}
.hero-meta-label {
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
}
.hero-meta-card strong {
  font-size: 24px;
  letter-spacing: -0.03em;
}
.hero-meta-sub {
  color: var(--muted);
  font-size: 13px;
}
/* When the comparison-label slot is repurposed to show the resolved scope
   date range (pages that hide the free-form date inputs), render it at the
   same scale as the date inputs it replaces. */
.hero-meta-sub.scope-range-label {
  color: var(--text);
  font-size: 18px;
  letter-spacing: -0.02em;
}
.scope-editor {
  display: flex;
  align-items: center;
  gap: 8px;
}
.scope-editor[hidden] { display: none; }
.scope-editor input[type="date"] {
  flex: 1 1 0;
  min-width: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 18px;
  letter-spacing: -0.02em;
  color-scheme: dark;
  transition: border-color 140ms ease, background 140ms ease;
}
.scope-editor input[type="date"]:hover {
  border-color: rgba(212, 163, 115, 0.35);
  background: rgba(255, 255, 255, 0.06);
}
.scope-editor input[type="date"]:focus {
  border-color: var(--accent, #d4a373);
  outline: none;
}
.scope-arrow {
  color: var(--muted);
  font-size: 16px;
}
.scope-editor.single .scope-arrow,
.scope-editor.single #scope-end {
  display: none;
}
.scope-preset {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  color-scheme: dark;
  transition: border-color 140ms ease, background 140ms ease;
}
.scope-preset[hidden] { display: none; }
.scope-preset:hover {
  border-color: rgba(212, 163, 115, 0.35);
  background: rgba(255, 255, 255, 0.06);
}
.scope-preset:focus {
  border-color: var(--accent, #d4a373);
  outline: none;
}
.branch-card {
  background: var(--surface, rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: grid;
  gap: 10px;
}
.branch-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.branch-card-head strong {
  font-size: 16px;
  letter-spacing: -0.01em;
}
.branch-card-head small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.branch-card-total {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-light, #d4a373);
}
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 20px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--accent-light, #d4a373);
  border-radius: 50%;
  animation: yot-spin 0.8s linear infinite;
}
@keyframes yot-spin {
  to { transform: rotate(360deg); }
}
body.is-loading .scope-editor input[type="date"],
body.is-loading .scope-preset {
  opacity: 0.7;
  pointer-events: none;
}
.location-leaderboard,
.campaign-leaderboard {
  display: grid;
  gap: 12px;
}
.collapsible-table {
  display: grid;
  gap: 12px;
}
.location-leaderboard .collapsible-table.collapsed tbody tr:nth-child(n+13) {
  display: none;
}
.campaign-leaderboard .collapsible-table.collapsed tbody tr:nth-child(n+9) {
  display: none;
}
.stylist-leaderboard .collapsible-table.collapsed tbody tr:nth-child(n+11) {
  display: none;
}
.product-performance-leaderboard .collapsible-table.collapsed tbody tr:nth-child(n+21) {
  display: none;
}
.show-all-btn {
  align-self: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--accent-light);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 8px 18px;
  transition: border-color 140ms ease, background 140ms ease;
}
.show-all-btn:hover {
  border-color: rgba(212, 163, 115, 0.35);
  background: rgba(255, 255, 255, 0.06);
}
.show-all-btn:focus {
  border-color: var(--accent, #d4a373);
  outline: none;
}
.status-banner {
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(248, 113, 113, 0.24);
  background: rgba(248, 113, 113, 0.1);
  color: #ffd8d8;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.kpi-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
}
.kpi-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  opacity: 0.85;
}
.kpi-card[data-tone="green"]::before { background: var(--green); }
.kpi-card[data-tone="blue"]::before { background: var(--blue); }
.kpi-card[data-tone="purple"]::before { background: var(--purple); }
.kpi-card[data-tone="orange"]::before { background: var(--orange); }
.kpi-card[data-tone="cyan"]::before { background: var(--cyan); }
.kpi-card[data-tone="red"]::before { background: var(--red); }
.kpi-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}
.kpi-value {
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -0.04em;
  margin-top: 10px;
}
.kpi-meta, .kpi-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.kpi-delta.good { color: var(--green); }
.kpi-delta.warn { color: var(--red); }
.page-sections {
  display: grid;
  gap: 22px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.section-panel {
  padding: 24px;
  /* Required so grid children don't blow past their column width when an
     inner element (like the wide promo × location matrix) is wider than
     the viewport. Without this, the section-panel grows to fit the table
     and the page extends right. The matrix's own overflow-x: auto then
     handles scrolling inside the bounded panel. */
  min-width: 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.section-kicker {
  color: var(--accent-light);
  letter-spacing: 0.12em;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.03em;
}
.section-copy {
  color: var(--muted);
  font-size: 14px;
}
.table-wrap {
  overflow: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
  white-space: nowrap;
}
.table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.table tr:last-child td { border-bottom: 0; }
.table th.retention-group-head {
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--accent-light);
}
.table .emphasis { color: var(--accent-light); font-weight: 600; }
.table .good { color: var(--green); }
.table .warn { color: var(--red); }
.stack-list {
  display: grid;
  gap: 12px;
}
.stack-item,
.note-card,
.mini-card {
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 18px;
}
.stack-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.stack-item strong,
.note-card strong,
.mini-card strong {
  display: block;
  font-size: 16px;
}
.stack-item small,
.note-card small,
.mini-card small,
.muted {
  color: var(--muted);
}
.bar-list {
  display: grid;
  gap: 12px;
}
.bar-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) 3fr auto;
  gap: 12px;
  align-items: center;
}
.bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(212, 163, 115, 0.95), rgba(96, 165, 250, 0.85));
}
.bar-fill.blue { background: linear-gradient(135deg, rgba(96, 165, 250, 0.95), rgba(34, 211, 238, 0.85)); }
.bar-fill.green { background: linear-gradient(135deg, rgba(52, 211, 153, 0.95), rgba(96, 165, 250, 0.85)); }
.bar-fill.orange { background: linear-gradient(135deg, rgba(251, 146, 60, 0.95), rgba(212, 163, 115, 0.85)); }
.chart-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 250px;
}
.chart-bar-card {
  display: grid;
  gap: 10px;
  align-items: end;
}
.chart-stack {
  min-height: 180px;
  display: flex;
  align-items: end;
  gap: 6px;
}
.chart-bar {
  flex: 1;
  border-radius: 10px 10px 0 0;
  min-height: 12px;
  background: linear-gradient(180deg, rgba(212, 163, 115, 0.96), rgba(187, 127, 69, 0.92));
}
.chart-bar.blue { background: linear-gradient(180deg, rgba(96, 165, 250, 0.96), rgba(59, 130, 246, 0.92)); }
.chart-bar.green { background: linear-gradient(180deg, rgba(52, 211, 153, 0.96), rgba(16, 185, 129, 0.92)); }
.chart-bar.orange { background: linear-gradient(180deg, rgba(251, 146, 60, 0.96), rgba(234, 88, 12, 0.92)); }
.chart-bar.purple { background: linear-gradient(180deg, rgba(167, 139, 250, 0.96), rgba(139, 92, 246, 0.92)); }

/* Promo Activity dedicated chart — value labels under each bar +
   "X% used promo" line under the date. Bars stay direct children of
   .chart-stack so the existing .chart-bar { flex: 1 } sizing applies. */
.promo-vs-clients-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  text-align: center;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: -6px;
}
.orange-text { color: rgb(251, 146, 60); }
.purple-text { color: rgb(167, 139, 250); }
.chart-label {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.chart-value {
  font-size: 12px;
  text-align: center;
}
.note-card[data-tone="good"] { border-color: rgba(52, 211, 153, 0.22); }
.note-card[data-tone="warn"] { border-color: rgba(248, 113, 113, 0.22); }
.note-card[data-tone="accent"] { border-color: rgba(212, 163, 115, 0.28); }
.matrix-wrap {
  overflow: auto;
}
.matrix-table td[data-intensity] {
  position: relative;
}
.matrix-table td[data-intensity]::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 10px;
  background: rgba(212, 163, 115, calc(0.08 + (var(--intensity, 0) * 0.42)));
  z-index: 0;
}
.matrix-table td span,
.matrix-table td strong,
.matrix-table th span { position: relative; z-index: 1; }
.empty-state {
  color: var(--muted);
  padding: 24px;
  text-align: center;
}
.retention-empty {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 48px 24px;
}
.retention-empty h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.retention-empty p {
  margin: 0;
  max-width: 48ch;
}
.retention-sync-btn {
  margin-top: 6px;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, #b06e2e, #8c5520);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
}
.retention-sync-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #c47e3a, #a5662c);
}
.retention-sync-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.retention-empty-note {
  font-size: 13px;
  opacity: 0.7;
}

@media (max-width: 1080px) {
  .hero,
  .two-col {
    grid-template-columns: 1fr;
  }
  .nav-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-meta {
    display: flex;
    justify-content: flex-end;
  }
}

@media (max-width: 700px) {
  .wrap,
  .nav-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero,
  .section-panel {
    padding: 20px;
  }
  .bar-row {
    grid-template-columns: 1fr;
  }
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hero-pill-row[hidden] { display: none; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--accent-light, #d4a373);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 8px 18px;
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}
.hero-pill:hover {
  border-color: rgba(212, 163, 115, 0.35);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}
.hero-pill:focus {
  border-color: var(--accent, #d4a373);
  outline: none;
}
.hero-pill-icon {
  font-size: 12px;
  opacity: 0.7;
}

.payout-day-list {
  display: grid;
  gap: 12px;
}
.payout-day,
.payout-branch {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
}
.payout-day > summary,
.payout-branch > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  user-select: none;
  font-family: inherit;
}
.payout-day > summary::-webkit-details-marker,
.payout-branch > summary::-webkit-details-marker {
  display: none;
}
.payout-day > summary::before,
.payout-branch > summary::before {
  content: '▸';
  color: var(--accent-light, #d4a373);
  margin-right: 8px;
  transition: transform 140ms ease;
  display: inline-block;
}
.payout-day[open] > summary::before,
.payout-branch[open] > summary::before {
  transform: rotate(90deg);
}
.payout-day-date {
  font-size: 16px;
  font-weight: 600;
  color: var(--text, #f4f4f5);
  flex: 1;
}
.payout-day-meta,
.payout-branch-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}
.payout-day-total,
.payout-branch-total {
  color: var(--accent-light, #d4a373);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.payout-branch-list {
  display: grid;
  gap: 8px;
  padding: 4px 18px 18px;
}
.payout-branch {
  background: rgba(255, 255, 255, 0.03);
}
.payout-branch-name {
  flex: 1;
  font-weight: 500;
  color: var(--text, #f4f4f5);
}
.payout-branch > .table {
  margin: 0 18px 14px;
  width: calc(100% - 36px);
}

.row-flagged {
  background: rgba(248, 113, 113, 0.06);
}
.row-flagged-icon {
  color: #fda4af;
  margin-right: 4px;
}

.late-card .table th:first-child,
.late-card .table td:first-child {
  width: 50%;
}

.late-arrivals-footnote {
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
}
