.chart { width: 100%; height: auto; display: block; }
.chart__bar { fill: var(--border-strong); }
.chart__line { fill: none; stroke: var(--text); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart__label { font-size: 12px; fill: var(--text-tertiary); font-family: var(--font-sans); }
/* The chart scales to its width, its labels with it: on a phone, larger labels, and only the major ones (every fourth hour,
   or each week's first day), so they stay readable. Moved down to the chart's foot, clear of the bars. */
@media (max-width: 40rem) {
  .chart__label { font-size: 30px; transform: translateY(5px); }
  .chart__label--minor { display: none; }
}
.chart__legend { display: flex; gap: var(--space-4); font-size: var(--text-sm); color: var(--text-secondary); }
.chart__legend span::before { content: ""; display: inline-block; width: 12px; height: 3px; margin-right: 6px; vertical-align: middle; background: var(--text); }
.chart__legend span:first-child::before { height: 10px; background: var(--border-strong); }
.forecast__kpis { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.table tr.overridden td { background: var(--warning-tint); }

/* Picking days for special days (RP-39): a calendar of checkboxes, a week to a row, holidays named. Too narrow
   for the names (a phone), a dot says a day has one. */
.day-picker { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-1); container-type: inline-size; }
.day-picker__weekday { font-size: var(--text-xs); color: var(--text-tertiary); text-align: center; }
.day-picker__day {
  display: flex; flex-direction: column; gap: 2px; min-width: 0; min-height: 3.5rem;
  padding: var(--space-1) var(--space-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: var(--text-sm); cursor: pointer;
}
.day-picker__day:has(input:checked) { border-color: var(--accent); background: var(--info-tint); }
.day-picker__day small { font-size: var(--text-xs); line-height: 1.3; color: var(--text-secondary); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: break-word; hyphens: auto; }
.day-picker__day--none { border-color: transparent; cursor: default; }
@container (max-width: 32rem) {
  .day-picker__day { padding: var(--space-1); min-height: 3rem; }
  .day-picker__day small { display: none; }
  .day-picker__day--noted .day-picker__date::after { content: " •"; color: var(--accent); }
}

/* A forecast's volume history: the same calendar, with each day's contacts. Days left out or not used are
   greyed, and days that can't be picked (left out, or with no contacts) aren't clickable. */
.day-picker__day--static { cursor: default; }
.history-days__contacts { font-variant-numeric: tabular-nums; color: var(--text-secondary); }
.history-days__day--unused { background: var(--surface-muted); }
.history-days__day--unused .day-picker__date, .history-days__day--unused .history-days__contacts { color: var(--text-tertiary); }
@container (max-width: 32rem) {
  .history-days__contacts { font-size: var(--text-xs); overflow-wrap: anywhere; }
}

/* Forecast's lines of business under their client, with several clients (Gary, #736): the client's name stands out, a
   rule above it, and its lines keep the page's spacing between them. */
.forecast-client { padding-block-start: var(--space-4); border-block-start: 1px solid var(--border); }
.forecast-client__name { font-size: var(--text-lg); line-height: var(--leading-lg); }
.forecast-client__lines { display: flex; flex-direction: column; gap: var(--space-6); }
