/* ===== Planning on a phone · worker staffing and kits planning ===== */

/* the section runs with the page rather than scrolling inside a fixed-height column */
#prod-planning-section { overflow: visible; max-height: none; }

/* Worker and Kits, then the departments · each strip scrolls sideways instead of wrapping */
#prod-planning-section .tab-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
#prod-planning-section .tab-bar::-webkit-scrollbar { display: none; }
#prod-planning-section .tab-btn { flex: none; min-height: var(--touch); }

/* the variant picker takes the line, the view-only chip sits under it */
#prod-planning-section .filter-row { flex-wrap: wrap; gap: 0.5rem; width: 100%; }
#planning-variant-select { flex: 1 1 100%; min-height: var(--touch); }


/* ─── Staffing grid · view only, stations down and shifts across, scrolling sideways inside its card ─── */
.planning-grid-wrap { flex-direction: column; }
.planning-table-area { width: 100%; min-width: 0; }
.planning-table-area .table-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
/* cells size to content everywhere else (workspace.css), but a shift column keeps a name's width */
#planning-grid-table th,
#planning-grid-table td { min-width: 7rem; }
/* the station stays put while the shifts scroll past it */
#planning-grid-table th:first-child,
#planning-grid-table td:first-child { min-width: 5.5rem; position: sticky; left: 0; z-index: var(--z-raise-1); background: var(--surface); }
/* assigning is drag and drop, which a touch screen can't do, so a chip reads without its remove cross */
.planning-chip-remove { display: none; }
.planning-chip { cursor: default; }
