/* ===== BOM on a phone · type cards, section tables, audit and the part inspector ===== */

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


/* ─── Path bar · the drill's segments narrow, so model, kit and revision sit in one short scroll ─── */
#bom-pathbar .pathbar-workspace { max-width: 7.5rem; }
#bom-pathbar .pathbar-combo { max-width: 8.5rem; }
#bom-pathbar .pathbar-combo .combo-input { width: 8rem; }


/* ─── Section tabs · a strip that scrolls sideways instead of pushing the page wider ─── */
.bom-pane .tab-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.bom-pane .tab-bar::-webkit-scrollbar { display: none; }
.bom-pane .tab-btn { flex: none; min-height: var(--touch); }


/* ─── Filters · search takes its own line, the narrowing selects share the next ─── */
.bom-pane .filter-row { flex-wrap: wrap; gap: 0.5rem; }
.bom-pane .filter-row input[type="text"] { flex: 1 1 100%; min-height: var(--touch); }
.bom-pane .filter-row select { flex: 1 1 calc(50% - 0.25rem); min-width: 0; min-height: var(--touch); }
.bom-pane .filter-row button { min-height: var(--touch); }


/* ─── Checkout · the state pill and its actions wrap onto as many lines as they need ─── */
.bom-pane .kit-checkout-row { flex-wrap: wrap; justify-content: flex-start; }
.bom-pane .kit-checkout-row button,
.bom-pane .checkout-split > button { min-height: var(--touch); }


/* ─── Tables · each scrolls inside its own card, columns sized to what they hold ─── */
.bom-pane .table-scroll { overscroll-behavior-x: contain; margin-bottom: 1rem; }
/* a row you open is a thumb target */
.bom-pane .data-table tbody tr { height: var(--touch); }
.bom-pane .data-table .col-action button,
.bom-pane .data-table .btn-icon { min-width: 2.25rem; min-height: 2.25rem; }
/* a description is the widest cell and the least scanned, so a phone reads it in the row's Info modal instead · models, subkits, modules, files */
.bom-pane .data-table [data-col="description"] { display: none; }
/* the drag column reorders by mouse, which a touch screen doesn't do */
.bom-pane .data-table .col-drag { display: none; }
/* its header is a bare th, so it goes by the column it heads */
.bom-pane .data-table:has(td.col-drag) thead th:first-child { display: none; }


/* ─── Part inspector · the solid panel stacks under the list with room for the stage ─── */
#bom-solid .tab-btn { min-height: var(--touch); }
#bom-solid .stage3d { min-height: 18rem; }
