/* ══════════════════════════════════════════════
   PADEL MASTERY — Ongoing Costs
   Extends pm-retreat.css / pm-trips.css (--pm-* tokens)
══════════════════════════════════════════════ */

.pm-oc-grid th:first-child,
.pm-oc-grid td:first-child { white-space: nowrap; }

.pm-oc-grid .pm-oc-forecast {
  background: rgba(255, 255, 255, 0.03);
  color: var(--pm-text-secondary);
  font-style: italic;
}

.pm-oc-grid tfoot td {
  font-weight: 700; color: var(--pm-text);
  border-top: 2px solid var(--pm-border);
}

.pm-oc-legend {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; color: var(--pm-text-secondary);
}
.pm-oc-legend-swatch {
  width: 0.9rem; height: 0.9rem; border-radius: 0.2rem;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--pm-border);
}

.pm-oc-status-active   { background: rgba(76, 175, 80, 0.15);  color: #81c784; }
.pm-oc-status-upcoming { background: rgba(33, 150, 243, 0.15); color: #64b5f6; }
.pm-oc-status-ended    { background: rgba(150, 150, 150, 0.15); color: #aaa; }

/* ── Phase 3: stepper ── */
.pm-stepper { display: inline-flex; align-items: center; gap: 0.25rem; }
.pm-stepper-btn { display: inline-flex; align-items: center; justify-content: center; min-width: var(--pm-tap); min-height: var(--pm-tap); border: 1px solid var(--pm-border); border-radius: 999px; background: transparent; color: var(--pm-text); cursor: pointer; }
.pm-stepper-btn:focus-visible { outline: 2px solid var(--pm-accent); outline-offset: 2px; }
.pm-stepper-label { min-width: 6.5rem; text-align: center; font-weight: 600; }

/* ── Phase 3: month view ── */
.pm-oc-month-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.pm-oc-month-total { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pm-oc-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: 0.25rem; height: 7rem; margin-bottom: 1.25rem; }
.pm-oc-bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 0.2rem; height: 100%; min-height: var(--pm-tap); padding: 0; background: none; border: 0; color: var(--pm-text-secondary); font: inherit; font-size: 0.7rem; cursor: pointer; }
.pm-oc-bar-track { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.pm-oc-bar-fill { flex-shrink: 0; width: 100%; max-width: 1.75rem; min-height: 2px; border-radius: 0.3rem 0.3rem 0 0; background: var(--pm-border); }
.pm-oc-bar-forecast .pm-oc-bar-fill { background: repeating-linear-gradient(45deg, var(--pm-border), var(--pm-border) 3px, transparent 3px, transparent 6px); }
.pm-oc-bar-on { color: var(--pm-text); font-weight: 700; }
.pm-oc-bar-on .pm-oc-bar-fill { background: var(--pm-accent); }
.pm-oc-bar-on.pm-oc-bar-forecast .pm-oc-bar-fill { background: repeating-linear-gradient(45deg, var(--pm-accent), var(--pm-accent) 3px, transparent 3px, transparent 6px); }
.pm-oc-bar:focus-visible { outline: 2px solid var(--pm-accent); outline-offset: 2px; }
.pm-oc-cost-line { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.5rem 0.9rem; border-top: 1px solid var(--pm-border); }
.pm-oc-cell-btn { width: 100%; padding: 0.25rem 0; background: none; border: 0; color: inherit; font: inherit; text-align: right; cursor: pointer; }
.pm-oc-cell-btn:hover, .pm-oc-cell-btn:focus-visible { color: var(--pm-accent); text-decoration: underline; outline: none; }
@media (max-width: 1099.98px) {
  /* A year-grid cell is a button: full tap height on touch screens; the desktop grid stays compact. */
  .pm-oc-cell-btn { min-height: var(--pm-tap); }
}
button.pm-link-row { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; text-align: left; cursor: pointer; }
