/* ============================================================
   heatmap.css — Heatmap view, filters, table, modals
   Pasig City Civic Intelligence Dashboard
   ============================================================ */

/* ─── Override .view for heatmap — no vertical scroll, flex column ── */
/* IMPORTANT: do NOT set display here — that would override .view { display:none }
   and cause the inactive heatmap to ghost over other views. Only set display
   on the .active state (ID+class specificity beats .view.active). */
#view-heatmap {
  overflow-y: hidden;
  flex-direction: column;
  padding: 18px 24px 16px;
}

#view-heatmap.active {
  display: flex;   /* overrides .view.active { display: block } */
}

/* ─── Heatmap Shell (outer grid) ────────────────────────────── */
.heatmap-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: 1fr;    /* single row fills all available flex height */
  gap: 14px;
  flex: 1;           /* fill all remaining height in #view-heatmap */
  min-height: 0;
  position: relative;
}

.heatmap-shell.detail-open {
  grid-template-columns: 240px 1fr 285px;
}

/* ─── Left Filter Panel ──────────────────────────────────────── */
.heatmap-panel-left {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;   /* no scrolling — content must fit */
  min-height: 0;
}

.panel-section { display: flex; flex-direction: column; flex-shrink: 0; }
.panel-section-grow { flex-shrink: 0; }

.panel-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

/* ─── Time Range Tabs ────────────────────────────────────────── */
.time-tabs {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.time-tab {
  flex: 1;
  padding: 6px 4px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  color: var(--text-muted);
  border: none;
  background: none;
  transition: all var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.time-tab.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

/* ─── Barangay Dropdown ──────────────────────────────────────── */
.barangay-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.barangay-select-wrap > .fa-map-marker-alt {
  position: absolute;
  left: 11px;
  color: var(--primary);
  font-size: 12px;
  pointer-events: none;
  z-index: 1;
}

.select-chevron {
  position: absolute;
  right: 11px;
  color: var(--text-muted);
  font-size: 10px;
  pointer-events: none;
  z-index: 1;
}

.barangay-select {
  width: 100%;
  padding: 7px 30px 7px 30px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.barangay-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
  background: var(--bg-card);
}

/* ─── Filter button groups (compact wrap in left panel) ─────── */
.filter-btn-group.vertical {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
}

.filter-btn-group.vertical .sentiment-btn,
.filter-btn-group.vertical .platform-btn {
  text-align: center;
  border-radius: 20px;
  justify-content: center;
  padding: 4px 10px;
  width: auto;
  font-size: 11px;
}

/* ─── Category checkboxes (2-col grid in left panel) ────────── */
.filter-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 6px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 2px 0;
  user-select: none;
  transition: color var(--transition);
}

.filter-checkbox:hover { color: var(--text-primary); }
.filter-checkbox input { display: none; }

/* Truncate long category names (e.g. "Disaster & Environment") */
.filter-checkbox > span:last-child {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkbox-custom {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid var(--border);
  flex-shrink: 0;
  position: relative;
  transition: all var(--transition);
}

.filter-checkbox input:checked + .checkbox-custom {
  background: currentColor;
  border-color: currentColor;
}

.filter-checkbox input:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 4px;
  width: 5px;
  height: 8px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.checkbox-icon { font-size: 12px; }

/* ─── Sentiment & platform buttons ──────────────────────────── */
.filter-btn-group {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.sentiment-btn, .platform-btn {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  transition: all var(--transition);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sentiment-btn:hover, .platform-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.sentiment-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.platform-btn.active  { background: var(--primary); color: white; border-color: var(--primary); }

/* ─── Panel summary stats ────────────────────────────────────── */
.panel-stats {
  display: flex;
  align-items: center;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 10px 8px;
  border: 1px solid var(--border);
  margin-top: auto;
  flex-shrink: 0;
}

.panel-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.panel-stat-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.panel-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.panel-stat-danger .panel-stat-value { color: var(--danger); }

.panel-stat-sep {
  width: 1px;
  height: 26px;
  background: var(--border);
}

/* ─── Main map area ──────────────────────────────────────────── */
.heatmap-main-area {
  display: grid;
  grid-template-rows: 1fr 185px;  /* map grows, charts fixed */
  gap: 14px;
  min-height: 0;
  min-width: 0;
}

.map-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 14px 16px;
  overflow: hidden;
}

.map-card .card-header { margin-bottom: 8px; flex-shrink: 0; gap: 10px; flex-wrap: nowrap; }
.map-card .card-title  { flex-shrink: 1; min-width: 0; }

#heatmap-svg-container {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;  /* anchor for absolute SVG */
}

#heatmap-svg-container svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Map legend */
.map-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.legend-dot.low      { background: #BBF7D0; border: 1.5px solid #22C55E; }
.legend-dot.medium   { background: #FDE68A; border: 1.5px solid #EAB308; }
.legend-dot.high     { background: #FDBA74; border: 1.5px solid #F97316; }
.legend-dot.critical { background: #FCA5A5; border: 1.5px solid #EF4444; }

/* Barangay SVG */
.barangay-group { cursor: pointer; }
.barangay-group polygon { transition: all 0.22s ease; }
.barangay-group:hover polygon { opacity: 0.9; }
.barangay-group.selected polygon {
  stroke-width: 3.5 !important;
  filter: url(#shadow-hover) !important;
}
.heatmap-shell.detail-open .barangay-group:not(.selected) polygon {
  opacity: 0.55;
}

/* Bottom charts */
.heatmap-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  min-height: 0;
}

.heatmap-bottom .card {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  overflow: hidden;
}

.heatmap-bottom .card-header { margin-bottom: 6px; flex-shrink: 0; }
.heatmap-bottom .chart-container { flex: 1; min-height: 0; }
.heatmap-bottom canvas { width: 100% !important; height: 100% !important; }

/* ─── Slide-in Detail Panel ──────────────────────────────────── */
.detail-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  /* Hidden by default */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  /* Collapse width without transition so grid column appears instantly */
  width: 0;
  min-width: 0;
}

.heatmap-shell.detail-open .detail-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
  width: auto;
  min-width: 0;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.detail-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.detail-panel-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.detail-panel-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.detail-panel-close {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--transition);
}

.detail-panel-close:hover { background: var(--danger); color: white; border-color: var(--danger); }

.detail-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Detail panel stats row */
.dp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dp-stat {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 10px 8px;
  text-align: center;
  border: 1px solid var(--border);
}

.dp-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.dp-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 3px;
}

/* Detail panel section title */
.dp-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Category rows in panel */
.dp-cat-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
}

.dp-cat-row:last-child { border-bottom: none; }

.dp-cat-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.dp-cat-name { flex: 1; font-size: 12px; font-weight: 500; color: var(--text-primary); }
.dp-cat-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 20px;
}

/* Issue rows in panel */
.dp-issue-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 5px;
}

.dp-issue-rank {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 18px;
  padding-top: 1px;
}

.dp-issue-title {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
}

/* Mini sentiment donut */
.dp-chart-wrap { height: 130px; }

/* ─── Map Tooltip ────────────────────────────────────────────── */
.map-tooltip {
  position: fixed;
  background: var(--text-primary);
  color: var(--text-white);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  z-index: 1000;
  pointer-events: none;
  display: none;
  box-shadow: var(--shadow-lg);
  min-width: 160px;
}

.tt-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 6px;
}

.tt-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  font-size: 12px;
}

.tt-row span { color: rgba(255,255,255,0.65); }
.tt-row strong { font-weight: 600; }

.tt-hint {
  font-size: 11px;
  color: rgba(99,102,241,0.85);
  margin-top: 6px;
  font-style: italic;
}

/* ─── Top Issues list (referenced but panel now has issues) ──── */
.top-issues-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-right: 4px;
}

.top-issue-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: default;
  transition: background var(--transition);
  animation: feedFadeIn 0.4s ease;
}

.top-issue-row.issue-new {
  animation: highlightNew 2s ease;
}

@keyframes highlightNew {
  0%  { background: rgba(99,102,241,0.12); }
  100% { background: transparent; }
}

.top-issue-rank {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  width: 18px;
  text-align: right;
  flex-shrink: 0;
}

.top-issue-body { flex: 1; min-width: 0; }

.top-issue-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.top-issue-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.top-issue-barangay {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.top-issue-time { font-size: 10px; color: var(--text-muted); margin-left: auto; }

.top-issue-mentions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.top-issue-mentions small {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 1px;
}

.sev-dots { display: inline-flex; gap: 2px; align-items: center; }
.sev-dots i { font-size: 5px; }
.sev-dots.severity-low  i { color: #22C55E; }
.sev-dots.severity-med  i { color: #EAB308; }
.sev-dots.severity-high i { color: #EF4444; }

.plat-icon, .plat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 4px;
  font-size: 9px;
  color: white;
}

.plat-icon.fb, .plat-badge.fb { background: #1877F2; }
.plat-icon.ig, .plat-badge.ig { background: linear-gradient(135deg, #E1306C, #833AB4); }

.top-issue-plats { display: flex; gap: 3px; }

.trend-up   { color: var(--danger);  font-size: 11px; font-weight: 600; }
.trend-down { color: var(--success); font-size: 11px; font-weight: 600; }
.trend-stable { color: var(--text-muted); font-size: 11px; }
.inline-trend-up   { color: var(--danger);  font-size: 10px; }
.inline-trend-down { color: var(--success); font-size: 10px; }

/* ─── Command Center / Issue Table ───────────────────────────── */
.command-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.cat-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.cat-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.cat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cat-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.card-trend {
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-trend.up { color: var(--danger); }
.card-trend.stable { color: var(--text-muted); }

.cat-card-count {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.cat-card-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.2;
}

.cat-card-meta { display: flex; flex-direction: column; gap: 3px; }

.cat-card-meta span {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─── Table ──────────────────────────────────────────────────── */
.table-card { padding: 0; overflow: hidden; }

.table-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.table-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
}

.table-search i { color: var(--text-muted); font-size: 13px; }

.table-search input {
  border: none;
  background: none;
  outline: none;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  width: 100%;
}

.table-search input::placeholder { color: var(--text-muted); }
.table-count { font-size: 12px; color: var(--text-muted); font-weight: 500; white-space: nowrap; }

.issue-table-wrap { overflow-x: auto; max-height: 460px; overflow-y: auto; }

.issue-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.issue-table thead { position: sticky; top: 0; z-index: 10; background: var(--bg); }

.issue-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: color var(--transition);
}

.issue-table th:hover { color: var(--primary); }
.issue-table th.sort-asc::after  { content: ' ↑'; color: var(--primary); }
.issue-table th.sort-desc::after { content: ' ↓'; color: var(--primary); }

.issue-table td { padding: 10px 16px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }

.issue-row { cursor: pointer; transition: background var(--transition); }
.issue-row:hover { background: var(--bg); }
.issue-row.row-new { background: linear-gradient(90deg, rgba(99,102,241,0.05) 0%, transparent 50%); }

.cell-barangay { font-weight: 600; font-size: 13px; white-space: nowrap; }

.cell-category { display: flex; align-items: center; gap: 7px; white-space: nowrap; }

.cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.sev-bar-cell { display: flex; align-items: center; gap: 8px; }

.sev-bar-fill { height: 6px; border-radius: 3px; flex-shrink: 0; }
.sev-bar-fill.severity-low  { background: #22C55E; }
.sev-bar-fill.severity-med  { background: #EAB308; }
.sev-bar-fill.severity-high { background: #EF4444; }

.sev-bar-cell span { font-size: 12px; font-weight: 600; white-space: nowrap; }

.mentions-cell { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.mentions-cell i { color: var(--text-muted); font-size: 11px; }

.sentiment-pill {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.sentiment-pill.neg { background: #FEF2F2; color: #DC2626; }
.sentiment-pill.neu { background: #FFFBEB; color: #D97706; }
.sentiment-pill.pos { background: #ECFDF5; color: #059669; }

.td-time { font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.td-time small { color: var(--text-muted); display: block; }

.btn-ack {
  padding: 5px 12px;
  background: var(--primary-xlight);
  color: var(--primary);
  border: 1.5px solid rgba(99,102,241,0.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-ack:hover { background: var(--primary); color: white; }

/* Expand row */
.expand-row td { padding: 0; }

.expand-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #F8FAFF 0%, #F1F5F9 100%);
  border-bottom: 1px solid var(--border);
  animation: expandIn 0.25s ease;
}

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

.expand-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.expand-details { flex: 1; }
.expand-details h4 { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 7px; }
.expand-summary { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 10px; }

.expand-tags { display: flex; flex-wrap: wrap; gap: 7px; }

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.tag-item i { font-size: 10px; color: var(--primary); }

.command-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* chart-container utility */
.chart-container { position: relative; }
