/* ═══════════════════════════════════════════════════════════════════════════
   graphs.css  —  page-specific styles for the Graphs page.
   Global helpers (settings-panel, section-note, dot-grid) live in style.css.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Panel header: action buttons ───────────────────────────────────────── */

.graph-header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  flex-wrap: wrap;
}

/* ── Filter form grid ────────────────────────────────────────────────────── */

.graph-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem 1rem;
}

/* ── Chart panels ────────────────────────────────────────────────────────── */

.graph-panel + .graph-panel {
  margin-top: 1.25rem;
}

.graph-canvas-wrap {
  position: relative;
  min-height: 280px;
  padding: 0.25rem 0;
}

.graph-canvas-wrap canvas {
  display: block;
  width: 100% !important;
  max-height: 420px;
}

/* Slightly tighter fields on narrow screens */
@media (max-width: 640px) {
  .graph-filter-grid {
    grid-template-columns: 1fr;
  }

  .graph-canvas-wrap {
    min-height: 220px;
  }
}
