/* v10.0.176 Inventory gudang (web + PDA) */
.wh-subnav { display: flex; flex-wrap: wrap; gap: 6px; }
.wh-subnav a { padding: 7px 12px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-size: 13px; font-weight: 500; }
.wh-subnav a:hover { border-color: var(--primary); }
.wh-subnav a.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.wh-subnav a.wh-subnav-pda { margin-left: auto; border-style: dashed; }
.wh-page #wh-body { display: flex; flex-direction: column; gap: 14px; }
.wh-page #wh-body > .toolbar, .wh-page #wh-body > .kpis { margin-bottom: 0; }
.wh-form3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.wh-intro { margin: 0; max-width: 900px; line-height: 1.5; }
.wh-kpis { margin-bottom: 4px; }
.wh-kpi-warn { background: var(--amber-soft); border-color: #efd9a8; }
.wh-kpi-bad { background: var(--red-soft); border-color: #f1c9c3; }
.wh-tbl td.r, .wh-tbl th.r { text-align: right; font-variant-numeric: tabular-nums; }
.wh-click { cursor: pointer; }
.wh-click:hover td, .wh-click:focus-visible td { background: var(--surface-2); }
.wh-click:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.wh-pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .3px; border-radius: 6px; padding: 2px 7px; background: #efece4; color: #4a473f; text-transform: uppercase; }
.wh-k-display { background: var(--blue-soft); color: #234a85; }
.wh-k-storage { background: var(--primary-soft); color: var(--primary-2); }
.wh-k-sack { background: var(--amber-soft); color: #6b4708; }
.wh-k-staging { background: #efece4; color: #4a473f; }
.wh-empty { border-style: dashed; }
.wh-empty h3 { margin-top: 0; }
.wh-prev { padding: 10px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }
.wh-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.wh-chips span { font-size: 12px; padding: 3px 7px; border-radius: 6px; background: var(--primary-soft); color: var(--primary-2); }
.wh-fs { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.wh-fs legend { font-weight: 600; font-size: 13px; padding: 0 4px; }
.wh-batch summary { cursor: pointer; padding: 2px 0; }
.wh-batch[open] summary { margin-bottom: 10px; }
.wh-grid { align-items: start; }
.wh-page .text-red, .pda .text-red { color: var(--red); }
.wh-page .text-green, .pda .text-green { color: var(--green); }
.wh-page .chk, #wh-tf .chk { display: flex; gap: 8px; align-items: center; font-size: 14px; }

/* ---------- PDA ---------- */
.pda { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.pda-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.pda-dev { border: 1px dashed var(--line); background: var(--surface); border-radius: 20px; padding: 6px 12px; font: inherit; color: var(--text); cursor: pointer; min-height: 36px; }
.pda-scan { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; background: var(--primary-2); padding: 12px; border-radius: 12px; }
.pda-scan label { flex-basis: 100%; color: #d5e6de; font-size: 13px; font-weight: 600; }
.pda-scan input { flex: 1; min-width: 0; height: 52px; font-size: 18px; border-radius: 10px; border: 2px solid #8fb8a6; padding: 0 14px; font-family: inherit; text-transform: uppercase; }
.pda-scan input::placeholder { text-transform: none; }
.pda-scan input:focus { outline: 3px solid #ffd27a; outline-offset: 1px; }
.pda-scan .btn { min-width: 56px; min-height: 52px; font-size: 16px; padding: 0 10px; }
.pda-msg { border-radius: 10px; padding: 0; font-size: 15px; line-height: 1.4; }
.pda-msg:empty { display: none; }
.pda-msg.pda-ok { background: var(--green-soft); color: var(--green); padding: 12px 14px; }
.pda-msg.pda-info { background: var(--blue-soft); color: #234a85; padding: 12px 14px; }
.pda-msg.pda-warn { background: var(--amber-soft); color: #6b4708; padding: 12px 14px; }
.pda-msg.pda-err { background: var(--red-soft); color: var(--red); padding: 12px 14px; font-weight: 600; }
#pda-body { display: flex; flex-direction: column; gap: 10px; }
.pda-tasks { display: flex; flex-direction: column; gap: 10px; }
.pda-task { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px; border-radius: 12px; text-decoration: none; color: var(--text); min-height: 64px; }
.pda-task span { display: flex; flex-direction: column; gap: 3px; }
.pda-task small { font-size: 13px; }
.pda-task em { font-style: normal; font-weight: 700; font-size: 13px; color: #fff; border-radius: 8px; padding: 10px 12px; white-space: nowrap; }
.pda-task-warn { background: var(--amber-soft); border: 1px solid #efd9a8; } .pda-task-warn small { color: #6b4708; } .pda-task-warn em { background: #8a5508; }
.pda-task-bad { background: var(--red-soft); border: 1px solid #f1c9c3; } .pda-task-bad small { color: #8e2a23; } .pda-task-bad em { background: var(--red); }
.pda-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pda-tile { display: flex; flex-direction: column; gap: 8px; padding: 14px; min-height: 92px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); justify-content: center; }
.pda-tile:hover, .pda-tile:focus-visible { border-color: var(--primary); }
.pda-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.pda-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; text-align: left; font: inherit; color: var(--text); }
.pda-card.is-active { border: 2px solid var(--primary); }
.pda-card small { color: var(--muted); font-size: 12px; display: block; }
.pda-card small.inline { display: inline; }
.pda-taskbtn { cursor: pointer; width: 100%; }
.pda-taskbtn:hover, .pda-taskbtn:focus-visible { border-color: var(--primary); }
.pda-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pda-big { font-size: 17px; }
.pda-sub { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .3px; }
.pda-total { text-align: right; } .pda-total b { font-size: 24px; display: block; }
.pda-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border: 0; border-top: 1px solid #efece4; background: none; width: 100%; font: inherit; color: var(--text); text-align: left; min-height: 48px; }
.pda-pick { cursor: pointer; }
.pda-pick:hover, .pda-pick:focus-visible { background: var(--surface-2); }
.pda-line span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pda-cnt { width: 84px; height: 44px; text-align: center; font-size: 18px; font-weight: 700; }
.pda-log { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid #efece4; font-size: 13px; }
.pda-qty { display: flex; align-items: flex-end; gap: 10px; margin-top: 4px; }
.pda-qty .btn { width: 52px; height: 52px; font-size: 22px; padding: 0; }
.pda-qty .fld { flex: 1; text-align: center; }
.pda-qty .fld { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.pda-qty-val { height: 56px; border: 2px solid var(--primary); border-radius: 10px; background: var(--surface); font: inherit; font-size: 24px; font-weight: 700; color: var(--text); cursor: pointer; font-variant-numeric: tabular-nums; }
.pda-cnt { min-width: 84px; height: 48px; border: 2px solid var(--primary); border-radius: 10px; background: var(--surface); font: inherit; font-size: 20px; font-weight: 700; color: var(--text); cursor: pointer; }
.pda-scan .pda-kb { min-width: 46px; width: 46px; font-size: 20px; padding: 0; background: #fff; }
.pda-kb.on { background: #ffd27a; border-color: #ffd27a; }
/* keypad angka layar (Zebra TC21 / HP tanpa tombol fisik) */
.pda-np-wrap { position: fixed; inset: 0; z-index: 9000; background: rgba(20, 30, 26, .45); display: flex; align-items: flex-end; justify-content: center; }
.pda-np, .pda-cf { width: 100%; max-width: 480px; background: var(--surface); border-radius: 16px 16px 0 0; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -8px 30px rgba(0, 0, 0, .2); }
.pda-np-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 15px; }
.pda-np-head span { color: var(--muted); font-size: 13px; }
.pda-np-val { display: block; text-align: right; font-size: 40px; font-weight: 800; padding: 6px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-variant-numeric: tabular-nums; min-height: 60px; }
.pda-np-warn { margin: 0; color: var(--amber); font-size: 13px; min-height: 0; }
.pda-np-warn:empty { display: none; }
.pda-np-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pda-np-keys button { height: 62px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font: inherit; font-size: 26px; font-weight: 700; color: var(--text); cursor: pointer; touch-action: manipulation; }
.pda-np-keys button:active { background: var(--primary-soft); }
.pda-np-keys button[data-k="C"], .pda-np-keys button[data-k="⌫"] { font-size: 20px; color: var(--muted); }
.pda-np-foot { display: flex; gap: 8px; }
.pda-np-foot .btn { flex: 1; min-height: 54px; font-size: 16px; }
.pda-np-foot .btn-primary { flex: 1.4; }
.pda-dest { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); }
.pda-dest span { display: flex; flex-direction: column; gap: 2px; }
.pda-dest.is-next { border: 2px solid var(--primary); background: var(--primary-soft); }
.pda-dest.is-done { opacity: .6; text-decoration: line-through; }
.pda-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pda-box { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.pda-box.is-next { border: 2px solid var(--primary); background: var(--primary-soft); }
.pda-box.is-done { background: var(--green-soft); }
.pda-actions { display: flex; gap: 8px; }
.pda-actions .btn { flex: 1; min-height: 52px; font-size: 15px; }
@media (max-width: 640px) {
  .wh-form3 { grid-template-columns: 1fr; }
  .wh-subnav a.wh-subnav-pda { margin-left: 0; }
  .pda-scan input { font-size: 17px; }
}
/* v10.0.176 umpan balik PDA: saran SKU, pesan berkedip, riwayat perangkat */
.pda-head-r { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pda-sug { display: flex; flex-direction: column; background: var(--surface); border: 2px solid var(--primary); border-radius: 12px; overflow: hidden; margin-top: -4px; box-shadow: var(--shadow); }
.pda-sug-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; border: 0; border-top: 1px solid #efece4; background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; touch-action: manipulation; }
.pda-sug-row:first-child { border-top: 0; }
.pda-sug-row:active, .pda-sug-row:hover { background: var(--primary-soft); }
.pda-sug-row span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pda-sug-row small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pda-sug-row em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--primary-2); background: var(--primary-soft); border-radius: 6px; padding: 3px 7px; white-space: nowrap; }
.pda-sug-empty { margin: 0; padding: 12px; color: var(--muted); font-size: 13px; }
.pda-msg.pda-busy { background: var(--surface-2); color: var(--muted); padding: 12px 14px; border: 1px dashed var(--line); }
.pda-msg.pda-ok { border-left: 0; font-weight: 600; }
.pda-flash { animation: pda-flash .5s ease-out; }
@keyframes pda-flash { 0% { transform: scale(.96); box-shadow: 0 0 0 4px rgba(47, 122, 79, .35); } 100% { transform: none; box-shadow: 0 0 0 0 rgba(47, 122, 79, 0); } }
@media (prefers-reduced-motion: reduce) { .pda-flash { animation: none; } }
.pda-last { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.pda-last-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 6px 0; border-top: 1px solid #efece4; color: var(--green); }
.pda-last-row small { color: var(--muted); white-space: nowrap; }
.pda-last-row.is-new { font-weight: 700; }
/* Hitung Cepat */
.pda-qc-page { font-weight: 700; font-size: 14px; color: var(--primary-2); background: var(--primary-soft); border-radius: 20px; padding: 4px 10px; }
.pda-qc-bar { height: 6px; border-radius: 3px; background: #e7e4dc; overflow: hidden; }
.pda-qc-bar span { display: block; height: 100%; background: var(--primary); }
.pda-qc-num { font-size: 28px; font-variant-numeric: tabular-nums; }
.pda-qc-val { width: 100%; height: 52px; margin-top: 2px; }
.pda-qc-diff { margin: 0; font-weight: 700; font-size: 15px; }
.pda-qc-ok { min-height: 56px; font-size: 16px; }
.pda-actions .btn:disabled { opacity: .45; }

.pda-scan .btn-primary { background: #3f7a66; border: 2px solid #8fb8a6; color: #fff; }
.pda-scan .btn-primary:active { background: #2f5d50; }
/* v10.0.177 FIFO */
.pda-batch { color: var(--primary-2) !important; font-weight: 600; }
.pda-fifo-note { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--amber-soft); color: #6b4708; font-size: 13px; }
/* v10.0.178 konfirmasi sebelum simpan + batalkan pindah terakhir */
.pda-cf { gap: 12px; outline: none; }
.pda-cf-sku { display: flex; flex-direction: column; gap: 2px; }
.pda-cf-sku b { font-size: 22px; }
.pda-cf-sku small { color: var(--muted); font-size: 13px; }
.pda-cf-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.pda-cf-route .pda-box b { font-size: 20px; overflow-wrap: anywhere; }
.pda-cf-arrow { font-size: 26px; font-weight: 800; color: var(--primary); }
.pda-cf-qty { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font: inherit; color: var(--text); cursor: pointer; touch-action: manipulation; text-align: left; }
.pda-cf-qty small { color: var(--muted); font-size: 12px; }
.pda-cf-qty b { font-size: 30px; font-variant-numeric: tabular-nums; }
.pda-undo { align-self: flex-start; margin: 2px 0 6px; min-height: 40px; }
.pda-last-row.is-undone { color: var(--muted); text-decoration: line-through; font-weight: 400; }
.pda-last-row.is-undone small.inline { text-decoration: none; }
/* Pratinjau impor panjang tetap menyisakan tombol simpan di desktop dan HP. */
.wh-import-display-modal .modal{display:flex;flex-direction:column;max-height:calc(100dvh - 80px)}
.wh-import-display-modal .modal-body{overflow:auto;min-height:0}
.wh-import-display-modal .modal-head,.wh-import-display-modal .modal-foot{flex-shrink:0}
.wh-import-display-modal .modal-foot{position:static}
#wdi-preview .table-scroll{max-height:340px;overflow:auto}
