/* Intraday's hours waterfall (planning/17_Intraday.md §7): each step's bar runs between the running totals before and
   after it, losses in red and additions in green, the totals in the text colour. */
.waterfall__chart { width: 40%; }
.waterfall__track { position: relative; height: 12px; }
.waterfall__bar {
  position: absolute; inset-block: 0;
  inset-inline-start: var(--from); width: max(calc(var(--to) - var(--from)), 1px);
  border-radius: 2px; background: var(--text);
}
.waterfall__step--less .waterfall__bar { background: var(--danger); }
.waterfall__step--plus .waterfall__bar { background: var(--success); }
.table .waterfall__step--total th { position: static; background: none; color: var(--text); font-size: var(--text-sm); font-weight: 600; border-bottom: 1px solid var(--border); }
.table .waterfall__step--total td.numeric { font-weight: 600; }
.table .waterfall__group th { position: static; background: none; padding-block-start: var(--space-3); }
.table.waterfall td.waterfall__item { padding-inline-start: var(--space-6); }
.table .waterfall__step--total:last-child th { border-bottom: 0; }

@media (max-width: 640px) {
  .waterfall__chart { display: none; }
}
