/* Scoped responsive refinements — stock, POS and department reorder list. */
.stock-breakdown-section, .stock-dept-grid, .stock-dept-card, .stock-distribution { min-width:0; max-width:100%; }
.stock-dept-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; align-items:start; }
.stock-dept-card { padding:clamp(.85rem,2vw,1.3rem); }
.stock-dept-header { display:flex; align-items:flex-start; justify-content:space-between; gap:.75rem; flex-wrap:wrap; padding-bottom:1rem; border-bottom:1px solid var(--line); }
.stock-dept-title { display:flex; align-items:center; gap:.6rem; min-width:0; }
.stock-dept-title h6 { font-size:1.02rem; margin:0; overflow-wrap:anywhere; }
.stock-dept-icon { display:grid; place-items:center; width:36px; height:36px; flex:0 0 36px; background:#f7f2e3; color:var(--gold-ink); border:1px solid #e9deba; border-radius:10px; }
.stock-dept-total { display:flex; flex-direction:column; gap:.12rem; min-width:0; }
.stock-dept-total small { font-size:.75rem; color:var(--mute); overflow-wrap:anywhere; }
.stock-dept-total b { font-size:1.5rem; color:var(--ink); line-height:1.2; }
.stock-dept-distributions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; margin-top:1rem; }
.stock-distribution { padding:.75rem; background:var(--stone); border:1px solid var(--line); border-radius:var(--r-m); }
.stock-distribution h6 { font-size:.86rem; margin:0 0 .75rem; overflow-wrap:anywhere; }
.stock-distribution h6 i { color:var(--gold-ink); }
.stock-distribution-row + .stock-distribution-row { margin-top:.65rem; }
.stock-distribution-label { display:flex; gap:.35rem; justify-content:space-between; align-items:baseline; font-size:.82rem; margin-bottom:.3rem; }
.stock-distribution-label > span { min-width:0; overflow-wrap:anywhere; }
.stock-distribution-label b { flex-shrink:0; }
.stock-distribution-track { height:7px; border-radius:99px; background:#e1e0d9; overflow:hidden; }
.stock-distribution-track > span { display:block; height:100%; background:var(--ink); border-radius:inherit; }
.stock-distribution .stock-negative { color:var(--bad); }
@media(max-width:1199px) { .stock-dept-grid { grid-template-columns:minmax(0,1fr); } }
@media(max-width:420px) { .stock-dept-distributions { grid-template-columns:minmax(0,1fr); } }
/* No fixed-width product/reorder content. Keep all six columns on desktop. */
.dept-shoes-grid { grid-template-columns:repeat(auto-fill,minmax(min(100%,285px),1fr)); }
.dept-shoe-card,.dept-shoe-top > div,.dept-shoe-body,.dept-shoe-foot { min-width:0; }
.dept-shoe-top { flex-wrap:wrap; }
.dept-shoe-title,.dept-spec-tag,.dept-shoe-top small { overflow-wrap:anywhere; max-width:100%; }
.dept-shoe-foot { flex-wrap:wrap; }
.dept-shoe-foot .btn { white-space:normal; }
.dept-reorder-wrap { overflow:visible; min-width:0; }
.dept-reorder-table { width:100%; min-width:0; table-layout:fixed; }
.dept-reorder-table th,.dept-reorder-table td { white-space:normal; overflow-wrap:anywhere; padding:.75rem .6rem; }
.dept-reorder-table th:first-child,.dept-reorder-table th:nth-child(4) { width:23%; }
.dept-reorder-label { display:none; }
.dept-reorder-sku { max-width:100%; overflow-wrap:anywhere; }
.dept-out-qty { color:var(--bad); }
.dept-low-qty { color:var(--gold-ink); }
@media(max-width:1024px) {
  .dept-reorder-wrap { border:0; background:transparent; }
  .dept-reorder-table,.dept-reorder-table tbody { display:block; background:transparent; }
  .dept-reorder-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .dept-reorder-table tbody tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem .9rem; border:1px solid var(--line); border-radius:var(--r-m); background:#fff; padding:.85rem; margin-bottom:.65rem; }
  .dept-reorder-table tbody td { display:flex; flex-direction:column; align-items:flex-start; gap:.2rem; min-width:0; padding:0; border:0; text-align:start; }
  .dept-reorder-table tbody td:first-child,.dept-reorder-table tbody td:nth-child(4) { grid-column:1/-1; }
  .dept-reorder-table tbody td:first-child { font-weight:600; padding-bottom:.45rem; border-bottom:1px solid var(--line); }
  .dept-reorder-table tbody td:nth-child(4) { grid-row:3; }
  .dept-reorder-label { display:block; font-size:.75rem; font-weight:400; color:var(--mute); }
}
/* Cashier: one continuous page on phones/tablets, never a nested scrolling invoice. */
.pos { grid-template-columns:minmax(0,1fr) minmax(330px,400px); }
.pos-main,.pos-cart,.pos-bar-card,.pos-filter-group,.pos-grid,.pcard-pos,.pos-cart-card { min-width:0; max-width:100%; }
.pos-main { width:100%; }
.pos-filter-group { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.pos-q-wrap { grid-column:1/-1; }
.pos-grid { grid-template-columns:repeat(auto-fill,minmax(min(100%,165px),1fr)); }
.pcard-pos { overflow-wrap:anywhere; }
.pos-card-foot { flex-wrap:wrap; }
.pos .tot { gap:.4rem; flex-wrap:wrap; }
.pos .tot > span { min-width:0; }
.pos .tot > .d-flex { flex-wrap:wrap; max-width:100%; }
.pos #pays > div { min-width:0; }
.pos #pays .form-control,.pos #pays .form-select { min-width:0; }
.pos #cname,.pos #cphone { min-width:0; }
.pos .cart-lines .cl > .d-flex > div { min-width:0; overflow-wrap:anywhere; }
.pos .pos-pay-btn { white-space:normal; overflow-wrap:anywhere; }
@media(max-width:1199px) {
  .pos { display:flex; flex-direction:column; align-items:stretch; gap:1.2rem; }
  .pos-cart { position:static; inset:auto; max-height:none; height:auto; overflow:visible; width:100%; display:block; }
  .pos-cart-card,.pos .cart-lines { position:static; max-height:none; overflow:visible; }
}
@media(max-width:600px) {
  .pos-filter-group { grid-template-columns:minmax(0,1fr); }
  .pos-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; }
  .pos-bar-card,.pos-cart-card { padding:.85rem; }
  .pos-cart-card .btn { white-space:normal; }
}
