:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --ink: #1c2530;
  --ink-2: #5a6a7a;
  --ink-3: #8b9aa9;
  --line: #e4e9ef;
  --brand: #0f6f5c;
  --brand-2: #14876f;
  --brand-soft: #e6f4f0;
  --blue: #2563eb;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --red: #b42318;
  --red-soft: #fee4e2;
  --green: #067647;
  --green-soft: #d1fadf;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px -12px rgba(16, 24, 40, .18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
table { border-collapse: collapse; width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* ---------- 登录 ---------- */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center;
  background: radial-gradient(1200px 600px at 20% 0%, #0f6f5c22, transparent),
              radial-gradient(900px 500px at 100% 100%, #2563eb18, transparent), var(--bg);
  padding: 24px;
}
.login-card {
  width: 100%; max-width: 380px; background: var(--card); border-radius: 16px;
  padding: 32px 28px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.login-card .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), #1aa583); color: #fff; font-weight: 700; font-size: 17px;
}
.logo-mark.two { font-size: 13px; letter-spacing: -0.5px; }
.login-card h1 { font-size: 20px; }
.login-card p.sub { color: var(--ink-2); font-size: 13px; margin: 4px 0 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.input, .select, .textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.textarea { min-height: 72px; resize: vertical; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line); background: #fff;
  cursor: pointer; font-weight: 550; font-size: 13px; transition: all .15s; white-space: nowrap;
}
.btn:hover { border-color: #c9d3de; background: #fafbfc; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-danger { background: #fff; border-color: #f0b4ae; color: var(--red); }
.btn-danger:hover { background: var(--red-soft); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 布局 ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 216px; flex: 0 0 216px; background: #0d2b26; color: #cfe3dd;
  padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.sidebar .brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px 16px; }
.sidebar .brand b { color: #fff; font-size: 14.5px; display: block; line-height: 1.2; }
.sidebar .brand span { font-size: 11px; color: #7ea79c; }
.nav-item {
  display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 8px;
  color: #b9d3cc; font-size: 13.2px; cursor: pointer; border: none; background: none; text-align: left; width: 100%;
}
.nav-item:hover { background: #ffffff12; color: #fff; }
.nav-item.active { background: #ffffff1c; color: #fff; font-weight: 600; }
.nav-item .ico { width: 17px; text-align: center; opacity: .9; font-size: 14px; }
.nav-item .badge { margin-left: auto; }
.sidebar .foot { margin-top: auto; font-size: 11.5px; line-height: 1.9; color: #7ea79c; padding: 12px 8px 6px; border-top: 1px solid #ffffff14; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: #fff;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.topbar h2 { font-size: 16px; }
.topbar .who { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 12px;
}
.content { padding: 20px 24px 48px; max-width: 1400px; width: 100%; }

/* ---------- 通用组件 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 16px 18px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 14.5px; }
.card-head .grow { flex: 1; }
.grid { display: grid; gap: 14px; }
.grid > * { min-width: 0; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat .k { font-size: 12px; color: var(--ink-2); }
.stat .v { font-size: 24px; font-weight: 700; margin-top: 4px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat .hint { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.stat.accent { border-left: 3px solid var(--brand); }
.stat.warn { border-left: 3px solid var(--amber); }
.stat.danger { border-left: 3px solid var(--red); }

.table-wrap { overflow-x: auto; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th.right, td.right { text-align: right; }
th { font-size: 12px; color: var(--ink-2); font-weight: 600; background: #fafbfc; white-space: nowrap; }
tbody tr:hover { background: #fafcfb; }
tr.clickable { cursor: pointer; }
td .sub { font-size: 11.5px; color: #6b7b8b; }

.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; background: #eef2f6; color: var(--ink-2); white-space: nowrap;
}
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.amber { background: var(--amber-soft); color: var(--amber); }
.tag.red { background: var(--red-soft); color: var(--red); }
.tag.purple { background: #ede9fe; color: #6d28d9; }
.tag.blue { background: #dbeafe; color: #1e40af; }
.tag.gray { background: #eef2f6; color: #52606d; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 130px; }
.spacer { flex: 1; }

.alert { padding: 10px 14px; border-radius: 9px; font-size: 13px; border: 1px solid; }
.alert.ok { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.alert.warn { background: #fffaeb; border-color: #fedf89; color: #b54708; }
.alert.err { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.alert.info { background: #eff8ff; border-color: #b2ddff; color: #175cd3; }

.empty { padding: 40px 16px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: #10182888; backdrop-filter: blur(2px);
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 100; overflow: auto;
}
.modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 780px; box-shadow: 0 24px 60px -12px #10182855;
  animation: pop .16s ease-out;
}
.modal.wide { max-width: 960px; }
.modal.narrow { max-width: 460px; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 15px; }
.modal-body { padding: 18px 20px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); background: #fafbfc; border-radius: 0 0 14px 14px; }
.close-x { margin-left: auto; border: none; background: none; font-size: 20px; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 0 2px; }

/* ---------- 时间线 ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 20px; border-left: 2px solid var(--line); margin-left: 5px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand-2);
}
.timeline .t { font-size: 12px; color: var(--ink-3); }
.timeline .e { font-weight: 600; font-size: 13px; }

/* ---------- 步骤条 ---------- */
.steps { display: flex; gap: 0; margin: 6px 0 2px; }
.step { flex: 1; text-align: center; font-size: 11.5px; color: var(--ink-3); position: relative; padding-top: 22px; }
.step::before {
  content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 3px; background: var(--line);
}
.step::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 2px solid #cdd6e0;
}
.step.done { color: var(--brand); font-weight: 600; }
.step.done::before { background: var(--brand-2); }
.step.done::after { background: var(--brand-2); border-color: var(--brand-2); }
.step.current { color: var(--brand); font-weight: 700; }
.step.current::after { background: var(--brand-2); border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-soft); }

/* ---------- 其他 ---------- */
.match-box { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 9px; font-size: 12.5px; line-height: 1.5; }
.match-box.ok { background: #ecfdf3; color: #067647; }
.match-box.bad { background: #fef3f2; color: #b42318; }
.match-box.warn { background: #fffaeb; color: #b54708; }
.match-box .ic { font-weight: 700; }
.pay-shot { display: flex; gap: 10px; align-items: center; border: 1px dashed var(--line); border-radius: 9px; padding: 8px 10px; margin-bottom: 8px; }
.pay-shot img { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); cursor: zoom-in; }
.prog { margin: 4px 0 2px; }
.prow { display: grid; grid-template-columns: 56px 1fr 96px; gap: 10px; align-items: center; margin-bottom: 9px; font-size: 12.5px; }
.prow .bar { height: 7px; background: #eef2f6; border-radius: 99px; overflow: hidden; }
.prow .bar > i { display: block; height: 100%; background: var(--brand-2); border-radius: 99px; }
.prow .num { text-align: right; font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; color: var(--ink-2); }
.barcode-chip {
  display: inline-block; padding: 3px 8px; border: 1px dashed #cbd5e1; border-radius: 6px;
  background: #fbfcfd; cursor: context-menu; font-size: 12px; letter-spacing: .04em; white-space: nowrap;
}
.barcode-chip:hover { border-color: var(--brand-2); color: var(--brand); background: var(--brand-soft); }
.barcode-box { border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; background: #fcfdfd; overflow-x: auto; }
.barcode-box canvas { max-width: 100%; height: auto; }
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 6px 12px; font-size: 13px; }
.kv .k { color: var(--ink-3); font-size: 12.5px; }
.section-title { font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin: 18px 0 8px; letter-spacing: .02em; }
.items-editor { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.items-editor table td { padding: 6px 8px; }
.items-editor .input, .items-editor .select { padding: 6px 8px; font-size: 13px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: #101828; color: #fff; padding: 10px 16px; border-radius: 9px; font-size: 13px; z-index: 300;
  box-shadow: 0 12px 30px -8px #10182866; max-width: 90vw;
}
.toast.err { background: #b42318; }
.toast.ok { background: #067647; }
.chip-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip-tabs .chip {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 12.5px; cursor: pointer; color: var(--ink-2);
}
.chip-tabs .chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.progress { height: 6px; background: #eef2f6; border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brand-2); border-radius: 99px; }

@media (max-width: 1180px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .app { flex-direction: column; }
  .sidebar { width: 100%; flex: none; height: auto; position: static; flex-direction: row; overflow-x: auto; padding: 8px; gap: 6px; }
  .sidebar .brand, .sidebar .foot { display: none; }
  .nav-item { width: auto; white-space: nowrap; padding: 7px 10px; }
  .nav-item .badge { margin-left: 4px; }
  .content { padding: 14px 14px 60px; }
  .topbar { padding: 10px 14px; }
  .topbar h2 { font-size: 14.5px; }
  .topbar .who span.name { display: none; }
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .modal-mask { padding: 12px; }
  .kv { grid-template-columns: 80px 1fr; }
}

/* ---------------- 版本更新提示条 ---------------- */
.update-bar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 9999;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 16px; background: #0b5749; color: #fff;
  box-shadow: 0 4px 18px rgba(11, 87, 73, .28);
  transform: translateY(-110%); transition: transform .25s ease;
  font-size: 13.5px; line-height: 1.5;
}
.update-bar.show { transform: translateY(0); }
.update-bar .ub-txt { flex: 1; min-width: 200px; }
.update-bar .ub-txt b { font-weight: 700; }
.update-bar .ub-hint { display: block; color: #b7ddd4; font-size: 12px; margin-top: 2px; }
.update-bar .btn { flex: none; }
@media (max-width: 640px) {
  .update-bar { padding: 9px 12px; gap: 8px; }
  .update-bar .btn { padding: 6px 12px; font-size: 12.5px; }
}
body.has-update { padding-top: var(--ub-h, 0px); }
.update-bar .btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.update-bar .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
@media (max-width: 640px) { body.has-update { padding-top: var(--ub-h, 0px); } }
body.has-update .sidebar { top: var(--ub-h, 0px); height: calc(100vh - var(--ub-h, 0px)); }
body.has-update .app { min-height: calc(100vh - var(--ub-h, 0px)); }
@media (max-width: 900px) {
  body.has-update .sidebar { position: static; height: auto; top: auto; }
}
@media (max-width: 560px) {
  .qrbox { flex-direction: column-reverse; }
  .qrbox .txt { min-width: 0; }
}

/* ---------------- 平台订单卡片（按单号带出） ---------------- */
.po-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fbfcfd; margin: 8px 0 10px; }
.po-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.po-table { width: 100%; border-collapse: collapse; }
.po-table th { font-size: 11.5px; color: var(--muted); font-weight: 600; text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.po-table td { padding: 6px; border-bottom: 1px dashed var(--line); vertical-align: middle; font-size: 13px; }
.po-table tr:last-child td { border-bottom: 0; }
.po-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.po-foot { display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.po-foot .po-paid { margin-left: auto; font-size: 14px; }
.po-foot .po-paid b { font-size: 17px; color: var(--brand); }
.po-actions { margin-top: 10px; display: flex; gap: 8px; }

/* ---------------- 版本号 / 检查更新按钮 ---------------- */
.ver-btn {
  background: none; border: 1px solid transparent; padding: 2px 8px; border-radius: 6px;
  color: var(--muted); font-size: 11.5px; cursor: pointer; font-family: inherit;
  font-variant-numeric: tabular-nums; transition: .15s;
}
.ver-btn:hover { color: var(--brand); border-color: rgba(15,111,92,.35); background: rgba(15,111,92,.06); }
.ver-btn:disabled { opacity: .6; cursor: default; }
.sidebar .ver-btn { color: rgba(255, 255, 255, .72); }
.sidebar .ver-btn:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); }

/* 顶部「检查更新」按钮：桌面隐藏（侧栏已有版本按钮），手机上显示 */
.ver-btn-top { display: none; }
@media (max-width: 900px) {
  .ver-btn-top { display: inline-block; }
}

@media (max-width: 900px) {
  .topbar h2 { white-space: nowrap; }
  .topbar .who { gap: 6px; }
  .topbar .who .btn { padding: 5px 9px; font-size: 12px; }
}

/* 手机窄屏：顶栏只留图标与缩写，避免「退出」被挤出屏幕 */
@media (max-width: 480px) {
  .topbar { padding: 8px 12px; gap: 8px; }
  .topbar h2 { font-size: 14px; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; }
  .topbar .who .name, .topbar .who .tag { display: none; }
  .topbar .who { gap: 5px; }
  .topbar .who .btn { padding: 4px 7px; font-size: 11.5px; }
}

/* 订单卡片里的颜色 / 规格标签 */
.po-specs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.po-spec { display: inline-block; background: #eef4f2; color: #0b5749; border-radius: 5px;
  padding: 1px 6px; font-size: 11.5px; line-height: 1.6; }
.po-spec b { font-family: ui-monospace, Consolas, monospace; }

.po-spec { background: #e3f0ec; border: 1px solid #cfe3dd; padding: 2px 7px; font-size: 12px; color: #0b5749; }
.po-spec b { margin-left: 4px; color: #0f6f5c; }

/* 手机端表格保持可读宽度，横向滚动而不是把字挤成竖排 */
@media (max-width: 900px) {
  .table-wrap table { min-width: 640px; }
  .card-pad .grid-2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .table-wrap table.tbl-compact { min-width: 460px; }
}

@media (max-width: 900px) {
  .table-wrap table.tbl-compact { min-width: 0; }
  .table-wrap table.tbl-compact img { width: 42px; height: 42px; }
  .table-wrap table.tbl-compact th, .table-wrap table.tbl-compact td { padding: 8px 5px; }
}

@media (max-width: 900px) {
  .card-head { flex-wrap: wrap; gap: 4px; }
  .card-head h3 { width: 100%; }
}

/* 侧栏按部门分组 */
.sidebar .nav-group {
  font-size: 10.5px; color: #7ea79c; letter-spacing: 1.2px;
  padding: 12px 10px 3px; margin-top: 2px;
  font-weight: 600; text-transform: none;
}
.sidebar .nav-group:first-of-type { padding-top: 6px; }
@media (max-width: 900px) {
  .sidebar .nav-group { display: none; }
}

/* 库存：品类折叠 + 颜色小图标 */
.inv-group {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: #f7faf9; border: 1px solid #e3ece9; border-radius: 10px;
  padding: 11px 12px; cursor: pointer; font-size: 14px; color: #14332c;
  margin-top: 8px; text-align: left;
}
.inv-group:hover { background: #eef5f2; }
.inv-group.open { background: #e8f2ee; border-color: #cfe3dd; }
.inv-group .caret { color: #0f6f5c; font-size: 12px; width: 12px; }
.inv-group .inv-gname { font-weight: 700; }
.inv-group .inv-gmeta { color: #6b8a80; font-size: 12px; }
.inv-group .inv-gstock { margin-left: auto; font-size: 12.5px; color: #33564d; }
.inv-group .inv-gstock b { font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
.inv-body { padding: 0 4px 6px; }

.sw {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 26px;
  display: inline-block; border: 1px solid rgba(0,0,0,.16);
  box-shadow: inset 0 -3px 6px rgba(255,255,255,.18);
}
.sw-empty { background: repeating-linear-gradient(45deg, #e5e9ee, #e5e9ee 4px, #f5f7f9 4px, #f5f7f9 8px); }
.sku-cell { display: flex; align-items: center; gap: 9px; }
.sku-cell b { font-size: 13.5px; }
.sku-cell .sub { font-size: 11.5px; }

@media (max-width: 900px) {
  .inv-group { flex-wrap: wrap; }
  .inv-group .inv-gstock { margin-left: 22px; }
}

.only-sm { display: none; }
@media (max-width: 900px) {
  .only-sm { display: inline; color: #8b9aa9; font-size: 11px; }
  .col-spec, .col-reserved { display: none; }
  #invTree .sku-cell b { font-size: 13px; }
}

.seg { display: inline-flex; border: 1px solid #d8e0e6; border-radius: 8px; overflow: hidden; }
.seg-item { border: 0; background: #fff; padding: 7px 14px; font-size: 13.5px; cursor: pointer; color: #475467; }
.seg-item + .seg-item { border-left: 1px solid #e3e8ee; }
.seg-item.active { background: #0f6f5c; color: #fff; }

.inv-group { cursor: pointer; }

/* 二级分类（男款/女款） */
.chip-tabs.sub { padding-left: 2px; }
.chip.sm { font-size: 12px; padding: 3px 10px; }
