/* Spend screen (Step 6): return countdowns and cost per wear.
   Reuses .head/.sub/.notice from closet.css for the header and empty state. */

.spend-section { margin-top: var(--s5); }
.spend-section:first-of-type { margin-top: var(--s3); }
.spend-section-title {
  margin: 0 0 var(--s2);
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--track-label);
  color: var(--ink-faint);
}

.spend-row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: var(--hairline) solid var(--line);
}
.spend-section .spend-row:last-child { border-bottom: none; }

.spend-rail { flex: none; width: 5px; height: 44px; border-radius: var(--r-pill); background: var(--ink-disabled); }
.spend-rail-urgent { background: var(--urgent-text); }
.spend-rail-warn { background: var(--warn-text); }

.spend-row-main { flex: 1; min-width: 0; }
.spend-row-name {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.spend-row-meta {
  margin-top: var(--s1);
  font-family: var(--mono);
  font-size: var(--fs-meta);
  color: var(--ink-faint);
}

.spend-row-metric { flex: none; text-align: right; }
.spend-metric-value {
  font-family: var(--mono);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-number-xl);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
/* --fs-number-xl is sized for a short number (e.g. "$6.50", "2D") - a text
   label ("NOT WORN YET", "OVERDUE") at that size squeezed the piece name
   down to nothing, so these get a normal text size instead. */
.spend-metric-value-text { font-size: var(--fs-heading); white-space: nowrap; }
.spend-metric-caption {
  margin-top: var(--s2);
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--track-label);
  color: var(--ink-faint);
}
