/* Keep actions in their own non-wrapping strip, including while editing. */
.action-icon { width:18px; height:18px; flex:none; fill:none; vertical-align:middle; }
.bom-row-icon svg.action-icon { width:18px; height:18px; fill:none; }
.bom-catalog-table--compact .bom-col-actions { width:6.5rem; }
.bom-catalog-table--compact .bom-catalog-table__actions { width:6.5rem; min-width:6.5rem; padding-right:.35rem; }
.bom-actions, .row-actions { display:inline-flex; align-items:center; gap:2px; flex-wrap:nowrap; white-space:nowrap; }
.bom-actions .bom-row-icon, .row-action { display:inline-flex; flex:none; align-items:center; justify-content:center; width:28px; height:28px; min-height:0; padding:4px; border:0; border-radius:5px; background:transparent; color:var(--color-brand); cursor:pointer; text-decoration:none; }
.bom-actions .bom-row-icon:hover, .row-action:hover { background:var(--color-brand-soft); }
.bom-actions .bom-row-icon--save, .row-action--save { background:var(--color-brand); color:white; }
.bom-actions .bom-row-icon--save:hover, .row-action--save:hover { background:var(--color-brand); opacity:.9; }
.bom-actions .bom-row-actions-edit { display:inline-flex; gap:2px; }
.bom-actions [hidden], .order-table [hidden] { display:none !important; }
.order-table { width:100%; font-size:.84rem; table-layout:auto; }
.order-table th, .order-table td { padding:5px 8px; height:42px; vertical-align:middle; white-space:nowrap; }
.order-table th { height:30px; font-size:.72rem; }
.order-table .order-label { width:30%; max-width:25rem; }
.order-label > strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.order-supplier > span { display:inline-block; max-width:12rem; overflow:hidden; text-overflow:ellipsis; vertical-align:middle; }
.order-table small { display:inline; font-size:.73rem; }
.order-table .status { padding:4px 8px; min-height:28px; font-size:.78rem; line-height:1.25; }
.order-state { display:inline-flex; gap:5px; align-items:center; border:0; font-family:inherit; cursor:pointer; white-space:nowrap; }
.order-state .action-icon { width:12px; height:12px; }
.order-state:hover { box-shadow:inset 0 0 0 1px currentColor; }
.order-date { color:var(--color-muted); font-size:.77rem; }
.order-state-cell { padding-right:0 !important; }
.order-help { display:flex; flex-wrap:wrap; justify-content:space-between; gap:.3rem 1rem; min-height:1.5rem; margin:.2rem 0; font-size:.72rem; color:var(--color-muted); }
[data-order-feedback] { color:var(--color-brand); }
[data-order-feedback].is-error { color:var(--color-danger); }
.order-table [aria-busy=true] { opacity:.55; pointer-events:none; }
.order-menu { min-width:15rem; max-width:23rem; padding:.5rem; }
.order-menu > strong, .order-menu > small { display:block; padding:.4rem .6rem; white-space:normal; }
.order-menu > button { display:flex; align-items:center; gap:.5rem; width:100%; border:0; background:transparent; text-align:left; padding:.55rem .6rem; min-height:34px; font:inherit; color:var(--color-text); cursor:pointer; border-radius:4px; }
.order-menu > button:hover { background:var(--color-brand-soft); }
.order-menu kbd { margin-left:auto; font-size:.7rem; color:var(--color-muted); }
.order-history p { font-size:.85rem; }
.order-table .purchase-edit-row input:not([type=hidden]), .order-table .purchase-edit-row select { width:100%; min-height:28px; height:28px; padding:3px 4px; border:0; border-bottom:1px solid #afcbc1; border-radius:3px; background:transparent; font-size:.82rem; }
.order-table .purchase-edit-row input[type=number] { width:5rem; }
.order-table .purchase-edit-row td:nth-child(2) input { min-width:7rem; max-width:12rem; }
.order-quantity-edit { display:flex; align-items:center; gap:.25rem; }
.order-quantity-edit input[name=unit] { max-width:5rem; }
.order-table .purchase-edit-row td { padding-top:5px; padding-bottom:5px; }
.stock-kind-switch { display:inline-flex; gap:3px; padding:3px; border:1px solid var(--color-line); border-radius:7px; margin:.4rem 0 .6rem; }
.stock-kind-switch a { padding:5px 12px; border-radius:4px; color:var(--color-muted); text-decoration:none; font-size:.84rem; }
.stock-kind-switch a[aria-current=page] { background:var(--color-brand-soft); color:var(--color-brand); font-weight:700; }
.assembly-stock-table td { padding:6px 10px; }
.assembly-stock-table .status { padding:4px 8px; }
@media(max-width:64rem) { .order-table .order-label { min-width:11rem; max-width:18rem; } }
@media(max-width:40rem) {
 .purchase-page .order-table, .purchase-page .order-table tbody { display:block; }
 .order-table thead { display:none; }
 .order-table tr { display:grid; grid-template-columns:1fr 1fr; padding:.65rem; gap:.4rem; border-bottom:1px solid var(--color-line); }
 .order-table td { display:block; height:auto; min-width:0 !important; width:auto !important; max-width:none !important; padding:0; border:0; text-align:left; }
 .order-table .order-label, .order-table td:nth-child(2) { grid-column:1/-1; }
 .order-table td:nth-child(4)::before { content:'PU HT : '; color:var(--color-muted); }
 .order-table td:nth-child(5)::before { content:'Total HT : '; color:var(--color-muted); }
 .order-table td:last-child { grid-column:1/-1; text-align:right; }
 .order-help { font-size:.7rem; }
}
