:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f8;
  --border: #e3e8f0;
  --border-strong: #d2dae6;
  --text: #17202f;
  --text-2: #48556b;
  --muted: #7b8798;
  --primary: #2f6bff;
  --primary-dark: #1e50d6;
  --primary-weak: #eaf0ff;
  --in: #2f6bff;
  --out: #f08c00;
  --ret: #e5484d;
  --stock: #0d9488;
  --warn-bg: #fff8e6;
  --warn-border: #f5d48a;
  --danger-bg: #fdeced;
  --danger-border: #f4b6b9;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(23, 32, 47, .05), 0 8px 24px -12px rgba(23, 32, 47, .12);
  --sidebar-w: 216px;
  --tabbar-h: 58px;
  --header-h: 56px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; }
.hidden { display: none !important; }
a { color: var(--primary); text-decoration: none; }
input, select, button, textarea { font: inherit; color: inherit; }

/* ---------------- 基础控件 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 0 16px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: background .15s, border-color .15s, box-shadow .15s, opacity .15s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-danger { color: var(--ret); border-color: #f0c4c6; background: #fff; }
.btn-danger:hover { background: var(--danger-bg); }
.btn-sm { min-height: 30px; padding: 0 10px; font-size: 13px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); }

.input, .select {
  width: 100%; min-height: 38px; padding: 6px 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-weak); }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; color: var(--text-2); font-size: 13px; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.card-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.card-body { padding: 16px; }
.card-body.tight { padding: 8px 16px 16px; }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-variant-numeric: tabular-nums; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; min-width: 0; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

.badge {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  font-size: 12px; line-height: 18px; background: var(--surface-3); color: var(--text-2);
}
.badge-in { background: #e9f0ff; color: #1e50d6; }
.badge-out { background: #fff2df; color: #a35c00; }
.badge-ret { background: #fdeced; color: #b02a2e; }
.badge-adj { background: #e6f6f4; color: #0a7c72; }
.badge-ok { background: #e8f6ee; color: #197a45; }
.badge-risk { background: var(--danger-bg); color: #b02a2e; }
.badge-view { background: #f1eaff; color: #6b3fd4; }

.notice {
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px;
  background: var(--warn-bg); border: 1px solid var(--warn-border); color: #7a5406;
}
.notice.danger { background: var(--danger-bg); border-color: var(--danger-border); color: #9b2226; }
.notice.info { background: var(--primary-weak); border-color: #c8d8ff; color: #1e50d6; }
/* 主页看板：待审批注册提示条（可点击跳转） */
.pend-bar { cursor: pointer; }
.pend-bar:hover { filter: brightness(0.97); }
.pend-bar:focus { outline: 2px solid var(--warn-border); outline-offset: 1px; }

/* ---------------- 登录页 ---------------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.login-card { width: 100%; max-width: 400px; padding: 28px 26px; }
.login-logo {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 14px;
  background: linear-gradient(135deg, #2f6bff, #4f93ff);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 20px; letter-spacing: 1px;
}
.login-card h1 { margin: 0 0 4px; font-size: 21px; }
.tabs { display: flex; gap: 4px; background: var(--surface-3); padding: 4px; border-radius: 10px; margin: 18px 0; }
.tabs button {
  flex: 1; min-height: 34px; border: 0; border-radius: 7px; background: transparent;
  color: var(--text-2); cursor: pointer; font-size: 13.5px;
}
.tabs button.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.otp-row { display: flex; gap: 8px; }
.otp-row .input { flex: 1; }

/* ---------------- 应用骨架 ---------------- */
.shell { min-height: 100vh; }
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w);
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 18px 12px; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 16px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, #2f6bff, #4f93ff);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px;
}
.brand-text { font-weight: 650; font-size: 15px; line-height: 1.2; }
.brand-text span { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); }

/* 侧栏品牌下方：当前登录账号邮箱 */
.side-email {
  padding: 0 12px 10px; font-size: 11.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: var(--radius-sm); color: var(--text-2); cursor: pointer; font-size: 14px;
}
.nav-item:hover { background: var(--surface-2); }
.nav-item.active { background: var(--primary-weak); color: var(--primary-dark); font-weight: 600; }
.nav-item .ico { width: 18px; text-align: center; flex: none; font-size: 15px; }
.nav-item .nav-dot {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #e11d48; color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 9px; line-height: 1; flex: none;
}
.nav-sep { height: 1px; background: var(--border); margin: 10px 8px; }
.nav-label { padding: 12px 12px 4px; font-size: 11px; color: var(--muted); letter-spacing: .4px; }

.userbox { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 8px; }
.userbox-row { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: var(--surface-3); display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: var(--text-2);
}

.main { margin-left: var(--sidebar-w); padding: 22px 24px 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h2 { margin: 0 0 2px; font-size: 20px; }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; }

.topbar { display: none; }
.tabbar { display: none; }

/* ---------------- 统计卡 ---------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.stat .k { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.stat .v { font-size: 26px; font-weight: 650; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .u { font-size: 12px; color: var(--muted); margin-left: 3px; font-weight: 400; }
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 6px; }
.stat.in .v { color: var(--in); }
.stat.out .v { color: var(--out); }
.stat.ret .v { color: var(--ret); }
.stat.stock .v { color: var(--stock); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quick { display: flex; gap: 10px; flex-wrap: wrap; }
/* 主页看板的扫码快捷入口：与「登记」按钮视觉上区分开 */
.quick.scan-quick { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.scan-btn { border: 1px dashed var(--primary); color: var(--primary); background: var(--primary-weak); font-weight: 600; }
.scan-btn:hover { background: var(--primary); color: #fff; border-style: solid; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th, table.data td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
table.data th {
  background: var(--surface-2); color: var(--text-2); font-weight: 600; font-size: 12.5px;
  position: sticky; top: 0; z-index: 1;
}
table.data tbody tr:hover { background: var(--surface-2); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr.total-row td { font-weight: 650; background: var(--surface-2); }
table.data tr.clickable { cursor: pointer; }
/* 工资条：行分割线用虚线；列宽固定均分（间距平均） */
table.data.pay-tbl { table-layout: fixed; width: 100%; }
table.data.pay-tbl col { width: 12.5%; }
table.data.pay-tbl th, table.data.pay-tbl td { border-bottom: 1px dashed var(--border); white-space: normal; word-wrap: break-word; overflow-wrap: anywhere; padding: 9px 12px; }
table.data.pay-tbl td { min-width: 0; }
/* 实收工资等数字列左对齐，避免数字贴着右侧备注列 */
table.data.pay-tbl td.num, table.data.pay-tbl th.num { text-align: left; }

/* 销售额店铺表：行分割线用虚线 */
table.data.sal-tbl th, table.data.sal-tbl td { border-bottom: 1px dashed var(--border); }
table.data.sal-tbl tfoot th { border-bottom: 0; border-top: 1px dashed var(--border); }
.pos { color: var(--in); font-weight: 600; }
.neg { color: var(--ret); font-weight: 600; }
.dim { color: var(--muted); }

/* 库存查询页：剩余库存数字（负红 / 零灰 / 低黄） */
.stock-num { font-variant-numeric: tabular-nums; font-weight: 650; }
.stock-num.zero { color: var(--muted); font-weight: 500; }
.stock-num.low { color: #b7791f; }
.stock-num.neg { color: var(--ret); }

/* ---------------- 录入列表 ---------------- */
.entry-list { display: flex; flex-direction: column; }
.entry-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 14px; border-bottom: 1px solid var(--border);
}
.entry-row:last-child { border-bottom: 0; }
.entry-row.dirty { background: #fffaf0; }
.entry-info { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.entry-code { font-weight: 600; }
.entry-spec { color: var(--text-2); font-size: 13px; }
.entry-qty { width: 84px; flex: none; text-align: right; }
.entry-qty.marked { border-color: var(--primary); background: var(--primary-weak); }
.day-records { display: flex; flex-direction: column; }
.day-record { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.day-record:last-child { border-bottom: 0; }

.savebar {
  position: sticky; bottom: 0; z-index: 12;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; margin-top: 14px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}

.empty { padding: 34px 16px; text-align: center; color: var(--muted); font-size: 13.5px; }
.loading-inline { padding: 24px; text-align: center; color: var(--muted); }

.seg { display: inline-flex; background: var(--surface-3); border-radius: var(--radius-sm); padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; border-radius: 6px; min-height: 30px; padding: 0 14px; cursor: pointer; color: var(--text-2); font-size: 13px; }
.seg button.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 130px; }
.toolbar .search { flex: 1; min-width: 180px; }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); font-size: 12.5px; }

/* ---------------- 弹层 / 提示 ---------------- */
.overlay {
  position: fixed; inset: 0; background: rgba(18, 25, 38, .45);
  display: flex; align-items: center; justify-content: center; padding: 18px; z-index: 60;
}
.overlay-box {
  background: var(--surface); border-radius: var(--radius); width: 100%; max-width: 460px;
  max-height: 86vh; overflow-y: auto; box-shadow: 0 20px 60px -20px rgba(0,0,0,.4);
}
.overlay-head { padding: 16px 18px 0; font-size: 16px; font-weight: 650; }
.overlay-body { padding: 14px 18px; }
.overlay-foot { padding: 0 18px 18px; display: flex; gap: 10px; justify-content: flex-end; }
/* 需要表格/多列内容的弹窗放宽（如商品批量导入） */
.overlay-box.overlay-wide { max-width: 720px; }
@media (max-width: 860px) { .overlay-box.overlay-wide { max-width: 100%; } }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: #17202f; color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 13.5px; z-index: 90; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #b02a2e; }
.toast.ok { background: #197a45; }

.loader { position: fixed; inset: 0; background: rgba(244,246,250,.72); display: flex; align-items: center; justify-content: center; z-index: 80; }
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid #d6ddea; border-top-color: var(--primary); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 移动端 ---------------- */
@media (max-width: 860px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding: 14px 14px calc(var(--tabbar-h) + 26px); }
  .topbar {
    display: flex; align-items: center; gap: 10px;
    position: sticky; top: 0; z-index: 30; height: var(--header-h);
    padding: 0 14px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border); margin: -14px -14px 14px;
  }
  .topbar .brand-text { font-size: 14.5px; }
  .topbar .spacer { flex: 1; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; color: var(--muted); font-size: 10.5px; padding-top: 6px;
  }
  .tabbar a .ico { font-size: 18px; line-height: 1; }
  .tabbar a.active { color: var(--primary); font-weight: 600; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat .v { font-size: 22px; }
  .grid-2 { grid-template-columns: 1fr; }
  .page-head { margin-bottom: 14px; }
  .page-head h2 { font-size: 18px; }
  .card-body { padding: 13px; }
  .entry-qty { width: 74px; }
  .savebar { padding: 10px 12px; }
  .toast { bottom: calc(var(--tabbar-h) + 16px); }
  table.data th, table.data td { padding: 8px 9px; }
}

/* ============================ 型号联想下拉 ============================ */
.ac-box {
  position: fixed; z-index: 1200;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 12px; box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
  max-height: min(420px, 55vh); overflow-y: auto; padding: 4px;
  -webkit-overflow-scrolling: touch;
}
.ac-head { font-size: 11.5px; color: var(--muted); padding: 6px 10px 4px; }
.ac-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
}
.ac-item.active, .ac-item:hover { background: var(--primary-weak); }
.ac-code { font-weight: 650; font-size: 13px; white-space: nowrap; }
.ac-spec { color: var(--muted); font-size: 12px; }
.ac-empty { padding: 12px; color: var(--muted); font-size: 13px; }

/* ---------------- 多角色复选 ---------------- */
.role-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 260px; }
/* 当前角色：限宽 + 弹性换行。
   注意：全局 table.data td 是 white-space:nowrap（徽章之间不会断行），
   所以必须用 flex 包裹层来换行；限宽才能压住自动列宽（约 3 个角色一行）。 */
.users-table td.role-cur { vertical-align: top; }
.role-cur-wrap { display: flex; flex-wrap: wrap; gap: 4px 6px; max-width: 265px; }
.role-cur-wrap .badge { white-space: nowrap; }
.role-chip { cursor: pointer; user-select: none; padding: 4px 10px; border: 1px solid var(--border); background: var(--surface); }
.role-chip:has(input:checked), .role-chip.on { background: var(--primary-weak); border-color: var(--primary); color: var(--primary-dark); font-weight: 600; }
.role-chip input:disabled { opacity: .55; }
.role-chip.locked { opacity: .62; background: var(--surface-2); cursor: not-allowed; }
.role-chip.locked:has(input:checked) { background: var(--surface-3); border-color: var(--border-strong); color: var(--text-2); font-weight: 500; }

/* ---------------- 录入行「剩余库存」列 ---------------- */
.entry-stock {
  flex: none; width: 96px; text-align: right; font-size: 13px;
  color: var(--text-2); font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden;
}
.entry-stock .es-label { font-size: 11px; color: var(--muted); margin-right: 3px; }
.entry-stock .arrow { color: var(--muted); margin: 0 2px; }
.entry-stock .from { color: var(--muted); text-decoration: line-through; }
.entry-stock .to { font-weight: 650; }
.entry-stock.neg .to { color: #b02a2e; }

/* ---------------- 用户页：手机上表格转卡片 ---------------- */
.users-table tr.pending-row { background: var(--warn-bg); }

@media (max-width: 860px) {
  .users-wrap { overflow-x: visible; }
  .users-table thead { display: none; }
  .users-table, .users-table tbody, .users-table tr, .users-table td { display: block; width: 100%; }
  .users-table tr {
    border: 1px solid var(--border); border-radius: 12px;
    padding: 10px 12px; margin-bottom: 10px; background: var(--surface);
  }
  .users-table tbody tr:hover { background: var(--surface); }
  .users-table tr.pending-row { background: var(--warn-bg); border-color: var(--warn-border, #f0d9a8); }
  .users-table td {
    border: 0; padding: 5px 0; white-space: normal; text-align: left;
  }
  .users-table td::before {
    content: attr(data-label); display: block;
    font-size: 11.5px; color: var(--muted); margin-bottom: 3px;
  }
  .users-table td[data-label="称呼"] { font-size: 15px; }
  .users-table td[data-label="称呼"]::before { display: none; }
  .users-table td.right { text-align: left; }
  .users-table .role-chips { min-width: 0; }
  .role-cur-wrap { grid-template-columns: repeat(3, max-content); }
  .users-table td[data-label="操作"] { margin-top: 4px; }
  .users-table td[data-label="操作"] .btn {
    width: 100%; margin: 0 0 8px; min-height: 42px; font-size: 14px;
  }
  .users-table td[data-label="操作"] .btn:last-child { margin-bottom: 2px; }
  .users-table td[data-label="操作"] .act-row { flex-direction: column; align-items: stretch; }
  .users-table td[data-label="操作"] .act-row .small { text-align: left; padding: 2px 0; }
  .users-table tr.suspended-row { background: #f7f8fa; border-color: var(--border-strong); }
  .role-chip { padding: 8px 12px; font-size: 13.5px; }
}

@media (max-width: 860px) {
  .entry-stock { width: 66px; font-size: 12.5px; }
  .entry-stock .es-label { display: none; }
  .entry-stock .from { display: none; }
  .entry-stock .arrow { display: none; }
}

/* ---------------- 主账号标识 ---------------- */
.badge-owner { background: #fff4e0; color: #a35b00; border: 1px solid #f3d9a8; }
.owner-row { background: #fffdf6; }

/* ---------------- 账号状态：已关闭 ---------------- */
.badge-off { background: #eef0f4; color: #4a5568; border: 1px solid #dbe0e9; }
.suspended-row { background: #f7f8fa; }
.suspended-row td .badge-owner { opacity: .9; }

/* ---------------- 用户页操作按钮组 ---------------- */
.act-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }

/* ---------------- 选中型号后的「已筛选」标签 ---------------- */
.pick-wrap { display: inline-flex; align-items: center; }
.pick-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 6px 4px 10px; border: 1px solid var(--border-strong);
  border-radius: 999px; background: var(--primary-weak); color: var(--primary-dark);
  font-size: 12.5px; white-space: nowrap; max-width: 100%;
}
.pick-tag b { font-weight: 650; }
.pick-x {
  border: 0; background: transparent; color: inherit; cursor: pointer;
  width: 20px; height: 20px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1;
}
.pick-x:hover { background: rgba(47, 107, 255, .16); }

/* ---------------- 数据管理：清空项 ---------------- */
.purge-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.purge-item:last-of-type { border-bottom: 0; }
.purge-info { flex: 1; min-width: 0; }
.purge-t { font-size: 14.5px; font-weight: 650; margin-bottom: 3px; }
.purge-item .btn { flex: none; }

@media (max-width: 860px) {
  .purge-item { flex-direction: column; align-items: stretch; gap: 8px; }
  .purge-item .btn { width: 100%; min-height: 44px; font-size: 14px; }
}

/* ---------------- 会员空间：状态条 / 收款码 / 统计 ---------------- */
/* 吸顶：进入会员空间只读视图后，无论滚到哪里都能看到横幅与「返回主空间」 */
.space-bar {
  position: sticky; top: 0; z-index: 25;
  margin-left: var(--sidebar-w); /* 与 .main 对齐，避免吸顶后盖到固定侧边栏上 */
  padding: 8px 22px 0; background: var(--bg);
}
.space-bar:empty { display: none; }
@media (max-width: 860px) {
  /* 手机端顶栏是 sticky 的，横幅要贴在它下面 */
  .space-bar { margin-left: 0; padding: 6px 12px 0; top: var(--header-h); }
}

.pay-qr-box {
  text-align: center; padding: 14px; margin: 4px 0 12px;
  border: 1px dashed var(--border-strong); border-radius: 12px; background: #fbfcff;
}
.pay-qr-img {
  width: 210px; max-width: 76vw; height: auto; display: block; margin: 0 auto 10px;
  border-radius: 10px; box-shadow: var(--shadow);
}
.pay-qr-tip { font-size: 14px; font-weight: 600; color: var(--text); }
.pay-qr-tip b { color: var(--danger); font-size: 17px; }

.stat-row { display: flex; gap: 12px; flex-wrap: wrap; }
.stat-row .stat { flex: 1; min-width: 130px; padding: 12px 14px; box-shadow: none; background: #fbfcff; }
.stat-num { font-size: 20px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.entry-row input.entry-qty:disabled { opacity: .7; background: #f4f6fa; cursor: not-allowed; }

/* ---------------- 系统设置：空间图标 / 标题 ---------------- */
.brand-ico {
  width: 56px; height: 56px; border-radius: 14px; padding: 4px;
  border: 1px solid var(--border); background: #fff; object-fit: contain;
}
.brand-ico.lg { width: 76px; height: 76px; border-radius: 18px; padding: 6px; }
@media (max-width: 860px) { .brand-ico.lg { width: 62px; height: 62px; } }

/* ---------------- 用户与权限：主账号私有昵称备注（仅主账号可见） ---------------- */
.note-edit { display: flex; gap: 6px; align-items: center; }
.note-input {
  width: 150px; padding: 6px 9px; font-size: 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.note-input::placeholder { color: var(--muted); }
.note-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-weak); }
.note-edit.dirty .note-input { border-color: var(--ret); }
.note-edit.dirty .btn { border-color: var(--ret); color: var(--ret); }
.note-edit.saved .btn { background: var(--stock); border-color: var(--stock); color: #fff; }
@media (max-width: 860px) { .note-input { width: 100%; } .note-edit { flex-wrap: wrap; } }

/* 操作日志：操作人姓名后的私有昵称蓝色标签（仅主账号可见） */
.badge-note {
  background: #e6efff; color: #1d4ed8; border: 1px solid #c7d9ff;
  font-weight: 600; margin-left: 2px; vertical-align: 1px; cursor: help;
  max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------------- 商品批量导入 ---------------- */
.imp-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.imp-row label.btn { cursor: pointer; }
.imp-paste {
  width: 100%; min-height: 88px; padding: 8px 10px; font-size: 13px; line-height: 1.6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); resize: vertical;
}
.imp-paste::placeholder { color: var(--muted); }
.imp-paste:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-weak); }
.imp-sum { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0 8px; }
.imp-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.imp-preview { max-height: 260px; overflow: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.imp-preview table { width: 100%; border-collapse: collapse; font-size: 13px; }
.imp-preview th, .imp-preview td { padding: 5px 8px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.imp-preview thead th { position: sticky; top: 0; background: var(--surface-3); z-index: 1; }
.imp-preview tr.imp-bad { background: var(--danger-bg); }
.imp-preview tr.imp-dup { background: var(--surface-2); color: var(--muted); }
.imp-preview td.imp-c { padding: 3px 5px; }
.imp-preview td.imp-no { color: var(--muted); width: 34px; }
.imp-cell {
  width: 100%; min-width: 78px; padding: 5px 7px; font-size: 13px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--text);
}
.imp-cell:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-weak); }
.imp-cell::placeholder { color: var(--muted); }
.imp-preview tr.imp-bad .imp-cell { border-color: var(--danger-border); }
.imp-del { padding: 2px 8px; line-height: 1.3; color: var(--ret); }
@media (max-width: 860px) {
  .imp-row .btn { flex: 1 1 auto; min-height: 40px; }
  .imp-preview { max-height: 220px; }
  .imp-foot .btn { flex: 1 1 auto; min-height: 40px; }
}

/* ---------------- 品牌区：自定义图标 / 标题就地编辑 ---------------- */
.brand-text { min-width: 0; }
.brand-text .brand-title {
  display: flex; align-items: center; gap: 6px; max-width: 100%;
  font-weight: 650; font-size: 15px; color: var(--text); line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.brand-editable {
  border: none; padding: 0; cursor: pointer; position: relative; font: inherit;
}
.brand-editable::after {
  content: '更换'; position: absolute; inset: 0; border-radius: inherit;
  background: rgba(23, 32, 47, .55); color: #fff; font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s;
}
.brand-editable:hover::after, .brand-editable:focus-visible::after { opacity: 1; }
.brand-mark-img { background: #fff; padding: 2px; border: 1px solid var(--border); }
.brand-mark-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; display: block; }
.brand-edit {
  flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-size: 10.5px; line-height: 1;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.brand-edit:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-weak); }

/* ============ 扫码出货（扫码枪 = 键盘输入 + 回车） ============ */
.scan-bar {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 0 2px; padding: 10px 12px;
  border: 1px dashed var(--primary); border-radius: var(--radius-sm);
  background: var(--primary-weak); color: var(--primary);
}
.scan-bar svg { flex: none; }
.scan-bar .input { flex: 1; min-width: 180px; background: var(--surface); color: var(--text); }
.scan-bar .small { flex: none; }
.entry-row.scan-hit { animation: scanhit 1.2s ease-out; }
@keyframes scanhit {
  0% { background: #fde9b8; }
  60% { background: #fdf0cd; }
  100% { background: transparent; }
}
@media (max-width: 860px) {
  .scan-bar { flex-wrap: wrap; }
  .scan-bar .input { min-width: 0; width: 100%; }
}

/* ============ 会员空间功能开关面板 ============ */
.feat-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 2px; border-bottom: 1px solid var(--border); cursor: pointer;
}
.feat-row:last-of-type { border-bottom: 0; }
.feat-row input { margin-top: 3px; width: 17px; height: 17px; flex: none; }
/* 「我的」页里的功能状态行（只读展示：名称 + 已开通/未开通） */
.feat-line {
  display: flex; gap: 10px; align-items: center; justify-content: space-between;
  padding: 12px 2px; border-bottom: 1px solid var(--border);
}
.feat-line:last-of-type { border-bottom: 0; }
.feat-line .badge { flex: none; }
.scan-pick { width: 100%; justify-content: flex-start; text-align: left; }

/* ============================ 条码标签：打印 / 下载 ============================ */
/* 打印区：屏幕上永不显示，只有点「打印」后（body.printing）才参与打印排版 */
#printArea { display: none; }
.bc-grid { display: flex; flex-wrap: wrap; gap: 3px; align-content: flex-start; }
/* 单张标签：50×30mm，与常见的卷筒不干胶标签一致 */
.bc-label {
  width: 50mm; height: 30mm; box-sizing: border-box; padding: 1mm;
  background: #fff; border: 1px dashed #d8dee8;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  page-break-inside: avoid; break-inside: avoid;
}
.bc-label svg { width: 100%; height: 100%; display: block; }
/* 打印纸张：A4、8mm 边距（@page 只对打印生效，放顶层兼容性最好） */
@page { size: A4; margin: 8mm; }
@media print {
  body.printing #root,
  body.printing #toast,
  body.printing #overlay,
  body.printing #loader { display: none !important; }
  body.printing #printArea { display: block !important; position: static; }
  body.printing .bc-label { border-color: #e6e6e6; }
}
/* 批量打印弹窗里的商品勾选列表 */
.bc-pick-list {
  max-height: 300px; overflow: auto; margin-top: 8px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.bp-row {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 7px 10px; border-bottom: 1px solid var(--border);
}
.bp-row:last-child { border-bottom: 0; }
.bp-row input { width: 16px; height: 16px; flex: none; }
.bp-row .bp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-row .bp-bc { flex: none; font-size: 12px; color: var(--muted); }
.bp-row.bp-off { cursor: default; opacity: .6; }
.bp-row.bp-off .bp-bc { color: #c0392b; }
/* 商品表「操作」列里并排的小按钮 */
.data td.right .btn + .btn { margin-left: 6px; }

/* ============================ 手机摄像头扫码浮层 ============================ */
/* 层级放在弹窗(60)与 toast(90)之下：同码多商品要弹挑选框、错误要弹提示，都得看得见 */
.scan-overlay {
  position: fixed; inset: 0; z-index: 55; background: #0a0d12;
  display: flex; flex-direction: column; color: #fff;
}
.scan-top {
  display: flex; align-items: center; gap: 10px; flex: none;
  padding: 12px 14px; padding-top: calc(12px + env(safe-area-inset-top));
  background: rgba(0, 0, 0, .6);
}
.scan-top b { font-size: 15px; }
.scan-top .scan-sub { flex: 1; font-size: 12.5px; color: #b9c2d0; }
.scan-x {
  flex: none; border: 0; border-radius: 999px; padding: 7px 16px;
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 600;
}
.scan-view {
  position: relative; flex: 1; min-height: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; background: #000;
}
.scan-view video { width: 100%; height: 100%; object-fit: cover; background: #000; }
/* 取景框：中间一条横向区域，四周压暗，提示把条码放进来 */
.scan-frame {
  position: absolute; left: 7%; right: 7%; top: 50%; height: 24%;
  transform: translateY(-50%); border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 12px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .38); pointer-events: none;
}
.scan-tip { flex: none; padding: 12px 16px 0; font-size: 13px; color: #cfd7e3; text-align: center; }
.scan-msg {
  flex: none; min-height: 44px; margin: 10px 14px calc(14px + env(safe-area-inset-bottom));
  padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .14);
  font-size: 13.5px; text-align: center; word-break: break-all;
}
.scan-msg.ok { background: rgba(34, 150, 88, .92); }
.scan-msg.err { background: rgba(190, 58, 58, .92); }
/* 录入页扫码栏里的「摄像头扫码」按钮 */
.cam-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.cam-btn svg { flex: none; }

/* ---------- 输入框联想下拉（网站自带，替代浏览器自动填充） ---------- */
.sug-box {
  position: fixed; z-index: 9999; display: none;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(20, 30, 50, .16);
  max-height: 240px; overflow-y: auto; padding: 4px;
}
.sug-item {
  padding: 7px 10px; font-size: 13.5px; color: var(--text);
  border-radius: 7px; cursor: pointer; white-space: nowrap;
}
.sug-item:hover, .sug-item.on { background: var(--primary-weak); color: var(--primary-dark); }

/* 添加员工「员工姓名」下拉：录入过的姓名（用得越多排越前，可删除） */
.nsug-box {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 2px; z-index: 60;
  display: none; max-height: 190px; overflow-y: auto; padding: 4px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(20, 30, 50, .16);
  min-width: 160px;
}
/* 列表行里的输入框：套一层定位壳，让下拉贴着自己的输入框展开（不按整行定位） */
.nsug-wrap { position: relative; display: inline-block; flex: 0 0 auto; }
.nsug-wrap > input { display: block; }
.nsug-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 13.5px;
  color: var(--text); border-radius: 7px; cursor: pointer; white-space: nowrap;
}
.nsug-item:hover, .nsug-item.on { background: var(--primary-weak); color: var(--primary-dark); }
.nsug-cnt { margin-left: auto; font-size: 12px; color: var(--muted); }
.nsug-del { padding: 0 5px; line-height: 1.3; }

/* 非登录页的密码输入框：用文本框+圆点显示，避免浏览器弹出「保存密码」与自动填充 */
.pwd-mask {
  -webkit-text-security: disc;
}

/* 线下订单：表格各列平均间距（固定布局，无宽度声明的列均分；单元格内输入框 100% 撑满） */
table.data.of-eq { table-layout: fixed; width: 100%; }
table.data.of-eq th, table.data.of-eq td { word-break: break-all; overflow: hidden; }
table.data.of-eq td input.cell { width: 100%; min-width: 0; }
/* 线下接单列多（15 列，含「产品信息」宽列与「快递单号」）：给个最小宽度，屏幕窄时容器横向滚动，
   不压缩各列（.table-wrap 已是 overflow-x:auto） */
table.data.of-eq.of-wide { min-width: 1520px; }

/* ===== 「上传截图」弹窗的拖拽 / 粘贴区（2026-10-23a） =====
   虚线框里给三个入口：拖拽、Ctrl+V 粘贴、选择文件按钮；拖图片进整块时高亮（.on）。 */
.of-drop {
  border: 1.5px dashed var(--border); border-radius: 8px; padding: 12px 14px;
  text-align: center; background: var(--surface-2);
  transition: border-color .15s, background .15s;
}
.of-drop.on { border-color: var(--primary); background: rgba(37, 99, 235, .07); }
.of-drop-t { font-weight: 600; font-size: 13.5px; margin-bottom: 3px; }
.of-drop-s { font-size: 12px; color: var(--muted); margin-bottom: 8px; line-height: 1.5; }

/* ===== 长文本悬停看全文（2026-10-23a） =====
   表格列宽固定 + white-space:nowrap 会把长文本裁掉（线下接单「产品信息」等），
   鼠标停 300ms 弹这张浮层显示全文；触屏点一下也弹。pointer-events:none 保证不挡鼠标。 */
.htip-card {
  position: fixed; z-index: 12000; max-width: 360px; min-width: 160px;
  padding: 8px 10px; border-radius: 8px; background: #1f2937; color: #fff;
  font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-break: break-word;
  max-height: 45vh; overflow: auto; box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .12s;
}
.htip-card.on { opacity: 1; visibility: visible; }

/* 内部办公（供应商采购 / 日常办公开销）：列多，固定布局按 colgroup 占比分配，表头各列间距平均。
   列多 + 含「填单日期」这类定长文本，屏幕窄时容器横向滚动，不挤压各列。 */
table.data.io-eq { table-layout: fixed; width: 100%; min-width: 1120px; }
table.data.io-eq th, table.data.io-eq td { word-break: break-all; overflow: hidden; white-space: normal; }
table.data.io-eq td input.cell { width: 100%; min-width: 0; }
/* 操作列按钮不换行（td 上另有内联 white-space:nowrap 兜底） */
table.data.io-eq td.op-cell { white-space: nowrap; }
/* 数字表头（#/应付/实付/金额）在固定列宽下右对齐会贴到下一列的表头，
   看起来「实付挨着填单日期、#挨着月份」——该表内数字列一律左对齐，表头间距才均匀
   （与工资条 pay-tbl 同一手法，见 234 行）。 */
table.data.io-eq th.num, table.data.io-eq td.num { text-align: left; }

/* 台账「实付」列统一标红（供应商款 / 物流专款 / 物流费用 / 供应商采购），与导出表格红字同色；
   行内编辑时输入框里的数字也跟着红，避免「查看红、编辑黑」的割裂感。 */
table.data td.paid-red,
table.data td.paid-red .cell { color: var(--ret); }
table.data td.paid-red .muted { color: var(--muted); }   /* 空值的「—」保持灰 */

/* ===== 平台消耗费（办公部门，2026-10-19）=====
   三列固定（平台 / 店铺 / 账单类型）+ 12 个月横向 → 给最小宽度，窄屏横向滚动 */
table.data.pc-tbl { min-width: 1680px; }
table.data.pc-tbl td.pc-plat { vertical-align: top; }
/* 店铺单元格跨本店所有账单类型行：竖向居中、文字靠左（20261019m 取消水平居中） */
table.data.pc-tbl td.pc-shop { vertical-align: middle; text-align: left; }
/* 账单类型列不需要那么宽，压住宽度让月份列多分一些（auto 布局下 width 是首选宽度） */
table.data.pc-tbl td.pc-type { width: 120px; }
.pc-plat-head { display: flex; align-items: center; gap: 6px; }
.pc-plat-name, .pc-shop-name { font-weight: 600; }
.pc-fold { cursor: pointer; color: var(--muted); font-size: 12px; user-select: none; }
.pc-fold:hover { color: var(--text); }
.pc-links { margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.pc-links a { font-size: 11px; color: var(--muted); cursor: pointer; }
.pc-links a:hover { color: var(--primary); text-decoration: underline; }
/* 操作列（↑↓ / 编辑 / 移除）平时淡出，鼠标移到该行才显形，避免满屏按钮 */
.pc-ops { opacity: .3; transition: opacity .12s; }
table.data.pc-tbl tr:hover td.pc-ops,
table.data.pc-tbl tr.pc-editing td.pc-ops { opacity: 1; }
.pc-sort a { display: inline-block; padding: 0 3px; color: var(--muted); cursor: pointer; font-size: 12px; }
.pc-sort a:hover { color: var(--text); }
table.data.pc-tbl tr.pc-sub td { background: var(--surface-2); font-weight: 600; }
table.data.pc-tbl tr.pc-plat-total td { background: var(--surface-3); font-weight: 600; color: var(--primary); }
table.data.pc-tbl tr.pc-editing td { background: var(--primary-weak); }
/* 账单类型名后的「改名」小链接 */
.pc-tedit { margin-left: 6px; font-size: 11px; color: var(--muted); cursor: pointer; opacity: 0; }
table.data.pc-tbl tr:hover .pc-tedit { opacity: 1; }
.pc-tedit:hover { color: var(--primary); text-decoration: underline; }

/* 排序模式提示条（平台消耗费，20261019i）——开关默认关，开了才出现 */
.pc-sortbar {
  margin: 0 0 10px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 12px;
  color: var(--text);
}
.pc-sortbar b { color: var(--primary); }
.pc-sortbar a { margin-left: 8px; color: var(--primary); cursor: pointer; }
.pc-sortbar a:hover { text-decoration: underline; }

/* 平台 / 店铺筛选筹码（平台消耗费，20261019j） */
/* ===== 平台消耗费：表头小箭头筛选（20261019l，替换掉原来的筹码筛选条）=====
   标题（电商平台 / 店铺名称）后面一个小 ▾，点开挂在下方的下拉面板；
   面板是 position:fixed 挂在 body 上 —— 表头在 sticky + overflow 的框内，挂 th 里会被裁掉。 */
.pc-thf { white-space: nowrap; }
.pc-thf-label { font-weight: 600; }
.pc-thf-val {
  margin-left: 5px;
  padding: 0 6px;
  border-radius: 8px;
  background: var(--primary-weak);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  max-width: 96px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.pc-farrow {
  margin-left: 4px;
  padding: 0 3px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 4px;
  user-select: none;
}
.pc-farrow:hover { color: var(--primary); background: var(--primary-weak); }
.pc-thf-on .pc-farrow { color: var(--primary); }
.pc-fmenu {
  position: fixed;
  z-index: 70;      /* 高于内容与吸顶表头，低于 loading(80) 与 toast(90) */
  min-width: 180px;
  max-height: 320px;
  overflow: auto;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 10px 30px -10px rgba(23, 32, 47, .3), 0 2px 6px rgba(23, 32, 47, .08);
}
.pc-fmenu-head {
  padding: 5px 8px 6px;
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 3px;
}
.pc-fmenu-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}
.pc-fmenu-item:hover { background: var(--surface-3); }
.pc-fmenu-item.on { background: var(--primary-weak); color: var(--primary); font-weight: 600; }
.pc-fmenu-tick { width: 12px; font-size: 11px; color: var(--primary); }
.pc-fmenu-name { flex: 1; white-space: nowrap; }
.pc-fmenu-n { font-size: 11px; color: var(--muted); }

/* ===== 平台消耗费：表头固定 + 横向滚动条常驻首屏（20261019k）=====
   表格放进一个「最高 = 视口高度 - 顶部其余元素」的滚动框：
   1) thead 用 sticky 钉在框顶，明细再多也不会把表头（电商平台 / 店铺名称 …）滚走；
   2) 横向滚动条贴在框底，框本身在首屏内，所以不用拉到整页最底部才找得到它。 */
.pc-wrap {
  max-height: calc(100vh - 250px);
  min-height: 260px;
  overflow: auto;
  overscroll-behavior: contain;
}
.pc-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--surface-2);
  box-shadow: inset 0 -1px 0 var(--border);
}
