/* the plan's own inputs (front/g_plan_grids.js; slice F3, switch planP1): months across, the first column sticky, single-height rows, the note
   last, the scroll inside the card -- never the page's */
.g-plan-grids { min-width:0; margin:12px 0; }
.g-plan-grids h4 { margin:14px 0 4px; }
.g-plan-grids .g-plan-grid-scroll { max-width:100%; overflow-x:auto; }
.g-plan-grids table.g-plan-grid { min-width:max-content; border-collapse:collapse; }
.g-plan-grids .g-plan-grid th, .g-plan-grids .g-plan-grid td { white-space:nowrap; padding:2px 4px; vertical-align:middle; }
.g-plan-grids .g-plan-grid thead th { font-weight:600; text-align:left; }
.g-plan-grids .g-plan-grid th[scope="row"], .g-plan-grids .g-plan-grid thead th:first-child { position:sticky; left:0; z-index:1; background:var(--panel); text-align:left; }
.g-plan-grids .g-plan-grid th[scope="row"] > span { display:inline-block; max-width:11em; overflow:hidden; text-overflow:ellipsis; vertical-align:middle; }
.g-plan-grids .g-plan-grid input, .g-plan-grids .g-plan-grid select { height:30px; box-sizing:border-box; font:inherit; font-size:13px; line-height:1.2; padding:2px 6px; margin:0; }
.g-plan-grids .g-plan-grid select { padding-right:22px; }
.g-plan-grids .g-plan-grid-amt { width:7em; text-align:right; }
.g-plan-grids .g-plan-grid-day { width:7.5em; }
.g-plan-grids .g-plan-grid-label { width:10em; }
.g-plan-grids .g-plan-grid-note { width:14em; }
.g-plan-grids .g-plan-grid-tick { text-align:center; }
/* the Forecasted checkbox middle-aligned: on the text baseline it added the strut's descent below it, 6 px, and the sales rows stood taller
   than the teams' and costs' (40 vs 34 desk, 50 vs 44 phone; g-plan-inputs-ui's single-height pin, D 11/18/2026) */
.g-plan-grids .g-plan-grid-tick input[type="checkbox"] { vertical-align:middle; }
.g-plan-grids .g-plan-grid-off th[scope="row"], .g-plan-grids .g-plan-grid-off input:not([type="checkbox"]), .g-plan-grids .g-plan-grid-off select { color:var(--muted); }
.g-plan-grids .g-plan-total th, .g-plan-grids .g-plan-total td { font-weight:600; text-align:right; }
.g-plan-grids [aria-invalid="true"] { outline:2px solid var(--bad); outline-offset:-2px; }
.g-plan-grids [data-testid="plan-grids-problems"] p, .g-plan-grids [data-testid="plan-grids-left"] p { margin:2px 0; }
@media (max-width:480px) {
  .g-plan-grids .g-plan-grid th[scope="row"] > span { max-width:7em; }
  .g-plan-grids .g-plan-grid-label { width:7em; }
}
/* R-GF-1 (R 07:20 UTC 11/01/2026): on a phone a grid field is 16 px text -- iOS zooms the whole page on a smaller one -- and the 40 px target;
   the rows grow and the grid keeps its sideways scroll. A desk keeps the dense 30 px / 13 px above (a table of figures, R's call). */
@media (max-width:600px) {
  .g-plan-grids .g-plan-grid input, .g-plan-grids .g-plan-grid select { height:40px; font-size:16px; }
}
