/* =====================================================================
   sales.css — ประวัติการขาย (แดชบอร์ด/ลิ้นชักบิล/คืนสินค้า), ลูกค้าหน้าร้าน,
   คอมโพเนนต์ Drawer และกฎกันซูมช่องกรอกบนมือถือ
   ===================================================================== */

/* ---------- กันมือถือ/แท็บเล็ตซูมเมื่อแตะช่องกรอก (iOS ซูมถ้าตัวอักษร < 16px) ----------
   :is(...) ให้ความเจาะจง (0,2,1) + :not(.zoom-ok) อีก (0,1,0) = (0,3,1)
   จึงชนะกฎ app.css อย่าง .field select / .stack.tight textarea / .table input:not(...) ที่ตั้ง font: inherit */
@media (max-width: 1024px) {
  :is(input:not([type=checkbox]):not([type=radio]), select, textarea):not(.zoom-ok) { font-size: 16px; }
  /* ช่องที่ตั้งใจให้ใหญ่กว่า 16px คงขนาดเดิมไว้ */
  .paysheet-amount input:not([type=checkbox]):not([type=radio]) { font-size: 1.7rem; }
}

/* =====================================================================
   Drawer (Components/Drawer.razor): จอคอม = แผงขวา, มือถือ = เต็มจอ
   ===================================================================== */
body:has(.drw) { overflow: hidden; }
.drw-scrim { position: fixed; inset: 0; z-index: 66; background: rgba(31,26,23,.45); animation: drw-fade .15s ease-out; }
.drw {
  position: fixed; z-index: 67; top: 0; right: 0; bottom: 0; width: min(560px, 100%);
  display: flex; flex-direction: column; background: var(--surface); color: var(--ink);
  box-shadow: -16px 0 48px rgba(31,26,23,.25); outline: none;
  border-radius: 24px 0 0 24px; overflow: hidden; animation: drw-in .2s ease-out;
}
.drw-head {
  display: flex; align-items: flex-start; gap: 12px; flex: none;
  padding: calc(16px + env(safe-area-inset-top)) 12px 12px 22px; border-bottom: 1px solid var(--line);
}
.drw-titles { flex: 1; min-width: 0; }
.drw-head h2 { margin: 0; font-size: 1.2rem; line-height: 1.3; overflow-wrap: anywhere; }
.drw-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; font-size: .88rem; }
.drw-sub:empty { display: none; }
.drw-close { flex: none; background: var(--chip); border-radius: 999px; width: 40px; height: 40px; border: 0; color: var(--ink); }
.drw-close:hover { background: var(--line); }
.drw-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.drw-foot {
  flex: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end;
  padding: 12px 22px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface);
}
.drw-foot:empty { display: none; }
.drw-sec { display: flex; flex-direction: column; gap: 6px; }
.drw-sec + .drw-sec { padding-top: 14px; border-top: 1px dashed var(--line); }
.drw-sec h3 { margin: 0 0 2px; font-size: .95rem; display: flex; align-items: baseline; gap: 8px; }
.drw-dl { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.drw-dl > div { display: flex; justify-content: space-between; gap: 16px; font-size: .92rem; }
.drw-dl dt { color: var(--muted); flex: none; }
.drw-dl dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.drw-dl dd.pre { white-space: pre-line; }
@keyframes drw-fade { from { opacity: 0; } }
@keyframes drw-in { from { transform: translateX(40px); opacity: 0; } }

@media (max-width: 760px) {
  .drw { width: 100%; border-radius: 0; animation: drw-up .22s ease-out; }
  .drw-head { padding: calc(12px + env(safe-area-inset-top)) 8px 10px 16px; }
  .drw-body { padding: 14px 16px 18px; }
  .drw-foot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .drw-foot > .btn { flex: 1 1 0; min-height: 48px; justify-content: center; text-align: center; }
}
@keyframes drw-up { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .drw, .drw-scrim { animation: none; } }

/* =====================================================================
   ประวัติการขาย (Pages/Sales.razor) — prefix .sla-
   ===================================================================== */
.sla-periods { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 12px; padding-bottom: 2px; scrollbar-width: none; }
.sla-periods::-webkit-scrollbar { display: none; }
.sla-periods .chip { cursor: pointer; font: inherit; font-size: .9rem; }

.sla-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 10px; }
.sla-card {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.sla-card.main { background: var(--brand-tint); border-color: rgba(var(--brand-rgb), .3); }
.sla-card-label { color: var(--muted); font-size: .85rem; }
.sla-card strong { font-size: 1.3rem; line-height: 1.25; overflow-wrap: anywhere; }
.sla-card.main strong { color: var(--brand-strong); }
.sla-card-hint { font-size: .78rem; color: var(--muted); }
.sla-card-hint.danger-text { color: var(--danger); }
.sla-paysplit { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 16px; font-size: .9rem; }

.sla-tabs { display: flex; gap: 4px; margin: 0 0 14px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.sla-tabs::-webkit-scrollbar { display: none; }
.sla-tabs button {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px;
  border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; background: none;
  font: inherit; font-weight: 600; color: var(--muted); cursor: pointer;
}
.sla-tabs button.on { color: var(--ink); border-bottom-color: var(--brand); }
.sla-count { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--chip); color: var(--ink); font-size: .78rem; text-align: center; }
.sla-tabs button.on .sla-count { background: var(--brand-soft); color: var(--brand-strong); }

.sla-billno { font-weight: 600; margin-right: 6px; }
.sla-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.sla-chips:empty { display: none; }
.sla-chip {
  display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .74rem; font-weight: 600; line-height: 1.6;
  background: var(--chip); color: var(--ink); white-space: nowrap; text-decoration: none;
}
.sla-chip.void, .sla-chip.bad { background: var(--danger-soft); color: var(--danger); }
.sla-chip.refund { background: var(--warn-soft); color: #7a5300; }
.sla-chip.disc { background: var(--ok-soft); color: var(--ok); }
.sla-chip.vat, .sla-chip.inv { background: #EEF0FA; color: #3A4690; }
.sla-chip.ship, .sla-chip.online { background: var(--brand-soft); color: var(--brand-strong); }
.sla-chip.good { background: var(--ok-soft); color: var(--ok); }
.table.sla-bills tr.voided td .sla-chip { text-decoration: none; }

.sla-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .92rem; padding: 2px 0; }
.sla-row > span:first-child { min-width: 0; }
.sla-row > .num, .sla-row > strong { flex: none; text-align: right; }
.sla-row.total { font-size: 1rem; padding-top: 6px; }
.sla-row.total strong { font-size: 1.15rem; }
.sla-row.muted { color: var(--muted); }

.sla-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sla-items li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sla-items li:last-child { border-bottom: 0; }
.sla-item-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sla-item-main .tag { align-self: flex-start; }
.sla-item-name { font-weight: 600; overflow-wrap: anywhere; }
.sla-promos { padding: 6px 10px; border-radius: var(--radius-sm); background: var(--ok-soft); color: var(--ok); }
.sla-totals { display: flex; flex-direction: column; padding-top: 6px; border-top: 1px solid var(--line); }
.sla-form { margin-top: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); flex-direction: column; }
.sla-form .actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.sla-form > input { width: 100%; }
.void-box.sla-form input { min-width: 0; padding: 8px 10px; }

/* แท็บคืนสินค้า */
.sla-rsum { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px 20px; margin: 0 0 14px; }
.sla-rsum > div { display: flex; flex-direction: column; }
.sla-rsum strong { font-size: 1.15rem; }
.sla-rlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.sla-rcard { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.sla-rcard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sla-rcard-head > strong { font-size: 1.1rem; flex: none; }
.sla-rcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .9rem; }
.sla-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--brand-strong); text-decoration: underline; cursor: pointer; min-height: 32px; }
.sla-rlines { list-style: none; margin: 0; padding: 6px 0 0; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 3px; }
.sla-rlines li { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.sla-rcard-foot { display: flex; flex-wrap: wrap; gap: 2px 14px; }

@media (max-width: 760px) {
  .sla-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sla-card { padding: 12px; }
  .sla-card.main { grid-column: 1 / -1; }
  .sla-card strong { font-size: 1.1rem; }
  .sla-card.main strong { font-size: 1.45rem; }
  .sla-rlist { grid-template-columns: 1fr; }
  .table.cards.sla-bills td:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
}

/* =====================================================================
   ลูกค้าหน้าร้าน (Pages/StoreCustomers.razor) — prefix .scust-
   ===================================================================== */
.scust-hint { margin: -10px 0 14px; }
.scust-search { align-items: center; }
.scust-search .search { flex: 1 1 260px; }
.status-pill.scust-on { background: var(--ok-soft); color: var(--ok); }
@media (max-width: 760px) {
  .scust-search .search { min-width: 0; flex: 1 1 100%; }
}

/* =====================================================================
   รอบ 25: รับสินค้าเข้า — เอกสารรับ/โอน/ปรับยอด (Pages/Inventory.razor),
   หน้าต่างเลือกสินค้าหลายรายการ (ProductBatchPicker.razor), โซนในหน้าสต็อก (Pages/Stock.razor) — prefix .rcv-
   ===================================================================== */
/* ป๊อปอัปซ้อน (เลือกสินค้าบนเอกสาร): พื้นหลังชั้นที่สองไม่ต้องมืดซ้ำ */
.mdl-wrap:has(.rcv-draft) ~ .mdl-scrim { background: rgba(31,26,23,.22); }

/* ช่องกรอกในรายการ (ไม่ได้อยู่ใน .field จึงต้องใส่สไตล์เอง) */
.rcv-f input, .rcv-f select, .rcv-pk-search input, .rcv-pk-cat, .rcv-zone-edit input {
  font: inherit; color: var(--ink); width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.rcv-f input:focus, .rcv-f select:focus, .rcv-pk-cat:focus, .rcv-zone-edit input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.rcv-f input.num, .rcv-f input[type="number"] { text-align: right; font-variant-numeric: tabular-nums; }
.rcv-zone input, .rcv-zone-edit input { text-transform: uppercase; }
.rcv-zone input::placeholder, .rcv-zone-edit input::placeholder { text-transform: none; }

/* รูปย่อสินค้า */
.rcv-thumb {
  width: 44px; height: 44px; flex: none; border-radius: 10px; overflow: hidden; display: grid; place-items: center;
  background: var(--chip); color: var(--muted);
}
.rcv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ชิปโซน/ชั้นวาง */
.rcv-zone-chip {
  display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 1px 8px; border-radius: 7px;
  font: inherit; font-size: .75rem; font-weight: 700; letter-spacing: .03em; line-height: 1.6; font-variant-numeric: tabular-nums;
  background: var(--chip); color: var(--ink); border: 1px solid var(--line); white-space: nowrap; vertical-align: middle;
}
.rcv-zone-chip.as-btn { cursor: pointer; min-height: 28px; }
.rcv-zone-chip.as-btn:hover { border-color: var(--brand); color: var(--brand-strong); }
.rcv-zone-chip.as-btn svg { opacity: .55; }
.rcv-zone-chip.add { background: transparent; border-style: dashed; color: var(--muted); font-weight: 600; letter-spacing: 0; }

/* ---------- หน้าต่างเลือกสินค้า ---------- */
.rcv-pk-head {
  position: sticky; top: -18px; z-index: 3; margin: -18px -22px 0; padding: 14px 22px 8px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.rcv-pk-top { display: flex; flex-wrap: wrap; gap: 8px; }
.rcv-pk-search { position: relative; flex: 1 1 260px; min-width: 0; display: block; }
.rcv-pk-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.rcv-pk-search input { padding-left: 38px; min-height: 46px; border-radius: 999px; background: var(--bg); }
.rcv-pk-search input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; background: var(--surface); }
.rcv-pk-cat { flex: 0 1 200px; width: auto; min-height: 46px; border-radius: 999px; }
.rcv-pk-flash { margin: 8px 0 0; padding: 6px 12px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-size: .9rem; font-weight: 600; }
.rcv-pk-flash.bad { background: var(--danger-soft); color: var(--danger); }
.rcv-pk-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; min-height: 40px; }
.rcv-pk-all { font-weight: 600; font-size: .95rem; min-height: 40px; }
.rcv-pk-all input, .rcv-pk-row input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--brand); flex: none; margin: 0; cursor: pointer; }
.rcv-pk-count { flex: none; padding: 3px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; font-size: .85rem; }
.rcv-pk-empty { padding: 28px 0; text-align: center; }
.rcv-pk-more { text-align: center; margin: 10px 0 0; }
.rcv-pk-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rcv-pk-row {
  display: grid; grid-template-columns: 24px 44px minmax(0, 1fr) auto; grid-template-areas: "cb th tx me";
  align-items: center; gap: 4px 12px; min-height: 60px; padding: 8px 12px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.rcv-pk-row:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.rcv-pk-row.on { background: var(--brand-tint); border-color: var(--brand); }
.rcv-pk-row.is-in { cursor: default; opacity: .6; background: var(--bg); border-color: var(--line); }
.rcv-pk-row > input { grid-area: cb; }
.rcv-pk-row > .rcv-thumb { grid-area: th; }
.rcv-pk-text { grid-area: tx; display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.rcv-pk-text strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rcv-pk-text small { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: .8rem; }
.rcv-pk-in { color: var(--brand-strong); font-weight: 600; }
.rcv-pk-meta { grid-area: me; display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: .88rem; text-align: right; }
.rcv-pk-zero { color: var(--danger); }

/* ---------- เอกสาร: หัว + เครื่องมือ ---------- */
.rcv-head { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; }
.rcv-head .field.wide { grid-column: auto; }
.rcv-extra .field input.num { text-align: right; }
.rcv-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 16px 0 10px; }
.rcv-add { font-weight: 700; border-color: var(--brand); color: var(--brand-strong); }
.rcv-add:hover { background: var(--brand-tint); border-color: var(--brand); }
.rcv-mode { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.rcv-mode .segmented { min-width: 0; }
.rcv-mode .segmented button { padding: 7px 14px; white-space: nowrap; }
.rcv-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 16px; text-align: center; border: 1px dashed var(--line); border-radius: 16px; background: var(--bg); }
.rcv-empty p { margin: 0; }

/* ---------- เอกสาร: รายการสินค้า (จอคอม = ตาราง) ---------- */
.rcv-lines { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.rcv-line {
  display: grid; grid-template-columns: minmax(0, 1fr) 170px 96px 120px 40px; column-gap: 10px;
  align-items: start; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface);
}
.rcv-lines.is-recv .rcv-line { grid-template-columns: minmax(0, 1fr) 160px 90px 150px 110px 40px; }
.rcv-line:first-child { border-top: 0; }
.rcv-line-head { padding-top: 8px; padding-bottom: 8px; background: var(--bg); font-size: .8rem; font-weight: 600; color: var(--muted); align-items: center; }
.rcv-prod { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 42px; }
.rcv-prod-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.rcv-prod-text strong { font-weight: 600; overflow-wrap: anywhere; }
.rcv-prod-text small { font-size: .8rem; }
.rcv-f { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rcv-lbl { display: none; }
.rcv-calc { font-size: .78rem; text-align: right; line-height: 1.3; padding-top: 2px; }
.rcv-remove { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border-radius: 999px; color: var(--muted); border: 0; background: transparent; cursor: pointer; }
.rcv-remove:hover { background: var(--danger-soft); color: var(--danger); }
.rcv-sub { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 4px 0 0 54px; font-size: .8rem; line-height: 1.4; }
.rcv-real { color: var(--ink); font-weight: 600; }

/* ---------- ค่าใช้จ่ายเพิ่ม + สรุป ---------- */
.rcv-extra { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.rcv-extra > .muted { margin: 6px 0 0; }
.rcv-sum { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 4px; }
.rcv-sum > div { display: flex; justify-content: space-between; gap: 12px; }
.rcv-sum dt { color: var(--muted); }
.rcv-sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.rcv-sum .total { margin-top: 2px; font-weight: 700; font-size: 1.05rem; }
.rcv-sum .total dt { color: var(--ink); }

/* แถบล่างติดขอบ: ยอดรวมลอต + ปุ่ม */
.rcv-foot { align-items: center; }
.rcv-foot-total { margin-right: auto; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.rcv-foot-total strong { font-size: 1.2rem; }
.rcv-doc-extra { color: var(--brand-strong); }

/* ---------- หน้าสต็อก: โซน ---------- */
.rcv-stock-name { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.rcv-zone-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 2px; font-weight: 400; }
.rcv-zone-edit input { width: 130px; flex: 0 1 130px; min-height: 38px; }

@media (max-width: 760px) {
  .rcv-pk-head { top: -14px; margin: -14px -16px 0; padding: 12px 16px 6px; }
  .rcv-pk-top { flex-wrap: nowrap; }
  .rcv-pk-search { flex: 1 1 0; }
  .rcv-pk-search input, .rcv-pk-cat { font-size: 16px; }
  .rcv-pk-cat { flex: 0 0 118px; padding-right: 4px; }
  .rcv-pk-row { grid-template-columns: 24px 44px minmax(0, 1fr); grid-template-areas: "cb th tx" "cb th me"; padding: 8px 10px; gap: 2px 10px; }
  .rcv-pk-meta { justify-content: flex-start; font-size: .82rem; color: var(--muted); }

  /* หัวเอกสารแบบกะทัดรัด 2 คอลัมน์ */
  .rcv-head { grid-template-columns: 1fr 1fr; gap: 8px 10px; }
  .rcv-head .field.wide, .rcv-head > .field:first-child:nth-last-child(2) { grid-column: 1 / -1; }
  .rcv-head .field { font-size: .8rem; gap: 2px; }
  .rcv-head .field input, .rcv-head .field select { min-height: 42px; padding: 7px 10px; }
  .rcv-tools { margin: 12px 0 8px; }
  .rcv-mode { margin-left: 0; width: 100%; }
  .rcv-mode .segmented { flex: 1; }
  .rcv-mode .segmented button { min-height: 40px; padding: 6px 8px; }

  /* รายการเป็นการ์ด */
  .rcv-lines { border: 0; border-radius: 0; overflow: visible; gap: 10px; }
  .rcv-line-head { display: none; }
  .rcv-line, .rcv-lines.is-recv .rcv-line {
    position: relative; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px;
    padding: 12px; border: 1px solid var(--line); border-radius: 16px;
  }
  .rcv-line:first-child { border-top: 1px solid var(--line); }
  .rcv-prod { grid-column: 1 / -1; padding-right: 40px; }
  .rcv-remove { position: absolute; top: 8px; right: 6px; }
  .rcv-lbl { display: block; font-size: .75rem; color: var(--muted); }
  .rcv-f input, .rcv-f select { font-size: 16px; min-height: 44px; }
  .rcv-lines:not(.is-recv) .rcv-zone { grid-column: 1 / -1; }
  .rcv-sub { padding: 6px 0 0; border-top: 1px dashed var(--line); }

  .rcv-extra { padding: 12px; }
  .rcv-foot-total { flex: 1 1 100%; justify-content: space-between; margin-right: 0; }
  .rcv-zone-chip.as-btn { min-height: 32px; }
}

/* รอบ 98: มือถือ แถวแท็บบิลขาย/คืน (คอลัมน์) ห้าม wrap — ไม่งั้นแถบแท็บกว้างตามเนื้อหาและล้นจอแทนที่จะเลื่อนในแถว */
@media screen and (max-width: 760px) {
  .fit > .sla-tabrow { flex-wrap: nowrap; }
  .sla-tabrow > .sla-tabs { min-width: 0; }
}
