/* ===========================================================
   PDA 手持端（独立移动端页面）
   =========================================================== */
html, body { height: 100%; }
body.pda-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(70% 60% at 50% 0%, #dbe9f4 0%, rgba(219, 233, 244, 0) 60%),
    #e9eff5;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
  font-family: "Inter", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
}

.pda-shell {
  width: 100%;
  max-width: 432px;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
}

@media (min-width: 600px) {
  body.pda-body { padding: 20px 0; align-items: center; }
  .pda-shell {
    height: min(910px, calc(100vh - 40px));
    min-height: 0;
    border-radius: 34px;
    border: 1px solid #b9cde0;
    box-shadow: 0 30px 80px rgba(8, 32, 54, 0.30);
  }
}

/* ---------- 状态栏 / 标题栏 ---------- */
.pda-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 22px 6px;
  font-size: 11px; color: #7b8fa3; letter-spacing: .4px;
  background: #fff;
  flex: none;
}
.pda-appbar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px 12px;
  background: #fff;
  border-bottom: 1px solid #e8f0f6;
  flex: none;
}
.pda-back {
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: transparent; color: #5b7287; font-size: 22px; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
}
.pda-back:hover { background: #eef5fa; color: var(--blue-700); }
.pda-appbar b { font-size: 15px; font-weight: 650; letter-spacing: .5px; color: var(--ink); }
.pda-step { margin-left: auto; font-size: 11px; color: #8fa1b3; letter-spacing: .3px; }

/* ---------- 屏幕 ---------- */
.pda-screen {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px 20px;
  background: linear-gradient(180deg, #f6fafd 0%, #f2f7fb 100%);
}
.pda-screen::-webkit-scrollbar { width: 4px; }
.pda-screen::-webkit-scrollbar-thumb { background: #d7e3ec; border-radius: 2px; }

/* ---------- 底部操作区 ---------- */
.pda-foot {
  display: flex; gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-top: 1px solid #e8f0f6;
  flex: none;
}
.pda-foot:empty { display: none; }
.pda-quicknav {
  display: flex; flex: none;
  padding: 5px 12px 4px;
  background: #fff; border-top: 1px solid #f0f5f9;
}
.pda-quicknav .pq {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 0; border: none; border-radius: 8px;
  background: transparent; color: #8a9aab;
  font-family: inherit; font-size: 10.5px; cursor: pointer;
}
.pda-quicknav .pq svg { width: 19px; height: 19px; }
.pda-quicknav .pq.on { color: #0b6fa8; font-weight: 600; }
.pda-quicknav .pq.on svg { color: #1e88d7; }
.pf-btn {
  flex: 1; height: 44px; border-radius: 10px;
  border: 1px solid #d3dfe9; background: #fff;
  color: #40566b; font-size: 13.5px; font-weight: 500;
  font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: filter .15s, transform .1s;
}
.pf-btn.pri {
  background: linear-gradient(92deg, #169bd5, #1e98d7);
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 16px rgba(30, 152, 215, .28);
}
.pf-btn:active { transform: translateY(1px); }
.pf-btn[disabled] { opacity: .42; cursor: not-allowed; box-shadow: none; }

/* ---------- 实体按键区 ---------- */
.pda-keys {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 34px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #0c2233;
  flex: none;
}
.pk {
  color: #8fa8bd; font-size: 11.5px; letter-spacing: 1px;
  cursor: pointer; padding: 8px 10px; border-radius: 8px;
  user-select: none; border: none; background: transparent; font-family: inherit;
}
.pk:hover { color: #fff; }
.pk.scan {
  width: 52px; height: 52px; padding: 0; border-radius: 50%;
  background: linear-gradient(135deg, #ffb020, #ff8a00);
  border: 1px solid #ffd27a;
  box-shadow: 0 0 18px rgba(255, 176, 32, .45);
  display: grid; place-items: center;
  color: #241300;
}
.pk.scan:hover { box-shadow: 0 0 26px rgba(255, 176, 32, .7); color: #241300; }
.pk.scan svg { width: 24px; height: 24px; }

/* ---------- 首页 ---------- */
.pda-hello { padding: 4px 4px 16px; }
.pda-hello b { display: block; font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: .2px; }
.pda-hello > span { display: block; margin-top: 5px; font-size: 11.5px; color: var(--muted); letter-spacing: .3px; }
.pda-chips { display: flex; gap: 8px; margin-top: 11px; }
.pda-chip {
  padding: 4px 11px; border-radius: 999px;
  background: #e8f4fd; color: #0b6fa8; font-size: 11.5px;
}
.pda-todo-title { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 10px; }
.pda-todo-title span { font-size: 12px; color: #7d90a3; }
.pda-todo-title b { font-size: 11.5px; font-weight: 500; color: #a0b0bf; }
.pda-todo-list { display: flex; flex-direction: column; gap: 10px; }
.pda-todo {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; text-align: left; font-family: inherit;
  background: #fff; border: 1px solid #e2ebf3; border-radius: 12px;
  cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .12s;
}
.pda-todo:hover { border-color: #8fc4e8; box-shadow: 0 6px 14px rgba(30, 152, 215, .12); }
.pda-todo:active { transform: scale(.985); }
.pda-todo-icon {
  width: 38px; height: 38px; flex: none; border-radius: 11px;
  display: grid; place-items: center; background: #eaf4fd; color: #1e88c7;
}
.pda-todo-icon svg { width: 20px; height: 20px; }
.pda-todo-main { flex: 1; min-width: 0; }
.pda-todo-main b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.pda-todo-main span {
  display: block; margin-top: 3px; font-size: 11px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pda-todo-count { flex: none; color: #0b6fa8; line-height: 1; text-align: right; }
.pda-todo-count b { font-size: 20px; font-weight: 700; }
.pda-todo-count em { margin-left: 2px; font-style: normal; font-size: 10px; color: var(--muted); }
.pda-todo-arrow { flex: none; color: #c0d0dd; font-size: 20px; line-height: 1; }

/* ---------- 个人中心 ---------- */
.pda-profile-hero {
  display: flex; align-items: center; gap: 13px;
  padding: 16px; border: 1px solid #d7e9f6; border-radius: 14px;
  background: linear-gradient(135deg, #eef8fe 0%, #f9fcff 100%);
}
.pda-profile-avatar {
  width: 54px; height: 54px; flex: none; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #0b6fa8, #169bd5);
  color: #fff; font-size: 21px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(11, 111, 168, .24);
}
.pda-profile-main { min-width: 0; }
.pda-profile-main b { display: block; font-size: 17px; color: var(--ink); }
.pda-profile-main span { display: block; margin-top: 3px; font-size: 11.5px; color: #5f7f96; }
.pda-profile-main em { display: block; margin-top: 4px; font-style: normal; font-size: 10.5px; color: var(--muted); }
.pda-profile-pwd {
  margin-left: auto; align-self: center; flex: none;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 4px 8px; border: 1px solid #cfe4f2; border-radius: 999px;
  background: #fff; color: #1e88d7;
  font-family: inherit; font-size: 10.5px; cursor: pointer; white-space: nowrap;
}
.pda-profile-pwd svg { width: 12px; height: 12px; }
.pda-profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.pda-profile-stat {
  padding: 10px 4px; text-align: center;
  background: #fff; border: 1px solid #e2ebf3; border-radius: 12px;
}
.pda-profile-stat b { display: block; font-size: 18px; font-weight: 700; color: #0b6fa8; line-height: 1.2; }
.pda-profile-stat span { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.pda-panel-title { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 8px; }
.pda-panel-title span { font-size: 12px; color: #7d90a3; }
.pda-panel-title b { font-size: 11px; font-weight: 500; color: #a0b0bf; }
.pda-profile-gap { margin-top: 18px; }
.pda-profile-tasks { display: flex; flex-direction: column; gap: 8px; }
.pda-profile-task {
  width: 100%; display: flex; align-items: flex-start; gap: 9px;
  padding: 11px 12px; background: #fff;
  border: 1px solid #e2ebf3; border-radius: 11px;
  font-family: inherit; text-align: left;
}
.pda-profile-task.is-clickable { cursor: pointer; }
.pda-profile-task.is-clickable:active { background: #f8fbfd; }
.pda-profile-task-tag {
  flex: none; padding: 2px 7px; border-radius: 6px;
  background: #eef7fd; color: #1b7fb8; font-size: 10px; line-height: 1.6;
}
.pda-profile-task-main { flex: 1; min-width: 0; }
.pda-profile-task-main b { display: block; font-size: 12px; font-weight: 600; color: var(--ink); }
.pda-profile-task-main span {
  display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pda-profile-task-status { flex: none; padding-top: 2px; font-size: 10.5px; color: #9a6812; white-space: nowrap; }
.pda-profile-task-status.done { color: #237a51; }
.pda-profile-task-arrow { flex: none; padding-top: 1px; color: #c0d0dd; font-size: 15px; line-height: 1; }

.pda-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pda-mi {
  background: #fff; border: 1px solid #e2ebf3; border-radius: 12px;
  padding: 14px 4px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12.5px; color: #40566b; letter-spacing: .2px;
  font-family: inherit; cursor: pointer;
  transition: border-color .15s, transform .12s, box-shadow .15s;
}
.pda-mi:hover { border-color: #8fc4e8; box-shadow: 0 6px 14px rgba(30, 152, 215, .14); }
.pda-mi:active { transform: scale(.97); }
.pda-mi svg { width: 24px; height: 24px; color: #1e88c7; }
.pda-footnote { text-align: center; color: var(--muted); font-size: 10.5px; margin-top: 18px; letter-spacing: .4px; }
.pda-links { display: flex; justify-content: center; gap: 18px; margin-top: 10px; font-size: 11.5px; }
.pda-links a { color: #7c9bb2; }
.pda-links a:hover { color: var(--blue-700); }

/* ---------- 作业步骤 ---------- */
.pda-lab { font-size: 12px; color: #7d90a3; margin: 2px 2px 10px; letter-spacing: .3px; }

.scanbox {
  position: relative; overflow: hidden;
  border: 1px dashed #c9d9e6; border-radius: 12px;
  padding: 22px 14px; text-align: center;
  color: #8a9aab; background: #fbfdff; font-size: 12px;
  transition: border-color .15s, background .15s;
}
.scanbox .code { display: block; margin-top: 6px; font-size: 19px; letter-spacing: 1.5px; color: #0b6fa8; font-weight: 700; }
.scanbox.on { border-style: solid; border-color: #7fc2e8; background: #f1f9fe; color: #5b7c93; }
.scanbox.scanning::after {
  content: ""; position: absolute; left: 8%; right: 8%; top: 6%; height: 2px;
  background: linear-gradient(90deg, transparent, #ff3b3b, transparent);
  box-shadow: 0 0 12px #ff3b3b;
  animation: pdaScan .5s linear infinite;
}
@keyframes pdaScan { 0% { top: 6%; } 50% { top: 92%; } 100% { top: 6%; } }
.pda-hint { color: #8a9aab; font-size: 11.5px; margin-top: 10px; text-align: center; line-height: 1.7; }

.pda-task .trow {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #e2ebf3; border-radius: 12px;
  padding: 12px 14px; margin-bottom: 10px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.pda-task .trow:hover { border-color: #8fc4e8; }
.pda-task .trow.sel { border-color: #58b4e0; background: #f2f9fe; }
.pda-task .inf { flex: 1; min-width: 0; }
.pda-task .inf b { display: block; font-size: 13px; font-weight: 500; color: var(--ink); }
.pda-task .inf span { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.pda-badge { flex: none; font-size: 10.5px; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.pda-badge.g { background: #eaf7f0; color: #237a51; }
.pda-badge.c { background: #e8f4fd; color: #146fa9; }
.pda-badge.b { background: #f2f5f8; color: #7d8d9d; }

.pda-info { background: #fff; border: 1px solid #e2ebf3; border-radius: 12px; padding: 2px 14px; }
.pda-info .prow {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid #eff4f8; font-size: 12.8px;
}
.pda-info .prow:last-child { border-bottom: none; }
.pda-info .prow span { color: #7d90a3; flex: none; }
.pda-info .prow b { color: #33475b; font-weight: 500; text-align: right; line-height: 1.5; }

.pda-qty { display: flex; align-items: center; justify-content: center; gap: 26px; padding: 30px 0 22px; }
.pda-qty button {
  width: 48px; height: 48px; border-radius: 14px;
  border: 1px solid #d3dfe9; background: #fff;
  color: #40566b; font-size: 22px; cursor: pointer;
}
.pda-qty button:hover { border-color: #58b4e0; color: var(--blue-700); }
.pda-qty .val { text-align: center; min-width: 92px; }
.pda-qty .val b { display: block; font-size: 40px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.pda-qty .val span { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); }

/* ---------- 组盘确认：托盘码 + 多货品条码 ---------- */
.pda-pallet-card {
  background: linear-gradient(135deg, #eef8fe 0%, #f8fcff 100%);
  border: 1px solid #cbe6f6;
  border-radius: 14px;
  padding: 14px 16px 13px;
  margin-bottom: 16px;
}
.pp-head { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: #6b8ba3; }
.pp-code {
  margin-top: 6px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 21px; font-weight: 700; letter-spacing: 1.2px; color: #0b6fa8;
}
.pp-bar {
  width: 190px; max-width: 70%; height: 22px; margin-top: 8px;
  background: repeating-linear-gradient(90deg, #0b5e8c 0 2px, transparent 2px 3px, #0b5e8c 3px 5px, transparent 5px 8px, #0b5e8c 8px 9px, transparent 9px 12px);
  opacity: .65; border-radius: 2px;
}
.pp-meta { margin-top: 8px; font-size: 11.5px; color: #7d90a3; }

.pda-goods-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 2px 2px 8px; font-size: 12px; color: #40566b;
}
.pda-goods-head button {
  border: none; background: transparent; color: #1e88d7;
  font-size: 11.5px; font-family: inherit; cursor: pointer; padding: 3px 6px;
}
.pda-goods-head button:hover { text-decoration: underline; }
.pda-goods-full { font-size: 10.5px; color: var(--muted); }
.pda-goods { display: grid; gap: 9px; }
.pda-goods-row { background: #fff; border: 1px solid #e2ebf3; border-radius: 12px; padding: 11px 13px; }
.pda-goods-row-del { position: relative; padding-right: 44px; }
.pda-goods-row b em { font-style: normal; font-weight: 400; font-size: 11px; color: var(--muted); margin-left: 4px; }
.g-del {
  position: absolute; right: 8px; top: 8px;
  width: 26px; height: 26px; border: none; border-radius: 50%;
  background: #f3f7fa; color: #8a9aab; font-size: 16px; line-height: 1;
  cursor: pointer; font-family: inherit;
}
.g-del:hover { background: #fdeeee; color: #d64545; }
.pda-goods-tip { font-size: 10.5px; color: var(--muted); }
.pda-goods-empty {
  margin-top: 10px; padding: 22px 14px; text-align: center;
  color: var(--muted); font-size: 11.5px;
  background: #f8fbfd; border: 1px dashed #d7e5f0; border-radius: 12px;
}
.pda-ship-row .ship-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pda-ship-row .ship-top b { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: var(--ink); }
.pda-ship-row .ship-sub { margin-top: 6px; font-size: 11.5px; color: #7d90a3; }
.pda-ship-row .ship-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 11.5px; color: #40566b; }
.pda-ship-row .ship-del {
  border: none; background: #f3f7fa; color: #8a9aab;
  border-radius: 8px; padding: 4px 9px; font-size: 11px; font-family: inherit; cursor: pointer;
}
.pda-ship-row .ship-del:hover { background: #fdeeee; color: #d64545; }

/* 扫码后的货品信息卡 */
.pda-scan-detail {
  margin-top: 14px; padding: 13px 15px;
  background: #fff; border: 1px solid #d8e9f6; border-radius: 13px;
}
.sd-head { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: #6b8ba3; }
.sd-code {
  display: flex; align-items: center; gap: 9px;
  margin-top: 8px; font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 15px; font-weight: 700; letter-spacing: .5px; color: #0b6fa8;
}
.sd-code .bar {
  width: 24px; height: 13px; flex: none; border-radius: 1px;
  background: repeating-linear-gradient(90deg, #0b6fa8 0 2px, transparent 2px 3px, #0b6fa8 3px 4px, transparent 4px 6px);
}
.sd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 11px; }
.sd-item span { display: block; font-size: 10.5px; color: var(--muted); }
.sd-item b { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--ink); }
.sd-foot { margin-top: 10px; padding-top: 9px; border-top: 1px dashed #e4eef6; font-size: 11px; color: #7d90a3; }
.pda-scan-empty {
  margin-top: 14px; padding: 22px 14px; text-align: center;
  font-size: 11.5px; color: var(--muted);
  background: #f8fbfd; border: 1px dashed #d7e5f0; border-radius: 12px;
}
.g-barcode {
  display: flex; align-items: center; gap: 8px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12.5px; letter-spacing: .4px; color: #0b6fa8;
}
.g-barcode .bar {
  width: 22px; height: 12px; flex: none; border-radius: 1px;
  background: repeating-linear-gradient(90deg, #0b6fa8 0 2px, transparent 2px 3px, #0b6fa8 3px 4px, transparent 4px 6px);
}
.pda-goods-row b { display: block; margin-top: 7px; font-size: 13px; font-weight: 600; color: var(--ink); }
.g-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 5px; font-size: 11.5px; color: var(--muted);
}
.g-meta .qty { color: #0b6fa8; font-weight: 600; }
.pda-pallet-sum {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin-top: 14px; padding: 12px 14px;
  background: #f6fafd; border: 1px solid #e2eef7; border-radius: 12px;
}
.pda-pallet-sum span { font-size: 11.5px; color: #7d90a3; }
.pda-pallet-sum b { margin-left: 4px; font-size: 13px; color: #0b6fa8; }

.pda-done { text-align: center; padding-top: 40px; }.pda-done .ck {
  width: 78px; height: 78px; border-radius: 50%;
  border: 2px solid #2e9e6b; color: #2e9e6b;
  display: grid; place-items: center; margin: 0 auto 18px;
  font-size: 38px; line-height: 1;
  box-shadow: 0 0 32px rgba(46, 158, 107, .22);
  animation: pdaCk .35s ease;
}
@keyframes pdaCk { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pda-done b { display: block; font-size: 17px; letter-spacing: .5px; color: var(--ink); }
.pda-done p { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 10px; padding: 0 18px; }

/* ---------- 仓库 / 货主上下文条 ---------- */
.pda-context {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  background: #f8fbfd;
  border-bottom: 1px solid #e8f0f6;
  font-size: 11.5px; color: #7d90a3;
  flex: none;
}
.pda-context b { color: #0b6fa8; font-weight: 600; }
.pda-context .ctx-sep { color: #c3d2df; }
.ctx-switch {
  margin-left: auto; border: none; background: transparent;
  color: #1e88d7; font-size: 11.5px; cursor: pointer;
  padding: 2px 6px; font-family: inherit;
}
.ctx-logout {
  border: none; background: transparent;
  color: #8a9aab; font-size: 11.5px; cursor: pointer;
  padding: 2px 6px; font-family: inherit;
}
.ctx-switch:hover, .ctx-logout:hover { text-decoration: underline; }

/* ---------- 模式控制 ---------- */
.pda-shell.mode-login .pda-context,
.pda-shell.mode-login .pda-foot,
.pda-shell.mode-login .pda-quicknav,
.pda-shell.mode-login .pda-keys { display: none; }
.pda-shell.mode-login .pda-back { display: none; }
.pda-shell.mode-scope .pda-context,
.pda-shell.mode-scope .pda-quicknav,
.pda-shell.mode-scope .pda-keys { display: none; }

/* ---------- 登录页 ---------- */
.pda-login { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 10px 6px 26px; }
.pda-login-brand { display: flex; flex-direction: column; align-items: center; gap: 9px; margin-bottom: 24px; }
.pda-login-brand .mark {
  width: 58px; height: 58px; border-radius: 17px;
  background: linear-gradient(145deg, #0b6fa8, #169bd5);
  color: #fff; font-weight: 800; font-size: 26px;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(11, 111, 168, .28);
}
.pda-login-brand b { font-size: 19px; color: var(--ink); font-weight: 700; }
.pda-login-brand span { font-size: 10.5px; color: var(--muted); letter-spacing: 2px; }
.pda-login h2 { font-size: 22px; font-weight: 700; color: var(--ink); text-align: left; }
.pda-login .sub { font-size: 12px; color: var(--muted); margin-top: 6px; text-align: left; line-height: 1.7; }
.pda-form { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; }
.pda-form label { font-size: 12px; color: #40566b; margin-top: 7px; }
.pda-input {
  height: 44px; width: 100%; box-sizing: border-box;
  border: 1px solid #d3dfe9; border-radius: 10px;
  padding: 0 12px; font-size: 14px; color: var(--ink);
  background: #fff; outline: none; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.pda-input:focus { border-color: #58b4e0; box-shadow: 0 0 0 4px rgba(30, 152, 215, .12); }
.pda-primary {
  height: 46px; width: 100%; border: none; border-radius: 11px;
  background: linear-gradient(92deg, #169bd5, #1e98d7);
  color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 2px;
  margin-top: 16px; cursor: pointer; font-family: inherit;
  box-shadow: 0 8px 20px rgba(30, 152, 215, .28);
}
.pda-primary:active { transform: translateY(1px); }
.pda-login-tip { margin-top: 14px; text-align: center; font-size: 11px; color: var(--muted); }

/* ---------- 选择仓库 / 货主 ---------- */
.pda-scope-note {
  background: #f1f9fe; border: 1px solid #d6ecfa; color: #4f7894;
  font-size: 11.5px; line-height: 1.7; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 16px;
}
.pda-scope-group { margin-bottom: 18px; }
.pda-scope-label {
  font-size: 12px; font-weight: 600; color: #40566b;
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.pda-scope-label::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: #1e98d7; }
.pda-options { display: grid; gap: 9px; }
.pda-option {
  position: relative; text-align: left;
  background: #fff; border: 1px solid #e2ebf3; border-radius: 12px;
  padding: 12px 42px 12px 14px;
  cursor: pointer; font-family: inherit;
  transition: border-color .15s, background .15s;
}
.pda-option b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.pda-option span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.pda-option i {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid #c9d9e6;
  display: grid; place-items: center;
  font-style: normal; font-size: 11px; color: transparent;
}
.pda-option.on { border-color: #58b4e0; background: #f2f9fe; }
.pda-option.on i { background: #1e98d7; border-color: #1e98d7; color: #fff; }
.pda-scope-wait {
  padding: 26px 16px; text-align: center;
  border: 1px dashed #d7e5f0; border-radius: 12px;
  background: #fbfdff; color: var(--muted);
  font-size: 11.5px; line-height: 1.7;
}
.pda-scope-hint { margin-top: 7px; font-size: 11px; color: var(--muted); }
.pda-scope-hint:empty { display: none; }

/* ---------- 应用内确认弹层 ---------- */
.pda-sheet-mask {
  position: absolute; inset: 0; z-index: 30;
  background: rgba(12, 34, 51, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.pda-sheet {
  width: 100%; max-width: 300px;
  background: #fff; border-radius: 15px;
  padding: 20px 18px 14px;
  box-shadow: 0 20px 50px rgba(8, 32, 54, .30);
}
.pda-sheet b { display: block; font-size: 15px; color: var(--ink); text-align: center; }
.pda-sheet p { margin: 10px 0 18px; font-size: 12.5px; line-height: 1.7; color: var(--ink-3); text-align: center; }
.pda-sheet-btns { display: flex; gap: 10px; }
.pda-sheet-btns button {
  flex: 1; height: 40px; border-radius: 9px;
  border: 1px solid #d3dfe9; background: #fff;
  color: #40566b; font-size: 13px; font-family: inherit; cursor: pointer;
}
.pda-sheet-btns button.pri { background: #1e98d7; border-color: #1e98d7; color: #fff; }
.pda-sheet.pda-form-sheet { max-width: 340px; }
.pda-sheet-form-fields { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.pda-sheet-form-fields label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 11.5px; color: #7d90a3;
}
.pda-sheet-form-fields .pda-input { height: 40px; font-size: 13px; }
.pda-form-sheet .pda-sheet-btns { margin-top: 14px; }
.pda-sheet.pda-detail-sheet { max-width: 340px; max-height: calc(100% - 32px); overflow-y: auto; }
.pda-detail-code {
  margin-top: 2px; text-align: center;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 14px; font-weight: 600; color: #0b6fa8;
}
.pda-detail-list { margin-top: 12px; border-top: 1px solid #eef4f8; }
.pda-detail-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 8px 0; border-bottom: 1px solid #f2f6f9; font-size: 12px;
}
.pda-detail-row:last-child { border-bottom: 0; }
.pda-detail-row span { flex: none; color: #7d90a3; }
.pda-detail-row b {
  min-width: 0; padding: 0; color: #33475b; font-size: 12px; font-weight: 500;
  text-align: right; line-height: 1.5; word-break: break-word;
}
.pda-detail-subtitle {
  margin: 14px 0 8px; padding-top: 10px;
  border-top: 1px solid #eef4f8; font-size: 11.5px; color: #7d90a3;
}
.pda-detail-lines { display: flex; flex-direction: column; gap: 8px; }
.pda-detail-line {
  padding: 9px 10px; border: 1px solid #e8f0f6;
  border-radius: 9px; background: #fbfdff;
}
.pda-detail-line-top { display: flex; justify-content: space-between; gap: 10px; }
.pda-detail-line-top b {
  padding: 0; font-size: 12px; font-weight: 600; color: #33475b;
  text-align: left; line-height: 1.45;
}
.pda-detail-line-top span { flex: none; font-size: 11.5px; font-weight: 600; color: #0b6fa8; }
.pda-detail-line-meta {
  display: flex; flex-wrap: wrap; gap: 2px 10px;
  margin-top: 4px; font-size: 10.5px; color: #7d90a3;
}
.pda-detail-line-barcode {
  margin-top: 4px; font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10.5px; color: #7d90a3;
}

/* ---------- Toast 适配移动端 ---------- */
body.pda-body .toast-wrap {
  position: fixed; top: 84px; bottom: auto; left: 50%; right: auto;
  transform: translateX(-50%);
  width: 100%; max-width: 432px;
  padding: 0 20px;
  align-items: center;
}
body.pda-body .toast { min-width: 0; max-width: 100%; }

/* ---------- 自主移库 ---------- */
.sm-tabs {
  display: flex; gap: 4px; margin-bottom: 14px;
  background: #edf3f8; padding: 4px; border-radius: 12px;
}
.sm-tab {
  flex: 1; height: 36px; border: none; border-radius: 9px;
  background: transparent; color: #5c6f82; font-size: 13px; font-family: inherit; cursor: pointer;
}
.sm-tab.on { background: #fff; color: #0b6fa8; font-weight: 600; box-shadow: 0 1px 3px rgba(16, 42, 67, .12); }
.sm-one-tab { display: flex; gap: 6px; align-items: center; }
.pda-off-from {
  display: inline-block; margin-bottom: 10px; padding: 4px 10px;
  background: #edf5fb; border-radius: 8px; font-size: 11.5px; color: #3f6f92;
}
.pda-off-from b { color: #0b6fa8; }
.sm-records { display: grid; gap: 9px; }
.sm-record {
  text-align: left; width: 100%; font-family: inherit; cursor: pointer;
  background: #fff; border: 1px solid #e2ebf3; border-radius: 12px;
  padding: 11px 13px; display: flex; flex-direction: column; gap: 6px;
}
.sm-record.on { border-color: #1e98d7; box-shadow: 0 0 0 2px rgba(30, 152, 215, .14); }
.sm-record-main b { font-size: 13px; color: #1f2d3d; }
.sm-record-main b em { font-style: normal; font-weight: 400; font-size: 11px; color: #8a9aab; margin-left: 4px; }
.sm-record-main span { display: block; margin-top: 3px; font-size: 11px; color: #8a9aab; }
.sm-record-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: #546a7f; }
.sm-record-meta b { color: #1f2d3d; font-size: 12.5px; }
.sm-record-time { font-size: 10.5px; color: #a0adba; }
.sm-done-tip {
  margin-top: 14px; padding: 10px 12px;
  background: #eaf7f0; border: 1px solid #bfe3d1; border-radius: 10px;
  color: #2c8c63; font-size: 11.5px; line-height: 1.55;
}

/* ---------- PDA 盘点：库位清单与对账结果 ---------- */
.count-order-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 12px 14px; background: #fff; border: 1px solid #e2ebf3; border-radius: 12px;
}
.count-order-head b { display: block; font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; color: #0b6fa8; }
.count-order-head span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.count-order-head .count-progress {
  flex: none; margin-top: 0; padding: 4px 9px; border-radius: 999px;
  background: #eef6fc; color: #40566b; font-size: 11.5px;
}
.count-slot-row { padding: 10px 12px; }
.count-slot-line { display: flex; align-items: center; gap: 10px; }
.count-slot-line b { flex: 0 0 auto; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12.5px; color: var(--ink); }
.count-slot-line span {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11.5px; color: var(--muted);
}
.count-result-sum {
  padding: 12px 14px; background: #fff; border: 1px solid #e2ebf3; border-radius: 12px;
}
.count-result-sum b { display: block; font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; color: #0b6fa8; }
.count-result-sum span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.count-result-sum em {
  display: block; margin-top: 7px; padding: 5px 8px; border-radius: 8px;
  background: #f2f8fc; color: #40566b; font-size: 11.5px; font-style: normal;
}
.count-result-row { padding: 10px 12px; }
.cr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cr-head b { font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; color: var(--ink); }
.cr-mark {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px; font-size: 13px; font-weight: 700;
}
.cr-mark.ok { background: #eaf7f0; color: #237a51; }
.cr-mark.bad { background: #fdeeee; color: #b63c3c; }
.cr-mark.pending { background: #f2f5f8; color: #8a9aab; font-size: 10px; font-weight: 500; }
.cr-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.cr-goods {
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e4eef6;
  font-size: 11px; color: var(--muted); line-height: 1.6; word-break: break-all;
}
.count-goods-inline {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e4eef6;
  font-size: 11.5px; color: var(--muted); line-height: 1.6; word-break: break-all;
}
.count-goods-inline b { color: var(--ink); font-weight: 600; }
.count-goods-inline em { font-style: normal; color: var(--muted); }
.count-goods-inline .mono { font-family: "SFMono-Regular", Consolas, monospace; color: #0b6fa8; }
