.g-plan-chart { min-width: 0; }
.g-plan-chart-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
.g-plan-chart-heading h2 { margin:0; font-size:1.15rem; }
.g-plan-chart .segb { min-height:44px; min-width:64px; }
.g-plan-chart svg { display:block; width:100%; height:auto; min-height:180px; overflow:visible; }
.g-plan-chart svg text { font-size:13px; fill:var(--lv-chart-axis); }
.g-plan-zero { stroke:var(--lv-chart-grid); stroke-width:1; }
.g-plan-series { fill:none; stroke-width:3; vector-effect:non-scaling-stroke; }
.g-plan-series-0 { stroke:var(--lv-chart-indigo); border-color:var(--lv-chart-indigo); }
.g-plan-series-1 { stroke:var(--lv-chart-lagoon); border-color:var(--lv-chart-lagoon); stroke-dasharray:6 3; }
.g-plan-point-0 { fill:var(--lv-chart-indigo); }.g-plan-point-1 { fill:var(--lv-chart-lagoon); }
.g-plan-legend { display:flex; gap:20px; flex-wrap:wrap; list-style:none; padding:0; }
.g-plan-swatch { display:inline-block; width:22px; border-top-width:3px; border-top-style:solid; margin-right:7px; vertical-align:middle; }
.g-plan-swatch.g-plan-series-1 { border-top-style:dashed; }
.g-plan-chart summary { cursor:pointer; padding:12px 0; min-height:44px; }
@media(max-width:480px) { .g-plan-chart svg text { font-size:20px; } .g-plan-chart .stmt { min-width:0; width:100%; } }
/* provisional (book.provisional): said in words above the chart; the lines lighter, the legend says so */
.g-plan-provisional { margin:6px 0; padding:6px 10px; border-left:3px solid var(--lv-chart-amber); background:var(--lv-chart-soft); }
.g-plan-prov .g-plan-series, .g-plan-prov circle { stroke-opacity:.55; fill-opacity:.55; }
.g-plan-legend.g-plan-prov .g-plan-swatch { opacity:.55; }
/* the cash table (front/g_plan_cash_table.js): months across, the first column sticky, the scroll inside the card -- never the page's */
.g-plan-cash { min-width:0; }
.g-plan-cash .g-plan-cash-scroll { max-width:100%; overflow-x:auto; }
.g-plan-cash table { min-width:max-content; }
.g-plan-cash th[scope="row"], .g-plan-cash thead th:first-child { position:sticky; left:0; z-index:1; background:var(--panel); text-align:left; white-space:nowrap; }
.g-plan-cash td { white-space:nowrap; text-align:right; }
.g-plan-cash .g-plan-total th, .g-plan-cash .g-plan-total td { font-weight:600; }
.g-plan-cash .g-plan-gap td { padding:4px 0; border:0; }
/* THE CHART FIX (Andrew 10/20/2026): bars for the P&L view (the series' own colours), a value axis with gridlines, the hatched partial month,
   the tooltip box, and "See monthly figures" in both orientations with one switch point by width (the table orientation rule) */
.g-plan-grid { stroke:var(--lv-chart-grid); stroke-width:1; }
.g-plan-zero { stroke:var(--lv-chart-axis); stroke-width:1.2; }
.g-plan-chart svg text.g-plan-axis, .g-plan-chart svg text.g-plan-month { font-size:13px; fill:var(--lv-chart-axis); }
.g-plan-bar { stroke:none; }
.g-plan-bar-0 { fill:var(--lv-chart-indigo); stroke:var(--lv-chart-indigo); }
.g-plan-bar-1 { fill:var(--lv-chart-lagoon); stroke:var(--lv-chart-lagoon); }
.g-plan-bar:focus { outline:none; stroke:var(--lv-chart-ink); stroke-width:2; }
.g-plan-partial { fill-opacity:.45; }
.g-plan-hatch { stroke:var(--lv-chart-surface); stroke-width:2; }
.g-plan-prov .g-plan-bar { fill-opacity:.55; }
.g-plan-swatch.g-plan-swatch-bar { height:12px; border-top:0; background:currentColor; }
.g-plan-swatch-bar.g-plan-series-0 { color:var(--lv-chart-indigo); }
.g-plan-swatch-bar.g-plan-series-1 { color:var(--lv-chart-lagoon); }
.g-plan-tip { margin:6px 0 0; padding:6px 10px; border:1px solid var(--lv-chart-grid); border-radius:6px; font-size:.95rem; }
.g-plan-tip[hidden] { display:none; }
@media(max-width:480px) { .g-plan-chart svg text.g-plan-axis, .g-plan-chart svg text.g-plan-month { font-size:20px; } }
@media(max-width:599px) { .g-plan-chart .g-plan-table-wide { display:none; } }
@media(min-width:600px) { .g-plan-chart .g-plan-table-narrow { display:none; } }

.g-plan-bar.g-plan-neg { fill: var(--lv-chart-loss); stroke: var(--lv-chart-loss); }

/* Existing .55 provisional opacity remains; these hues still clear 3:1 after compositing. */
.g-plan-prov .g-plan-series-0, .g-plan-prov .g-plan-point-0 { stroke: var(--lv-chart-provisional-indigo); }
.g-plan-prov .g-plan-series-1, .g-plan-prov .g-plan-point-1 { stroke: var(--lv-chart-provisional-lagoon); }
.g-plan-legend.g-plan-prov .g-plan-series-0 { border-color: var(--lv-chart-provisional-indigo); }
.g-plan-legend.g-plan-prov .g-plan-series-1 { border-color: var(--lv-chart-provisional-lagoon); }
