/* Heatmaps (SummaryCharts.heatGridHtml): rows of square cells shaded by a
 * single-hue ramp, empty cells grey. Shared by the day × hour activity
 * heatmaps and the Visualize / dashboard heat map (ENG-4722). */
.sc-heatmap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sc-heat-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sc-heat-day {
  flex: 0 0 30px;
  font-size: 10px;
  color: #6b7280;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-heat-cells {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 2px;
  flex: 1 1 auto;
}
.sc-heat-cell {
  aspect-ratio: 1 / 1;
  min-height: 11px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}
/* Non-empty cells drill into what's behind them. */
.sc-heat-clickable {
  cursor: pointer;
  transition: box-shadow 0.1s ease, outline-color 0.1s ease;
}
.sc-heat-clickable:hover {
  outline: 1.5px solid rgba(59, 130, 246, 0.9);
  outline-offset: 0;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}
.sc-heat-axis .sc-heat-ticks {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  flex: 1 1 auto;
  font-size: 9px;
  color: #9ca3af;
}
.sc-heat-ticks span { grid-row: 1; white-space: nowrap; }

/* fill: cells stretch to the host's size (Visualize, dashboard panels). */
.sc-heat-fill { height: 100%; }
.sc-heat-fill .sc-heat-row:not(.sc-heat-axis) { flex: 1 1 0; min-height: 11px; align-items: stretch; }
.sc-heat-fill .sc-heat-row:not(.sc-heat-axis) .sc-heat-day { align-self: center; }
.sc-heat-fill .sc-heat-cells { grid-auto-rows: 1fr; }
.sc-heat-fill .sc-heat-cell { aspect-ratio: auto; min-height: 0; height: 100%; }
