



.heatmap-wrap {
  max-height: 560px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.heatmap {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11px;
  width: max-content;
}
.heatmap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.heatmap th.month {
  font-weight: 500;
  color: var(--muted);
  padding: 4px 0;
  width: 28px;
  min-width: 28px;
  max-width: 28px;
  text-align: center;
}
.heatmap th.month span {
  display: inline-block;
  transform: rotate(-55deg);
  transform-origin: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding-bottom: 24px;
}
.heatmap th.resource {
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--surface);
  text-align: left;
  padding: 4px 10px;
  white-space: nowrap;
  border-right: 1px solid var(--border);
  font-weight: 500;
  color: var(--text);
  font-size: 12px;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.heatmap thead th.resource { z-index: 4; }
.heatmap td.cell {
  width: 28px;
  height: 22px;
  border: 1px solid var(--bg);
  cursor: default;
}
.heatmap td.cell.empty {
  background: transparent;
  border-color: transparent;
}
.heatmap .zone-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.heatmap .resource-zone {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  margin-left: 6px;
}
.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}
.heatmap-legend .legend-bar {
  flex: 1;
  height: 10px;
  border-radius: 2px;
  border: 1px solid var(--border);
  max-width: 320px;
}
.heatmap-legend .legend-label {
  font-variant-numeric: tabular-nums;
}


.series-card-body {
  display: flex;
  gap: 16px;
  align-items: stretch;
  height: 400px;
}
.series-chart-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
  height: 100%;
}
.series-tooltip-pane {
  flex: none;
  width: 280px;
  height: 100%;
  overflow-y: auto;
  border-left: 1px solid var(--border);
  padding-left: 12px;
  font-size: 12px;
}
.series-tooltip-pane .tooltip-empty {
  color: var(--muted);
  font-style: italic;
  padding-top: 8px;
}
.series-tooltip-pane .tooltip-header {
  position: sticky;
  top: 0;
  background: var(--surface);
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
  z-index: 1;
}
.series-tooltip-pane .tooltip-month { font-weight: 600; font-size: 13px; }
.series-tooltip-pane .tooltip-total { color: var(--muted); font-size: 11px; margin-top: 2px; }
.series-tooltip-pane .tooltip-row {
  display: flex; align-items: center; gap: 6px;
  padding: 2px 0;
  font-variant-numeric: tabular-nums;
}
.series-tooltip-pane .tooltip-swatch { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.series-tooltip-pane .tooltip-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.series-tooltip-pane .tooltip-val { color: var(--muted); }

@media (max-width: 800px) {
  .series-card-body { flex-direction: column; height: auto; }
  .series-chart-wrap { height: 320px; }
  .series-tooltip-pane {
    width: 100%; height: 220px;
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 8px 0 0;
  }
}


.series-tooltip-pane[data-pinned="1"] { border-left-color: var(--brand-text); }
.tooltip-header--pinned { border-bottom-color: var(--brand-text); }
.pin-unpin {
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font: inherit;
  font-size: 11px;
  line-height: 16px;
  padding: 0 6px;
  margin-left: 6px;
  cursor: pointer;
  vertical-align: middle;
}
.pin-unpin:hover { background: var(--surface-2); color: var(--text); }
@media (max-width: 800px) {
  .series-tooltip-pane[data-pinned="1"] {
    border-left-color: var(--border);
    border-top-color: var(--brand-text);
  }
}




#totalsGroup[hidden], #zoneGroup[hidden] { display: none !important; }
#marketNote { margin: 0; }
