/* ─────────────────────────────────────────────────────────────────
   css/session-dashboard.css
   Wave 12.B.6 — SLP cumulative dashboard.
   Companion to js/builder/session-dashboard.js. Reuses the
   .session-modal-card + .session-btn classes from session-log.css.
   Owns only dashboard-specific layout primitives.
   PILOT-READY.
   ───────────────────────────────────────────────────────────────── */

/* Filter row across the top of the dashboard body. */
.dashboard-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.85rem;
  background: #fafafc;
  border: 1px solid #e2e2e7;
  border-radius: 10px;
}

/* 4-column summary grid (responsive — collapses on phone). */
.dashboard-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin: 0.5rem 0 1rem;
}
.dashboard-stat-card {
  background: #fff;
  border: 1px solid #e2e2e7;
  border-radius: 10px;
  padding: 0.85rem 0.75rem;
  text-align: center;
  min-height: 76px;
}
.dashboard-stat-num {
  font-size: 1.55rem;
  font-weight: 800;
  color: #7c5cff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.dashboard-stat-lbl {
  font-size: 0.72rem;
  color: #6b6b78;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 0.25rem;
  font-weight: 600;
}

/* Per-chart section. */
.dashboard-section {
  margin-top: 1.4rem;
  padding-top: 0.5rem;
}
.dashboard-section-h {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f1f23;
  margin: 0 0 0.55rem 0;
}
.dashboard-chart {
  width: 100%;
  height: auto;
  background: #fafafc;
  border-radius: 8px;
  border: 1px solid #f0f0f4;
}
.dashboard-chart-empty {
  padding: 1rem;
  background: #fafafc;
  border: 1px dashed #e2e2e7;
  border-radius: 8px;
  color: #6b6b78;
  font-size: 0.85rem;
  text-align: center;
}

/* Legend (used by accuracy lines + goal-progress segment). */
.dashboard-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 0.55rem 0 0 0;
  padding: 0;
  font-size: 0.82rem;
  color: #1f1f23;
}
.dashboard-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
}
.dashboard-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}
.dashboard-legend-text {
  color: #475569;
}

/* Empty-state card (shown when filter range yields zero sessions). */
.dashboard-empty {
  margin: 1rem 0 0.5rem;
  padding: 1.4rem 1rem;
  text-align: center;
  border: 2px dashed #d4d4dd;
  border-radius: 10px;
  background: #fff;
  color: #475569;
}
.dashboard-empty-title {
  font-weight: 700;
  font-size: 1rem;
  color: #1f1f23;
  margin-bottom: 0.35rem;
}
.dashboard-empty-hint {
  font-size: 0.85rem;
  color: #6b6b78;
  line-height: 1.45;
}

/* ─────────────────────────────────────────────────────────────
   Mobile reflow — phone keeps every chart full-width and the
   summary grid stacks 2 × 2.
   ───────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .dashboard-filter-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .dashboard-summary-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-stat-num { font-size: 1.3rem; }
  .dashboard-section { margin-top: 1.1rem; }
}
