/* 放心寄 · 店主后台 —— 简洁大方清爽（浅色通栏 + 浅色导航 + 红色点缀）
 * 色板：bg#F6F7F9 卡#FFF 线#EDEFF2 主#D6362B 绿#0E8A63 琥珀#B7791F 蓝#1E6FD9
 * 设计原则：大量留白、细边框代替重投影、圆角统一 10/14、主色只用在「当前/强调」
 */
:root {
  /* 🔴 2026-10-15：显式声明浅色 —— 不声明时，系统深色模式 / 高对比度主题会把表单控件
     的浅灰边框强制加深成近黑（店主报障「打单页全是黑色框框」），声明后浏览器按浅色渲染。 */
  color-scheme: light;
  --bg: #F6F7F9; --card: #fff; --line: #EDEFF2; --line2: #E2E5EA;
  --tx: #1B1F24; --mu: #8A9099; --mu2: #5B6270;
  --pri: #D6362B; --pri-bg: #FEF1F0;
  --ok: #0E8A63; --ok-bg: #E7F6F0;
  --warn: #B7791F; --warn-bg: #FDF5E6;
  --info: #1E6FD9; --info-bg: #EAF2FE;
  --gray-bg: #F2F3F5;
  --hover: #F7F8FA;
  --r: 10px; --r2: 14px;
  --sh: 0 1px 2px rgba(16,24,40,.04), 0 6px 20px -14px rgba(16,24,40,.14);
  --sh2: 0 18px 50px -24px rgba(16,24,40,.30), 0 2px 6px rgba(16,24,40,.04);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--tx);
  font: 14px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--info); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.mono { font-family: ui-monospace, Consolas, "Courier New", monospace; }
.hide { display: none !important; }
.mut { color: var(--mu); }
.small { font-size: 12px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }

/* ---------- 登录：品牌展示 + 账号密码（2026-11-07 改版） ----------
   🔴 店主 11-07：飞机 / 高铁 / 货车背景全部去掉；要有放心寄自己的展示（名字、定位、服务对象）。
   左边讲业务，右边登录。主账号 / 子账号只是页签提示，身份仍以后端 pu_user.role 为准。 */
#login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 32px 20px; background: var(--bg);
}
.loginWrap {
  width: 100%; max-width: 940px; display: grid; grid-template-columns: 388px minmax(0, 1fr);
  background: var(--card); border: 1px solid var(--line2);
  border-radius: 18px; overflow: hidden; box-shadow: var(--sh2);
}

/* 左：品牌区（青绿渐变，取色自小程序头像主色 #0C7890 → 压深到 #08554A）
   🔴 2026-11-07 店主：之前做的是一整块红底，与小程序那头像（青绿）不搭；
      改成绿色渐变，和 LOGO 同一支色，顺便呼应「产地直发」的生鲜定位。 */
.loginBrand {
  /* 2026-11-07 店主：「还是用渐变色」—— 上一版三档太接近，看上去像一整块纯色。
     这里把明暗差拉开（浅绿 → 墨绿 → 近黑绿），并把角度压到 150deg，左上到右下有明显过渡。 */
  background: linear-gradient(150deg, #3A9578 0%, #1C6449 45%, #07372A 100%);
  color: #fff; padding: 36px 32px 30px; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
/* 右上角一圈极淡高光，避免纯渐变显得平板 */
.loginBrand::after {
  content: ''; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 62%);
  pointer-events: none;
}
.lbTop { display: flex; align-items: center; gap: 11px; position: relative; z-index: 1; }
.lbMark {
  width: 48px; height: 48px; border-radius: 50%; flex: none; overflow: hidden;
  background: #fff; box-shadow: 0 6px 16px -8px rgba(0,0,0,.5);
}
.lbMark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lbName { font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.lbSub { font-size: 11.5px; color: rgba(255,255,255,.72); margin-top: 2px; }
.lbHead { margin-top: 30px; font-size: 21px; font-weight: 700; line-height: 1.45; }
.lbDesc { margin-top: 10px; font-size: 12.5px; line-height: 1.75; color: rgba(255,255,255,.78); }
.lbTags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.lbTags span { font-size: 11.5px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22); }
.lbList { margin-top: 24px; display: flex; flex-direction: column; gap: 11px; }
.lbList div { display: flex; gap: 9px; font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,.9); }
.lbList i { width: 5px; height: 5px; border-radius: 50%; background: #8FD9BE; margin-top: 7px; flex: none; }
.lbFoot { margin-top: auto; padding-top: 24px; font-size: 11.5px; color: rgba(255,255,255,.68); }

/* 右：登录卡 */
.loginCard { padding: 34px 36px 26px; position: relative; }
.loginCard h1 { margin: 0; font-size: 19px; font-weight: 700; }
.lcSub { margin: 5px 0 0; font-size: 12.5px; color: var(--mu); }
.ltabs { display: flex; gap: 26px; margin-top: 24px; border-bottom: 1px solid var(--line); }
.ltab {
  background: none; border: 0; padding: 0 0 11px; margin-bottom: -1px; cursor: pointer;
  font-size: 14px; color: var(--mu2); border-bottom: 2px solid transparent;
}
.ltab.on { color: var(--tx); font-weight: 700; border-bottom-color: #24725F; }
.lhint { margin-top: 10px; min-height: 17px; font-size: 11.5px; color: var(--mu2); }
.lfg { margin-top: 13px; }
.lfg label { display: block; font-size: 12px; color: var(--mu2); margin-bottom: 6px; }
.lfg input {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line2); background: #fff; font-size: 14px;
}
.lfg input:focus { outline: none; border-color: #24725F; box-shadow: 0 0 0 3px rgba(36,114,95,.13); }
.lpw { position: relative; }
.lpw input { padding-right: 54px; }
.lpw button {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; padding: 6px; font-size: 11.5px; color: var(--mu); cursor: pointer;
}
.lrow { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; }
.lrow label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mu2); cursor: pointer; }
.lrow a { font-size: 12.5px; color: var(--mu2); }
.lrow a:hover { color: #24725F; }
.lbtn {
  width: 100%; height: 42px; margin-top: 18px; border: 0; border-radius: 10px;
  background: linear-gradient(135deg, #2A8A72 0%, #14614C 100%); color: #fff;
  font-size: 14.5px; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 22px -14px rgba(11,113,86,.9);
}
.lbtn:hover { background: linear-gradient(135deg, #247A65 0%, #105442 100%); }
.lbtn:disabled { opacity: .6; cursor: default; }
.ltip { margin-top: 12px; min-height: 18px; font-size: 12.5px; color: var(--pri); }
.ltip.ok { color: #0E8A63; }
.lfoot { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--mu); }
.lfoot a { color: #1E7F69; font-weight: 700; }
/* 「免费体验」小标：跟在「申请开通」后面，比正文更轻，不抢链接的注意力 */
.lfree {
  display: inline-block; margin-left: 7px; padding: 1px 7px;
  font-size: 11px; line-height: 1.6; font-weight: 700; font-family: inherit;
  color: #165442; background: #E9F4EF; border: 1px solid #CBE3DA;
  border-radius: 999px; vertical-align: 1px; cursor: pointer;
}
.lfree:hover { background: #DCEDE5; }
.lfree:disabled { opacity: .6; cursor: default; }
.lhelp { margin-top: 8px; text-align: center; font-size: 11.5px; color: var(--mu); }

/* ---- 「或」分隔 + 微信扫码登录（2026-11-07）----
   微信登录 = 不用记密码、不发短信（省短信费）。依赖小程序 pages/admin/login，
   新版小程序过审上线后服务端才会给出可扫的码。 */
.lor { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; color: var(--mu); font-size: 11.5px; }
.lor::before, .lor::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.lwxBtn {
  width: 100%; height: 42px; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line2); border-radius: 10px; background: #fff;
  font-size: 14px; font-weight: 700; color: #1B5E4C; cursor: pointer; font-family: inherit;
}
.lwxBtn:hover { background: #F3F9F6; border-color: #BFDCCF; }
.lwxBtn:disabled { opacity: .6; cursor: default; }
.lwxDot { width: 15px; height: 15px; border-radius: 50%; background: linear-gradient(135deg, #2AAE67, #0E8A63); display: inline-block; }

/* 覆盖式小面板：微信扫码 / 找回密码。盖住整张登录卡，关掉就回账号密码。 */
.lqPane {
  position: absolute; inset: 0; z-index: 5; background: var(--card);
  padding: 26px 32px 22px; overflow: auto;
}
.lqHead { display: flex; align-items: center; justify-content: space-between; }
.lqHead b { font-size: 16px; }
.lqX { background: none; border: 0; font-size: 22px; line-height: 1; color: var(--mu); cursor: pointer; padding: 0 2px; }
.lqQr {
  margin: 16px auto 0; width: 196px; height: 196px; border: 1px solid var(--line2); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden;
}
.lqQr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lqPh { font-size: 12px; color: var(--mu); text-align: center; padding: 0 12px; line-height: 1.7; }
.lqTip { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--mu2); min-height: 18px; line-height: 1.6; }
.lqTip.err { color: var(--pri); }
.lqTip.ok { color: #0E8A63; }
.lqActs { margin-top: 12px; display: flex; justify-content: center; gap: 16px; }
.lqLink { background: none; border: 0; font-size: 12.5px; color: #1E7F69; cursor: pointer; padding: 2px; font-family: inherit; }
.lqNote { margin-top: 14px; font-size: 11.5px; line-height: 1.75; color: var(--mu); }
.lqSub { margin: 6px 0 2px; font-size: 12.5px; color: var(--mu); line-height: 1.7; }
.lqCode { display: flex; gap: 8px; }
.lqCode input {
  flex: 1; min-width: 0; height: 42px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line2); background: #fff; font-size: 14px;
}
.lqCode input:focus { outline: none; border-color: #24725F; box-shadow: 0 0 0 3px rgba(36,114,95,.13); }
.lqCode button {
  flex: none; width: 112px; height: 42px; border-radius: 10px; border: 1px solid #CBE3DA;
  background: #EFF7F3; color: #165442; font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.lqCode button:hover { background: #E3F1EA; }
.lqCode button:disabled { opacity: .6; cursor: default; }

/* 账号信息弹窗里的「微信绑定」块 */
.acctTop { font-size: 13px; color: var(--mu2); }
.acctTop b { color: var(--tx); }
.acctH { margin-top: 14px; font-size: 12.5px; font-weight: 700; color: var(--tx); }
.acctEmpty { margin-top: 8px; font-size: 12.5px; color: var(--mu); }
.acctList { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.acctRow {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border: 1px solid var(--line2); border-radius: 8px; font-size: 12.5px;
}
.acctTail { font-weight: 700; }
.acctWhen { color: var(--mu); flex: 1; }
.acctUn { padding: 3px 10px; font-size: 12px; }
.acctBindBox { margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.acctHint { font-size: 12px; color: var(--mu); line-height: 1.65; }
.acctQrWrap { margin-top: 12px; text-align: center; }
.acctQr { width: 180px; height: 180px; margin: 0 auto; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; }
.acctQr img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* 手机上不砍品牌：缩成一条青绿页头（LOGO + 名字 + 标语），正文简介收起。
   全砍掉就变成「一个没有主人的登录框」，客户不知道自己在登谁的系统。 */
@media (max-width: 760px) {
  #login { padding: 14px 12px; align-items: flex-start; }
  .loginWrap { grid-template-columns: 1fr; }
  .loginBrand { padding: 20px 22px 18px; }
  .lbMark { width: 38px; height: 38px; }
  .lbName { font-size: 15px; }
  .lbSub { font-size: 11px; }
  .lbHead { margin-top: 12px; font-size: 15px; line-height: 1.4; }
  .lbHead br { display: none; }
  .lbDesc, .lbTags, .lbList, .lbFoot { display: none; }
  .loginCard { padding: 22px 22px 20px; }
  .loginCard h1 { font-size: 17px; }
  /* 覆盖面板在窄屏上要能滚（找回密码有 4 个输入框，竖屏装不下） */
  .lqPane { padding: 18px 18px 16px; }
  .lqQr { width: 168px; height: 168px; margin-top: 12px; }
  .lqCode button { width: 100px; }
}

/* ---------- 顶部通栏（白底细线，简洁） ---------- */
#app { display: flex; flex-direction: column; min-height: 100vh; }
.top {
  height: 56px; flex: none; background: #fff; color: var(--tx);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 20px;
  position: sticky; top: 0; z-index: 30;
}
.topBrand { font-size: 15px; letter-spacing: .3px; color: var(--tx); white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.topBrand b { font-weight: 700; font-size: 16px; }
.brandMark {
  width: 30px; height: 30px; border-radius: 50%; flex: none; overflow: hidden;
  background: #fff; border: 1px solid var(--line2);
  display: inline-flex; align-items: center; justify-content: center;
}
.brandMark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brandSub { color: var(--mu); font-size: 13px; font-weight: 400; }
.top .sp { flex: 1; }
.topRight { display: flex; align-items: center; gap: 4px; min-width: 0; }
.topLink {
  color: var(--mu2); font-size: 13px; padding: 6px 11px; border-radius: 8px;
  cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.topLink:hover { color: var(--tx); background: var(--hover); }
.topSep { width: 1px; height: 18px; background: var(--line2); margin: 0 6px; }
#topMeta { font-size: 12.5px; color: var(--mu2); }

/* ---------- 顶栏「页面缩放」开关（2026-10-28 店主） ----------
   − 100% ＋ ；点百分比一键回 100%。只作用于 #view（见下方 zoom 规则），
   顶栏与左侧导航不缩，保证小屏上导航仍然一眼看清。 */
.zoomBox {
  display: inline-flex; align-items: center; gap: 1px; height: 26px; padding: 0 4px;
  border: 1px solid var(--line2); border-radius: 8px; background: #fff;
  -webkit-user-select: none; user-select: none;
}
.zoomBox .zBtn {
  width: 20px; height: 22px; border-radius: 6px; cursor: pointer; color: var(--mu2);
  font-size: 14px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.zoomBox .zBtn:hover { background: var(--hover); color: var(--tx); }
.zoomBox b { min-width: 42px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--tx); cursor: pointer; }
.zoomBox b:hover { color: var(--pri); }

/* 当前登录身份（顶栏「退出登录」左边）：子账号 = 姓名 + 电话，悬停看地址 */.mePill {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px;
  border-radius: 999px; background: #F6F7F9; border: 1px solid var(--line2);
  max-width: 260px; min-width: 0; cursor: default;
}
.mePill:hover { background: var(--hover); }
.meAva {
  width: 26px; height: 26px; border-radius: 50%; flex: none; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #E24A3E 0%, #C22B21 100%);
}
.mePill.sub .meAva { background: linear-gradient(135deg, #3E7BE2 0%, #2456B8 100%); }
.meBox { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; text-align: left; }
.meBox b { font-size: 12.5px; font-weight: 600; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meBox em { font-style: normal; font-size: 11px; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meBox em:empty { display: none; }

/* ---------- 布局：浅色左侧导航（摊开） ---------- */
.shell { flex: 1; display: flex; align-items: stretch; min-height: 0; }
.side {
  /* 2026-11-12 店主：「导航框可以收窄一点」+ 全站自适应：206 → 180，
     省下的 26px 全给右侧内容区（订单列表 17 列当时就差这几十像素才一屏放得下）。
     最长的一项「子账号管理」5 字 ＝ 65px，缩进 30 + 左右 padding 24 + 留白，180 仍够。 */
  width: 180px; flex: none; background: #fff; color: var(--mu2);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 56px; height: calc(100vh - 56px);
  overflow-y: auto;
}
.nav { padding: 12px 0; flex: 1; }
.nav a { cursor: pointer; -webkit-user-select: none; user-select: none; }
.nav a.g {
  display: flex; align-items: center; gap: 10px; margin: 2px 10px; padding: 9px 12px;
  color: var(--tx); font-size: 13.5px; font-weight: 600; border-radius: 9px;
}
.nav a.g i { width: 17px; text-align: center; font-style: normal; font-size: 14px; opacity: .75; }
.nav a.g .caret { margin-left: auto; font-style: normal; font-size: 10px; opacity: .7; transition: transform .15s; }
.nav a.g:hover { background: var(--hover); }
/* 分组头：当前所在分组只亮图标（红色仅表示「当前页面」，避免误以为可跳转） */
.nav .grp.on > a.g { color: var(--tx); }
.nav .grp.on > a.g i { opacity: 1; }
.nav a.g.hasSub { cursor: default; }
/* 摊开式导航：分组常开不折叠，caret 不再显示 */
.nav a.g .caret { display: none; }
.nav .sub { display: block; padding: 0 0 6px; position: relative; }
/* 子菜单左侧缩进参考线（淡） */
.nav .sub:before { content: ''; position: absolute; left: 21px; top: 4px; bottom: 12px; width: 1px; background: var(--line2); }
.nav .sub a {
  display: block; margin: 1px 8px 1px 30px; padding: 8px 10px;
  font-size: 13px; color: var(--mu2); position: relative; border-radius: 9px;
}
.nav .sub a:hover { color: var(--tx); background: var(--hover); }
.nav .sub a.on { color: var(--pri); background: var(--pri-bg); font-weight: 600; }
.nav .sub a.on:before { content: ''; position: absolute; left: -9px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--pri); }
.sideFoot {
  padding: 13px 18px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--mu); background: #FCFCFD;
}

/* 2026-11-12：补 min-height:0 —— flex 列的子项默认不压缩，`.content` 拿不到「剩余高度」，
   fitCreateView 就量不出「装不下」（860 横屏把「提交下单」裁到屏幕外的根因之一）。 */
.main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }

/* ---------- 页签栏（打开的页面都在，× 可关，当前红色下划线） ---------- */
.tabs {
  flex: none; background: #fff; border-bottom: 1px solid var(--line);
  padding: 0 12px; display: flex; gap: 4px; overflow-x: auto; min-height: 44px;
  scrollbar-width: thin;
}
.tab {
  position: relative; padding: 11px 14px; font-size: 13px; color: var(--mu2); cursor: pointer;
  white-space: nowrap; display: flex; align-items: center; gap: 6px;
  -webkit-user-select: none; user-select: none;
}
.tab:hover { color: var(--tx); }
.tab.on { color: var(--pri); font-weight: 600; }
.tab.on:after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px; background: var(--pri); }
.tab .tx {
  font-style: normal; font-size: 12px; width: 17px; height: 17px; line-height: 16px;
  text-align: center; border-radius: 50%; color: #A6ACB5; flex: none;
}
.tab .tx:hover { background: var(--pri-bg); color: var(--pri); }

/* ---------- 页内小页签（「顺丰对价」页：顺丰对价 / 查运费弹层，2026-10-15 两页合一） ---------- */
.sprTabs { display: flex; align-items: center; gap: 2px; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.sprTab {
  position: relative; padding: 8px 14px; font-size: 13.5px; color: var(--mu2); cursor: pointer;
  white-space: nowrap; border-radius: 8px 8px 0 0;
  -webkit-user-select: none; user-select: none;
}
.sprTab:hover { color: var(--tx); background: var(--hover); }
.sprTab.on { color: var(--pri); font-weight: 600; }
.sprTab.on:after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 2px; border-radius: 2px; background: var(--pri);
}

/* 多页签面板：同一时刻只显示一个，其余隐藏保状态 */
.vp { display: none; }
.vp.on { display: block; }

.content { padding: 18px 18px 44px; }

/* 🔴 内容区缩放（2026-10-28 店主）：--pgZoom 由顶栏「− 100% ＋」写入，范围 0.70~1.30。
   为什么只缩 #view：顶栏 / 左侧导航是常驻导航，跟着缩会让小屏上的菜单字变得很小；
   真正需要「一屏塞下」的是表单和表格。
   zoom 的语义是「块级元素按 父宽 ÷ 缩放 来排版」，等价于把视口临时变宽 ——
   所以比例调小只会让内容变紧凑，不会出现横向滚动条。 */
#view { zoom: var(--pgZoom, 1); }

/* ---------- 区块标题 ---------- */
.secTitle {
  display: flex; align-items: center; gap: 7px; margin: 2px 0 14px;
  color: var(--tx); font-size: 16.5px; font-weight: 700; letter-spacing: .3px;
}
.secTitle:before { content: ''; width: 3px; height: 15px; border-radius: 3px; background: var(--pri); }
.secTitle .infoI {
  font-style: normal; font-weight: 400; font-size: 12px; color: var(--mu);
  border: 1px solid var(--line2); border-radius: 50%; width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center; cursor: help;
}

/* ---------- 统计卡（柔和色底图标 + 数字） ---------- */
.stats8 { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; margin-bottom: 16px; }
.stat.clk { cursor: pointer; }
.stat.clk:hover { border-color: var(--line2); transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,.06); }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 15px; box-shadow: var(--sh); display: flex; align-items: center; gap: 11px; min-width: 0;
  transition: .14s;
}
.stat:hover { border-color: var(--line2); }
.stat .sico {
  width: 38px; height: 38px; border-radius: 11px; flex: none; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 17px; font-style: normal;
}
.stat .sbody { min-width: 0; }
.stat .v { font-size: 21px; font-weight: 700; line-height: 1.2; white-space: nowrap; letter-spacing: .2px; }
.stat .k { font-size: 12px; color: var(--mu2); margin-top: 1px; white-space: nowrap; }
.stat .s { font-size: 11px; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 兼容旧 4 列统计 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stats .stat { display: block; }
.stats .stat .k { font-size: 12.5px; color: var(--mu); }
.stats .stat .v { font-size: 26px; font-weight: 700; line-height: 1.25; margin-top: 3px; }
.stats .stat .s { font-size: 11.5px; color: var(--mu); }
.stats .stat.a .v { color: var(--pri); }
.stats .stat.b .v { color: var(--warn); }
.stats .stat.c .v { color: var(--ok); }

/* ---------- 筛选条 ---------- */
.fbar .pad { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 13px 16px; }
.fbar .fbl { font-size: 12.5px; color: var(--mu2); }
.fbar input[type=search] { width: 230px; }

/* ---------- 通用组件 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r2); box-shadow: var(--sh); margin-bottom: 16px; }
.card > h2 { margin: 0; padding: 15px 20px; font-size: 14.5px; font-weight: 600; border-bottom: 1px solid #F3F4F6; display: flex; align-items: center; gap: 10px; }
.card > h2 .sp { flex: 1; }
.card .pad { padding: 18px 20px; }
.card .pad0 { padding: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 15px;
  border-radius: 9px; border: 1px solid var(--line2); background: #fff; color: var(--tx);
  cursor: pointer; font-size: 13px; white-space: nowrap; transition: .13s;
}
.btn:hover { border-color: #D2D6DC; background: var(--hover); }
.btn:active { transform: translateY(1px); }
.btn.pri { background: var(--pri); border-color: var(--pri); color: #fff; box-shadow: 0 6px 16px -10px rgba(214,54,43,.9); }
.btn.pri:hover { background: #C42F25; border-color: #C42F25; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--mu2); }
.btn.ghost:hover { background: var(--gray-bg); color: var(--tx); }
.btn.sm { height: 28px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.danger { color: var(--pri); border-color: #F3D5D2; background: #fff; }
.btn.danger:hover { background: var(--pri-bg); }

/* 🔴🔴 2026-10-15 店主：「填写框都要做得和『托寄物数量』一样，其他的半边是黑的」。
   根因：这里原来只列 `input[type=text]` 等**带 type 属性**的写法，而后台 76 个 `<input>` 根本没写 type
   （#nCargo / #nName / #nNote / #n*Region …）⇒ 一个都不匹配 ⇒ 落回浏览器默认 `border: 2px inset`；
   inset 是靠「上/左压暗、右/下提亮」假装立体的，浅色底上就成了店主看到的「半边黑」。
   而 `#nCargoQty`（type="number"）命中了规则，所以只有它是正常的。
   改成**排除法**：除勾选 / 单选 / 文件等特殊控件外，一律走同一套框。
   🔴 必须用 `:where()` 把这一长串 `:not()` 的**特异性归零**：不裹 = (0,9,1)，
      会把下面 A 皮肤的 `.ofRows .ofGrid2c input`（0,3,1）整条压掉 ⇒ 打单页输入框被打回白底 34px，
      只剩 select 还是皮肤款，同一个表单里两种观感（第一版就是这么翻车的）。 */
input:where(:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not([type=submit]):not([type=button]):not([type=image]):not([type=hidden])),
select, textarea {
  height: 34px; padding: 0 11px; border: 1px solid var(--line2); border-radius: 9px; background: #fff;
  outline: none; min-width: 0; transition: border-color .13s, box-shadow .13s;
}
input::placeholder, textarea::placeholder { color: #B4B9C1; }
textarea { height: auto; padding: 9px 11px; }
input:focus, select:focus, textarea:focus { border-color: #EBA9A3; box-shadow: 0 0 0 3px rgba(214,54,43,.10); }
label.f { display: block; font-size: 12px; color: var(--mu2); margin-bottom: 6px; }
.fg { margin-bottom: 14px; }
.fg input, .fg select, .fg textarea { width: 100%; }

/* 🔴 2026-11-09 子账号「负责的揽收点」（店主：字体应该是横向）。
   上一行 `.fg input{width:100%}` 也命中了里面的 `<input type=checkbox>` ⇒ 勾选框被撑满整行，
   网点名只剩一个字宽 → 中文按字换行，竖排成一列。这里把勾选框钉成 15px，名字横排、过长省略，
   多列铺开（auto-fill）省高度。特异性 (0,2,1) 压得住 `.fg input`。 */
.ckOutBox {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px;
  max-height: 190px; overflow: auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px;
}
.ckOutItem { display: flex; align-items: center; gap: 8px; padding: 5px 0; cursor: pointer; min-width: 0; }
.ckOutItem input.ckOut { width: 15px; height: 15px; flex: 0 0 15px; margin: 0; accent-color: var(--pri); cursor: pointer; }
.ckOutNm { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.ckOutItem .tag { flex: 0 0 auto; }
@media (max-width: 760px) { .ckOutBox { grid-template-columns: minmax(0, 1fr); } }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 30px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line2); background: #fff; font-size: 13px; cursor: pointer; color: var(--mu2);
}
.chip:hover { border-color: #D2D6DC; background: var(--hover); }
.chip.on { border-color: var(--pri); background: var(--pri-bg); color: var(--pri); font-weight: 600; }

.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.t1 { background: var(--warn-bg); color: var(--warn); }
.t2 { background: var(--info-bg); color: var(--info); }
.t3 { background: var(--ok-bg); color: var(--ok); }
/* 🔴 2026-11-02 店主：「已签收和已取消的颜色太接近了」。
 *   原来是 #E7F6F0 淡绿 vs #F2F3F5 浅灰 —— 两个**明度几乎相同**的浅底小胶囊，
 *   12px 下只靠字色分，远看就是两块浅色块。现在三重区分：
 *     已签收(.t4)：绿实一档 + 深绿字 + 600 字重 → 「成了」
 *     已取消(.t10)：灰沉一档 + 内描边（inset，不占高度）→ 「作废了」
 *   ⚠️ 顺手拆隐患：待揽收和已签收原来**共用 .t3**（完全同色），现在 t3 只给待揽收。 */
.t4 { background: #D2EEDF; color: #0A6B4C; font-weight: 600; }
/* 已揽收（2026-11-03）：青蓝淡底，和待揽收(t3 绿)、运输中(t2 蓝) 都能分开 */
.t5 { background: #DDF1F5; color: #0E7490; }
.t9 { background: var(--pri-bg); color: var(--pri); }
.t10 { background: var(--gray-bg); color: var(--mu2); }
/* 已取消专用（2026-11-02）：不动 .t10 —— 它还兼任「已停用 / 手工 / 平台」这些次要标签，
 *   那些不该跟着变重。只有「已取消」需要跟「已签收(.t4)」拉开，所以单开一档。 */
.t12 { background: #E8EAEF; color: #4B5563; box-shadow: inset 0 0 0 1px #D6DAE1; }
.t11 { background: var(--pri-bg); color: var(--pri); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 5px; flex: none; }
.dot.g { background: #21B573; } .dot.r { background: #F1564A; } .dot.y { background: #F0A32B; }

/* 表格 */
.tw { overflow: auto; max-width: 100%; }
table.tb { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.tb th, table.tb td { padding: 10px 11px; text-align: left; border-bottom: 1px solid #F3F4F6; vertical-align: middle; }
table.tb th { background: #FAFBFC; color: var(--mu2); font-weight: 600; font-size: 12.5px; white-space: nowrap; position: sticky; top: 0; z-index: 1; border-bottom: 1px solid var(--line); }
table.tb tr:hover td { background: #FAFBFC; }
table.tb td.act { white-space: nowrap; }
table.tb .sub { color: var(--mu); font-size: 12px; }

/* 🔴 2026-11-04 店主：资金账单「列位空间太大 / 每列间距要一致 / 数字左对齐」，
   之后又两次「列之间的间距再拉开一点」—— 现在左右内边距 20px，任意两列空档恒为 40px。
   这一页列特别多（11 列），fixed 布局会把「子账号」当唯一弹性列、把数字列整排往右顶，
   所以用内容自适应：列宽由内容决定、行不换行，表格不铺满，剩下的白留右边。
   🔴 想再放宽只改这一处 padding，别去给某列单独加 min-width —— 列宽有富余会让
      相邻两列的空档看起来一大一小（店主第一次就是这么看出不对的）。 */
table.tb.pbTb { table-layout: auto; width: auto; }
table.tb.pbTb th, table.tb.pbTb td { padding: 10px 20px; text-align: left; }
table.tb.pbTb th:first-child, table.tb.pbTb td:first-child { padding-left: 24px; white-space: nowrap; }
table.tb.pbTb td.pbSub { white-space: nowrap; }
/* 表格不铺满：所有列按内容排开，剩下的白留给右边，操作按钮紧跟「状态」列 */
table.tb.pbTb th:last-child, table.tb.pbTb td.act { white-space: nowrap; }

/* 小程序每日账单（2026-11-04）：两行表头，上面一行是「下单 / 打印」两组的分组名。
   分组名故意做得比列名浅、居中，让人一眼看出左边四个数是钱、右边四个数是纸。 */
table.tb.mpTb th.pbGrp {
  text-align: center; font-weight: 500; font-size: 12px; color: var(--mu2);
  background: #FAFBFC; border-bottom: 1px solid var(--line);
  padding-top: 7px; padding-bottom: 7px;
}
/* 🔴 2026-11-04 加「待退 / 运费收入 / 面单收入 / 微信手续费」后是 15 列，
   再给下单组补「已寄出 / 未寄出 / 已取消」是 18 列。
   10px 内边距时实宽 1249px，可视区只有 1188px ⇒ 右侧「取消 / 明细」被挤出，店主得横着拖。
   这一张表单独收到 8px（列空档 16px）：18 列省下 72px，一屏刚好放下；
   网页那张表列少，仍然用 20px 的松间距，不动。 */
table.tb.mpTb th, table.tb.mpTb td { white-space: nowrap; }
/* 🔴 2026-11-07 店主：「行距、列距都加大一点」→ 再调到「行 15px / 列 13px」。
   ⛔ 表头（th）不能跟着加大：18 列的表头文字本身就密，th 收到 3px 时「总下单已寄出未寄出…」
      会糊成一串读不出列名（实测截图确认）。所以 th 固定 6px，只有数据格加大。
   代价：td 只能做到 11px（12px 时表宽 1201、13px 时 1233，都比 1188 的可视区宽，
   右侧「明细」要横着拖）。11px 已经是原来 6px 的近两倍，视觉上明显比改版前松。 */
table.tb.mpTb th { padding: 11px 6px; }
table.tb.mpTb td { padding: 15px 11px; }
/* 首列（日期）与末列（明细）各自补一点边距，不然日期贴着卡片边、明细贴着右边缘 */
table.tb.mpTb th:first-child, table.tb.mpTb td:first-child { padding-left: 12px; }
table.tb.mpTb th:last-child, table.tb.mpTb td:last-child { padding-right: 10px; }
/* 🔴 日期 / 揽收点这两列的内容本身就长（「11-07 周六」「一都快递站」），
   按 12px 会顶到 1195 溢出，这两列单独收到 10px；数值列仍是 12px。 */
table.tb.mpTb td:first-child { padding-left: 9px; padding-right: 10px; }
table.tb.mpTb td:nth-child(2) { padding-left: 10px; padding-right: 10px; }
table.tb.mpTb td:last-child { padding-right: 7px; }
/* 窗口够宽（≥1480 逻辑像素，容器约 1228px）时，数值列的间距再放到店主点名的 13px ——
   13px 时表宽 1218，放得下，不用横着拖。1440 屏只能给 11px（13px 会溢出 30px）。 */
@media (min-width: 1480px) {
  table.tb.mpTb td { padding: 15px 13px; }
  table.tb.mpTb td:first-child { padding-left: 9px; padding-right: 10px; }
  table.tb.mpTb td:nth-child(2) { padding-left: 10px; padding-right: 10px; }
  table.tb.mpTb td:last-child { padding-right: 7px; }
}
/* 第二行第一个 th 落在「揽收点」列，别继承首列的 24px 左内距，否则与上面那行错开 */
table.tb.mpTb thead tr:nth-child(2) th:first-child { padding-left: 6px; }
table.tb.mpTb thead tr:nth-child(2) th { padding-top: 8px; }
table.tb.mpTb td.num { font-variant-numeric: tabular-nums; }

/* 小程序账单 5 张卡：一行放下（走 4 列 grid 时第 5 张会单独掉到第二行） */
.stats.stats5 { grid-template-columns: repeat(5, 1fr); }
.stats.stats5 .stat .v { font-size: 23px; }
@media (max-width: 1420px) { .stats.stats5 { grid-template-columns: repeat(3, 1fr); } }
table.tb .ck { width: 34px; text-align: center; }
table.tb td.ck { text-align: center; }
/* 🔴 2026-10-10 店主口径：运单列表（可勾选的订单行）**字体放大一点，但行高 / 行距不变** ——
   字号 12.5 → 13.5px，line-height 钉死 20px（与原 computed 值一致），
   行高仍是「padding 10×2 + 每行 20px」，一行不多一像素。 */
table.oTb td { font-size: 13.5px; line-height: 20px; }
table.oTb td .sub { font-size: 12.5px; }
/* 🔴 行高不变的 key：旧版全局是 14px/1.6 比例继承，行内小字（12px）的行盒 = 19.2px，
   不是 20px —— 多行格（订单来源）正好差 2px。所以小字行的行盒钉回 19.2px。 */
table.oTb td .small, table.oTb td .sub { line-height: 19.2px; }
table.oTb td .op { font-size: 13px; }
/* 🔴 table.list（顺丰对价 / 时效弹窗）此前没有任何样式：
   th 走浏览器默认「居中」而 td 左对齐，窄列（序号/勾选）上表头看着就是错位的（店主 2026-10-10 反馈）。
   与 table.tb 同口径补齐；长表滚动时表头 sticky 固定。 */
table.list { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.list th, table.list td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #F3F4F6; vertical-align: middle; }
table.list th { background: #FAFBFC; color: var(--mu2); font-weight: 600; font-size: 12.5px; white-space: nowrap; text-align: left; position: sticky; top: 0; z-index: 1; border-bottom: 1px solid var(--line); }
table.list tr:hover td { background: #FAFBFC; }
.empty { padding: 46px 20px; text-align: center; color: var(--mu); }

/* 状态红字 / 操作文字链 */
.stTxt { font-weight: 600; white-space: nowrap; }
/* 🔴 2026-10-26：状态列只剩这几种词（未出单/已出单/运输中/已签收/已取消/下单失败/取消失败
   + 物流异常已退回/拒收退件/疑难件），配色一一对应 */
.stTxt.s1 { color: var(--warn); }  /* 未出单：等你处理 */
.stTxt.s2 { color: var(--info); }  /* 运输中：在路上 */
.stTxt.s3 { color: var(--ok); }    /* 已出单：有单号了，还没揽收 */
/* 🔴 2026-11-03：补「已揽收」一档 —— 件被取走了但还没转运，介于「待揽收」和「运输中」之间，
 *   所以单独给一个青蓝（#0E7490），既不是待揽收的绿，也不是运输中的正蓝，一眼能分三段。 */
.stTxt.s5 { color: #0E7490; }
.stTxt.s4 { color: #0A6B4C; }      /* 已签收：比「已出单」深一档，一眼看出已经到件 */
.stTxt.s9 { color: var(--pri); }   /* 下单失败 / 取消失败 / 物流异常 */
.stTxt.s10 { color: #4B5563; }     /* 已取消：原来是 --mu(#8A9099) 太浅，和 s4 深绿并排时像两种浅色 */
.op { color: var(--pri); cursor: pointer; white-space: nowrap; margin-right: 8px; font-size: 12.5px; }
.op:hover { text-decoration: underline; }
.op.blue { color: var(--info); }
/* 「补运单号」用（2026-11-10）：提醒这不是常规操作，但也不像退款那样危险 */
.op.orange { color: var(--warn); }

/* 分页条 */
.pager .pad { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 13px 16px; }
.pager input[type=number] { width: 56px; }

/* 快捷入口（首页） */
.quickGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px; cursor: pointer; background: #fff; transition: .14s; }
.quick:hover { border-color: #F0C9C5; background: var(--pri-bg); transform: translateY(-1px); }
.quick b { display: block; font-size: 14px; }
.quick span { display: block; font-size: 12px; color: var(--mu); margin-top: 3px; }

/* 发件省份 TOP10（首页 · 3 卡一行，等宽等高） */
.pvGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: stretch; }
.pvCard {
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 12px 14px 13px; display: flex; flex-direction: column; gap: 9px; min-height: 116px; transition: .14s;
}
.pvCard.pvLink { cursor: pointer; }
.pvCard.pvLink:hover { border-color: #F0C9C5; background: var(--pri-bg); transform: translateY(-1px); box-shadow: var(--sh); }
.pvCard.pvSp2 { grid-column: span 2; }
.pvCard.pvSp3 { grid-column: span 3; }
.pvCard.pvSum { background: var(--gray-bg); border-color: var(--line2); }
/* 「待出单」占位卡：虚线灰卡，出单后自动被真实省份顶掉 */
.pvCard.pvEmpty { border-style: dashed; border-color: #DDE1E6; background: #FBFCFD; box-shadow: none; }
.pvCard.pvEmpty .pvRk { background: transparent; border: 1px dashed #D6DAE0; color: #C0C5CD; }
.pvCard.pvEmpty .pvName { color: #A9AEB7; font-weight: 500; }
.pvCard.pvEmpty .pvSub { color: #B9BEC6; }
.pvHd { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pvRk {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; background: var(--gray-bg); color: var(--mu2);
}
.pvRk.rk1 { background: var(--pri-bg); color: var(--pri); }
.pvRk.rk2 { background: var(--warn-bg); color: var(--warn); }
.pvRk.rk3 { background: var(--info-bg); color: var(--info); }
.pvName { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pvShare { margin-left: auto; flex: 0 0 auto; font-size: 12px; color: var(--mu); font-variant-numeric: tabular-nums; }
.pvNum { display: flex; align-items: baseline; gap: 4px; }
.pvNum b { font-size: 22px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pvNum span { font-size: 12px; color: var(--mu); }
.pvFee { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--pri); font-variant-numeric: tabular-nums; }
.pvBar { height: 6px; border-radius: 999px; background: var(--gray-bg); overflow: hidden; }
.pvCard.pvSum .pvBar { background: #E7E9ED; }
.pvBar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #EA6A5F, var(--pri)); }
.pvSub { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--mu); }
.tipTxt { min-height: 20px; font-size: 13px; }
.fee { font-size: 13.5px; }

/* 弹窗 */
.mask { position: fixed; inset: 0; background: rgba(17,24,39,.38); backdrop-filter: blur(2px); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 46px 16px; overflow: auto; }
.dlg { background: #fff; border-radius: 16px; width: 100%; max-width: 560px; box-shadow: 0 28px 70px -30px rgba(16,24,40,.45); }
.dlg.wide { max-width: 980px; }
.dlg.narrow { max-width: 420px; }
.dlg > header { padding: 16px 22px; border-bottom: 1px solid #F3F4F6; display: flex; align-items: center; gap: 10px; }
.dlg > header b { font-size: 15px; }
.dlg > header .x { margin-left: auto; cursor: pointer; color: var(--mu); font-size: 18px; line-height: 1; padding: 3px 7px; border-radius: 8px; }
.dlg > header .x:hover { background: var(--gray-bg); color: var(--tx); }
.dlg > .bd { padding: 20px 22px; max-height: 66vh; overflow: auto; }
/* tall：内容偏高的表单弹窗（2026-11-16，成本价弹窗加了「二档四格」以后）
 * 默认 66vh 会把表单最底下的「算价预览」挤到滚动区外 —— 店主填完看不到 5kg 收多少，
 * 等于没有预览。这里放宽到「屏幕高 − 头脚」，普通屏一屏能看全；矮屏仍然内部滚动。 */
.dlg.tall > .bd { max-height: calc(100vh - 150px); }
.dlg > footer { padding: 14px 22px; border-top: 1px solid #F3F4F6; background: #FCFCFD; border-radius: 0 0 16px 16px; display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.dlg > footer .sp { flex: 1; font-size: 12.5px; color: var(--mu); }
/* 弹窗「屏幕居中」（确认下单 / 下单成功用）：默认弹窗是贴顶 + 整体可滚动，这两个要居中。
   🔴 必须同时给 .dlg 加 margin:auto —— 只把 align-items 改成 center 的话，内容高于视口时
   顶部会被裁掉且滚不上去（flex 的经典坑），margin:auto 才能让滚动条正常接管。 */
/* ── 粘性表单弹窗（keep，2026-11-16）────────────────────────────────────────
   长表单点遮罩**不关**，只闪一下外框 + 标题右侧飘一条提示（2.4s 自动消失）。
   🔴 只影响 .mask.keep，确认框/看图/轨迹/结果类完全不受影响。 */
.mask.keep.keepShake > .dlg { animation: fxjKeepShake .42s ease; }
@keyframes fxjKeepShake {
  0%, 100% { box-shadow: 0 28px 70px -30px rgba(16,24,40,.45), 0 0 0 0 rgba(180,120,20,0); }
  35%      { box-shadow: 0 28px 70px -30px rgba(16,24,40,.45), 0 0 0 3px rgba(180,120,20,.55); }
}
.dlg > header .keepTip {
  margin-left: auto; margin-right: 2px;   /* 吃掉剩余空间，把 × 顶到最右 */
  font-size: 12px; font-weight: 400; color: #A16207;
  background: #FEF3C7; border: 1px solid #FDE68A; border-radius: 999px;
  padding: 2px 9px; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translateY(-2px); transition: opacity .18s, transform .18s;
}
.dlg > header .keepTip.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .mask.keep.keepShake > .dlg { animation: none; }
  .dlg > header .keepTip { transition: none; }
}
/* ── 保存中弹窗（2026-11-16）──────────────────────────────────────────────
   有请求在飞时点 ×：**不当场关**，等请求回来按结局处理（成功关 / 失败不关、错误留在眼前）。
   🔴 再点一次 × = 强制关，所以这里只改视觉、不拦事件 —— 绝不出现「关不掉只能刷新」。
   ⛔ .x 只是变灰，不要加 pointer-events:none，否则第二次点击收不到，等于把人锁死。 */
.mask.saving > .dlg > header .x { opacity: .3; cursor: progress; }
.dlg > header .savingTag {
  margin-left: auto; margin-right: 2px;
  font-size: 12px; font-weight: 400; color: #1E4E8C;
  background: #E8F0FB; border: 1px solid #C7DBF5; border-radius: 999px;
  padding: 2px 9px; white-space: nowrap; pointer-events: none;
}
.mask.mid { align-items: center; padding: 28px 16px; }
.mask.mid > .dlg { margin: auto; }
/* 放大一档：确认下单信息量大，原先的窄弹窗（420px）挤得看不清 */
.dlg.big { max-width: 720px; }
.dlg.big > header { padding: 18px 26px; }
.dlg.big > header b { font-size: 16px; }
.dlg.big > .bd { padding: 22px 26px; font-size: 14.5px; }
.dlg.big > footer { padding: 15px 26px; }
.dlg.big .ckRow { padding: 11px 16px; margin-bottom: 10px; }
.dlg.big .ckT { font-size: 13.5px; margin-bottom: 5px; }
.dlg.big .ckG { font-size: 14.5px; gap: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
/* ---------- 链路开关页：两列各自纵向堆叠（2026-10-23 店主「卡片上下间距不美观」） ----------
 * 不用 grid 的原因：grid 的同一行会被最高的那张卡撑高，矮的那张下面就空一大块。
 * 这里两列各是一个 flex 列，卡片紧贴、间距只由 gap 决定，卡片自身的 margin-bottom 归零防止叠成 32px。 */
.stsCols { display: flex; gap: 16px; align-items: flex-start; }
.stsCol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.stsCol > .card { margin-bottom: 0; }
@media (max-width: 980px) { .stsCols { flex-direction: column; } .stsCol { width: 100%; } }
/* 首页专用：左右两张卡等高拉伸（快捷入口 6 个 = 3 行，正好与「系统体检 / 我的权限」对齐） */
.eq2 { align-items: stretch; }
.eq2 > .card { height: 100%; margin-bottom: 0; }

/* ===== 服务器管理（2026-10-31 店主：「线上出单开关改为服务器管理。要占据整行，
 *       上下压缩到极致。卡片要在最上方」）=====
 * 通栏由页面拼装保证（不进 .stsCols）；这里只负责「压扁」：
 * 标题栏 9px、内容 9px、三个开关横排一行，提示文字靠右不换行占大块。 */
.srvCard > h2 { padding: 9px 16px; font-size: 14px; }
.srvCard .srvPad { padding: 9px 16px 10px; }
/* 开关之间的间距放宽到 44px（店主 2026-10-31：「与允许真实出运单 间距大一点」）——
 * 之前 26px，两个开关的红白滑块几乎贴在一起，看着像一个控件。 */
.srvRow { display: flex; align-items: center; gap: 44px; flex-wrap: wrap; }
.srvI { display: inline-flex; align-items: center; gap: 9px; }
.srvI .k { font-size: 13px; color: var(--mu2); white-space: nowrap; }
.srvI select { width: 150px; height: 28px; padding: 0 6px; font-size: 12.5px; border-radius: 7px; border: 1px solid var(--line2); background: #fff; }
/* 提示压成一行不换行（「上下压缩到极致」）：整句放 title，鼠标停上去能看全 */
.srvTip { margin-left: auto; font-size: 11.5px; line-height: 1.5; color: var(--mu); max-width: 56%; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 980px) {
  .srvRow { gap: 12px 18px; }
  .srvTip { margin-left: 0; max-width: 100%; text-align: left; }
}

/* 面单预览：白底，A4 竖版比例
   🔴 2026-11-13 店主：面单图太大，弹窗被一张图撑成一长条 —— 单张缩到 2/3 宽（原本占满整行），
      一票多件改并排（各 48%），手机上仍占满一行才看得清号。 */
.labelBox { background: transparent; padding: 12px 0 0; text-align: center;
            display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
/* 面单图尺寸：店主逐轮调（2026-11-13 九次）100% → 62% → 41% → 21%(嫌小) → 32% → 64% → 58% → 52% → 【定稿】。
   ⭐ 定稿值由店主直接给出：单张 **48%**、一票多件 **40%**。别再自己推算档位。
   多件 12 张时一行 2 张（40%×2+gap 装得下），单号可辨；手机上 ≤760px 仍占满一行。
   ⛔ 21%(≈200px) 是踩过的下限，看不清运单号。 */
.labelBox .labItem { width: 48%; }
.labelBox.multi .labItem { width: 40%; }
.labelBox img { max-width: 100%; width: 100%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); border-radius: 4px; display: block; margin: 0 auto; cursor: zoom-in; }
@media (max-width: 760px) { .labelBox .labItem, .labelBox.multi .labItem { width: 100%; } }
/* 打印：只出面单图 */
@media print {
  body * { visibility: hidden !important; }
  #printArea, #printArea * { visibility: visible !important; }
  #printArea { position: absolute; inset: 0; padding: 0; margin: 0; text-align: center; background: #fff; }
  #printArea img { max-width: 100%; max-height: 100vh; }
  .mask, .dlg { background: none; box-shadow: none; }
  #pPreview { display: none !important; }
}
/* 面单预览浮层（打印配置 autoDlg=关 时先看后打） */
#pPreview { position: fixed; inset: 0; z-index: 400; background: rgba(17,24,39,.5); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; }
#pPreview .pvBox { background: var(--bg, #F6F7F9); border-radius: 14px; width: min(760px, 92vw); max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 28px 70px -30px rgba(16,24,40,.45); }
#pPreview .pvHead { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: #fff; }
#pPreview .pvBody { overflow: auto; padding: 14px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
#pPreview .pvPg { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
#pPreview .pvPg img { display: block; max-width: 320px; max-height: 420px; }

/* 物流时间线 */
.tl { border-left: 2px solid var(--line2); margin: 4px 0 4px 6px; padding-left: 16px; }
.tl .ev { position: relative; padding-bottom: 14px; }
.tl .ev:before { content: ''; position: absolute; left: -23px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #D2D6DC; }
.tl .ev:first-child:before { background: var(--pri); box-shadow: 0 0 0 3px var(--pri-bg); }
.tl .ev .t { font-size: 12px; color: var(--mu); }
.tl .ev .c { font-size: 13px; }

/* toast */
#toast { position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center;
  /* 🔴 2026-10-30：提示条是「通知」，不该拦住鼠标。
     以前没这一行 —— 打单发货页刚进来弹出的绿色提示「默认模板已带入」正好盖在表单底部，
     几秒内点那个位置会点在提示条上（点不动输入框，人也说不清为什么）。 */
  pointer-events: none; }
.toast { background: #1B1F24; color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 13px; box-shadow: 0 14px 34px -14px rgba(16,24,40,.6); max-width: 76vw; }
.toast.ok { background: var(--ok); } .toast.err { background: #B32D22; } .toast.warn { background: var(--warn); }
.loading { padding: 34px; text-align: center; color: var(--mu); }

.drop { border: 1.5px dashed var(--line2); border-radius: 12px; padding: 24px; text-align: center; color: var(--mu); cursor: pointer; background: #FCFCFD; }
.drop.on { border-color: var(--pri); background: var(--pri-bg); color: var(--pri); }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid #F3F4F6; font-size: 13px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--mu2); white-space: nowrap; } .kv .v { font-weight: 500; text-align: right; }
/* 订单详情两列（2026-11-13 重排）：左＝收件/寄件，右＝订单概况/单据信息；运单号薄条夹在中间。
   上一版左右两栏行数差 4 行，右栏空掉一大片（店主截图反馈「留白那么多」）——
   现在按行数配对：收件 3 ↔ 订单概况 4、寄件 3 ↔ 单据信息 5，行高也从 9px 收到 7px。 */
/* ⛔ 必须 minmax(0,1fr)：纯 1fr 的最小宽度是内容宽度，右边「状态」那串轨迹一长，
   就会把右栏撑宽、左栏地址被挤成四行（2026-11-13 真踩过）。 */
.odGrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; align-items: start; }
.odGrid + .odGrid { margin-top: 2px; }
#odInfo .kv { padding: 7px 0; }
.odSec { font-size: 12px; font-weight: 600; color: var(--mu2); letter-spacing: .4px; padding: 2px 0 5px; }
/* 状态提示 = 整条收发/签收轨迹，能有两三行 —— 详情只留一行，超出打点，悬停看全文。
   不给它定宽的话它会把「状态」那一行撑成三行，右栏比左栏高一大截（2026-11-13 店主嫌留白）。 */
.odTip { display: inline-block; vertical-align: bottom; max-width: 74%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#odInfo .kv .v { min-width: 0; }
/* 运单号整行薄条：标签与号码同排（以前标签独占一行，白多 20px），多单号自动换行 */
.odWb { display: flex; align-items: baseline; gap: 12px; margin: 12px 0; padding: 8px 12px; border-radius: 8px;
        background: var(--bg2, #F7F9FB); border: 1px solid var(--line, #E9EDF1); }
.odWbK { font-size: 12px; color: var(--mu2); flex: none; }
.odWbV { flex: 1; min-width: 0; }
/* 客户备注 / 失败原因：整行垫底（塞进任何一栏都会把该栏撑高、对面留白） */
.odNote { margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: #FBFCFD; border: 1px solid #EEF1F4; font-size: 12.5px; }
.odNoteRow { display: flex; gap: 10px; }
.odNoteRow + .odNoteRow { border-top: 1px dashed #EDF0F3; padding-top: 5px; margin-top: 5px; }
.odNoteK { color: var(--mu2); flex: none; }
@media (max-width: 760px) { .odGrid { grid-template-columns: 1fr; gap: 0; } }
/* 🔴 必须inline-block：用在 <span> 上，行内元素的 width/height 不生效，开关会整个塌掉 */
.sw { display: inline-block; position: relative; width: 44px; height: 24px; border-radius: 999px; background: #D6DAE0; cursor: pointer; transition: .16s; flex: none; vertical-align: middle; }
.sw:after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .16s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.sw.on { background: var(--ok); } .sw.on:after { left: 22px; }
.sw.warn.on { background: var(--pri); }
.warnbox { background: var(--warn-bg); color: #7A4E10; border-radius: 10px; padding: 11px 13px; font-size: 12.5px; line-height: 1.6; }
/* 异常运单：最新轨迹两行截断 */
.abnCtx { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; line-height: 1.5; color: var(--mu2); }
.infobox { background: var(--info-bg); color: #10456F; border-radius: 10px; padding: 11px 13px; font-size: 12.5px; line-height: 1.6; }

/* ---------- 待办提醒条（登录后提醒「需要店主动手」的转寄/退回、取消申请） ---------- */
.todoBar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 14px 0; padding: 11px 14px;
  background: #FFF4E5; border: 1px solid #F3D5A8; border-radius: 12px; font-size: 13px; line-height: 1.6; color: #7A4E10; }
.todoBar .todoIco { font-style: normal; font-size: 16px; flex: none; }
.todoBar .todoTxt { flex: 1 1 auto; min-width: 220px; }
.todoBar .todoFee { color: #D6362B; font-size: 14px; }
.todoBar .sp { flex: 0 0 auto; }
.todoBar .btn.sm { padding: 6px 12px; font-size: 12.5px; }
.todoBar .btn.ghost { background: transparent; border-color: #E3C79A; color: #8A5B14; }
.todoBar .btn.ghost:hover { background: #FBEFDD; }
/* 转寄/退回 与 未付款 的小标记 */
.tag.tFwd { background: #E7F0FB; color: #185FA5; }
.tag.tRet { background: #FDEDE9; color: #B3261E; }
.tag.tPay { background: #FBEFF7; color: #A6247C; }
.tag.tPayOk { background: #E8F6EE; color: #1B7A45; }
/* 「链路开关 → 客户看到的更新说明」里的当前版本号 */
.tag.tVer { background: #F1F3F5; color: #4B5563; font-weight: 600; }

/* 小程序管理页（2026-10-25）：一行一个开关 + 四个两端对比数字 */
.mpRow { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F3F4F6; align-items: flex-start; }
.mpRow:last-of-type { border-bottom: none; }
.mpRow .sw { margin-top: 1px; }
.mpStat { flex: 1 1 150px; min-width: 140px; border: 1px solid var(--line2); border-radius: 10px; padding: 12px 14px; background: #fff; }
.mpStat.bad { border-color: #E9A7A0; background: #FFF7F6; }
.mpStatN { font-size: 22px; font-weight: 600; line-height: 1.2; }
.mpStatL { font-size: 12px; color: var(--mu2); margin-top: 2px; }

/* ---------- 小程序管理页（2026-10-29 改版）：一格一个功能，自动换行 ----------
 * 店主原话：「页面一行可以有多个功能，美化一下」。
 * 以前一行一个开关、说明另起一行，一屏只能看四五个；现在按卡片宽度自动排 3~5 格，
 * 开关和标题同行、说明压到 11.5px，一屏基本能看完整组。
 * 🔴 只在本页生效（.mpGrid/.mpCell 都是新类名），不影响后台其它表单。 */
.mpGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; align-items: stretch; }
.mpKdGrid { display: contents; }            /* 快递公司那几格直接铺进外层网格 */
.mpCell { border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px 11px; background: #fff; min-width: 0; transition: border-color .13s, background .13s; }
.mpCell:hover { border-color: #D2D6DC; background: var(--hover); }
.mpCell.bad { border-color: #E9A7A0; background: #FFF7F6; }
.mpCell.span2 { grid-column: span 2; }
.mpCellTop { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mpCellT { font-size: 13px; font-weight: 600; line-height: 1.35; min-width: 0; word-break: break-word; }
.mpCellL { display: block; font-size: 12px; color: var(--mu2); font-weight: 600; margin-bottom: 5px; line-height: 1.4; }
.mpCell input, .mpCell select { width: 100%; height: 32px; }
.mpCellTip { font-size: 11.5px; color: var(--mu); line-height: 1.55; margin-top: 5px; }
.mpCell .tag { margin-top: 6px; }
.mpCellSw.off .mpCellT { color: var(--mu2); }
/* 组内分节线（快递公司开关 → 默认选中哪家） */
.mpSplit { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 8px 0 0; font-size: 12px; font-weight: 600; color: var(--mu2); }
.mpSplit:after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* 2026-11-02 店主：「包裹件数 / 订单数量」按快递公司单独控制 —— 格子底下一排小胶囊。
   点亮 = 这家公司显示（件数 / 订单数量），点灭 = 这家不显示。
   ⚠️ 这是第二层分闸：总开关关掉时整排变灰不可点（值各自保留，重新打开总闸即恢复）。 */
.mpKdRow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.mpKdLab { font-size: 11.5px; color: var(--mu2); margin-right: 2px; }
.mpKdChip {
  font-size: 12px; line-height: 1; padding: 5px 9px; border-radius: 999px;
  border: 1px solid var(--line2); background: #fff; color: var(--mu2);
  cursor: pointer; user-select: none; transition: background .12s, border-color .12s, color .12s;
}
.mpKdChip:hover { border-color: #C9CED6; }
.mpKdChip.on { color: var(--pri); border-color: #F3C3BC; background: #FFF3F1; font-weight: 600; }
.mpKdRow[data-off] { opacity: .42; }
.mpKdRow[data-off] .mpKdChip { pointer-events: none; }
@media (max-width: 720px) {
  .mpGrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .mpCell.span2 { grid-column: span 2; }
}

/* ---------- 发货订单（顺丰式三段表单） ---------- */
.ofTabs { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.ofTab { padding: 9px 18px; font-size: 13.5px; cursor: pointer; color: var(--mu2); border-bottom: 2px solid transparent; user-select: none; }
.ofTab:hover { color: var(--tx); }
.ofTab.on { color: var(--pri); font-weight: 700; border-bottom-color: var(--pri); }
.ofCard .ofHead { display: flex; align-items: center; gap: 9px; padding: 14px 20px 0; }
.ofIco { width: 26px; height: 26px; border-radius: 8px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-style: normal; flex: none; }
.ofHead b { font-size: 14.5px; }
.ofLink { color: var(--info); font-size: 12.5px; cursor: pointer; margin-left: 14px; white-space: nowrap; user-select: none; }
.ofLink:hover { text-decoration: underline; }
.ofLink.on { color: var(--ok); font-weight: 700; }
.ofLink.on::before { content: '✓ '; }
.req { color: var(--pri); font-style: normal; }
.ofGrid4 { display: grid; grid-template-columns: 1fr 1.2fr 1fr 1fr; gap: 0 14px; }
.ofGrid2 { display: grid; grid-template-columns: 1fr 2fr; gap: 0 14px; }
.cmpCards { display: flex; gap: 10px; flex-wrap: wrap; }
.cmpCard { width: 118px; border: 1px solid var(--line2); border-radius: 12px; padding: 11px 6px; text-align: center; cursor: pointer; background: #fff; transition: .13s; }
.cmpCard:hover { border-color: #D2D6DC; background: var(--hover); }
.cmpCard.on { border-color: var(--pri); background: var(--pri-bg); box-shadow: 0 0 0 1px var(--pri) inset; }
.cmpCard .cc { width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 6px; color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cmpCard .cn { font-size: 12.5px; line-height: 1.3; }
.ofFoot { display: flex; align-items: center; gap: 12px; padding: 13px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r2); box-shadow: var(--sh2); position: sticky; bottom: 10px; z-index: 5; }
.ofBkRow { display: flex; gap: 10px; padding: 9px 8px; border-bottom: 1px dashed var(--line); cursor: pointer; font-size: 12.5px; align-items: center; border-radius: 8px; }
.ofBkRow:hover { background: var(--pri-bg); }
/* 智能识别粘贴框 + 「保存至地址簿」复选框 */
.smartBox { border: 1px solid var(--line); border-radius: 10px; background: #FAFBFC; padding: 8px 10px 6px; margin-top: 2px; transition: .13s; }
.smartBox:focus-within { border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-bg); background: #fff; }
.smartBox textarea { width: 100%; border: none; background: transparent; resize: vertical; min-height: 44px; font-size: 12.5px; }
.smartBox textarea:focus { outline: none; box-shadow: none; }
.smartBtns { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding-top: 4px; }
.ofChk { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--mu2); cursor: pointer; white-space: nowrap; user-select: none; margin-left: 12px; }
.ofChk input { width: 15px; height: 15px; accent-color: var(--pri); cursor: pointer; margin: 0; }

/* ---------- 打单发货：寄件 + 收件并排各半，订单信息整行在下（2026-10-06 店主改版） ---------- */
.ofRows { display: flex; flex-direction: column; gap: 10px; }
/* 寄件信息 / 收件信息 同一行，两张卡各占一半；卡片等高对齐 */
.ofSplit { display: flex; gap: 10px; align-items: stretch; }
.ofSplit > .ofCard { flex: 1 1 0; min-width: 0; }
.ofSplit .ofHead { flex-wrap: wrap; row-gap: 3px; }
/* 半宽卡内字段降为两列（整行的订单信息仍保持四列） */
.ofRows .ofSplit .ofGrid2c { grid-template-columns: 1fr 1fr; }
.ofRows .ofCard { margin-bottom: 0; }
.ofRows .ofHead { padding: 9px 16px 0; gap: 8px; }
.ofRows .ofCard > .pad { padding: 7px 16px 11px; }
/* 整行铺开后，字段一格四列（窄屏自动降两列），比三栏时代的两列更透气 */
.ofRows .ofGrid2c { grid-template-columns: repeat(4, 1fr); gap: 0 12px; }
.ofRows .areaRow select { height: 34px; font-size: 13px; }
.ofGrid2c { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
@media (max-width: 1420px) { .ofRows .ofGrid2c { grid-template-columns: 1fr 1fr; } }
/* 面板过窄时，寄件 / 收件 退回上下排列，避免半宽卡内字段被压扁 */
@media (max-width: 1080px) { .ofSplit { flex-direction: column; } }

/* 快递公司点选卡片（打单发货页）：横向卡片组，一眼可选；选中 = 红描边 + 淡红底 */
.cmpRow { display: flex; gap: 10px; flex-wrap: wrap; }
.cmpPill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px 7px 8px;
  border: 1px solid var(--line2); border-radius: 11px; background: #fff; cursor: pointer;
  transition: .13s; user-select: none; min-width: 158px;
}
.cmpPill:hover { border-color: #D2D6DC; background: var(--hover); transform: translateY(-1px); box-shadow: 0 4px 12px -8px rgba(16,24,40,.35); }
.cmpPill .pi {
  width: 30px; height: 30px; border-radius: 9px; color: #fff; font-size: 14px; font-weight: 700; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.cmpPill .pt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.cmpPill .pt b { font-size: 13px; font-weight: 600; white-space: nowrap; }
.cmpPill .pt em { font-style: normal; font-size: 11px; color: var(--mu); white-space: nowrap; }
/* 🔴 2026-10-15 改：选中原来是「淡粉底 + 红字」，整块糊成粉红色最扎眼。
   改成 白底 + 主色描边 + 一圈极淡外晕，文字保持深色 —— 一眼能看出选中，但不糊。 */
.cmpPill.on { border-color: var(--pri); background: #fff; box-shadow: 0 0 0 2px rgba(214,54,43,.09); }
.cmpPill.on .pt b { color: var(--tx); }
.cmpPill.on .pt em { color: var(--mu); }

/* 打单发货页字段收窄：输入框 33px 高，整页更紧凑 */
.ofRows .fg > input, .ofRows .ofGrid2c input, .ofRows .ofGrid2c select, .ofRows .areaRow select { height: 33px; font-size: 12.5px; border-radius: 8px; }
.ofRows .fg > input:hover, .ofRows .ofGrid2c input:hover, .ofRows .ofGrid2c select:hover, .ofRows .areaRow select:hover { border-color: #C9CDD4; }
.ofRows label.f { letter-spacing: .2px; }
.ofRows .chips .chip { height: 26px; font-size: 12px; }
.ofRows .smartBox textarea { min-height: 36px; }
.ofRows .fg { margin-bottom: 7px; }
.ofRows .fg:last-child { margin-bottom: 0; }


/* 数据卡选中态 + 本页清单（点卡片在下方展开，不跳运单列表） */
.ofStats5 .stat.on { border-color: var(--pri); background: var(--pri-bg); box-shadow: 0 0 0 1px var(--pri) inset; }
.ofStats5 .stat.on .k { color: var(--pri); font-weight: 600; }
#ofInline:empty { display: none; }
.ofInlineBox { margin-bottom: 10px; }
.ofInlineBox .ofHead { padding: 10px 16px 0; }
.ofInlineBox .pad { padding: 6px 16px 11px; }
.ofInlineTw { max-height: 252px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.ofInlineTb th { font-size: 11.5px; padding: 6px 9px; white-space: nowrap; }
.ofInlineTb td { font-size: 12px; padding: 5px 9px; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 二维码管理：缩略图（可点放大）+ 放大弹窗 ---------- */
img.qrThumb {
  width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; cursor: zoom-in; display: block; transition: .13s;
}
img.qrThumb:hover { border-color: var(--pri); box-shadow: 0 4px 14px -8px rgba(214,54,43,.55); transform: translateY(-1px); }
/* ---------- 门店码牌工作台（预览 + 改文案 + 打印） ---------- */
.cdWrap { display: flex; gap: 20px; align-items: flex-start; }
.cdPrev {
  flex: none; width: 320px; background: #F6F7F9; border: 1px solid var(--line);
  border-radius: 14px; padding: 14px; text-align: center;
  min-height: 480px; display: flex; align-items: center; justify-content: center;
}
.cdPrev canvas { width: 100%; height: auto; display: block; border-radius: 10px; box-shadow: 0 10px 30px -18px rgba(16,24,40,.45); }
.cdPrev .empty { font-size: 13px; }
.cdForm { flex: 1; min-width: 0; }
.cdForm .fg { margin-bottom: 10px; }
.cdForm .fg .f { display: block; font-size: 12.5px; color: var(--mu2); margin-bottom: 4px; }
.cdForm input, .cdForm select {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 8px;
  background: #fff; font-size: 13.5px; outline: none;
}
.cdForm input:focus, .cdForm select:focus { border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-bg); }
@media (max-width: 900px) { .cdWrap { flex-direction: column; } .cdPrev { width: 100%; max-width: 340px; margin: 0 auto; } }

/* ---------- 地址簿：筛选条 + 勾选导出 ---------- */
.abFilter {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 12px 0 10px; padding-top: 11px; border-top: 1px dashed var(--line);
}
.abFilter input, .abFilter select { height: 33px; border-radius: 8px; }
.abFilter .fg > input { height: 33px; font-size: 13px; }
.abFilter #abKw { font-size: 13px; }
.abFilter #abCount b { color: var(--tx); }
.abFilter .btn.sm { height: 31px; padding: 0 12px; font-size: 12.5px; }
.abFilter .btn.sm:disabled { opacity: .45; cursor: not-allowed; }
/* 表格里的勾选框：与行高对齐（行悬停色沿用全局 table.tb tr:hover） */
.tb input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--pri); cursor: pointer; margin: 0; vertical-align: -2px; }
/* 价格表明细：勾选后的批量操作条（2026-10-15 店主：这一页要能批量删） */
.pSelBar { position: sticky; top: 0; z-index: 6; background: var(--pri-bg);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 14px; }
.pSelBar .pSelN { color: var(--pri); font-size: 14px; }
.tb tr.pRowOn td { background: var(--pri-bg); }
/* 悬浮底部操作条 sticky 常驻：给面板尾部留出它的高度，滚到底不再盖住最后一行字 */
#vp-create { padding-bottom: 72px; }

/* 所在区域：省 / 市 / 区 三级下拉 */
.areaRow { display: grid; grid-template-columns: 1.05fr 1.05fr 1fr; gap: 6px; }
.areaRow select { width: 100%; height: 28px; font-size: 12px; padding: 0 4px; color: var(--tx); }
.areaRow select:invalid { color: var(--mu); }

/* 顶部 5 张数据卡收窄（打单发货页：未下单/未打印/已打印/下单失败/已取消） */
.ofStats5 { grid-template-columns: repeat(5, 1fr); margin-bottom: 10px; }
.ofStats5 .stat { padding: 8px 11px; gap: 9px; border-radius: 10px; }
.ofStats5 .stat .sico { width: 27px; height: 27px; border-radius: 9px; font-size: 13px; }
.ofStats5 .stat .v { font-size: 17.5px; }
.ofStats5 .stat .k { font-size: 11.5px; }
.ofFoot { padding: 9px 16px; border-radius: 12px; box-shadow: 0 12px 30px -18px rgba(16,24,40,.42), var(--sh); }
.ofFoot #nFee { letter-spacing: .3px; }

/* =====================================================================
   A 方案皮肤 · 清爽留白（2026-10-15 店主选定，只换视觉、不动结构/字段/功能）
   ① 输入框：极浅描边 + 极浅底，只有 focus 才出主色 —— 不再靠「重描边」表达边界，
      被系统/浏览器加深描边时也不会变成刺眼的黑框；
   ② 卡片 / 统计卡：更浅的边、更柔的阴影、更大的留白（打单页原本挤）；
   ③ 粘贴框改虚线浅底、底部条更轻，弱化「一个个框」的感觉。
   ⚠️ 这段放在打单发货段**最后**，靠顺序覆盖上面的紧凑规则，别往上挪。
   ===================================================================== */
/* 🔴 卡间距交给父级 gap（.ofRows / .ofSplit），卡片自身一律 margin-bottom:0，
      否则会在 gap 之外再叠一层间距，整页被撑高、fit 锁滚动更容易失效 */
/* 🔴 2026-10-15 二次调（店主：「比黑框还丑」）：上一版把描边压到几乎看不见，
   卡片 / 输入框没了边界，页面发虚，剩下的粉红色块反而成了主角。
   这次「用浅填充表达边界」：卡片给回一点点边、输入框改成浅灰填充底，
   有结构感，但绝不回到「黑框」（深色细线由 :root 的 color-scheme: light 挡住）。 */
.ofRows .card.ofCard {
  border-color: #E9ECF1; border-radius: 15px; margin-bottom: 0;
  box-shadow: 0 1px 2px rgba(16,24,40,.03), 0 10px 26px -22px rgba(16,24,40,.30);
}
.ofRows { gap: 12px; }
.ofSplit { gap: 12px; }
.ofRows .ofHead { padding: 14px 18px 0; gap: 9px; }
.ofRows .ofHead b { font-size: 15px; letter-spacing: .2px; }
.ofRows .ofCard > .pad { padding: 12px 18px 14px; }
.ofRows .fg { margin-bottom: 11px; }
.ofRows .ofGrid2c { gap: 11px 14px; }
.ofRows label.f { font-size: 12px; color: var(--mu2); margin-bottom: 6px; letter-spacing: .3px; }

/* 输入框 / 下拉：浅灰填充底 + 极浅描边 —— 边界靠「底色差」表达，不靠深描边 */
.ofRows .fg > input,
.ofRows .fg > select,
.ofRows .ofGrid2c input,
.ofRows .ofGrid2c select,
.ofRows .areaRow select {
  height: 35px; font-size: 13px; border-radius: 10px;
  border-width: 1px; border-style: solid; border-color: #E4E8EE; background: #F8F9FB;
}
.ofRows .fg > input:hover,
.ofRows .fg > select:hover,
.ofRows .ofGrid2c input:hover,
.ofRows .ofGrid2c select:hover,
.ofRows .areaRow select:hover { border-color: #D2D8E0; background: #fff; }
.ofRows .fg > input:focus,
.ofRows .ofGrid2c input:focus,
.ofRows .ofGrid2c select:focus,
.ofRows .areaRow select:focus {
  border-color: #E8A29B; background: #fff; box-shadow: 0 0 0 3px rgba(214,54,43,.10);
}
/* 粘贴识别框：虚线 + 浅底，不像一个「输入框」 */
.ofRows .smartBox {
  border: 1px dashed #E1E5EB; border-radius: 12px; background: #FAFBFC; padding: 9px 11px 7px;
}
.ofRows .smartBox:focus-within { border-color: #E8A29B; background: #fff; box-shadow: 0 0 0 3px rgba(214,54,43,.09); }
/* 🔴 2026-10-28 店主：粘贴框改成「随内容自动撑高」（JS: growSmart）。
   这里禁掉手动拖拽把手 —— 高度已经跟着行数走，留个把手反而会打架。 */
.ofRows .smartBox textarea { min-height: 40px; font-size: 12.5px; resize: none; }
/* 快递公司卡片：更圆；选中 = 白底 + 主色描边 + 淡外晕（不再铺粉底） */
.ofRows .cmpPill { border-color: #E7EAF0; border-radius: 13px; padding: 8px 16px 8px 8px; }
.ofRows .cmpPill:hover { border-color: #D6DBE3; background: #FBFCFD; }
.ofRows .cmpPill.on { border-color: var(--pri); background: #fff; box-shadow: 0 0 0 2px rgba(214,54,43,.09); }
/* 顶部 5 张数据卡：更浅边 + 更舒展 */
.ofStats5 { gap: 11px; margin-bottom: 12px; }
.ofStats5 .stat { padding: 10px 13px; gap: 10px; border-radius: 13px; border-color: #E9ECF1; }
.ofStats5 .stat .v { font-size: 18.5px; }
.ofFoot {
  border-color: #E9ECF1; border-radius: 13px; padding: 11px 18px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 14px 34px -22px rgba(16,24,40,.40);
}

/* 打单发货页：装得下就锁死滚动（fitCreateView 动态加 .fit），装不下自动退回可滚动 */
#app.fit { height: 100vh; overflow: hidden; }
#app.fit .content { flex: 1; min-height: 0; overflow: hidden; padding: 12px 18px 10px; }

/* ---------- 发货模板 / 打印配置 ---------- */
.ofTabs .ofLink { padding-bottom: 9px; }
#pMode .cmpCard { text-align: left; line-height: 1.45; }
#pMode .cmpCard b { font-size: 13.5px; }
#pLocal .warnbox { line-height: 1.95; }
#pLocal .warnbox b { color: #7A4E10; }
#pLocal .mono { background: #fff; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); }
#pState { font-size: 13.5px; }
#pAgentInfo { margin-top: 2px; }
/* 发货模板列表：操作列按钮不换行挤压 */
.tb td.act .btn + .btn { margin-left: 4px; }


@media (max-width: 1500px) { .stats8 { grid-template-columns: repeat(4, 1fr); } .ofStats5 { grid-template-columns: repeat(5, 1fr); } }
/* 打单发货数据条：窄屏降 3 列 / 2 列 */
@media (max-width: 1420px) { .ofStats5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1200px) { .pvGrid { grid-template-columns: repeat(2, 1fr); } .pvCard.pvSp2, .pvCard.pvSp3 { grid-column: span 2; } }
@media (max-width: 900px) {
  .stats8, .stats, .ofStats5 { grid-template-columns: repeat(2, 1fr); }
  .pvGrid { grid-template-columns: 1fr; }
  .pvCard.pvSp2, .pvCard.pvSp3 { grid-column: auto; }
  .side { width: 64px; }
  .side .brand span, .side .nav a span, .side .nav .sub, .sideFoot { display: none; }
  .nav a.g { justify-content: center; padding: 11px 0; margin: 2px 10px; }
  .nav a.g .caret { display: none; }
  .nav .grp.on .sub { display: none; }
  .grid2, .grid3, .quickGrid { grid-template-columns: 1fr; }
  .ofGrid4, .ofGrid2 { grid-template-columns: 1fr; }
  .topLink { padding: 6px 8px; }
  #topMeta, .brandSub { display: none; }
  .content { padding: 14px 14px 40px; }
}

/* ---------- 确认下单摘要（打单发货提交前的确认弹窗） ---------- */
.ckRow { border: 1px solid var(--line); border-radius: 10px; padding: 8px 13px; margin-bottom: 8px; background: var(--hover); }
/* 🔴 运单列表里「已取消」行的勾选框（.ckNo）：占位对齐、不可点。
   刻意**不挂 .ckRow**（全选是遍历 .ckRow 赋 checked 的，disabled 挡不住程序赋值）。
   尺寸必须和 .ckRow 那份勾选框一致，否则同一列里两种大小一眼看得出来。 */
.ckNo { border: 1px solid var(--line); border-radius: 10px; padding: 8px 13px; margin-bottom: 8px; background: var(--hover); opacity: .4; cursor: not-allowed; }
.ckT { font-weight: 600; font-size: 12.5px; color: var(--mu2); margin-bottom: 4px; }
.ckG { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; line-height: 1.7; }
.ckG b { font-weight: 600; }

/* ---------- 下单结果弹窗（打单发货）：文字信息 + 打印 / 预览 / 关闭 ---------- */
.orrRow { border: 1px solid var(--line); border-radius: 10px; padding: 4px 14px 6px; margin-bottom: 10px; }
.orrNo { font-weight: 600; color: var(--pri); font-size: 13px; padding-top: 6px; }
#orrPrinter { height: 33px; padding: 0 8px; border: 1px solid var(--line2); border-radius: 8px; background: #fff; }
#orrPrinter:disabled { color: var(--mu); background: var(--gray-bg); }

/* ---------- 面单图片预览 + 转发微信 ---------- */
.lpItem { margin-bottom: 16px; }
.lpItem img { max-width: 100%; max-height: 68vh; display: block; margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 10px 30px -18px rgba(16,24,40,.35); }

/* ---------- 价格表：新增规则向导（省多选 / 市勾选 / 重量档） ---------- */
/* 🔴 2026-10-15 改：必填标记原来是个「粉色药丸」，一屏十几个粉色小块，看着脏。
   改成极小的红星号（不带底色），有提示、不抢眼。 */
.req { display: inline-block; font-size: 12px; line-height: 1; font-weight: 700; color: #E0533F; background: none; border-radius: 0; padding: 0; margin-left: 3px; }
.pkChips { max-height: 170px; overflow: auto; padding: 9px 11px; border: 1px solid var(--line2); border-radius: 10px; background: #FCFCFD; }
.pkRow { display: flex; align-items: center; gap: 8px; padding: 7px 2px; border-top: 1px dashed var(--line); }
.pkRow:first-child { border-top: 0; }
.pkCityHd { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; }
.pkSmall { padding: 9px 11px; border: 1px solid var(--line2); border-radius: 10px; background: #FCFCFD; max-height: 210px; overflow: auto; margin-bottom: 8px; }
.pkTier { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 12px; background: #FCFCFD; }
.pkAdv { margin-top: 14px; }
.pkAdv > summary { cursor: pointer; font-size: 12.5px; color: var(--mu2); padding: 8px 0; user-select: none; }
.pkAdv > summary:hover { color: var(--pri); }

/* ---------- 链路开关：顺丰月结号列表（可配多张） ---------- */
.mcRow { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px dashed var(--line); }
.mcRow:first-child { border-top: 0; }
.mcRow .mcLabel { width: 200px; flex: 0 0 auto; }
.mcRow .mcCard { flex: 1 1 auto; min-width: 160px; }
.mcRow .sw { flex: 0 0 auto; }
@media (max-width: 720px) {
  .mcRow { flex-wrap: wrap; }
  .mcRow .mcLabel, .mcRow .mcCard { width: 100%; flex: 1 1 100%; }
}

/* ---------- 「运费」页：客户在小程序里看到的运费试算抽屉（示意） ---------- */
.feeSheet { background: #F6F7F9; border: 1px solid var(--line2); border-radius: 14px; padding: 16px 14px 18px; }
.feeSheet .fsT { font-size: 15px; font-weight: 600; }
.feeSheet .fsS { font-size: 11.5px; color: var(--mu); margin-top: 4px; }
.feeSheet .fsRow { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #E9EBEF; }
.feeSheet .fsRow .k { width: 78px; flex: none; font-size: 13px; color: var(--mu2); }
.feeSheet .fsRow .v { flex: 1; font-size: 13px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.feeSheet .fsRow .chip { padding: 4px 10px; font-size: 12px; cursor: default; }
.feeSheet .fsBtn { margin-top: 14px; text-align: center; background: var(--pri); color: #fff; border-radius: 10px; padding: 10px 0; font-size: 14px; font-weight: 600; }

/* 系统中断告警条（2026-10-14）：比待办条更红 —— 这个是真的出过事故（¥0 运费单 / 重复单） */
.svcBar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 14px 0; padding: 11px 14px;
  background: #FEF1F0; border: 1px solid #F7C9C4; border-radius: 12px; font-size: 13px; line-height: 1.6; color: #A32B20; }
.svcBar .svcIco { font-style: normal; font-size: 16px; flex: none; }
.svcBar .svcTxt { flex: 1 1 auto; min-width: 240px; }
.svcBar .sp { flex: 0 0 auto; }
.svcBar .btn.sm { padding: 6px 12px; font-size: 12.5px; }
.svcBar .btn.ghost { background: transparent; border-color: #EBB9B2; color: #A32B20; }
.svcBar .btn.ghost:hover { background: #FCE3E0; }

/* 一票多件：面单图上方的母/子件标注（2026-10-15 店主）
 * 编号依据顺丰云打印返回的 seqNo（母件=1/N、子件=2/N…），与服务端一致。 */
.lpTag {
  display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.6;
  padding: 2px 10px; border-radius: 14px; margin: 0 auto 8px; display: block; width: fit-content;
  background: #eef2f7; color: #4a5568;
}
.lpItem { margin-bottom: 18px; }
/* 母件（第 1 张）：与顺丰图上「1/N子母件」对应 */
.lpTag.lpTagM { background: #1a7f37; color: #fff; }

/* ---------- 批量预览工作台（2026-11-13 店主定方案 B）----------
 * 布局：左订单清单（收窄到 208px）+ 右面单墙（顶栏工具条 / 画布 / 底部状态栏）。
 * ⛔ 缩放作用在**面单本身**：--lpw 是单张显示宽度，卡片变窄 → 一行自然多放，不是整块画布 scale。
 * ⛔ 图下不印运单号（店主 2026-11-13 明确要求去掉）——面单图上本来就印着，多一行只是多占高度。
 * ⛔ 左侧宽度别再放大：店主原话「左边的批量预览收窄」，208px 是核准值。 */
.mask.full { padding: 20px 16px; overflow: hidden; }
.dlg.full {
  width: calc(100vw - 32px); max-width: none; height: calc(100vh - 40px);
  display: flex; flex-direction: column; overflow: hidden;
}
.dlg.full > header { flex: 0 0 auto; padding: 11px 18px; }
.dlg.full > .bd { flex: 1 1 auto; min-height: 0; padding: 0; max-height: none; overflow: hidden; }
.dlg.full:fullscreen { width: 100vw; height: 100vh; border-radius: 0; }

.lpWork { display: flex; height: 100%; min-height: 0; }

/* 左：订单清单 */
.lpSide { width: 208px; flex: 0 0 208px; display: flex; flex-direction: column;
          border-right: 1px solid var(--line); background: #FCFCFD; }
.lpSideHd { flex: 0 0 auto; padding: 10px 10px 9px; border-bottom: 1px solid var(--line); }
.lpSum { font-size: 12px; color: var(--mu); line-height: 1.45; }
.lpSum b { color: var(--tx); font-weight: 600; }
.lpQ { margin-top: 8px; }
.lpQ input { width: 100%; height: 28px; border: 1px solid var(--line2); border-radius: 7px;
             padding: 0 9px; font-size: 12px; background: #fff; outline: none; }
.lpQ input:focus { border-color: #C9CED6; }
.lpList { flex: 1 1 auto; overflow: auto; padding: 6px; }
.lpO { display: flex; align-items: flex-start; gap: 7px; padding: 7px 6px; border-radius: 8px;
       cursor: pointer; border: 1px solid transparent; }
.lpO:hover { background: #F6F7F9; border-color: var(--line); }
.lpO.hl { background: #FFF8F7; border-color: #F6DAD7; }
.lpO input { appearance: none; -webkit-appearance: none; width: 15px; height: 15px; margin: 1px 0 0; flex: none;
             border: 1.5px solid #C6CBD3; border-radius: 4px; background: #fff; cursor: pointer; }
.lpO input:checked { border-color: var(--pri);
  background: var(--pri) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'/></svg>") no-repeat center; }
.lpO .m { min-width: 0; flex: 1 1 auto; }
.lpO .no { display: block; font-size: 11.5px; letter-spacing: .1px; white-space: nowrap;
           overflow: hidden; text-overflow: ellipsis; }
.lpO .mt { display: block; font-size: 11px; color: var(--mu); margin-top: 2px; white-space: nowrap;
           overflow: hidden; text-overflow: ellipsis; }
.lpO .n { flex: none; font-size: 10.5px; line-height: 1.3; color: var(--mu2); background: #fff;
          border: 1px solid var(--line); padding: 1px 5px; border-radius: 20px; }
.lpO.off .no { color: #B4B9C1; text-decoration: line-through; }
.lpO.off .mt, .lpO.off .n { opacity: .5; }
.lpO.pend .n { background: #FDF5E6; border-color: #F1E0BE; color: #B7791F; }
.lpSideFt { flex: 0 0 auto; padding: 8px; border-top: 1px solid var(--line); display: flex; gap: 6px; }
.lpSideFt .btn { flex: 1 1 0; justify-content: center; padding: 0; }

/* 右：画布 */
.lpMain { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.lpTop { flex: 0 0 auto; height: 46px; display: flex; align-items: center; gap: 8px;
         padding: 0 14px; border-bottom: 1px solid var(--line); background: #fff; }
.lpSeg { display: flex; flex: none; padding: 2px; border: 1px solid var(--line);
         border-radius: 8px; background: var(--gray-bg); }
.lpSeg button { border: 0; background: transparent; font-size: 12px; color: var(--mu2);
                padding: 4px 9px; border-radius: 6px; cursor: pointer; }
.lpSeg button.on { background: #fff; color: var(--tx); font-weight: 600; box-shadow: 0 1px 2px rgba(16,24,40,.1); }
.lpZ { display: flex; flex: none; align-items: center; border: 1px solid var(--line2);
       border-radius: 8px; background: #fff; }
.lpZ button { width: 26px; height: 26px; border: 0; background: transparent; cursor: pointer;
              font-size: 14px; color: var(--mu2); }
.lpZ button:hover { background: var(--gray-bg); }
.lpZv { min-width: 42px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.lpZsl { display: flex; align-items: center; padding: 0 8px; border-left: 1px solid var(--line); }
.lpZsl input { width: 84px; accent-color: var(--pri); }
.lpPerT { flex: none; font-size: 12px; color: var(--mu); }
.lpStage { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 18px 16px 26px; background: #F6F7F9; }
.lpGrid { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; justify-content: center; }
.lpCard { position: relative; flex: none; width: var(--lpw, 190px); }
.lpCard img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 4px;
              background: #fff; box-shadow: 0 6px 20px -14px rgba(16,24,40,.3); cursor: zoom-in; }
.lpCard.hl img { box-shadow: 0 0 0 2px #F2B7B1, 0 12px 28px -16px rgba(214,54,43,.45); }
/* 横排：整张转 90°，卡片的宽高互换（宽 = --lpw / 宽高比 由图片自身尺寸算出）。
   🔴 用 -90deg（逆时针）：面单顶部朝左，跟「把纸转过来看」的直觉一致；
      顺时针那版顶部朝右，字要从下往上倒着读（2026-11-13 实拍对比后改的）。 */
.lpCard.land { width: calc(var(--lpw, 190px) / var(--ar, .556)); height: var(--lpw, 190px); }
.lpCard.land img { position: absolute; left: 50%; top: 50%; width: var(--lpw, 190px); height: auto;
                   transform: translate(-50%, -50%) rotate(-90deg); }
.lpBdg { position: absolute; top: 6px; left: 6px; z-index: 2; font-size: 10px; line-height: 1;
         padding: 3px 5px; border-radius: 5px; background: rgba(27,31,36,.86); color: #fff; }
.lpCard.land .lpBdg { top: auto; bottom: 6px; left: 6px; }
.lpPend { border: 1px dashed #D8DCE2; border-radius: 6px; background: #fff; padding: 26px 10px;
          text-align: center; font-size: 11.5px; line-height: 1.8; color: var(--mu); }
.lpPend b { display: block; font-size: 12px; color: var(--mu2); word-break: break-all; }
.lpStatus { flex: 0 0 auto; height: 34px; display: flex; align-items: center; gap: 14px;
            padding: 0 14px; border-top: 1px solid var(--line); background: #fff;
            font-size: 12px; color: var(--mu); }
.lpStatus b { color: var(--mu2); font-weight: 600; }
.lpStatus .rk { margin-left: auto; color: #A8AEB8; }

/* 面单内容配置（2026-10-15 第二版：整块重做）
 * 左：分组勾选项，每项右侧一条「面单底边」缩略图（勾=底部多出这行 / 不勾=灰条"不印"）
 * 右：一整张面单示意图，自定义区随勾选实时变化（新增行闪一下）
 * 店主口径：顺丰固定的（条码/运单号/收寄件人/托寄物）不拿出来勾，改不了的东西不给假开关。 */
.lcc { overflow: hidden; }
.lcHead { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.lcTitle { font-size: 15px; font-weight: 700; }
.lcSub { margin-top: 3px; line-height: 1.55; max-width: 620px; }
.lcBody { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.lcMain { flex: 1 1 430px; min-width: 300px; }
.lcSide { flex: 0 0 214px; position: sticky; top: 72px; }

/* 快递公司 chip */
.lcCos { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.lcCoItem {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px 0 6px;
  border: 1px solid var(--line2); border-radius: 999px; background: #fff; cursor: pointer;
  font-size: 13px; color: var(--mu2); transition: .13s;
}
.lcCoItem:hover { border-color: #CFD4DA; background: var(--hover); }
.lcCoItem.on { border-color: var(--pri); background: var(--pri-bg); color: var(--pri); font-weight: 600; }
.lcCoDot {
  width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.lcCoNew { font-size: 11px; color: var(--mu); font-weight: 400; }

/* 分组块 */
.lcG { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; background: #fff; }
.lcGT {
  display: flex; align-items: baseline; gap: 8px; padding: 9px 13px 8px;
  font-size: 12.5px; font-weight: 700; color: var(--mu2);
  background: #FAFBFC; border-bottom: 1px solid var(--line);
}
.lcGH { font-weight: 400; font-size: 11.5px; color: var(--mu); }
.lcGRows { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); }

/* 单个勾选项 */
.lcItem {
  display: flex; align-items: center; gap: 10px; padding: 9px 13px; cursor: pointer;
  border-right: 1px solid #F4F5F7; border-bottom: 1px solid #F4F5F7;
  transition: .12s; user-select: none;
}
.lcItem:hover { background: var(--hover); }
.lcItem.on { background: #fff; }
.lcSw { width: 34px; height: 19px; border-radius: 999px; background: #D8DCE2; position: relative; flex: none; transition: .15s; }
.lcSw:after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: .15s;
}
.lcSw.on { background: var(--pri); }
.lcSw.on:after { left: 17px; }
.lcIName { font-size: 13px; font-weight: 600; color: var(--mu2); flex: none; }
.lcItem.on .lcIName { color: var(--tx); }

/* 每项右侧的「面单底边」缩略图 —— 店主 ④：一眼看出勾了多什么、不勾少什么 */
.lcIMini {
  flex: 1; min-width: 0; height: 30px; border-radius: 5px; border: 1px solid #E6E9ED; background: #fff;
  display: flex; align-items: center; gap: 7px; padding: 0 8px; overflow: hidden;
}
.lcIMini i {
  width: 28px; height: 14px; flex: none; border-radius: 2px;
  background: repeating-linear-gradient(90deg, #1B1F24 0 1px, transparent 1px 3px); opacity: .8;
}
.lcIMini span { font-size: 12px; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcIMini.off { background: #F5F6F8; border-style: dashed; border-color: #DFE3E8; }
.lcIMini.off i { opacity: .2; }
.lcIMini.off span { color: #A6ABB3; }

/* 自定义文字 */
.lcNoteRow { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.lcNoteLab { font-size: 13px; font-weight: 600; color: var(--mu2); flex: none; }
.lcNoteRow input { flex: 1; height: 34px; }

/* 右侧整张面单示意图 */
.lcSideT { font-size: 12.5px; color: var(--mu2); font-weight: 700; margin-bottom: 7px; }
.lcPaper {
  width: 100%; background: #fff; border: 1px solid #DDE1E6; border-radius: 8px; padding: 9px 10px 10px;
  box-shadow: 0 10px 24px -20px rgba(16,24,40,.55);
}
.lcPHead { display: flex; align-items: center; gap: 6px; padding-bottom: 7px; border-bottom: 1px solid #EDEFF2; }
.lcPSf {
  width: 20px; height: 20px; border-radius: 4px; background: #1B1F24; color: #fff;
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.lcPHead b { font-size: 12.5px; }
.lcPTm {
  margin-left: auto; font-style: normal; font-size: 10px; background: #1B1F24; color: #fff;
  padding: 1px 6px; border-radius: 3px;
}
.lcPCode { padding: 8px 0 5px; }
.lcPCode i { display: block; height: 26px; background: repeating-linear-gradient(90deg, #111 0 2px, #fff 2px 4px, #111 4px 5px, #fff 5px 9px); }
.lcPWb { display: block; font-size: 10px; letter-spacing: 1px; color: #444; text-align: center; margin-top: 2px; font-family: ui-monospace, Consolas, monospace; }
.lcPRows { border-top: 1px dashed #E3E6EA; margin-top: 6px; padding-top: 6px; }
.lcPRow { display: flex; gap: 6px; font-size: 11px; color: #333; padding: 2px 0; }
.lcPRow em { font-style: normal; background: #F0F2F5; border-radius: 3px; padding: 0 4px; color: #666; }
.lcPQr { display: flex; justify-content: flex-end; padding: 6px 0; }
.lcPQr i {
  width: 38px; height: 38px; border-radius: 3px;
  background: repeating-linear-gradient(45deg, #222 0 3px, #fff 3px 6px), repeating-linear-gradient(-45deg, #222 0 3px, #fff 3px 6px);
}
.lcPArea { border-top: 1px dashed #D9DDE2; padding-top: 7px; min-height: 32px; display: flex; flex-direction: column; gap: 3px; }
.lcALine { font-size: 11px; color: #1B1F24; border-left: 2px solid var(--pri); padding: 1px 0 1px 6px; display: flex; align-items: center; gap: 5px; }
.lcALine.lcAFx { border-left-color: #C9CFD6; color: #8A9099; }
.lcALine.lcAFx i { font-style: normal; font-size: 9.5px; background: #F0F2F5; border-radius: 3px; padding: 0 4px; color: #9AA0A8; }
.lcALine.lcAEmpty { border-left-color: #E3E6EA; color: #A6ABB3; }
.lcFlash { animation: lcFlash .9s ease; }
@keyframes lcFlash { from { background: #FFF0C8; } to { background: #fff; } }

/* 底部操作条（只有「保存面单模板」一个按钮 —— 「保存并重打已有面单」已按店主要求去掉） */
.lcFoot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
}
/* 打印配置页顶部的保存条（2026-10-15 店主：按钮从页尾上移到卡片上面） */
.pcTopBar {
  position: sticky; top: 0; z-index: 8;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 12px; padding: 10px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}
@media (max-width: 900px) {
  .lcSide { flex: 1 1 100%; position: static; }
  .lcPaper { max-width: 260px; }
}

/* ---------- 运单归属页（2026-10-15 店主要）---------- */
.owIn { height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; width: 190px; }
.owIn:focus { outline: none; border-color: var(--pri); }
.owIn.owWide { width: 280px; }
/* 归属结果标签：绿=已归属 / 红=名单拦截 / 蓝=本人下单 / 灰=没归属上 */
.owTag { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; border: 1px solid transparent; white-space: nowrap; }
.owTag.ok   { color: #1a7f47; background: #E8F6EE; border-color: #C9E9D6; }
/* 🔴 2026-11-02 店主：「已签收和已取消的颜色太接近了」。
 *   打单发货页这一排原来是 已签收=ok(浅绿) / 已取消=off(浅灰)，明度几乎一样。
 *   现在已签收走 .done（绿实一档 + 600），已取消仍走 .off（灰），一眼分开。
 *   ⚠️ .ok 还兼着「待揽收」，所以不能直接改 .ok —— 否则待揽收和已签收又同色了。 */
.owTag.done { color: #0A6B4C; background: #D2EEDF; border-color: #B7E2CC; font-weight: 600; }
.owTag.no   { color: var(--pri); background: var(--pri-bg); border-color: #F3D5D2; }
.owTag.self { color: #1f5fa8; background: #EAF2FC; border-color: #CFE0F5; }
.owTag.off  { color: #8A8F98; background: #F2F3F5; border-color: #E3E5E8; }

/* ---------- 打印网关弹窗（2026-10-23 重排：只留功能，去步骤说明）---------- */
.gwSec { font-size: 12px; font-weight: 600; color: var(--mu2); letter-spacing: .3px; margin: 0 0 8px; }
.gwHr { height: 1px; background: var(--line); margin: 2px 0 16px; }
/* 打印网关：首次安装命令折叠区（2026-10-23，日常用不到，默认收起） */
.gwFold { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.gwFold > summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--mu2); list-style: none; outline: none; }
.gwFold > summary::-webkit-details-marker { display: none; }
.gwFold > summary::before { content: '▸'; display: inline-block; width: 14px; }
.gwFold[open] > summary::before { content: '▾'; }
.gwFold > summary:hover { color: var(--tx); }
.gwFold[open] > summary { margin-bottom: 10px; }

/* 结算方式单元格（快递公司页，2026-10-26）：整格可点，点开这家的三档配置 */
.lkCell { display: inline-block; cursor: pointer; padding: 2px 4px; margin: -2px -4px; border-radius: 6px; white-space: nowrap; }
.lkCell:hover { background: var(--info-bg); }
.lkCell::after { content: ' ✎'; color: var(--mu); font-size: 11px; opacity: 0; transition: opacity .15s; }
.lkCell:hover::after { opacity: 1; }

/* ---------- 链路开关页 · 取号通道（2026-10-27 店主：三种方式都能选，每家单独选）----------
 * 方块三态：亮=当前生效 / 普通=可选且可用 / 虚线灰=凭证没配齐（悬停看差什么）。
 * 当前生效但不可用（亮 + 虚线 + 琥珀）单独一档：店主能一眼看出「现在这条路是瘸的」，
 * 而不是被当成普通可选状态混过去。 */
.chip.off { opacity: .55; border-style: dashed; }
.chip.off:hover { opacity: .85; }
.chip.on.off { opacity: 1; border-style: solid; border-color: var(--warn); background: var(--warn-bg); color: var(--warn); }
.lnkNow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.lnkOk { color: var(--ok); font-weight: 600; }
.lnkBad { color: var(--pri); }
.lnkLanes { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: var(--mu2); }
.lnkLane { display: inline-flex; align-items: center; white-space: nowrap; }
.lnkDescs { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--mu2); line-height: 1.75; }
.lnkDesc b { color: var(--tx); margin-right: 6px; }

/* ══════════════════════════════════════════════════════════════════
   取号链路（2026-10-30 重做：店主「一行一个项目」）
   · 一行 = 一家快递公司，三栏：公司名 200 / 途径按钮 1fr / 状态 132
   · 途径按钮顺序固定（直连·淘宝·菜鸟·快递100·拼多多），竖着扫一列就知道
     哪几家走了同一条路 —— 这是表格排不出来的东西
   · 只在「选中的那条」用主色，其余一律白底细边；未接线的画虚线不可点
   ══════════════════════════════════════════════════════════════════ */
.lkCard > .pad { padding-top: 16px; }

/* 顶部：五条途径各自的总状态 */
.lkLanes { display: flex; gap: 10px; flex-wrap: wrap; }
.lkL {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px;
  border-radius: 10px; background: #FAFBFC; border: 1px solid var(--line);
  font-size: 12.5px; color: var(--mu2); line-height: 1;
}
.lkL b { color: var(--tx); font-weight: 600; }
.lkL span { color: var(--mu); font-size: 12px; }
.lkL.k-ok { background: var(--ok-bg); border-color: #CFEBDF; }
.lkL.k-ok span { color: var(--ok); }
.lkL.k-part { background: var(--warn-bg); border-color: #F3E3C4; }
.lkL.k-part span { color: var(--warn); }
.lkL.k-bad { background: var(--pri-bg); border-color: #F8D8D5; }
.lkL.k-bad span { color: var(--pri); }
.lkL.k-na { background: #F7F8FA; border-style: dashed; }
.lkL.k-na span { color: #A8AEB8; }

/* 分组卡：通达系一张 / 顺丰京东一张 */
.lkG { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.lkGH {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  background: #FAFBFC; border-bottom: 1px solid var(--line);
}
.lkGH b { font-size: 14px; }
.lkGH .sp { flex: 1; }
.lkRow {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) 118px;
  align-items: center; gap: 14px; padding: 12px 14px;
}
.lkRow + .lkRow { border-top: 1px solid #F3F4F6; }
.lkRow:hover { background: #FCFCFD; }
.lkWho { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lkWho b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lkWho .mono { color: var(--mu); font-size: 11.5px; }
/* 每行末尾的小齿轮：凭证 / 月结账号 / 启用开关 */
.lkCfg {
  margin-left: auto; flex: none; width: 22px; height: 22px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line2); border-radius: 6px; background: #fff;
  color: var(--mu); font-size: 12px; line-height: 1; cursor: pointer;
}
.lkCfg:hover { border-color: var(--pri); color: var(--pri); background: var(--pri-bg); }

/* 弹窗里装原来的「卡片」：去掉卡片外壳（边框/底色/标题），只留内容 ——
 * 顺丰、极兔的凭证表单原来是独立卡片，2026-10-31 移到链路行的齿轮弹窗里 */
.modalCfg .card { border: 0; box-shadow: none; background: transparent; border-radius: 0; }
.modalCfg .card > h2 { display: none; }
.modalCfg .card > .pad { padding: 0; }
.lkPicks { display: grid; gap: 6px; min-width: 0; }
.lkSt { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }

/* 途径按钮：一个按钮 = 一条路。宽度由 .lkPicks 的固定列给（行行对齐），文字居中 */
.pick {
  height: 30px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 0 8px; border: 1px solid var(--line2); background: #fff; border-radius: 8px;
  font-size: 12.5px; color: var(--mu2); cursor: pointer; white-space: nowrap;
  transition: border-color .12s, background .12s, color .12s;
}
.pick:hover { border-color: #C9CED6; background: var(--hover); }
.pick.on { border-color: var(--pri); background: var(--pri-bg); color: var(--pri); font-weight: 600; }
/* wane：这条路凭证没配齐，但允许硬点（点了会二次确认） */
.pick.wane { border-style: dashed; color: #9AA1AB; }
.pick.wane:hover { border-color: var(--warn); color: var(--warn); background: var(--warn-bg); }
/* na：还没接入出单链路（淘宝待接 / 拼多多待做），disabled */
.pick.na { background: #F7F8FA; border-style: dashed; color: #B4BAC3; cursor: not-allowed; }
.pick.na:hover { border-color: var(--line2); background: #F7F8FA; }
.pick em {
  font-style: normal; font-size: 10.5px; line-height: 1; padding: 2px 5px;
  border-radius: 999px; background: #EEF0F3; color: #8A9099; margin-left: 1px;
}
.pick.on em { background: #FBDFDC; color: var(--pri); }
.dot.pri { background: var(--pri); }
.dot.n { background: #CBD0D8; }

/* ==================================================================
   链路行内展开表单（2026-10-31）
   店主口径：「点击菜鸟，下方就只需要出现几个菜鸟需要填写的编码框」
   整块跨满整行（grid-column 1/-1），跟着所属公司走 —— 谁的路，框就长在谁下面。
   ================================================================== */
.lkForm { grid-column: 1 / -1; min-width: 0; }
.lkForm[hidden] { display: none; }
.lkRow.lkOpen { background: #FCFDFE; }
.lkF {
  margin: 2px 0 4px; padding: 14px 14px 12px;
  border: 1px solid #E6EAF0; border-radius: 10px; background: #FBFCFE;
}
.lkFh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.lkFh b { font-size: 13.5px; }
.lkFh .sp { flex: 1; }
.lkX {
  border: 1px solid var(--line2); background: #fff; color: var(--mu2);
  border-radius: 7px; height: 26px; padding: 0 10px; font-size: 12px; cursor: pointer;
}
.lkX:hover { border-color: var(--pri); color: var(--pri); }
/* 平台应用那一层：已配好 = 绿底一句话，省得店主到处找 KEY */
.lkFapp {
  display: block;
  padding: 8px 11px; border-radius: 8px; font-size: 12.5px; line-height: 1.6; margin-bottom: 10px;
}
.lkFappH { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lkFapp.ok { background: #F1FAF4; border: 1px solid #D6EEDF; color: #2C6B45; }
.lkFapp.bad { background: #FDF3F2; border: 1px solid #F6D8D5; color: #A33A31; }
.lkFapp b { font-weight: 600; }
.lkFapp span { color: inherit; opacity: .92; }
/* 平台凭证的实际值：两列对表，值用等宽字体、可整行选中复制
 * （2026-10-31 店主：「把填好的都显示出来。不要隐藏」） */
.lkFappL {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 2px 10px;
  margin: 8px 0 0; padding: 8px 0 0; border-top: 1px dashed rgba(0, 0, 0, .1);
}
.lkFappL dt { color: inherit; opacity: .72; font-size: 12px; }
.lkFappL dd {
  margin: 0; font-size: 12px; color: inherit; font-weight: 600;
  word-break: break-all; user-select: all;
}
.lkFappL dd.nil { font-weight: 400; opacity: .55; }
.lkFhint {
  font-size: 12.5px; line-height: 1.75; color: var(--mu2);
  margin-bottom: 12px; padding-left: 2px;
}
.lkFf {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px 16px;
}
.lkFi { display: flex; flex-direction: column; gap: 5px; position: relative; min-width: 0; }
.lkFi .n { font-size: 12.5px; color: var(--mu2); display: flex; align-items: center; gap: 4px; }
/* 有「清空」按钮时给标题行右侧留位，避免长标签压到按钮上 */
.lkFi.has .n { padding-right: 42px; }
.lkFi .n i { color: var(--pri); font-style: normal; }
/* 「已填」小标：只提醒有没有值，值本身就在下面的框里 */
.lkHas {
  font-size: 10.5px; line-height: 15px; padding: 0 5px; border-radius: 4px;
  background: #EDF7F1; color: #2C6B45; border: 1px solid #D6EEDF; font-weight: 400;
}
.lkFi input {
  height: 32px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 7px;
  font-size: 13px; width: 100%; box-sizing: border-box; background: #fff;
}
.lkFi input:focus { border-color: var(--pri); outline: none; }
.lkFi em { font-size: 11.5px; color: var(--mu); font-style: normal; line-height: 1.5; }
.lkClr {
  position: absolute; right: 0; top: 0; height: 18px; padding: 0 6px;
  border: 1px solid var(--line2); background: #fff; border-radius: 5px;
  font-size: 10.5px; color: var(--mu); cursor: pointer;
}
.lkClr:hover { border-color: var(--pri); color: var(--pri); }
/* 长值（密钥 / Token / partnerKey）占满整行 + 等宽小字：窄格里 32 位必然被截掉尾巴，
 * 店主看到半截等于没看到（2026-10-31「把填好的都显示出来。不要隐藏」）。 */
.lkFi.wide { grid-column: 1 / -1; }
.lkFi.wide input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: -.2px;
}
/* 多月结卡号：卡号 / 备注 / 启用 / 删除 四列
 * 限宽 760px：不加限制时备注列会被拉得极宽（整行 1200px），看起来像表格坏掉了 */
.lkCards { display: flex; flex-direction: column; gap: 6px; max-width: 760px; }
.lkChd, .lkCr {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) 44px 30px;
  gap: 8px; align-items: center;
}
.lkChd { font-size: 11.5px; color: var(--mu); padding: 0 2px; }
.lkCr input {
  height: 32px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 7px;
  font-size: 13px; width: 100%; box-sizing: border-box; background: #fff;
}
.lkCr input:focus { border-color: var(--pri); outline: none; }
/* 服务商多行（2026-11-10）：名称 / cpCode / 客户编码 / 覆盖地区 / 启用 / 删除 */
.lkCards.pv { max-width: 1020px; }
.lkPvh, .lkPv {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, .82fr) minmax(0, 1fr) minmax(0, 1.06fr) 44px 30px;
  gap: 8px; align-items: center;
}
.lkPvh { font-size: 11.5px; color: var(--mu); padding: 0 2px; }
.lkPv input {
  height: 32px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 7px;
  font-size: 13px; width: 100%; box-sizing: border-box; background: #fff;
}
.lkPv input:focus { border-color: var(--pri); outline: none; }
.lkPvNote { font-size: 12px; color: var(--mu); padding: 4px 2px 8px; line-height: 1.65; }
.lkDel {
  width: 26px; height: 26px; border: 1px solid var(--line2); background: #fff; border-radius: 6px;
  color: var(--mu); cursor: pointer; line-height: 1; font-size: 15px;
}
.lkDel:hover { border-color: var(--pri); color: var(--pri); }
/* 月结卡「绑没绑开放平台」的状态行（2026-11-07）
 * 顺丰没开放绑定接口，网页只能替店主去问一遍 + 把结论常驻在这里，
 * 所以这行不是装饰：没绑的卡会一直是橙/红，直到他去丰桥点完那一次。 */
.lkCbox { display: flex; flex-direction: column; gap: 0; }
.lkCst {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  padding: 5px 2px 3px 2px; font-size: 12px; color: var(--mu); line-height: 1.6;
}
.lkCst i.dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--mu); }
.lkCst.ok { color: #1D7A52; }
.lkCst.ok i.dot { background: var(--ok); }
.lkCst.warn { color: #8A5D08; background: #FFFBF2; border-radius: 6px; padding: 5px 8px 4px; }
.lkCst.warn i.dot { background: #D9A32B; }
.lkCst.bad { color: var(--pri); background: #FEF7F6; border-radius: 6px; padding: 5px 8px 4px; }
.lkCst.bad i.dot { background: var(--pri); }
.lkCst button {
  border: 0; background: none; padding: 0; margin-left: 2px; cursor: pointer;
  font-size: 12px; color: #1D7A52; text-decoration: underline;
}
.lkCst.bad button, .lkCst.warn button { color: var(--pri); }
.lkCst button:disabled { opacity: .55; cursor: default; text-decoration: none; }
/* 「去绑定」弹窗里的卡号：要大、要能一眼核对 */
.lkBindNo {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 22px; letter-spacing: 2px; font-weight: 700;
  padding: 10px 12px; background: #F4F7F5; border: 1px dashed #C9DCD2; border-radius: 8px;
  text-align: center; user-select: all;
}
.lkFa { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.lkFa .tipTxt { font-size: 12.5px; }

/* 「查物流（轨迹）」那一层：没配红框、配好绿框（2026-10-31 店主：不配置轨迹要提示他） */
.lkTr { margin-top: 14px; padding: 12px 13px; border-radius: 9px; border: 1px dashed var(--line2); background: #fff; }
.lkTr.ok { border-style: solid; border-color: #D6EEDF; background: #F6FBF8; }
.lkTr.bad { border-color: #F0D3CF; background: #FEF9F8; }
.lkTrh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.lkTrh b { font-size: 13px; }
.lkTrh .sp { flex: 1; }
.lkTrn { font-size: 12.5px; line-height: 1.75; color: var(--mu2); }
.lkTrn b { color: var(--mu2); font-weight: 600; }
.lkTrm { margin-top: 6px; font-size: 12px; color: var(--pri); }
.lkHow { margin-top: 10px; }
.lkHow > summary {
  cursor: pointer; font-size: 12.5px; color: var(--info); list-style: none;
  padding: 4px 0; user-select: none;
}
.lkHow > summary::-webkit-details-marker { display: none; }
.lkHow > summary:before { content: '›'; display: inline-block; margin-right: 5px; transition: transform .12s; }
.lkHow[open] > summary:before { transform: rotate(90deg); }
.lkHow ol { margin: 6px 0 2px 18px; padding: 0; font-size: 12.5px; line-height: 1.85; color: var(--mu2); }
.lkHow ol li { margin: 2px 0; }
.lkHow ol b { color: var(--mu2); font-weight: 600; }
.lkTr .lkFf { margin-top: 12px; }

/* 「还没建：中通、韵达…」 */
.lkMiss {  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: #FFFDF7; border-top: 1px dashed #F0E4CB; font-size: 12px; color: var(--mu2);
}
.lkMiss a { color: var(--info); }
.lkEmpty { padding: 16px 14px; }
.lkFoot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line);
}
.lkFoot .sp { flex: 1; }

/* 窄屏：三栏挤不下时改成上下两段（公司名一行、按钮换行） */
@media (max-width: 880px) {
  .lkRow { grid-template-columns: 1fr; gap: 8px; }
  .lkPicks { display: flex; flex-wrap: wrap; }
  .pick { width: auto; padding: 0 12px; }
  .lkSt { flex-direction: row; align-items: center; gap: 8px; }
}

/* ===== 地址解析（2026-10-31 店主：「跟取号链路一样设计」「也要明文配置」）=====
 * 一行一家服务商：名称 / 明文的 Key / 状态+按钮；点这行在下方展开表单。
 * 值一律明文显示，长了省略（hover 看全文），不做任何打码。 */
.geoRow { cursor: pointer; }
.geoRow:hover { background: var(--hover); }
.geoV { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.geoVal { font-size: 12.5px; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.geoV .small { line-height: 1.45; }
.lkSt .pick { width: 96px; margin-top: 6px; }


/* ==================================================================
   打单发货 · 寄件/收件上下排布 + 收件清单（2026-10-28 店主定稿）
   · 寄件卡：第 1 行 姓名 / 电话 / 所在区域 / 详细地址；第 2 行 公司 / 备用电话 / 单行识别
   · 收件卡：整宽清单，一条一行；智能识别框在最下面，识别一条加一行
   ================================================================== */
.ofRows .sd1 { display: grid; grid-template-columns: 1fr 1.15fr 2.1fr 2.4fr; gap: 0 12px; }
.ofRows .sd2 { display: grid; grid-template-columns: 1fr 1.15fr 3.4fr; gap: 0 12px; margin-top: 10px; }
.ofRows .sd1 .fg, .ofRows .sd2 .fg { margin-bottom: 0; }

.smartLine { display: flex; align-items: center; gap: 8px; height: 33px; padding: 0 5px 0 10px;
  border: 1px solid #E7EAF0; border-radius: 8px; background: #FAFBFC; transition: .13s; }
.smartLine:focus-within { border-color: #E8A29B; background: #fff; box-shadow: 0 0 0 3px rgba(214,54,43,.08); }
.smartLine input { flex: 1; min-width: 0; height: 31px; border: 0 !important; background: transparent !important;
  box-shadow: none !important; font-size: 12.5px; color: var(--tx); padding: 0; }
.smartLine input:focus { outline: none; box-shadow: none !important; }
.smartLine .btn { flex: 0 0 auto; }

/* ---- 收件清单 ---- */
.rxRow { display: grid; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 10px;
  grid-template-columns: 24px 92px 118px 292px minmax(0, 1fr) 84px 22px; }
.rxRow.th { padding: 0 6px 4px; font-size: 11.5px; color: #8A9099; letter-spacing: .3px; }
.rxRow.item:hover { background: #FAFBFC; }
.rxRow.item.bad { background: #FEF6F5; }
.rxRow input, .rxRow select { width: 100%; height: 33px; font-size: 12.5px; border: 1px solid #E7EAF0;
  background: #FAFBFC; border-radius: 8px; padding: 0 8px; color: var(--tx); }
.rxRow input:hover, .rxRow select:hover { border-color: #D2D8E0; background: #fff; }
.rxRow input:focus, .rxRow select:focus {
  outline: none; border-color: #E8A29B; background: #fff; box-shadow: 0 0 0 3px rgba(214,54,43,.09); }
.rxRow input.bad { border-color: #EFB3AC; background: #FFF9F8; }
.rxRow .rxAr { min-width: 0; }
.rxRow .rxAr .areaRow { grid-template-columns: 1.05fr 1.05fr 1fr; gap: 5px; }
.rxRow .rxAr select { padding: 0 2px; }
.rxNo { width: 21px; height: 21px; border-radius: 6px; background: #F2F3F5; color: #5B6270;
  font-size: 11.5px; display: inline-flex; align-items: center; justify-content: center; }
.rxSt { font-size: 11.5px; font-weight: 600; color: #0E8A63; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rxSt.bad { color: #D6362B; }
.rxSt.warn { color: #C2410C; }
.rxDel { width: 22px; height: 22px; border: 0; border-radius: 6px; background: transparent;
  color: #A6ACB5; cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }
.rxDel:hover { background: #FEF1F0; color: #D6362B; }
.rxAdd { display: flex; align-items: center; justify-content: center; height: 32px; margin-top: 5px;
  border: 1px dashed #E1E5EB; border-radius: 10px; color: #8A9099; font-size: 12.5px; cursor: pointer; }
.rxAdd:hover { border-color: #D2D8E0; color: #5B6270; background: #FBFCFD; }

/* ---- 收件卡底部的识别框 ---- */
.rxSmart { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #E9ECF1;
  display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 10px; align-items: stretch; }
.rxSmart .smartBox { margin-top: 0; }
.rxSmart .rxSB { display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.rxSmart .rxSB .btn { height: 34px; }
.rxHint { margin-top: 7px; font-size: 12px; color: #8A9099; line-height: 1.65; }
.rxHint .hl.bad { color: #C0362B; }
.rxHint .hl.warn { color: #B45309; }
/* 影子表单：算价 / 顺丰可用产品 / 地址簿仍按老字段读，界面不显示 */
.rxShadow { display: none; }

/* 窄屏：收件清单把区域列压一压，别把地址挤没 */
@media (max-width: 1500px) {
  .rxRow { grid-template-columns: 24px 84px 112px 258px minmax(0, 1fr) 78px 22px; }
  .ofRows .sd1 { grid-template-columns: 1fr 1.1fr 1.9fr 2.2fr; }
  .ofRows .sd2 { grid-template-columns: 1fr 1.1fr 3fr; }
}
@media (max-width: 1200px) {
  .rxRow { grid-template-columns: 22px 76px 104px 232px minmax(0, 1fr) 72px 20px; gap: 6px; }
  .ofRows .sd1 { grid-template-columns: 1fr 1.1fr 1.7fr 1.9fr; gap: 0 8px; }
  .ofRows .sd2 { grid-template-columns: 1fr 1.1fr 2.4fr; gap: 0 8px; }
}

/* ==================================================================
   手机适配（2026-11-01 店主：「就改一下揽收点管理页让手机适配一下就好，其他的都不用动」）
   · 要解决的现场问题：拿手机浏览器打开后台改 WiFi，左侧菜单吃掉半个屏、
     弹窗超出屏幕（保存按钮点不到）、输入框太小 iOS 一点就自动放大、
     揽收点一行 8 列 6 个按钮，横向滑根本点不准。
   · 🔴 只在 ≤860px 生效；桌面样式**一个字节都不变**。
   · 🔴 没动任何接口、没动数据口径；揽收点表格只是多加了 data-l 标签 + 一个类名。
   ================================================================== */
@media (max-width: 860px) {

  /* ---------- 顶栏：品牌收窄，右侧链接横向滑动（不再挤成一团） ---------- */
  .top { height: 50px; padding: 0 8px; gap: 8px; }
  .brandSub { display: none; }
  .topSep { display: none; }
  .brandMark { width: 26px; height: 26px; border-radius: 8px; font-size: 14px; }
  .topBrand b { font-size: 15px; }
  /* 12.5px + 7px 内边距：把「使用说明 / 客户绑号 / 刷新 / 退出登录」压进 390px 以内，
     不用横向滑动就能全部看到（360px 的小屏会轻微滑动，不影响使用）。 */
  .topLink { padding: 6px 7px; font-size: 12.5px; }
  .mePill { padding-left: 3px; padding-right: 5px; }
  .meAva { width: 24px; height: 24px; line-height: 24px; font-size: 12px; }
  .meBox b { max-width: 56px; }
  /* 状态点（.dot）在「加载中…」被隐藏后会孤零零挂着，索性整块收起 */
  #topMetaWrap { display: none; }
  a.topLink[href="/"] { display: none; }   /* 「服务状态」是开发看的健康页，手机上没用 */
  .mePill em { display: none; }            /* 只留头像 + 名字，电话点开看 */
  .zoomBox { display: none; }        /* 手机上内容已按宽度重排，不需要再缩 */
  .topRight { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .topRight::-webkit-scrollbar { display: none; }
  .topRight > * { flex: none; }

  /* ---------- 左侧导航 → 顶部一行可横滑的按钮条 ----------
     分组标题在手机上只占地方，隐藏；每个页面变成一个圆角胶囊，当前页红色高亮。 */
  .shell { flex-direction: column; }
  .side {
    width: auto; height: auto; position: static; overflow: visible;
    border-right: 0; border-bottom: 1px solid var(--line);
  }
  .nav {
    display: block; white-space: nowrap; overflow-x: auto; overflow-y: hidden;
    padding: 8px 10px; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a.g.hasSub { display: none; }
  .nav .grp { display: inline; }
  /* 🔴 必须带 .side 前缀：上面 @media(max-width:900px) 里有 .side .nav .sub{display:none}
   *   和 .side .nav a span{display:none}（那套是「64px 图标条」方案），特异性 (0,3,0)；
   *   .grp.on 那条更是 (0,4,0) —— 只写 .nav .sub 压不住，
   *   第一版就是这么变成「只剩一个房子图标」+「当前分组整组消失」的。 */
  .side .nav .sub { display: inline; padding: 0; }
  .side .nav .grp.on .sub { display: inline; }
  .side .nav a span { display: inline; }
  .nav .sub:before { display: none; }
  .nav a.g.single, .nav .sub a {
    display: inline-block; margin: 0 6px 0 0; padding: 8px 12px;
    font-size: 13px; border-radius: 999px; background: var(--gray-bg); color: var(--mu2);
  }
  .nav a.g.single { font-weight: 600; color: var(--tx); }
  .nav .sub a.on, .nav a.g.single.on { background: var(--pri-bg); color: var(--pri); font-weight: 600; }
  .nav .sub a.on:before { display: none; }   /* 横排里左边那条红杠会错位 */
  .sideFoot { display: none; }

  /* ---------- 内容区 ---------- */
  .content { padding: 12px 12px 40px; }
  .secTitle { font-size: 16px; margin-bottom: 10px; }

  /* ---------- 弹窗：整屏 + 头尾吸顶 ----------
     头尾 sticky：内容再长，标题和「保存」也一直能点到。 */
  .mask, .mask.mid { padding: 0; align-items: stretch; }
  .dlg, .dlg.wide, .dlg.big, .dlg.narrow {
    max-width: none; width: 100%; min-height: 100%; margin: 0;
    border-radius: 0; display: flex; flex-direction: column;
  }
  .dlg > header { position: sticky; top: 0; z-index: 3; background: #fff; padding: 11px 14px; border-radius: 0; }
  .dlg > header b { font-size: 14.5px; }
  .dlg > .bd { flex: 1; max-height: none; padding: 14px 14px 18px; }
  .dlg > footer { position: sticky; bottom: 0; z-index: 3; padding: 10px 14px; flex-wrap: wrap; border-radius: 0; }

  /* 批量预览工作台：小屏铺满，左栏再收一档，工具条允许换行 */
  .mask.full { padding: 0; }
  .dlg.full { width: 100%; height: 100%; min-height: 0; border-radius: 0; }
  .dlg.full > .bd { padding: 0; }
  .lpSide { width: 168px; flex: 0 0 168px; }
  .lpTop { height: auto; min-height: 46px; flex-wrap: wrap; padding: 7px 10px; }
  .lpZsl { display: none; }        /* 小屏没有鼠标拖滑杆的位置，用 ± 和「一行 N 张」 */
  .lpStage { padding: 12px 10px 20px; }

  /* 确认类小弹窗（.dlg.narrow，如「确定停用这个点吗」；.mask.mid 同理）不要铺满整屏 ——
     一句话的确认框铺满会像个出错页面。这里保留卡片，四周留 16px，正文自己滚。 */
  .dlg.narrow, .mask.mid > .dlg {
    min-height: 0; max-height: calc(100vh - 48px); margin: auto;
    width: calc(100% - 32px); border-radius: 14px;
  }
  .dlg.narrow > header, .mask.mid > .dlg > header { border-radius: 14px 14px 0 0; padding: 13px 16px; }
  .dlg.narrow > .bd, .mask.mid > .dlg > .bd { max-height: 62vh; overflow: auto; padding: 16px; }
  .dlg.narrow > footer, .mask.mid > .dlg > footer { border-radius: 0 0 14px 14px; padding: 10px 16px; }

  /* 16px 是 iOS 的硬门槛：小于它，一点输入框页面就自动放大，再想点别的就得缩回去 */
  .dlg input, .dlg select, .dlg textarea { font-size: 16px; height: 44px; }
  .dlg .btn { height: 40px; font-size: 13.5px; }
  .dlg .btn.sm { height: 36px; font-size: 13px; }
  .dlg .fg { margin-bottom: 12px; }

  /* WiFi：密码框和「保存 WiFi」竖排，不然在手机上一挤，按钮只剩半个字 */
  .gwWifiRow { flex-wrap: wrap; }
  .gwWifiRow input { flex: 1 1 100%; }
  .gwWifiRow .btn { flex: 1 1 100%; margin-top: 6px; }

  /* ---------- 揽收点列表 → 卡片 ----------
     只有这张表加了 .tbCards；其它表格（运单列表等）完全不受影响。 */
  .tw.tbCardsWrap { overflow: visible; }
  .tbCards thead { display: none; }
  .tbCards, .tbCards tbody, .tbCards tr, .tbCards td { display: block; width: auto; }
  .tbCards tr {
    border: 1px solid var(--line); border-radius: 12px; background: #fff;
    padding: 10px 12px; margin: 0 0 10px;
  }
  .tbCards tr:hover td { background: transparent; }
  .tbCards td {
    border: 0; padding: 3px 0; font-size: 13px;
    max-width: none !important; white-space: normal !important;
  }
  .tbCards td[data-l]:before {
    content: attr(data-l); display: inline-block; min-width: 60px;
    color: var(--mu); font-size: 12px; vertical-align: top;
  }
  /* 单元格里的副行（打印机接法 / 入口码 / 设备编号）跟着标签一起左缩进，
     不然它们会顶到卡片最左边，和上面的「标签 + 值」对不齐。 */
  .tbCards td[data-l] > div { margin-left: 60px; }
  /* 排序号在卡片里没意义（顺序本身就是序号），省一行 */
  .tbCards td[data-l="排序"] { display: none; }
  .tbCards td.tdName { font-size: 15px; padding-bottom: 7px; line-height: 1.4; }
  .tbCards td.act {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding-top: 9px; margin-top: 8px; border-top: 1px dashed var(--line2);
  }
  .tbCards td.act .btn { height: 34px; font-size: 13px; }
  .tbCards td.act .btn + .btn { margin-left: 0; }
}

/* 手机竖屏（≤430px，绝大多数手机）：顶栏再收一档 ——
 * 「放心寄」三个字和登录身份名让位给功能入口，头像仍在（谁是当前账号看得见）。
 * 这样「使用说明 / 客户绑号 / 刷新 / 退出登录」四个入口不用横向滑动就能全部点到。 */
@media (max-width: 430px) {
  .topBrand b { display: none; }
  .meBox { display: none; }
  .topLink { padding: 6px 6px; }
}

/* ==================== 待揽收 · 数据看板（2026-11-02 店主重做） ====================
 * 一块「数字墙」：小格自适应换行，窄屏自动两列，不用横向拖。
 * 注意：这一段的类名统一 pb 前缀，别和别的页撞。 */
/* 2026-11-02 店主定版：「不要上下。要 今日成功下单 0单，6 个数据放同一行」
 *   六格定稿顺序：成功下单 / 待揽收 / 已揽收 / 运输中 / 已签收 / 已取消
 *   ⇒ 标签 + 数字**并排一行**（.pbKB = flex + baseline），六格**一行六列**。
 *   一行六格的宽度是死的（≈ 容器 / 6），所以尺寸全部写成 clamp(px, vw, px)：
 *   窗口宽就一起放大，窗口窄就一起缩 —— 保证「今日成功下单」不被折行、数字不掉到下一行。
 *   实测（run/_measure-kpis.js）：容器宽 = 窗口宽 - 292，1280 屏六格每格还有 ~135px 内宽，够用。
 * ⛔ 别再写死 48px / 别改回两行三列：那一版店主已经否掉了。 */
.pbKpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(7px, .65vw, 13px); margin: 14px 0 2px; }
/* 一格 = 图标 + 「标签 数字」 */
.pbK { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh);
  padding: clamp(9px, .75vw, 16px) clamp(9px, .7vw, 14px);
  display: flex; align-items: center; gap: clamp(7px, .65vw, 12px); min-width: 0; }
.pbIco { width: clamp(22px, 1.9vw, 38px); height: clamp(22px, 1.9vw, 38px); border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(12px, 1vw, 19px); font-style: normal; line-height: 1;
  background: var(--hover); border: 1px solid var(--line); }
/* 间距三轮调：①「太紧」→ 数字顶到右边；②「太大」→ 对半分；③ 店主：「📦 和 今日成功下单
 * 之间还原成以前，标签↔数字的间距不动」
 *   ⇒ 不能用 space-around（它会把一份空白塞在图标和标签之间，把图标推远），
 *     也不能两个 auto 边距（两份空白都堆在标签和数字中间，等于又变回全拉开）。
 *     用 flex-grow 3 : 2 分：标签吃掉富余的 60%，末尾伪元素吃掉 40%
 *     ⇒ 标签紧挨图标（只剩卡片固有间距），标签↔数字仍是原来那么宽，数字也不贴右边框。
 *   ⛔ 改这三个数之前先量：`node run/_measure-kpis.js`。 */
.pbKB { display: flex; align-items: baseline; gap: clamp(4px, .4vw, 8px); min-width: 0; flex: 1 1 auto; }
.pbKpis .pbKB::after { content: ''; flex: 2 1 0; }  /* 末尾占位：富余的 40% 留在数字右边 */
.pbKL { flex: 3 1 auto; font-size: clamp(12px, .95vw, 16px); color: var(--mu2); white-space: nowrap; }
.pbKV { flex: 0 0 auto; font-size: clamp(20px, 1.7vw, 30px); font-weight: 700; line-height: 1; letter-spacing: .3px;
  white-space: nowrap; }
.pbKV i { font-size: .5em; font-weight: 400; color: var(--mu); font-style: normal; margin-left: 2px; }

/* 2026-11-02 店主：「这 2 个取消掉」→ 那排小胶囊（运费合计 / 未出单 / 出纸 / 已打印没打印）
 * 连样式一起撤了。真要摆回来，先想清楚是放进六格还是单独一行，别又挤在数字下面。 */

.pbTwo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 14px; }
.pbSubT { font-size: 13px; font-weight: 600; color: var(--tx); margin-bottom: 6px; }
.pbMini { width: 100%; border-collapse: collapse; font-size: 13px; }
.pbMini th { text-align: left; font-weight: 500; color: var(--mu); font-size: 12px; padding: 5px 6px; border-bottom: 1px solid var(--line); }
.pbMini td { padding: 6px; border-bottom: 1px solid var(--hover); }
.pbMini .r { text-align: right; }
.pbDays tr.on td { background: var(--info-bg); }

@media (max-width: 860px) {
  .pbTwo { grid-template-columns: 1fr; gap: 14px; }
  /* 手机上两列：六个数字塞一行会挤成一团，两列 × 三行看得清 */
  .pbKpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pbK { padding: 11px 12px; gap: 9px; }
  .pbIco { width: 30px; height: 30px; font-size: 15px; border-radius: 9px; }
  .pbKB { gap: 5px; }
  .pbKV { font-size: 22px; }
  .pbKL { font-size: 13px; }
}

/* ==================== 多选筛选下拉（2026-11-08 店主：筛选勾选化、可多选） ====================
   按钮观感 = 全局 select（34px 高、var(--line2) 描边、9px 圆角）；勾了项描红边提醒。 */
.msBtn {
  height: 34px; padding: 0 11px; border: 1px solid var(--line2); border-radius: 9px; background: #fff;
  font-size: 13px; color: var(--tx); cursor: pointer; text-align: left;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  outline: none; transition: border-color .13s, box-shadow .13s;
}
.msBtn:hover { border-color: #D2D6DC; }
.msBtn.on { border-color: #E24B4A; color: #A32D2D; font-weight: 600; }
.msWrap .msOpt:hover { background: #F6F7F9; }

/* ==================================================================
   全站自适应（2026-11-12）
   店主原话：「你检查导航栏的所有页面。都需要跟打单发货一样自适应屏幕大小。」

   实测 22 个页面 × 9 档分辨率（2560/1920/1600/1440/1366/1280/1024/900/860）后：
   骨架本身是自适应的（整页宽度恒等于窗口宽，没有整页横滚）；撑破布局的只有**表格**——
   列多、每列左右各 11px 内边距，窗口一窄就只能在表格里横着拖（订单列表 17 列实宽 1669px，
   24 寸屏上「支付状态 / 操作」直接看不见）。这里做两件事：

   ① 表格密度按窗口宽度分档收（11px → 9px → 6px）。
      ⛔ 只收「普通表」：资金账单的 pbTb / mpTb 列距是店主 11-04 逐轮量过的
         （见 508-560 行注释），动它等于把调好的间距又改坏，所以显式排除。
   ② 订单表的收件地址列按窗口宽度分档收窄（本来就有 title，鼠标停上去看全文），
      窄屏宁可让地址省略，也不让「操作」列被顶出屏幕。

   改这里之前先量：`node run/_chk-adapt.js`（逐个页面量「可视宽 vs 表格需要宽」）。
   ================================================================== */
.oTb .cAddr .addrBox {
  max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 备注列（2026-11-13 店主：「支付状态后面增加备注列，可自由填写」）：
   点格子就地变输入框。默认收起（不是默认项），展开后按 190px 截断 + 悬停看全文。 */
.oTb td.memoCell { cursor: text; min-width: 70px; }
.oTb td.memoCell .memoBox {
  max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.oTb td.memoCell .memoAdd { color: var(--mu2); opacity: .45; }
.oTb td.memoCell:hover .memoAdd { opacity: 1; }
.oTb td.memoCell .memoI {
  width: 170px; height: 26px; padding: 0 7px; font-size: 12.5px;
  border: 1px solid var(--pri); border-radius: 6px; outline: none; background: #fff;
}
/* 1700 以下：24 寸（1600）就在这里 —— 内边距 11→8、地址 210→176，合计省 79px */
@media (max-width: 1700px) {
  table.tb:not(.pbTb):not(.mpTb) th,
  table.tb:not(.pbTb):not(.mpTb) td { padding: 9px 8px; }
  .oTb .cAddr .addrBox { max-width: 176px; }
}
/* 1500 以下：笔记本（1440/1366）—— 内边距 8/6、地址 140、操作字收半号，合计再省 ~90px */
@media (max-width: 1500px) {
  /* 2026-11-13：订单表多了「揽收时间」一列，但同日店主又让「下单时间 / 运单状态也两行排、
     订单来源去掉后台代下单·小程序直下单」——列宽反而比加列之前更松，所以这里的
     内边距 / 地址上限 / 字号**保持原样**，别再为腾地方去压它们（实测 1440 余量 120px+）。 */
  table.tb:not(.pbTb):not(.mpTb) th,
  table.tb:not(.pbTb):not(.mpTb) td { padding: 8px 6px; }
  .oTb .cAddr .addrBox { max-width: 140px; }
  .oTb td.act .op { font-size: 12.5px; }
}
/* 1400 以下：1366/1280 笔记本 —— 订单表字号从 13.5 回到全站基准 12.5，
   一行 13 列再省约 8%（1366 屏从“还差 68px”变成刚好放下）。只影响订单表，
   资金账单/其它页的字号不动。 */
@media (max-width: 1400px) {
  table.tb.oTb th, table.tb.oTb td { font-size: 12.5px; }
  /* 1366 / 1280 实测（2026-11-13 两行排法之后）：订单表**一屏就能放下**，
     12.5px + 7/5 内边距 + 地址 122 全部保持原样，不用再压。 */
  table.tb:not(.pbTb):not(.mpTb) th,
  table.tb:not(.pbTb):not(.mpTb) td { padding: 7px 5px; }
  .oTb .cAddr .addrBox { max-width: 122px; }
}

/* 1200 以下：小屏/分屏，表格横拖是允许的，但尽量少拖 */
@media (max-width: 1200px) {
  table.tb:not(.pbTb):not(.mpTb) th,
  table.tb:not(.pbTb):not(.mpTb) td { padding: 7px 5px; }
  .oTb .cAddr .addrBox { max-width: 118px; }
}

/* 手机宽度下的收件行（打单发货）：原来 7 列 grid 里有两列是固定 292px / 84px，
   430px 竖屏直接被顶出屏幕（实测整页横溢 171px、9 个元素越界）。
   改成 flex 换行：姓名 / 电话 各占半行，省市区 + 详细地址各占整行，状态与删除收尾。 */
@media (max-width: 720px) {
  .rxRow {
    display: flex; flex-wrap: wrap; gap: 6px; padding: 7px 6px 9px;
  }
  .rxRow.th { display: none; }          /* 手机上表头只会占一行、对不上号，收起 */
  .rxRow > .rxNo { flex: 0 0 20px; }
  .rxRow > .rxN, .rxRow > .rxP { flex: 1 1 calc(50% - 26px); min-width: 0; }
  .rxRow > .rxAr { flex: 1 1 100%; }
  .rxRow > .rxA { flex: 1 1 100%; }
  .rxRow > .rxSt { flex: 1 1 auto; }
  .rxRow > .rxDel { flex: 0 0 22px; }
  .rxRow .rxAr .areaRow { gap: 4px; }
  /* 智能识别框：桌面版是「输入框 + 104px 按钮」两列，430 竖屏下按钮文字（识别地址并填入）
     比 104px 宽，直接把整页顶出 49px。手机上改成上下两行，按钮占满宽。 */
  .rxSmart { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .rxSmart .rxSB .btn { width: 100%; }
  /* 底部操作条：430 下「预估运费 + 两个按钮」本来挤在一行，按钮被顶到屏幕外 49px。
     手机上换行、两个按钮各占一半宽（内联 style 里写死了高度和字号，只能 !important 压）。 */
  .ofFoot { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .ofFoot .grow { display: none; }
  .ofFoot #ofDraft, .ofFoot #nGo {
    flex: 1 1 calc(50% - 4px); height: 34px !important;
    padding: 0 8px !important; font-size: 13px !important; white-space: nowrap;
  }
  .ofFoot #nFee { font-size: 17px !important; }

  /* 寄件信息：桌面是「姓名 / 电话 / 区域 / 地址」四列同行，430 下每列只剩 90px，
     省市区下拉只能露出一个「省」字。手机上改成：姓名+电话一行，区域、地址各占整行。
     收件清单的标题行（条数 / 去重 / 清空 / 地址簿 / 存地址簿）同样会挤，允许换行；
     条数那格必须 nowrap —— 否则被压成一列竖排的「1 条 0 件 可下单」（截图上很难看）。 */
  .ofRows .sd1 { grid-template-columns: 1fr 1fr; gap: 0 8px; }
  .ofRows .sd1 > .fg:nth-child(3),
  .ofRows .sd1 > .fg:nth-child(4) { grid-column: 1 / -1; }
  .ofRows .sd2 { grid-template-columns: 1fr 1fr; }
  .ofRows .sd2 > .fg:nth-child(3) { grid-column: 1 / -1; }
  .ofHead { flex-wrap: wrap; row-gap: 6px; }
  #rxCount { white-space: nowrap; }
}
