/* ===== Accounting on a phone · the saved quotes and the quote builder ===== */

/* the pane runs with the page rather than scrolling inside itself */
#tab-accounting .workspace-pane { overflow: visible; padding-right: 0; }
#tab-accounting .filter-row { flex-wrap: wrap; gap: 0.5rem; }
#tab-accounting .filter-row input[type="text"] { flex: 1 1 100%; min-width: 0; min-height: var(--touch); }
#tab-accounting .filter-row select,
#tab-accounting .filter-row button { flex: 1 1 calc(50% - 0.25rem); min-width: 0; min-height: var(--touch); }


/* ─── All Quotes · a lead card row per saved quote (workspace.css), its name on top ─── */

/* the name and its version and lock badges take the first line */
#quote-browser-tbody > tr > td:nth-child(1) { order: 1; flex: 1 1 100%; font-size: 0.9rem; font-weight: 600; color: var(--text); }
#quote-browser-tbody > tr > td:nth-child(3)::before { content: "· "; color: var(--text-faint); }
/* only the last change is worth the space · the created date stays on the desk */
#quote-browser-tbody > tr > td:nth-child(4) { display: none; }
#quote-browser-tbody > tr > td:nth-child(5) { margin-left: auto; font-size: 0.75rem; color: var(--text-faint); }
/* the builder's tables aren't cards, so their row actions get the same thumb size here */
#tab-accounting td.col-action button { min-width: var(--touch); min-height: var(--touch); }


/* ─── Builder · the line and parts tables keep their columns and scroll inside their card ─── */
#tab-accounting .table-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
/* the model and kit stay put while the figures scroll past them */
#quote-table td:first-child,
#quote-table th:first-child,
#quote-parts-table td:first-child,
#quote-parts-table th:first-child { position: sticky; left: 0; z-index: var(--z-raise-1); background: var(--surface); }
#quote-table input { min-height: 2.5rem; min-width: 4rem; }
#tab-accounting .kit-checkout-row,
#tab-accounting .checkout-split { flex-wrap: wrap; }
#tab-accounting .checkout-split > button { min-height: var(--touch); }


/* ─── Quote panel · stacked under the builder, one field per line ─── */
#tab-accounting .workspace-panel-body { overflow: visible; max-height: none; }
#tab-accounting .workspace-panel .form-grid { grid-template-columns: minmax(0, 1fr); }
