/* Charts Scenario Styles */
.chart-container {
  position: relative;
  height: 320px;
  margin: 0.75rem 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1rem;
}

/* ── HTML legend (legend-toggle & dataset-compare) ────── */
.chart-html-legend {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #f9fafb;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
}
.legend-item:hover { background: #f1f5f9; }
.legend-item--hidden {
  opacity: 0.4;
  text-decoration: line-through;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Chart type / time-range toolbar ─────────────────── */
.chart-type-toolbar {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.chart-type-btn {
  padding: 0.3rem 0.85rem;
  font-size: 0.875rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chart-type-btn:hover {
  background: #f1f5f9;
  color: #111827;
}
.chart-type-btn--active {
  background: #4f46e5 !important;
  color: #fff !important;
  border-color: #4f46e5 !important;
}

.state-label {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0.25rem 0 0.75rem;
}

.checklist-status {
  margin: 1.25rem 0 0.5rem;
}
