.stock-selector { max-width: 28rem; margin: 0 0 1.25rem; }
.stock-date-hint { margin:.25rem 0 0; padding:.6rem .8rem; border-inline-start:2px solid #87ad9b; background:#edf5ef; color:#315e52; font-size:.85rem; }
.stock-product + .stock-product { margin-top: 1rem; }
.fulfillment-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.75rem; margin-bottom:1rem; }
.fulfillment-heading :is(h2,h3,p) { margin:0; }
.fulfillment-heading p { margin-top:.35rem; }
.stock-line-preview { clear:both; min-width:12.5rem; max-width:22rem; margin:.45rem 0; font-size:.85rem; white-space:normal; }
.stock-line-supply { display:flex; flex-wrap:wrap; gap:.45rem 1.05rem; color:#46675a; }
.stock-line-metric > span, .stock-line-metric > strong { display:block; }
.stock-line-metric > span { font-size:.8rem; }
.stock-line-metric + .stock-line-metric { border-inline-start:1px solid #c8dacf; padding-inline-start:1.05rem; }
.product-pick .stock-line-supply { margin-block:.35rem; gap:.45rem 1.5rem; }
.product-pick .stock-line-metric + .stock-line-metric { padding-inline-start:1.5rem; }
.stock-line-supply strong, .stock-batch-quantity strong, .stock-allocation-shortage strong { font-variant-numeric:tabular-nums; white-space:nowrap; }
.stock-line-hint { display:block; margin-top:.3rem; color:#536d61; }
.stock-allocation { margin-top:.5rem; padding:.45rem .65rem; border-inline-start:2px solid #87ad9b; background:#edf5ef; color:#295244; }
.stock-allocation-title { display:block; font-size:.78rem; }
.stock-batches { list-style:none; margin:.2rem 0 0; padding:0; }
.stock-batch { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.1rem .65rem; padding:.2rem 0; }
.stock-batch + .stock-batch { border-top:1px solid #cfdfd5; }
.stock-batch-name { overflow-wrap:anywhere; }
.stock-batch-quantity { white-space:nowrap; }
.stock-batch-date { grid-column:1 / -1; font-size:.75rem; color:#536d61; }
.stock-allocation-shortage { display:block; margin-top:.25rem; color:#80490d; }
.allocation-review { padding: .75rem 1rem; margin: 1rem 0; border: 1px solid #d7e4da; background:#f4f8f4; border-radius:.65rem; }
.allocation-review h3 { margin:0; }
.allocation-review ul { margin:.5rem 0; padding-inline-start:1.35rem; }
.dispatch-layout { display:grid; gap:1rem; }
.dispatch-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:.35rem; }
.dispatch-weekday { text-align:center; color:#506961; padding:.35rem 0; }
.dispatch-day { min-height:3.2rem; padding:.2rem; border:1px solid #dae6df; border-radius:.4rem; background:#fff; color:#245147; font:inherit; }
.dispatch-day:hover { border-color:#357465; }
.dispatch-day.outside { background:#f3f6f4; color:#51665e; }
.dispatch-day[aria-pressed=true] { background:#2f6d5f; color:#fff; border-color:#2f6d5f; }
.dispatch-day small { display:block; font-size:.73rem; }
.dispatch-filters { margin:.7rem 0 1rem; }
.dispatch-later { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem 1rem; margin-bottom:1rem; }
.fulfillment-table [data-action="ship-task-date"] { white-space:nowrap; }
.fulfillment-scroll { container-type:inline-size; }
.fulfillment-table { table-layout:fixed; white-space:normal; }
.fulfillment-table :is(td,th) { padding:.65rem .55rem; vertical-align:top; overflow-wrap:anywhere; }
.fulfillment-table th:nth-child(1),.fulfillment-table th:nth-child(2) { width:21%; }
.fulfillment-table th:nth-child(3),.fulfillment-table th:nth-child(4) { width:12%; }
.fulfillment-table th:nth-child(5) { width:10%; }
.fulfillment-table th:last-child { width:24%; }
.fulfillment-table td small { display:block; margin-top:.15rem; }
.fulfillment-table td .inline-actions { gap:.25rem; margin-top:.18rem; }
.fulfillment-table td .btn { min-height:2.1rem; padding:.28rem .55rem; }
.payment-proof { display:block; max-width:100%; max-height:70vh; object-fit:contain; }
#modal .fulfillment-heading { margin-top:1.35rem; }
@media (max-width: 540px) {
 .product-pick .stock-line-supply { flex-direction:column; align-items:start; gap:.35rem; }
 .product-pick .stock-line-metric + .stock-line-metric { border-inline-start:0; border-top:1px solid #c8dacf; padding:.35rem 0 0; }
 .dispatch-grid { gap:.2rem; }
 .dispatch-day { min-height:2.8rem; }
 .dispatch-calendar { padding:.8rem; }
}
@container (max-width: 660px) {
 .fulfillment-table :is(tbody,tr) { display:block; }
 .fulfillment-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 .fulfillment-table tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:.55rem 0; border-bottom:1px solid #dae6df; }
 .fulfillment-table td { display:block; padding:.35rem; border:0; }
 .fulfillment-table td:nth-child(-n+2),.fulfillment-table td:last-child { grid-column:1 / -1; }
 .fulfillment-table [data-label]::before { content:attr(data-label); display:block; color:#526b62; font-size:.72rem; }
}
