/* ==============================================================================
   CYCLISTIC PRO ENTERPRISE POWER BI DASHBOARD
   Design: Lead BI Architect & Senior Staff Data Visualization Engineer
   ============================================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Brand Colors */
  --color-member: #1d4ed8;       /* Executive Royal Blue */
  --color-member-hover: #1e40af;
  --color-member-light: #dbeafe;
  --color-casual: #ea580c;       /* Sunset Electric Orange */
  --color-casual-hover: #c2410c;
  --color-casual-light: #ffedd5;
  --color-teal: #0d9488;
  --color-teal-light: #ccfbf1;
  --color-indigo: #4f46e5;
  --color-gold: #d97706;
  --color-gold-light: #fef3c7;
  --color-green: #059669;
  --color-green-light: #d1fae5;
  --color-red: #dc2626;
  --color-red-light: #fee2e2;

  /* Theme Tokens (Light Mode - Enterprise Clean) */
  --bg-app: #f4f6f9;
  --bg-sidebar: #0f172a;
  --bg-sidebar-hover: #1e293b;
  --bg-card: #ffffff;
  --bg-card-subtle: #f8fafc;
  --border-card: #e2e8f0;
  --border-strong: #cbd5e1;

  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

body.dark-mode {
  --bg-app: #090d16;
  --bg-sidebar: #060910;
  --bg-sidebar-hover: #0f172a;
  --bg-card: #111827;
  --bg-card-subtle: #1f2937;
  --border-card: #1f2937;
  --border-strong: #374151;

  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  --shadow-card: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 10px 18px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}

/* ================= APP LAYOUT ================= */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ---------------- HOVERING LEFT NAVBAR OVERLAY ---------------- */
.sidebar-hover-zone {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 100vh;
  z-index: 994;
  cursor: pointer;
  background: transparent;
}

.pbi-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 285px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-sidebar);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
  box-shadow: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Hovering or Pinned Open State */
.pbi-sidebar.open,
.pbi-sidebar.hover-active,
.pbi-sidebar.mobile-open {
  transform: translateX(0);
  box-shadow: 16px 0 45px rgba(0, 0, 0, 0.45);
}

.sidebar-brand {
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-glyph {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.brand-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: #94a3b8;
  font-weight: 600;
}

.btn-sidebar-close {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.2s ease;
}

.btn-sidebar-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 1.2rem 1.25rem 0.5rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0.75rem;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: #94a3b8;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  position: relative;
}

.nav-item:hover {
  background: var(--bg-sidebar-hover);
  color: #ffffff;
}

.nav-item.active {
  background: #1e293b;
  color: #ffffff;
  box-shadow: inset 3px 0 0 #2563eb;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.nav-label {
  flex: 1;
  white-space: nowrap;
}

.nav-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-family: var(--font-mono);
}

.nav-badge.orange { background: rgba(234, 88, 12, 0.2); color: #fb923c; }
.nav-badge.teal { background: rgba(13, 148, 136, 0.2); color: #2dd4bf; }
.nav-badge.gold { background: rgba(217, 119, 6, 0.2); color: #fcd34d; }
.nav-badge.purple { background: rgba(147, 51, 234, 0.2); color: #c084fc; }

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.model-info-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
  font-size: 0.7rem;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #f1f5f9;
  font-size: 0.72rem;
  margin-bottom: 0.25rem;
}

.status-dot-green {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.info-body {
  display: flex;
  justify-content: space-between;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

/* ---------------- MAIN CONTAINER ---------------- */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ---------------- TOP EXECUTIVE HEADER ---------------- */
.pbi-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-card);
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 80;
  box-shadow: var(--shadow-sm);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: var(--bg-card-subtle);
  color: var(--text-main);
  border-color: var(--border-strong);
}

.page-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.badge-tag.live {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-family: var(--font-mono);
}

body.dark-mode .badge-tag.live {
  background: rgba(6, 95, 70, 0.25);
  color: #34d399;
  border-color: #059669;
}

.page-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quick-stat-badge {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-member);
}

.btn-theme-toggle {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-theme-toggle:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
}

/* ---------------- SLICER RIBBON & BREADCRUMBS ---------------- */
.pbi-ribbon {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-card);
  padding: 0.65rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.slicers-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.slicer-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slicer-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.slicer-control {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  background: var(--bg-card-subtle);
  color: var(--text-main);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.slicer-control:focus {
  border-color: var(--color-member);
}

.btn-clear-filters {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-card);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-clear-filters:hover {
  background: var(--bg-card-subtle);
  color: var(--text-main);
  border-color: var(--border-strong);
}

.active-chips-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chips-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.06em;
}

.filter-chip {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
}

/* ---------------- CANVAS & REPORT PAGES ---------------- */
.canvas-viewport {
  flex: 1;
  padding: 1.5rem 1.75rem;
  max-width: 1650px;
  width: 100%;
  margin: 0 auto;
}

.report-page {
  display: none;
  animation: pageFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.report-page.active {
  display: block;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= MODERN "NEW CARD" KPI VISUALS ================= */
.kpi-banner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.kpi-banner-grid.four-col {
  grid-template-columns: repeat(4, 1fr);
}

.new-card-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.new-card-visual:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Accent Line on Left (Power BI Card Visual Accent Bar) */
.new-card-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
}

.new-card-visual.accent-blue::before { background: var(--color-member); }
.new-card-visual.accent-orange::before { background: var(--color-casual); }
.new-card-visual.accent-teal::before { background: var(--color-teal); }
.new-card-visual.accent-gold::before { background: var(--color-gold); }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.card-caption {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.variance-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.variance-badge.positive { background: var(--color-green-light); color: var(--color-green); }
.variance-badge.blue { background: var(--color-member-light); color: var(--color-member); }
.variance-badge.orange { background: var(--color-casual-light); color: var(--color-casual); }
.variance-badge.gold { background: var(--color-gold-light); color: var(--color-gold); }
.variance-badge.neutral { background: var(--bg-card-subtle); color: var(--text-secondary); }

.card-center {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.25rem 0 0.5rem;
}

.card-big-val {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-main);
}

.card-big-val.text-blue { color: var(--color-member); }
.card-big-val.text-orange { color: var(--color-casual); }
.card-big-val.text-gold { color: var(--color-gold); }
.card-big-val.text-green { color: var(--color-green); }

.card-sparkline {
  width: 80px;
  height: 26px;
}

.spark-svg {
  width: 100%;
  height: 100%;
}

.card-bottom-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-card);
  padding-top: 0.45rem;
  font-weight: 500;
}

.label-ref {
  display: inline-block;
}

.highlight-text {
  color: var(--color-green);
  font-weight: 700;
}

.card-dual-pill {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mini-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.mini-pill.blue { background: var(--color-member-light); color: var(--color-member); }
.mini-pill.orange { background: var(--color-casual-light); color: var(--color-casual); }

/* ================= GRID LAYOUT ================= */
.grid-layout-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.grid-span-4 { grid-column: span 4; }
.grid-span-5 { grid-column: span 5; }
.grid-span-6 { grid-column: span 6; }
.grid-span-7 { grid-column: span 7; }
.grid-span-8 { grid-column: span 8; }
.grid-span-12 { grid-column: span 12; }

.grid-layout-12 > div {
  min-width: 0;
  max-width: 100%;
}

.pbi-visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.visual-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  gap: 0.75rem;
}

.visual-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.visual-subheading {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  line-height: 1.35;
}

.visual-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
}

.legend-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
}

.legend-indicator::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-indicator.blue::before { background: var(--color-member); }
.legend-indicator.red::before { background: var(--color-red); }
.legend-indicator.grey::before { background: #94a3b8; }
.legend-indicator.orange::before { background: var(--color-casual); }

.badge-pill {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.badge-pill.blue { background: var(--color-member-light); color: var(--color-member); border-color: #bfdbfe; }
.badge-pill.orange { background: var(--color-casual-light); color: var(--color-casual); border-color: #fed7aa; }

.chart-canvas-box {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.chart-canvas-box canvas {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.h-300 { height: 300px; }
.h-310 { height: 310px; }
.h-320 { height: 320px; }
.h-380 { height: 380px; }

/* Donut Center Metric */
.donut-center-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.donut-center-metric {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.donut-center-metric .metric-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.donut-center-metric .metric-text {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ================= CALLOUT BANNERS ================= */
.executive-callout-card {
  background: #eff6ff;
  border-left: 4px solid var(--color-member);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.1rem 1.35rem;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 1.35rem;
  box-shadow: var(--shadow-sm);
}

body.dark-mode .executive-callout-card {
  background: rgba(30, 58, 138, 0.25);
  border-left-color: #3b82f6;
}

.executive-callout-card.gold {
  background: #fefce8;
  border-left-color: var(--color-gold);
}

body.dark-mode .executive-callout-card.gold {
  background: rgba(133, 77, 14, 0.25);
  border-left-color: #f59e0b;
}

.callout-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: #dbeafe;
  color: var(--color-member);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.executive-callout-card.gold .callout-badge-icon {
  background: #fef3c7;
  color: var(--color-gold);
}

.callout-content h4 {
  font-size: 0.94rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 0.3rem;
}

.executive-callout-card.gold .callout-content h4 {
  color: #854d0e;
}

body.dark-mode .callout-content h4 {
  color: #bfdbfe;
}
body.dark-mode .executive-callout-card.gold .callout-content h4 {
  color: #fef08a;
}

.callout-content p {
  font-size: 0.82rem;
  color: #1e40af;
  line-height: 1.5;
}

.executive-callout-card.gold .callout-content p {
  color: #92400e;
}

body.dark-mode .callout-content p {
  color: #93c5fd;
}
body.dark-mode .executive-callout-card.gold .callout-content p {
  color: #fde047;
}

/* ================= DATA TABLES ================= */
.table-container {
  overflow-x: auto;
  width: 100%;
}

.pbi-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.pbi-data-table th {
  background: var(--bg-card-subtle);
  padding: 0.75rem 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-card);
}

.pbi-data-table td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--border-card);
  color: var(--text-main);
}

.pbi-data-table tr:hover td {
  background: var(--bg-card-subtle);
}

.cluster-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.cluster-tag.c1 { background: var(--color-member-light); color: var(--color-member); }
.cluster-tag.c2 { background: var(--color-casual-light); color: var(--color-casual); }
.cluster-tag.c3 { background: #e0e7ff; color: var(--color-indigo); }
.cluster-tag.c4 { background: var(--color-teal-light); color: var(--color-teal); }

.status-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.status-tag.success { background: var(--color-green-light); color: var(--color-green); }
.status-tag.warning { background: var(--color-gold-light); color: var(--color-gold); }
.status-tag.target { background: #fee2e2; color: #b91c1c; }

/* ================= TEMPORAL STAT STACK ================= */
.stat-cards-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.stat-highlight-tile {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
}

.stat-tile-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.stat-tile-value {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.3rem 0;
  color: var(--text-main);
}

.stat-tile-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

/* ================= 24x7 HEATMAP ================= */
.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.legend-gradient-bar {
  width: 120px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(to right, #eff6ff, #93c5fd, #2563eb, #1e3a8a);
}

.heatmap-scroll-box {
  overflow-x: auto;
  padding: 0.5rem 0;
}

.heatmap-grid-layout {
  display: grid;
  grid-template-columns: 85px repeat(24, 1fr);
  gap: 3px;
  min-width: 960px;
}

.hm-cell {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hm-cell:hover {
  transform: scale(1.18);
  z-index: 20;
  box-shadow: var(--shadow-hover);
}

.hm-cell.header {
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.7rem;
}

/* ================= REAL LEAFLET MAP CONTAINER ================= */
.leaflet-map-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-card);
}

.leaflet-container {
  width: 100%;
  height: 100%;
  background: #f1f5f9;
}

.map-floating-panel {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-float);
  z-index: 1000;
  max-width: 300px;
  width: 100%;
}

body.dark-mode .map-floating-panel {
  background: rgba(17, 24, 39, 0.94);
}

.panel-header {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.panel-station-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.panel-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.p-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
}

.p-val {
  font-size: 0.85rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.text-orange { color: var(--color-casual); }
.text-green { color: var(--color-green); }
.text-blue { color: var(--color-member); }
.text-gold { color: var(--color-gold); }

/* ================= WHAT-IF SIMULATOR CONTROLS ================= */
.whatif-ribbon-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.35rem;
}

.whatif-slider-cell {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.slider-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slider-title-row label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.slider-display-badge {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-member);
  background: var(--color-member-light);
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-card);
  outline: none;
  cursor: pointer;
  accent-color: var(--color-member);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* 2D Sensitivity Matrix */
.matrix-table th {
  text-align: center;
}
.matrix-table td {
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.15s ease;
}

.matrix-table td.selected-cell {
  background: var(--color-green-light) !important;
  color: var(--color-green) !important;
  font-weight: 800;
  box-shadow: inset 0 0 0 2px var(--color-green);
  border-radius: 4px;
}

/* Funnel Progression */
.funnel-progression-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.funnel-tier {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.funnel-tier:hover {
  transform: translateX(4px);
}

.tier-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.funnel-tier.tier-1 { background: #3b82f6; width: 100%; }
.funnel-tier.tier-2 { background: #2563eb; width: 85%; }
.funnel-tier.tier-3 { background: #1d4ed8; width: 68%; }
.funnel-tier.tier-4 { background: #059669; width: 50%; box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35); }

/* ================= PAGE 6: EXECUTIVE BRIEFING SLIDE ================= */
.briefing-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.briefing-header {
  border-bottom: 2px solid var(--border-card);
  padding-bottom: 1.25rem;
}

.briefing-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color-member);
  text-transform: uppercase;
}

.briefing-header h2 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin: 0.3rem 0;
}

.briefing-header p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.briefing-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.briefing-pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--border-strong);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.briefing-pillar-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.briefing-pillar-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.pillar-stat {
  border-top: 1px solid var(--border-card);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
}

.stat-big {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-member);
}

.stat-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Strategic Roadmap Cards */
.briefing-actions-section {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.action-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.action-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.action-phase {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--color-member);
}

.action-card h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
}

.action-card p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---------------- FOOTER STATUSBAR ---------------- */
.pbi-statusbar {
  background: var(--bg-card);
  border-top: 1px solid var(--border-card);
  padding: 0.65rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.status-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  background: var(--color-green);
  border-radius: 50%;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-link {
  color: var(--color-member);
  text-decoration: none;
  font-weight: 600;
}

.status-link:hover {
  text-decoration: underline;
}

.sep {
  color: var(--border-strong);
}

/* ==============================================================================
   RESPONSIVE DESIGN SYSTEM (DESKTOP, LAPTOP, TABLET, MOBILE)
   ============================================================================== */

/* Base responsiveness adjustments */
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.app-layout {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.app-main {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   BREAKPOINT: 1250px (Laptops & Small Desktop Monitors)
   -------------------------------------------------------------------------- */
@media (max-width: 1250px) {
  .kpi-banner-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .kpi-banner-grid.four-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .canvas-viewport {
    padding: 1.25rem 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   BREAKPOINT: 1024px (Tablets, iPad Landscape/Portrait & Small Laptops)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Grid Layout: Stack 12-column spans into full width cards */
  .grid-layout-12 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .grid-span-4,
  .grid-span-5,
  .grid-span-6,
  .grid-span-7,
  .grid-span-8,
  .grid-span-12 {
    grid-column: span 1 !important;
  }

  /* Temporal Stats Stack: Reflow horizontally across 3 columns on tablet */
  .stat-cards-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  /* Briefing Pillars & Roadmap Grid */
  .briefing-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .action-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Slicers Ribbon */
  .pbi-ribbon {
    padding: 0.75rem 1.25rem;
  }

  .pbi-header {
    padding: 0.75rem 1.25rem;
  }

  .canvas-viewport {
    padding: 1.15rem 1.25rem;
  }

  .leaflet-map-wrapper {
    height: 420px;
  }
}

/* --------------------------------------------------------------------------
   BREAKPOINT: 768px (Tablets Portrait & Mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Header adjustments */
  .pbi-header {
    padding: 0.65rem 0.95rem;
    gap: 0.75rem;
  }

  .header-left {
    gap: 0.65rem;
    min-width: 0;
  }

  .page-title-row {
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
  }

  .page-title {
    font-size: 1.05rem;
  }

  .badge-tag.live {
    font-size: 0.6rem;
    padding: 0.1rem 0.45rem;
  }

  .page-desc {
    font-size: 0.72rem;
    line-height: 1.35;
    margin-top: 0.15rem;
  }

  .header-right {
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .quick-stat-badge {
    padding: 0.3rem 0.55rem;
    gap: 0.35rem;
  }

  .stat-title {
    font-size: 0.62rem;
  }

  .stat-val {
    font-size: 0.8rem;
  }

  .btn-theme-toggle,
  .btn-icon {
    width: 36px;
    height: 36px;
  }

  /* Global Slicers Ribbon: Clean 2-column touch-friendly grid */
  .pbi-ribbon {
    padding: 0.65rem 0.95rem;
    gap: 0.5rem;
  }

  .slicers-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
    width: 100%;
  }

  .slicer-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    width: 100%;
  }

  .slicer-label {
    font-size: 0.64rem;
  }

  .slicer-control {
    width: 100%;
    min-height: 36px;
    padding: 0.4rem 0.55rem;
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .btn-clear-filters {
    grid-column: span 2;
    margin-left: 0;
    width: 100%;
    justify-content: center;
    min-height: 36px;
    padding: 0.45rem 0.75rem;
    font-size: 0.74rem;
  }

  /* Active Filter Chips: Horizontal scrolling pills */
  .active-chips-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0;
    scrollbar-width: none;
  }

  .active-chips-row::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex-shrink: 0;
    font-size: 0.68rem;
    padding: 0.15rem 0.5rem;
  }

  /* Canvas viewport */
  .canvas-viewport {
    padding: 0.85rem 0.85rem;
  }

  /* KPI Visuals Grid: 2-column with 5th card spanning 2 columns */
  .kpi-banner-grid,
  .kpi-banner-grid.four-col {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .kpi-banner-grid:not(.four-col) > .new-card-visual:last-child {
    grid-column: span 2;
  }

  .new-card-visual {
    padding: 0.85rem 0.95rem;
  }

  .card-big-val {
    font-size: 1.55rem;
  }

  .card-sparkline {
    width: 65px;
    height: 22px;
  }

  /* Card visual headers */
  .pbi-visual-card {
    padding: 1rem;
  }

  .visual-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
  }

  .visual-tools {
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.68rem;
  }

  .visual-heading {
    font-size: 0.9rem;
  }

  .visual-subheading {
    font-size: 0.72rem;
  }

  /* Chart canvas heights scaled for mobile/tablet */
  .h-300,
  .h-310,
  .h-320 {
    height: 250px;
  }

  .h-380 {
    height: 290px;
  }

  /* Top 10 Stations Horizontal Bar Chart Canvas Height */
  .chart-canvas-box:has(#chartTopStations) {
    height: 310px;
  }

  /* Callout Banners */
  .executive-callout-card {
    padding: 0.9rem 1rem;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .callout-badge-icon {
    width: 32px;
    height: 32px;
  }

  .callout-badge-icon svg {
    width: 18px;
    height: 18px;
  }

  .callout-content h4 {
    font-size: 0.86rem;
  }

  .callout-content p {
    font-size: 0.76rem;
  }

  /* Data Tables Mobile Optimization */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .pbi-data-table {
    min-width: 410px;
    width: 100%;
  }

  .pbi-data-table th,
  .pbi-data-table td {
    padding: 0.45rem 0.35rem;
    font-size: 0.69rem;
    white-space: nowrap;
  }

  /* Temporal Stats Stack */
  .stat-cards-column {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .stat-highlight-tile {
    padding: 0.9rem;
  }

  .stat-tile-value {
    font-size: 1.4rem;
  }

  /* 24x7 Heatmap sticky first column (day headers) */
  .heatmap-scroll-box {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .heatmap-legend {
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.68rem;
  }

  .heatmap-grid-layout > .hm-cell:nth-child(25n + 1) {
    position: sticky;
    left: 0;
    background: var(--bg-card);
    z-index: 5;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.08);
  }

  body.dark-mode .heatmap-grid-layout > .hm-cell:nth-child(25n + 1) {
    background: var(--bg-card);
  }

  /* Leaflet Map & Floating Card */
  .leaflet-map-wrapper {
    height: 380px;
  }

  .map-floating-panel {
    position: absolute;
    top: auto;
    bottom: 8px;
    left: 8px;
    right: 8px;
    max-width: none;
    width: auto;
    padding: 0.65rem 0.85rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .panel-header {
    font-size: 0.6rem;
    margin-bottom: 0.15rem;
  }

  .panel-station-name {
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .panel-metrics-grid {
    gap: 0.45rem;
  }

  .p-label {
    font-size: 0.6rem;
  }

  .p-val {
    font-size: 0.78rem;
  }

  /* What-If Simulator */
  .whatif-ribbon-card {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1.15rem;
  }

  .slider-ticks {
    font-size: 0.65rem;
  }

  .funnel-tier {
    width: 100% !important;
    padding: 0.75rem 1rem;
  }

  .matrix-table {
    min-width: 500px;
  }

  /* Executive Briefing Page */
  .briefing-container {
    gap: 1.25rem;
  }

  .briefing-header h2 {
    font-size: 1.45rem;
  }

  .briefing-header p {
    font-size: 0.84rem;
  }

  .briefing-pillars-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .briefing-actions-section {
    padding: 1.25rem;
  }

  .action-cards-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  /* Footer Statusbar */
  .pbi-statusbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.65rem 0.95rem;
    font-size: 0.68rem;
  }

  .status-right {
    flex-wrap: wrap;
    gap: 0.3rem;
  }
}

/* --------------------------------------------------------------------------
   BREAKPOINT: 540px (Small Tablets & Large Phones - User Viewport 502px)
   -------------------------------------------------------------------------- */
@media (max-width: 540px) {
  /* Header Title & ARR badge */
  .page-title {
    font-size: 1rem;
  }

  .quick-stat-badge .stat-title {
    display: none;
  }

  .quick-stat-badge {
    padding: 0.28rem 0.5rem;
  }

  .stat-val {
    font-size: 0.76rem;
  }

  /* Stack KPI Cards cleanly into 1 column for optimal readability */
  .kpi-banner-grid,
  .kpi-banner-grid.four-col {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .kpi-banner-grid:not(.four-col) > .new-card-visual:last-child {
    grid-column: span 1;
  }

  .new-card-visual {
    padding: 0.8rem 0.9rem;
  }

  .card-big-val {
    font-size: 1.55rem;
  }

  .card-bottom-labels {
    font-size: 0.68rem;
  }

  /* Top 10 Stations Chart Height */
  .chart-canvas-box:has(#chartTopStations) {
    height: 295px;
  }
}

/* --------------------------------------------------------------------------
   BREAKPOINT: 480px (Standard & Small Mobile Phones)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  /* Header Title & ARR badge */
  .page-title {
    font-size: 0.95rem;
  }

  .page-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .quick-stat-badge {
    padding: 0.25rem 0.45rem;
  }

  .stat-val {
    font-size: 0.74rem;
  }

  /* Slicers 1-column on ultra-compact screens */
  .slicers-container {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .btn-clear-filters {
    grid-column: span 1;
  }

  .new-card-visual {
    padding: 0.75rem 0.85rem;
  }

  .card-big-val {
    font-size: 1.45rem;
  }

  .card-caption {
    font-size: 0.62rem;
  }

  .card-bottom-labels {
    font-size: 0.66rem;
  }

  /* Canvas viewport */
  .canvas-viewport {
    padding: 0.65rem 0.65rem;
  }

  .pbi-visual-card {
    padding: 0.85rem;
  }

  .h-300,
  .h-310,
  .h-320 {
    height: 220px;
  }

  .h-380 {
    height: 250px;
  }

  .donut-center-metric .metric-number {
    font-size: 1.15rem;
  }

  .donut-center-metric .metric-text {
    font-size: 0.6rem;
  }

  .leaflet-map-wrapper {
    height: 330px;
  }

  .map-floating-panel {
    padding: 0.55rem 0.7rem;
  }

  .panel-metrics-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.25rem;
  }

  .panel-station-name {
    font-size: 0.75rem;
  }

  .slider-display-badge {
    font-size: 0.85rem;
    padding: 0.15rem 0.45rem;
  }

  .funnel-tier {
    padding: 0.65rem 0.85rem;
  }

  .tier-info {
    font-size: 0.75rem;
  }

  .briefing-header h2 {
    font-size: 1.25rem;
  }

  .briefing-pillar-card {
    padding: 1.15rem;
  }

  .pillar-num {
    font-size: 1.8rem;
  }

  .stat-big {
    font-size: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   TOUCH TARGETS & ACCESSIBILITY
   -------------------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
  .nav-item,
  .slicer-control,
  .btn-clear-filters,
  .btn-theme-toggle,
  .btn-icon,
  .btn-sidebar-close {
    min-height: 42px;
  }

  .hm-cell {
    height: 32px;
  }
}
