/* ===== Production on a phone · the drill, and the cutting and packaging editors view only ===== */

/* the pane runs with the page rather than scrolling inside itself */
.prod-pane { overflow: visible; padding-right: 0; }


/* ─── Pickers · search on its own line, each table scrolls inside its card ─── */
.prod-pane .filter-row input[type="text"] { flex: 1 1 100%; min-height: var(--touch); }
.prod-pane .table-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
/* the name stays put while the rest of the row scrolls past it */
.prod-pane .data-table:not(.grid-table) td:first-child,
.prod-pane .data-table:not(.grid-table) th:first-child { position: sticky; left: 0; z-index: var(--z-raise-1); background: inherit; }
/* a row you open is a thumb target */
.prod-pane .data-table tbody tr { height: var(--touch); }
.prod-pane .data-table .col-action .btn-icon { min-width: 2.25rem; min-height: 2.25rem; }
/* view only · a row's checkout, check-in and discard are edits too, even for a checkout held from a desk */
#prod-cutting-list-tbody :is(.btn-row-checkout-draft, .btn-row-checkout-direct, .btn-row-check-in, .btn-row-discard, .btn-row-release),
#prod-box-tbody :is(.btn-row-checkout-draft, .btn-row-checkout-direct, .btn-row-check-in, .btn-row-discard, .btn-row-release) { display: none; }


/* ─── Editors · view only, so the summaries lead and the list scrolls sideways under them ─── */
.prod-cutting-area,
.pkg-table-area { overflow: visible; }
.prod-summaries-row { flex-direction: column; gap: 0.6rem; }
#prod-summaries:not(.hidden) { display: flex; flex-direction: column; gap: 0.6rem; }
.prod-summary-group { min-width: 0; overflow-x: auto; }
#prod-cutting-table-wrap,
#prod-packing-table-wrap { max-height: none; overflow-x: auto; overscroll-behavior-x: contain; }
/* the legacy phone rule stacked these as full-width palettes · on a phone they're edit-only and gone */
.prod-cutting-layout { flex-direction: column; }
/* the view-only chip leads the editor's actions, the first thing past the trail */
#prod-pathbar .phone-view-only-note { flex: none; }
#prod-pathbar .transfer-btn,
#prod-pathbar .checkout-pill { min-height: 2.5rem; display: inline-flex; align-items: center; }


/* ─── Inspector · notes and settings stack under the list as plain reading ─── */
.prod-inspector .tab-btn,
.pkg-inspector .tab-btn { min-height: var(--touch); }
.prod-inspector .workspace-panel-body,
.pkg-inspector .workspace-panel-body { overflow: visible; max-height: none; }
