/* Empty fee rows must not offer an expansion control (including keyboard focus). */
.kmande-fees-table .kmande-fee-no-children > .el-table__expand-column .el-table__expand-icon {
  display: none;
}

:root {
  --ink: #333333;
  --muted: #666666;
  --line: #e6e8ea;
  --bg: #f5f7f8;
  --panel: #ffffff;
  --brand: #0b79bf;
  --brand-dark: #0969a8;
  --sidebar: #2d2d2d;
  --sidebar-hover: #3a3a3a;
  --sidebar-active: #222222;
  --info-bg: #e7f1fb;
  --el-color-primary: #0b79bf;
  --el-color-primary-light-3: #3c94cc;
  --el-color-primary-light-5: #6daed9;
  --el-color-primary-light-7: #9ec8e6;
  --el-color-primary-light-8: #c5def0;
  --el-color-primary-light-9: #e7f3fa;
  --el-color-primary-dark-2: #0969a8;
  --el-font-family: "Manrope", "Segoe UI", "Helvetica Neue", "PingFang SC", sans-serif;
}
/* Repricing uses a fluid native table: no nested scrolling container. */
.repricing-page { min-width:0; }
.repricing-table-wrap { width:100%; position:relative; }
.repricing-table { width:100%; table-layout:fixed; border-collapse:separate; border-spacing:0; background:#fff; font-size:13px; }
.repricing-table th,.repricing-table td { padding:10px 7px; border-right:1px solid #ebeef5; border-bottom:1px solid #ebeef5; text-align:left; overflow-wrap:anywhere; }
.repricing-table th:first-child,.repricing-table td:first-child { border-left:1px solid #ebeef5; }
.repricing-table th { position:sticky; top:0; z-index:15; background:#f5f7fa; border-top:1px solid #ebeef5; box-shadow:0 2px 2px #00000008; }
.repricing-table th button { background:none; border:0; padding:0; color:inherit; font:inherit; font-weight:600; text-align:left; cursor:pointer; width:100%; }
.repricing-table th button span { color:#909399; font-size:11px; }
.repricing-table tbody tr:nth-child(even) { background:#fafafa; }
.repricing-table .repricing-pair { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:6px 4px; align-items:center; }
.repricing-table .el-select,.repricing-table .el-input-number { width:100%; min-width:0; }
.repricing-table .el-input__wrapper,.repricing-table .el-select__wrapper { padding-left:5px; padding-right:5px; }
.repricing-table .el-input__inner { min-width:0; }
.repricing-table .repricing-col-9 .el-button { display:block; margin:0 0 8px; max-width:100%; white-space:normal; text-align:left; }
.repricing-table .sm-product-text > div { white-space:normal!important; }
.repricing-table .sm-product-text > div > div { white-space:normal!important; }
.repricing-table .sm-sku { white-space:normal; overflow-wrap:anywhere; }
@media (max-width:1450px) {
  .repricing-table th,.repricing-table td { padding:8px 5px; }
  .repricing-table .repricing-pair { grid-template-columns:minmax(0,1fr); }
  .repricing-table .sm-product { flex-direction:column; }
  .repricing-table .sm-product-text { width:100%; }
}
* { box-sizing: border-box; }
html, body, #app { margin: 0; min-height: 100%; }
body {
  font-family: var(--el-font-family);
  background: var(--bg);
  color: var(--ink);
}
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  position: relative;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(11, 121, 191, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 100%, rgba(15, 76, 92, 0.12), transparent 50%),
    linear-gradient(160deg, #e8eef3 0%, #f4f6f8 42%, #eef2f5 100%);
  overflow: hidden;
}
.auth-lang {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(21, 35, 46, 0.1);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(15, 35, 50, 0.06);
}
.auth-lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #5a6b78;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
}
.auth-lang-btn:hover { color: #15232e; }
.auth-lang-btn.is-on {
  background: #0b79bf;
  color: #fff;
}
.auth-stage {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  animation: auth-stage-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes auth-stage-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.auth-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 8vw, 88px);
  color: #f4f8fb;
  background:
    linear-gradient(145deg, #0b1f2e 0%, #12364d 48%, #0f4c5c 100%);
  isolation: isolate;
  overflow: hidden;
}
.auth-hero-glow {
  position: absolute;
  inset: auto -20% -30% 20%;
  height: 70%;
  background: radial-gradient(circle at 30% 40%, rgba(11, 121, 191, 0.55), transparent 62%);
  filter: blur(8px);
  z-index: 0;
  animation: auth-glow 8s ease-in-out infinite alternate;
}
@keyframes auth-glow {
  from { transform: translate(-4%, 2%) scale(1); opacity: 0.75; }
  to { transform: translate(6%, -4%) scale(1.08); opacity: 1; }
}
.auth-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
}
.auth-kicker,
.auth-brand,
.auth-tagline,
.auth-points {
  position: relative;
  z-index: 1;
}
.auth-kicker {
  margin: 0 0 18px;
  font-family: "Manrope", var(--el-font-family);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 242, 248, 0.72);
  animation: auth-fade-up 0.6s 0.12s both;
}
.auth-brand {
  margin: 0;
  font-family: "Syne", var(--el-font-family);
  font-size: clamp(42px, 5.6vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  animation: auth-fade-up 0.65s 0.18s both;
}
.auth-brand span {
  display: inline-block;
  color: #7ec8ef;
  font-weight: 600;
}
.auth-tagline {
  margin: 18px 0 0;
  font-family: "Manrope", var(--el-font-family);
  font-size: 15px;
  color: rgba(232, 242, 248, 0.7);
  animation: auth-fade-up 0.65s 0.26s both;
}
.auth-points {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  animation: auth-fade-up 0.7s 0.34s both;
}
.auth-points li {
  position: relative;
  padding-left: 18px;
  font-family: "Manrope", var(--el-font-family);
  font-size: 14px;
  line-height: 1.45;
  color: rgba(244, 248, 251, 0.88);
}
.auth-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: #0b79bf;
  box-shadow: 0 0 0 3px rgba(11, 121, 191, 0.25);
}
@keyframes auth-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
}
.auth-panel-inner {
  width: min(400px, 100%);
  animation: auth-fade-up 0.7s 0.2s both;
}
.auth-panel-label {
  margin: 0 0 8px;
  font-family: "Manrope", var(--el-font-family);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6a7a86;
}
.auth-panel-title {
  margin: 0 0 28px;
  font-family: "Syne", var(--el-font-family);
  font-size: clamp(30px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #15232e;
}
.auth-copy {
  margin: 0 0 16px;
  font-family: "Manrope", var(--el-font-family);
  font-size: 15px;
  line-height: 1.6;
  color: #3d4d59;
}
.auth-copy.muted { color: #6a7a86; }
.auth-copy strong { color: #15232e; font-weight: 650; }
.auth-alert { margin-bottom: 18px; }
.auth-form .el-form-item { margin-bottom: 18px; }
.auth-form-aside {
  margin-top: 8px;
  text-align: right;
  font-size: 13px;
}
.auth-form-aside a {
  color: var(--brand, #0b79bf);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.auth-form-aside a:hover { border-bottom-color: currentColor; }
.auth-form .el-form-item__label {
  font-family: "Manrope", var(--el-font-family);
  font-weight: 600;
  color: #3d4d59;
}
.auth-form .el-input__wrapper {
  border-radius: 10px;
  box-shadow: 0 0 0 1px #d5dee5 inset;
  background: #fff;
  min-height: 46px;
  transition: box-shadow 0.18s ease, background 0.18s ease;
}
.auth-form .el-input__wrapper:hover {
  box-shadow: 0 0 0 1px #b7c6d1 inset;
}
.auth-form .el-input__wrapper.is-focus {
  box-shadow: 0 0 0 1px var(--brand) inset, 0 0 0 3px rgba(11, 121, 191, 0.15);
}
.auth-submit {
  width: 100%;
  height: 48px !important;
  margin-top: 6px;
  border: none !important;
  border-radius: 10px !important;
  font-family: "Syne", var(--el-font-family) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #1290d8 0%, #0b79bf 100%) !important;
  transition: transform 0.15s ease, filter 0.15s ease !important;
}
.auth-submit:hover,
.auth-submit:focus {
  filter: brightness(1.04);
  transform: translateY(-1px);
}
.auth-foot {
  margin-top: 22px;
  font-family: "Manrope", var(--el-font-family);
  color: #6a7a86;
  font-size: 14px;
}
.auth-foot a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 650;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.auth-foot a:hover { border-bottom-color: currentColor; }

/* legacy hooks kept for any leftover markup */
.auth-card {
  width: min(440px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 32px 28px;
}
.brand { margin: 0 0 4px; font-weight: 700; color: var(--ink); font-size: 20px; }
.auth-card .logo-by { margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.auth-card h1 { margin: 12px 0 8px; font-size: 26px; color: var(--ink); }
.sub { color: var(--muted); margin: 0 0 20px; line-height: 1.5; }

@media (max-width: 900px) {
  .auth-lang {
    top: 12px;
    right: 12px;
  }
  .auth-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .auth-hero {
    min-height: auto;
    padding: 52px 24px 28px;
  }
  .auth-brand { font-size: clamp(34px, 9vw, 44px); }
  .auth-points { display: none; }
  .auth-panel {
    align-items: flex-start;
    padding-top: 28px;
    padding-bottom: 48px;
    background: transparent;
    backdrop-filter: none;
  }
}
.prod-thumb {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  display: block;
  background: #f0f0f0;
}
.prod-thumb-empty {
  color: var(--muted);
  font-size: 13px;
}

/* 销售矩阵 */
.sm-table-wrap {
  overflow-x: auto;
}
.sm-product {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
}
.sm-thumb {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}
.sm-product-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.sm-sku {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: #0f172a;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.sm-sku-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.sm-view {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  color: #0e7490;
  text-decoration: none;
  padding: 2px 5px;
  border: 1px solid rgba(14, 116, 144, 0.28);
  border-radius: 4px;
  background: #f0fdfa;
}
.sm-view:hover {
  color: #fff;
  background: #0e7490;
  border-color: #0e7490;
}
.sm-product.has-actions {
  align-items: flex-start;
}
.sm-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
button.sm-view {
  appearance: none;
}
.sm-view-detail {
  color: #0f3d38;
  border-color: rgba(15, 61, 56, 0.28);
  background: #f3f7f6;
  cursor: pointer;
  font-family: inherit;
}
.sm-view-detail:hover {
  color: #fff;
  background: #0f3d38;
  border-color: #0f3d38;
}
.sm-title {
  font-size: 12px;
  line-height: 1.25;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.sm-title:hover,
.sm-sku:hover {
  color: #0e7490;
}
.sm-dor {
  font-variant-numeric: tabular-nums;
  padding-right: 10px;
  justify-content: flex-end;
  box-sizing: border-box;
}
.sm-dor-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding-right: 8px;
  line-height: 1.15;
}
.sm-dor-wrap .sm-dor { padding-right: 0; }
.sm-dor-frac {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.88;
  white-space: nowrap;
}
.sm-table th.sm-th > .cell {
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.2;
  white-space: nowrap;
  padding: 8px 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.sm-table th.sm-th .caret-wrapper {
  width: 14px;
  flex-shrink: 0;
}
.sm-table td.el-table__cell {
  padding: 0;
}
.sm-table td.el-table__cell .cell {
  padding: 0;
  line-height: 1;
}
.sm-table td.el-table__cell.is-right .cell,
.sm-table td.el-table__cell:first-child .cell {
  padding: 0;
}
.sm-day-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.sm-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.sm-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}
.sm-swatch-in { background: #dcfce7; }
.sm-swatch-out { background: #e5e7eb; }
.sm-swatch-none { background: #ffffff; }
/* Keep heatmap cell colors; only mark the row with a top/bottom accent line. */
.sm-table {
  --el-table-row-hover-bg-color: transparent;
}
/* 固定列衬底不透明，避免横向滚动时日期数字透出；单元格颜色由 cell-style 实色控制 */
.sm-table .el-table__fixed,
.sm-table .el-table__fixed-left {
  background-color: #fff;
}
.sm-table .el-table__fixed-left::before,
.sm-table .el-table__fixed::before {
  background-color: #fff;
}
.sm-table th.sm-th-fixed.el-table__cell {
  background-color: #f8fafc !important;
}
.sm-table th.sm-th.el-table__cell { background-color:#f8fafc!important;color:#606266!important; }
.sm-history-cell { min-height:44px;display:flex;align-items:center;justify-content:center;width:100%;cursor:help; }
.fm-meta-section { margin-bottom:18px;border-bottom:1px solid #ebeef5;padding-bottom:2px; }
.fm-meta-title { margin:0 0 14px;font-size:14px;font-weight:600;color:#303133; }
.fm-meta-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 20px; }
.fm-meta-grid-four { grid-template-columns:repeat(4,minmax(0,1fr)); }
.fm-meta-grid .el-select { width:100%; }
@media (max-width:1200px) { .fm-meta-grid,.fm-meta-grid-four { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px) { .fm-meta-grid,.fm-meta-grid-four { grid-template-columns:minmax(0,1fr); } }
.sm-table .el-table__body tr:hover > td.el-table__cell,
.sm-table .el-table__body tr.hover-row > td.el-table__cell {
  box-shadow: inset 0 2px 0 0 #0e7490, inset 0 -2px 0 0 #0e7490;
}

/* 销售矩阵 SKU 悬停速查层（与 Widget 同数据，独立布局） */
.sm-peek-pop.el-popover,
.sm-peek-pop {
  padding: 0 !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16) !important;
}
.sm-peek {
  padding: 14px 14px 12px;
  color: #0f172a;
}
.sm-peek-loading {
  padding: 18px 8px;
  text-align: center;
  font-size: 13px;
}
.sm-peek-hero {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}
.sm-peek-hero img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #f1f5f9;
  display: block;
}
.sm-peek-sku {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.sm-peek-title {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sm-peek-view {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 650;
  color: #0e7490;
  text-decoration: none;
}
.sm-peek-view:hover { text-decoration: underline; }
.sm-peek-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
}
.sm-peek-label {
  font-size: 11px;
  font-weight: 650;
  color: #94a3b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sm-peek-dor,
.sm-peek-dc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.sm-peek-dc {
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
}
.sm-peek-dor > div,
.sm-peek-dc > div {
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px 8px 7px;
  min-width: 0;
}
.sm-peek-dc > div.is-total {
  background: #ecfeff;
}
.sm-peek-dc .sm-peek-transit { display:block;margin-top:4px;font-size:10px;line-height:14px;color:#64748b;font-weight:400;font-variant-numeric:tabular-nums;white-space:nowrap; }
.snap-calendar-cell { position:relative; }
.snap-header-date { display:flex;align-items:center;gap:10px;white-space:nowrap; }
.snap-history { display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px; }
.snap-history-day { background:#f7f9fc;border-radius:8px;text-align:center;padding:9px 2px;color:#64748b;font-size:11px; }
.snap-history-day strong { display:block;margin-top:7px;color:#0f172a;font-size:15px;line-height:20px; }
.snap-history-day--recent { background:#fff0df; }
.fx-history { display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-top:14px; }
.fx-history-day { background:#f7f9fc;border-radius:7px;padding:9px 2px;text-align:center; }
.fx-history-day > span { display:block;color:#64748b;font-size:11px; }
.fx-history-day > strong { display:block;margin-top:7px;color:#0f172a;font-size:13px;line-height:20px;font-variant-numeric:tabular-nums; }
.fx-history-day.is-weekend { background:#fff0df; }
.fx-history-note { color:#94a3b8;font-size:11px;line-height:1.6;margin-top:8px; }
.snap-calendar-dot { position:absolute;bottom:2px;left:50%;transform:translateX(-50%);width:5px;height:5px;border-radius:50%;background:#22a65a; }
.erp-price-stack { display:flex;flex-direction:column;align-items:flex-start;gap:2px;font-size:13px;line-height:22px;font-variant-numeric:tabular-nums; }
.erp-price-stack + .erp-price-stack { margin-top:10px;padding-top:10px;border-top:1px solid #edf0f4; }
.erp-price-break { color:#dc2626;font-size:13px;font-weight:500;line-height:22px;white-space:nowrap;cursor:default; }
.erp-breakeven-tip { max-width:380px;white-space:pre-line;font-size:12px;line-height:1.8; }
.voc-platform-stars { display:flex;align-items:center;gap:8px;white-space:nowrap; }
.voc-platform-stars .el-rate { --el-rate-icon-size:16px;--el-rate-fill-color:#f5a623;height:22px; }
.voc-platform-stars .el-rate__icon { margin-right:2px; }
.voc-platform-stars > span { font-size:13px;color:#64748b;font-variant-numeric:tabular-nums; }
.erp-price-retail { color:var(--el-color-primary,#0782c1);font-size:13px;font-weight:500;line-height:22px;white-space:nowrap; }
.erp-price-stack .el-button.erp-price-retail { padding:0;margin:0;height:22px;min-height:22px;line-height:22px;vertical-align:baseline; }
.erp-price-stack .el-button.erp-price-retail > span { line-height:22px; }
.erp-price-meta { color:#94a3b8;font-size:11px;line-height:16px;margin-top:2px;overflow-wrap:anywhere; }
.erp-price-row { display:flex;align-items:center;gap:6px;min-height:22px; }
.snap-price-edit { display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:26px;height:28px;padding:0;border:1px solid #e2e8f0;border-radius:5px;background:#fff;color:#64748b;cursor:pointer; }
.snap-price-edit:hover:not(:disabled) { color:var(--el-color-primary,#0782c1);border-color:#93c5fd; }
.snap-price-edit:disabled { opacity:.45;cursor:not-allowed; }
.sm-peek-dor span,
.sm-peek-dc span,
.sm-peek-ow span,
.sm-peek-foot span {
  display: block;
  font-size: 11px;
  color: #64748b;
}
.sm-peek-dor b,
.sm-peek-dc b,
.sm-peek-ow b,
.sm-peek-foot b {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}
.sm-peek-overseas {
  display: grid;
  gap: 6px;
}
.sm-peek-ow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  background: #f8fafc;
  border-radius: 8px;
}
.sm-peek-ow b { margin-top: 0; font-size: 14px; }
.sm-peek-foot {
  margin-top: 10px;
  padding: 10px 10px 9px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.sm-peek-foot b { margin-top: 0; color: #c2410c; }

.demo-box {
  margin: 0 0 18px;
  padding: 14px 14px 12px;
  border: 1px solid #cfe5f5;
  background: #f3f9fd;
  border-radius: 8px;
}
.demo-box-title {
  font-size: 13px;
  font-weight: 700;
  color: #0b5f8a;
  margin-bottom: 6px;
}
.demo-box-text {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.demo-creds {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}
.demo-creds div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.demo-creds span { min-width: 36px; }
.demo-creds code {
  flex: 1;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid #d7e6f0;
  border-radius: 4px;
  color: var(--ink);
  font-size: 12px;
}
.demo-banner {
  margin: 0 20px 0;
  padding: 10px 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.demo-banner-text { flex: 1; min-width: 200px; }
.demo-banner-btn { flex-shrink: 0; }
.demo-banner strong { font-weight: 700; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px 1fr; transition: grid-template-columns .2s ease; }
.app-shell.sidebar-hidden { grid-template-columns: 0 1fr; }
.sidebar {
  background: var(--sidebar);
  color: #fff;
  padding: 18px 0 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  transition: opacity .15s ease, transform .2s ease;
}
.app-shell.sidebar-hidden .sidebar {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-12px);
}
.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
}
.sidebar-toggle:hover { background: #f3f4f6; color: #111; }
.sidebar-toggle-icon { display: block; width: 16px; height: 14px; position: relative; }
.sidebar-toggle-icon::before,
.sidebar-toggle-icon::after,
.sidebar-toggle-icon span {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.sidebar-toggle-icon::before { top: 0; }
.sidebar-toggle-icon span { top: 6px; }
.sidebar-toggle-icon::after { bottom: 0; content: ''; }
.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 4px 18px 20px;
  color: #fff;
  letter-spacing: 0;
}
.sidebar-brand .logo-name {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  color: #fff;
}
.sidebar-brand .logo-by {
  font-weight: 400;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(255,255,255,.55);
}
.sidebar-sub { display: none; }
.sidebar nav { flex: 1; }
.nav-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 18px 8px;
  color: rgba(255,255,255,.45);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: none;
  user-select: none;
}
.nav-divider::before,
.nav-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.18);
}
.nav-divider span { flex: 0 0 auto; }
.nav-link {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 0;
  opacity: 0.92;
}
.nav-link:hover { background: var(--sidebar-hover); opacity: 1; color: #fff; }
.nav-link.active { background: var(--sidebar-active); opacity: 1; color: #fff; }
.nav-link.has-child-active {
  background: transparent;
  opacity: 1;
  color: #fff;
  font-weight: 600;
}
.nav-link-child {
  padding-left: 32px;
  font-size: 13px;
  opacity: 0.82;
}
.sidebar-logout {
  margin: 12px 18px 0;
  width: calc(100% - 36px);
}
.sidebar-support {
  margin: 12px 18px 4px;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255,255,255,.45);
  word-break: break-all;
}
.sidebar-support a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
}
.sidebar-support a:hover { color: #fff; }
.sidebar-version { margin:12px 18px 0;font-size:12px;line-height:1.5;color:rgba(255,255,255,.75); }
.erp-update-banner { position:sticky;top:0;z-index:100;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 24px;background:#edf6fd;border-bottom:1px solid #b9d9f0;color:#245779; }
.erp-update-copy { min-width:0;overflow-wrap:anywhere;font-size:13px;line-height:1.6; }
.erp-update-copy strong { color:#0b79bf; }
.erp-update-copy ul { margin:6px 0;padding-left:20px; }
.erp-update-hint { display:block;color:#606266;font-size:12px; }
.erp-update-banner>.el-button { flex-shrink:0; }
@media(max-width:600px){.erp-update-banner{align-items:flex-start;flex-direction:column;padding:12px 16px;gap:10px;}}
.main { min-width: 0; background: var(--bg); }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.topbar-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-aside {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  min-width: 0;
}
.topbar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.meta-split {
  width: 1px;
  height: 14px;
  background: var(--line);
  flex-shrink: 0;
}
.za-flag {
  width: 18px;
  height: 12px;
  display: block;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
  flex-shrink: 0;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.content { padding: 24px 28px 40px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.page-head-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.page-head h1 { margin: 0 0 8px; font-size: 28px; color: var(--ink); font-weight: 700; }
.page-head-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}
.page-head-title h1 { margin: 0; }
.muted { color: var(--muted); }
.hub-page { max-width: 1080px; }
.hub-section { margin-top: 20px; }
.hub-section:first-of-type { margin-top: 16px; }
.hub-section-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.hub-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 128px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hub-card:hover {
  border-color: #c5d7e4;
  box-shadow: 0 8px 20px rgba(15, 23, 32, 0.06);
  color: var(--ink);
}
.hub-card-title { font-size: 16px; font-weight: 700; line-height: 1.35; }
.hub-card-desc {
  margin: 0;
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.hub-card-go {
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
}
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.daily-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.daily-desc {
  flex: 1 1 280px;
  margin: 0;
  line-height: 1.5;
  font-size: 13px;
}
.daily-custom {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
}
.daily-custom .el-date-editor.el-input__wrapper,
.daily-custom .el-date-editor.el-input,
.daily-custom .el-date-editor {
  width: 240px !important;
  max-width: 100%;
  flex: 0 0 auto;
}
.daily-grid-wrap {
  overflow-x: auto;
  margin: 0 0 8px;
  padding-bottom: 2px;
}
.daily-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  min-width: 960px;
}
.daily-grid.has-custom {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 1120px;
}
.daily-grid.period-many {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  min-width: 0;
}
.period-report-tabs {
  margin: 4px 0 12px;
}
.ads-tabs {
  margin-top: 4px;
}
.ads-page-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 8px;
  line-height: 1.15;
  font-size: unset;
  font-weight: 400;
}
.ads-page-title .col-head-en {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.ads-page-title .col-head-zh {
  font-size: 13px;
  font-weight: 500;
}
.ads-tab-bi {
  gap: 0;
}
.ads-tabs .el-tabs__item {
  height: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  line-height: 1.2;
}
.ads-sku-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.ads-sku-title h1 { margin: 0; }
.ads-order-mix {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: none;
}
.ads-order-mix-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
}
.ads-order-mix-card.is-organic { background: #059669; }
.ads-order-mix-card.is-ad { background: #ca8a04; }
.ads-order-mix-card.is-empty {
  background: #e8edf2;
  color: #94a3b8;
}
.ads-order-mix-label,
.ads-order-mix-val {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ads-order-mix-val { font-weight: 650; }
.ads-kpis {
  margin-bottom: 16px;
  grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
  gap: 8px;
}
.ads-kpi-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #e8edf2;
  color: #94a3b8;
  cursor: pointer;
  text-align: left;
  appearance: none;
  font: inherit;
  min-width: 0;
}
.ads-kpi-card:hover:not(.is-on) {
  background: #dde3ea;
  color: #64748b;
}
.ads-kpi-card.is-on {
  color: #fff;
}
.ads-kpis .voc-bi-head {
  gap: 0;
  min-width: 0;
  width: 100%;
}
.ads-kpis .col-head-en,
.ads-kpis .col-head-zh,
.ads-kpis .voc-kpi-num {
  color: inherit;
}
.ads-kpis .col-head-en,
.ads-kpis .col-head-zh {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.ads-kpis .voc-kpi-num {
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap !important;
  word-break: keep-all;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
  letter-spacing: -0.03em;
}
.ads-tab-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  margin: 0 0 12px;
}
.ads-merge-skus {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.ads-merge-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  align-items: flex-start;
}
.ads-merge-thumb {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f7f6;
  cursor: pointer;
  line-height: 0;
}
.ads-merge-thumb img,
.ads-merge-thumb .prod-thumb-empty {
  width: 56px;
  height: 56px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.ads-merge-thumb:hover {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}
.ads-merge-sku {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.ads-tab-toolbar .ads-range-picker.el-date-editor,
.ads-tab-toolbar .el-date-editor.ads-range-picker {
  width: 230px !important;
  max-width: 230px;
  flex: 0 0 230px;
}
.ads-help-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 20px;
  padding: 0;
  cursor: pointer;
}
.ads-help-btn:hover {
  color: var(--ink);
  border-color: #cbd5e1;
}
.ads-help-body {
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
}
.ads-help-body p { margin: 0 0 8px; }
.ads-help-body p:last-child { margin-bottom: 0; }
.ads-ops-table {
  width: 100%;
}
.ads-ops-table .ads-ops-total {
  font-weight: 650;
  background: #f8fafc;
}
.ads-kpi-chart-card { margin-bottom: 16px; }
.ads-kpi-chart-collapsed {
  display: flex;
  justify-content: flex-end;
  margin: -8px 0 16px;
}
.ads-kpi-chart-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 4px;
}
.ads-kpi-chart-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ads-kpi-chips-toggle {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 0;
}
.ads-kpi-chips-toggle:hover { color: var(--ink); }
.ads-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ads-chart-grid .ads-chart-wide {
  grid-column: 1 / -1;
}
.voc-kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.voc-kpi-num { font-size: 22px; font-weight: 650; line-height: 1.3; }
.finance-kpi-num.pos { color: #15803d; }
.finance-kpi-num.neg { color: #b91c1c; }
.finance-kpi-range { font-size: 11px; margin: 2px 0 6px; line-height: 1.3; }
.finance-period-bar { margin: 0 0 12px; }
.finance-period-bar .orders-toolbar {
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.finance-type-kpis {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}
.finance-type-en,
.finance-type-zh,
.finance-type-amt,
.finance-type-shop {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.finance-type-en,
.finance-type-zh {
  font-size: 13px;
  line-height: 1.3;
}
.finance-type-zh { margin-bottom: 4px; }
.finance-type-kpis .voc-kpi-num {
  font-size: 20px;
  font-weight: 650;
  line-height: 1.25;
}
.finance-type-shops {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #eef2f6;
}
.finance-type-shop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
}
.finance-type-shop-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #64748b;
}
.finance-type-shop-amt {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}
.voc-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.voc-chart { height: 260px; }
.voc-chart-wide { height: 280px; }
.voc-chart-reason { height: 300px; }
.voc-chart-rate { height: 320px; }
.voc-bi-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.2;
}
.voc-ret-card { margin-bottom: 16px; }
.voc-ret-note { margin: 0 0 12px; font-size: 12px; }
.voc-ret-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.voc-ret-kpi {
  border: 1px solid #eef2f4;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  border-top-width: 3px;
  border-top-style: solid;
  border-top-color: #0b79bf;
}
.voc-ret-kpi.is-total { border-top-color: #0b79bf; }
.voc-ret-kpi.is-product { border-top-color: #dc2626; }
.voc-ret-kpi.is-customer { border-top-color: #d97706; }
.voc-ret-kpi.is-sellable { border-top-color: #16a34a; }
.voc-ret-kpi.is-removal { border-top-color: #7c3aed; }
.voc-ret-units { font-size: 11px; margin-top: 2px; }
@media (max-width: 960px) {
  .voc-ret-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.voc-sku-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.voc-sku-hero.ads-merge-hero {
  align-items: flex-start;
}
.voc-sku-hero img,
.voc-sku-hero .prod-thumb-empty {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: #f4f7f6;
}
.voc-sku-hero-sku { font-weight: 700; }
.voc-sku-hero-title { color: var(--muted); font-size: 13px; margin: 4px 0 6px; }
.voc-sku-hero-sku.is-copy,
.voc-sku-hero-title.is-copy { cursor: pointer; }
.voc-sku-hero-sku.is-copy:hover,
.voc-sku-hero-title.is-copy:hover { color: #0e7490; }
.voc-hl-card { margin-bottom: 16px; }
.voc-hl {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}
.voc-time-card { margin-bottom: 16px; }
.voc-insight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.voc-insight-list { display: grid; gap: 12px; }
.voc-insight-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f7f6;
}
.voc-insight-item.is-pro { background: #f0fdf4; }
.voc-insight-item.is-con { background: #fff7ed; }
.voc-insight-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.voc-insight-head span { color: var(--muted); font-size: 12px; }
.voc-insight-quote {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.voc-insight-head + .voc-insight-quote { margin-top: 4px; }
.voc-insight-quote-en,
.voc-insight-quote-zh {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.voc-insight-quote-zh { margin-top: 2px; }
.voc-link-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.voc-link-table a { word-break: break-all; }
.ads-chart {
  width: 100%;
  height: 280px;
}
.ads-chart.ads-kpi-chart { height: 340px; }
.ads-cal-card,
.ads-dor-card {
  margin-bottom: 16px;
}
.ads-cal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ads-cal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ads-cal-month {
  min-width: 168px;
  text-align: center;
  font-size: 13px;
  font-weight: 650;
  color: #0f172a;
}
.ads-cal-sub {
  margin-top: 4px;
  font-size: 12px;
}
.ads-cal-months {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 14px;
}
.ads-cal-month-block {
  min-width: 0;
  padding: 12px 12px 14px;
  border: 1px solid #dbe3ea;
  border-radius: 10px;
  background: #f8fafc;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.ads-cal-month-block + .ads-cal-month-block {
  position: relative;
}
.ads-cal-month-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 650;
  color: #0f172a;
}
.ads-cal-month-title .muted {
  font-weight: 500;
  font-size: 12px;
}
.ads-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.ads-cal-dow {
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  padding: 2px 0 4px;
}
.ads-cal-cell {
  min-height: 46px;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 4px 5px 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}
.ads-cal-cell.is-out,
.ads-cal-cell.is-future {
  opacity: 0.45;
}
.ads-cal-cell.is-range {
  box-shadow: 0 0 0 1px #0b79bf inset;
}
.ads-cal-cell.has-orders .ads-cal-orders {
  font-weight: 650;
}
.ads-cal-date {
  font-size: 11px;
  line-height: 1;
}
.ads-cal-orders {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: right;
}
.ads-dor-chart { height: 280px; }
.ads-stock-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: stretch;
  margin: 0 0 16px;
  padding: 10px 10px 8px;
  background: #f3f2f1;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.ads-wblock {
  flex: 0 0 76px;
  width: 76px;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  padding: 4px;
  color: #fff;
  background: #0078d7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.ads-wblock small {
  display: block;
  max-width: 94%;
  font-size: 11px;
  opacity: .92;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ads-wblock b {
  display: block;
  max-width: 94%;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ads-wblock.is-empty b { opacity: .55; }
.ads-wblock-dc { background: #0078d7; }
.ads-wblock-onway { background: #d83b01; }
.ads-wblock-ow { background: #00b7c3; }
.ads-wblock-rep { background: #ffb900; color: #1b1b1b; }
.ads-wblock-dor7 { background: #00bcf2; }
.ads-wblock-dor14 { background: #038387; }
.ads-wblock-dor30 { background: #004e8c; }
@media (max-width: 760px) {
  .ads-cal-months {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .ads-chart-grid {
    grid-template-columns: 1fr;
  }
}
.report-trend-card {
  margin-bottom: 16px;
}
.report-history-card {
  margin-bottom: 16px;
  overflow: auto;
}
.report-history-chart {
  width: 100%;
  min-height: 280px;
}
.report-history-tabs {
  margin-bottom: 8px;
}
.report-diff-card {
  margin-bottom: 20px;
  overflow: auto;
}
.report-diff-chart {
  width: 100%;
  min-height: 220px;
}
.ops-compare-card {
  margin: 0 0 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.ops-compare-title {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  background: #fef9c3;
  border-bottom: 1px solid var(--line);
}
.ops-compare-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ops-compare-hint {
  font-size: 12px;
  font-weight: 500;
  cursor: help;
  max-width: min(52vw, 520px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ops-compare-table .ops-diff-up,
.ops-diff.ops-diff-up { color: #16a34a; font-weight: 600; }
.ops-compare-table .ops-diff-down,
.ops-diff.ops-diff-down { color: #dc2626; font-weight: 600; }
.ops-compare-table .ops-diff-flat,
.ops-diff.ops-diff-flat { color: #64748b; }
.ops-compare-toolbar {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ops-col-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}
.ops-col-group:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.ops-col-item {
  margin-left: 16px !important;
}
.ops-compare-table th.ops-h-total {
  background: #ecfdf5 !important;
  color: #047857 !important;
}
.ops-compare-table th.ops-h-organic {
  background: #fff7ed !important;
  color: #c2410c !important;
}
.ops-compare-table th.ops-h-ads {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}
.ops-compare-table td.ops-fill-cell {
  padding: 0 !important;
  /* table 行高由商品列撑开时，让子元素 height:100% 能吃满整格 */
  height: 1px;
  vertical-align: stretch;
}
.ops-compare-table td.ops-fill-cell > .cell {
  padding: 0 !important;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ops-compare-table td.ops-fill-cell .el-tooltip__trigger {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 100%;
}
.ops-compare-table td.ops-fill-cell .sm-compare-fill {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 100%;
  gap: 0;
}
.sm-compare-fill {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
}
.sm-compare-band {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 4px 8px;
  min-height: 24px;
  font-size: 12px;
  line-height: 1.25;
  color: #1f2937;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
}
.sm-compare-band:last-child {
  border-bottom: 0;
}
.sm-compare-period-band {
  justify-content: flex-start;
  font-weight: 650;
  color: #334155;
  background: #f8fafc;
}
.sm-compare-band.is-up {
  background: #dcfce7;
}
.sm-compare-band.is-down {
  background: #fee2e2;
}
.sm-compare-band.is-flat {
  background: #fff;
}
.sm-compare-value {
  font-weight: 650;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #1f2937;
}

.ops-compare-sub {
  margin: -6px 0 14px;
  font-size: 13px;
  line-height: 1.45;
}
.stat-card { background: var(--panel); border: 1px solid var(--line); padding: 16px; }
.stat-card .k { color: var(--muted); font-size: 13px; }
.stat-card .v { font-size: 26px; font-weight: 650; margin: 6px 0; color: var(--ink); }
.stat-card.stat-return .v { color: #991b1b; }
.daily-card {
  border-radius: 8px;
  border: 1px solid var(--line);
  border-top-width: 3px;
  overflow: hidden;
  padding: 12px;
  min-width: 0;
}
.daily-card .daily-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.daily-card .daily-block { margin: 6px 0 10px; }
.daily-card .v-primary { font-size: 18px; font-weight: 700; line-height: 1.2; word-break: break-all; }
.daily-card .v-secondary { font-size: 12px; color: var(--muted); margin-top: 3px; }
.daily-card .m-k { color: var(--muted); font-size: 11px; }
.daily-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border-top: 1px solid rgba(0,0,0,.06);
  padding-top: 8px;
}
.daily-metrics .m-v { font-size: 15px; font-weight: 650; margin-top: 2px; color: var(--ink); }
.daily-returns {
  margin-top: 8px;
  padding: 8px;
  border-radius: 6px;
  background: rgba(185, 28, 28, 0.06);
  border: 1px solid rgba(185, 28, 28, 0.12);
}
.daily-ret-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.daily-ret-top .ret-rate {
  font-size: 11px;
  font-weight: 700;
  color: #b42318;
  background: rgba(185, 28, 28, 0.1);
  padding: 1px 6px;
  border-radius: 999px;
}
.daily-ret-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 6px; }
.daily-metrics .m-v.ret,
.daily-returns .m-v.ret { color: #b42318; font-size: 15px; }
.ret-amt { font-size: 12px; font-weight: 700; color: #b42318; margin-top: 2px; word-break: break-all; }
.ret-amt-sub { font-size: 11px; color: #9f1239; opacity: 0.75; margin-top: 2px; }

.daily-card.tone-today { border-top-color: #0b79bf; background: linear-gradient(180deg, #eef7fc 0%, #fff 42%); }
.daily-card.tone-today .daily-label,
.daily-card.tone-today .v-primary { color: #0a5f8f; }
.daily-card.tone-yesterday { border-top-color: #0f766e; background: linear-gradient(180deg, #eefaf7 0%, #fff 42%); }
.daily-card.tone-yesterday .daily-label,
.daily-card.tone-yesterday .v-primary { color: #0f766e; }
.daily-card.tone-before { border-top-color: #b45309; background: linear-gradient(180deg, #fff8eb 0%, #fff 42%); }
.daily-card.tone-before .daily-label,
.daily-card.tone-before .v-primary { color: #b45309; }
.daily-card.tone-week { border-top-color: #1d4ed8; background: linear-gradient(180deg, #eef2ff 0%, #fff 42%); }
.daily-card.tone-week .daily-label,
.daily-card.tone-week .v-primary { color: #1d4ed8; }
.daily-card.tone-month { border-top-color: #047857; background: linear-gradient(180deg, #ecfdf5 0%, #fff 42%); }
.daily-card.tone-month .daily-label,
.daily-card.tone-month .v-primary { color: #047857; }
.daily-card.tone-all { border-top-color: #334155; background: linear-gradient(180deg, #f1f5f9 0%, #fff 42%); }
.daily-card.tone-all .daily-label,
.daily-card.tone-all .v-primary { color: #334155; }
.daily-card.tone-custom { border-top-color: #0b79bf; background: linear-gradient(180deg, #e8f4fb 0%, #fff 42%); }
.daily-card.tone-custom .daily-label,
.daily-card.tone-custom .v-primary { color: #0a5f8f; }
.section-title { margin: 28px 0 8px; font-size: 18px; font-weight: 700; color: var(--ink); }
.trend-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 12px 0 8px;
}
.trend-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e6e8ea;
  border-radius: 10px;
  padding: 8px 10px 4px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}
.trend-chart {
  width: 100%;
  height: 280px;
}
.table-card { background: var(--panel); border: 1px solid var(--line); padding: 12px; }
.module-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.module-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.module-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.module-desc { margin: 4px 0 0; font-size: 12px; }
.return-sku-card { margin-top: 8px; }
.return-sku-chart {
  width: 100%;
  min-height: 280px;
}
.shop-mode-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 6px;
  background: #ecfdf5;
  color: #166534;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.prefs-page { max-width: 720px; }
.prefs-page-head { margin-bottom: 20px; }
.prefs-alert { margin-bottom: 16px; }
.prefs-skeleton { padding: 8px 0; }
.prefs-form { display: flex; flex-direction: column; gap: 20px; }
.prefs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 860px) {
  .prefs-grid { grid-template-columns: 1fr; }
}
.prefs-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
}
.prefs-section-head { display: flex; flex-direction: column; gap: 6px; }
.prefs-section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.prefs-section-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.prefs-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) {
  .prefs-mode-grid { grid-template-columns: 1fr; }
}
.prefs-mode-card {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
  padding: 14px 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 132px;
}
.prefs-mode-card:hover {
  border-color: #cbd5e1;
  background: #fff;
}
.prefs-mode-card.active {
  border-color: var(--brand);
  background: var(--el-color-primary-light-9);
  box-shadow: 0 0 0 1px rgba(11, 121, 191, 0.15);
}
.prefs-mode-badge {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #e0f2fe;
  color: #0369a1;
}
.prefs-mode-badge.merged {
  background: #ecfdf5;
  color: #166534;
}
.prefs-mode-name {
  font-size: 15px;
  color: var(--ink);
}
.prefs-mode-text {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.prefs-field-block { display: flex; flex-direction: column; gap: 10px; }
.prefs-field-block + .prefs-field-block {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.prefs-field-label {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
}
.prefs-field-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.prefs-fx-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.prefs-fx-suffix {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.prefs-currency-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.prefs-currency-group .el-radio.is-bordered {
  margin-right: 0;
  padding: 10px 16px;
  height: auto;
}
.prefs-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.prefs-actions-note { margin: 0; font-size: 13px; }

.orders-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 0 0 14px;
}
.orders-toolbar {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}
.orders-range-wrap {
  flex: 0 0 260px;
  width: 260px;
  margin-left: auto;
}
.orders-range-wrap .el-date-editor.el-input__wrapper,
.orders-range-wrap .el-date-editor.el-input,
.orders-range-wrap .el-date-editor {
  width: 260px !important;
  max-width: 260px !important;
  flex: 0 0 auto;
}
.orders-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0;
}
.orders-stat {
  background: #fff;
  border: 1px solid var(--line, #e6e8ea);
  border-radius: 8px;
  padding: 10px 12px;
}
.orders-stat-v {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
}
.grid-bar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.grid-bar-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.grid-bar-filters > .el-input { width: 220px; max-width: 260px; }
.grid-bar-filters > .el-select { width: 150px; }
.grid-bar-filters > .grid-filter-multi { width: 220px; }
.grid-bar-filters > .grid-filter-wide { width: 260px; max-width: 360px; }
.grid-bar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.el-table td.cell-qty-mismatch,
.el-table td.cell-qty-mismatch .cell,
.el-table--striped .el-table__body tr.el-table__row--striped td.cell-qty-mismatch,
.el-table--striped .el-table__body tr.el-table__row--striped td.cell-qty-mismatch .cell,
.el-table td.cell-stockout-soon,
.el-table td.cell-stockout-soon .cell,
.el-table--striped .el-table__body tr.el-table__row--striped td.cell-stockout-soon,
.el-table--striped .el-table__body tr.el-table__row--striped td.cell-stockout-soon .cell {
  background: #fecaca !important;
  color: #7f1d1d;
  font-weight: 650;
}
.el-table td.cell-stockout-watch,
.el-table td.cell-stockout-watch .cell,
.el-table--striped .el-table__body tr.el-table__row--striped td.cell-stockout-watch,
.el-table--striped .el-table__body tr.el-table__row--striped td.cell-stockout-watch .cell {
  background: #fde68a !important;
  color: #92400e;
  font-weight: 650;
}
.el-table td.cell-stockout-slow,
.el-table td.cell-stockout-slow .cell,
.el-table--striped .el-table__body tr.el-table__row--striped td.cell-stockout-slow,
.el-table--striped .el-table__body tr.el-table__row--striped td.cell-stockout-slow .cell {
  background: #bfdbfe !important;
  color: #1e3a8a;
  font-weight: 650;
}
.el-table td.cell-stockout-nodata,
.el-table td.cell-stockout-nodata .cell,
.el-table--striped .el-table__body tr.el-table__row--striped td.cell-stockout-nodata,
.el-table--striped .el-table__body tr.el-table__row--striped td.cell-stockout-nodata .cell {
  background: #f1f5f9 !important;
  color: #64748b;
  font-weight: 550;
}
.el-table .hover-row td.cell-qty-mismatch,
.el-table .hover-row td.cell-qty-mismatch .cell,
.el-table .el-table__body tr.hover-row > td.cell-qty-mismatch,
.el-table--enable-row-hover .el-table__body tr:hover > td.cell-qty-mismatch,
.el-table .hover-row td.cell-stockout-soon,
.el-table .hover-row td.cell-stockout-soon .cell,
.el-table .el-table__body tr.hover-row > td.cell-stockout-soon,
.el-table--enable-row-hover .el-table__body tr:hover > td.cell-stockout-soon {
  background: #fca5a5 !important;
}
.el-table .hover-row td.cell-stockout-watch,
.el-table .hover-row td.cell-stockout-watch .cell,
.el-table .el-table__body tr.hover-row > td.cell-stockout-watch,
.el-table--enable-row-hover .el-table__body tr:hover > td.cell-stockout-watch {
  background: #fcd34d !important;
}
.el-table .hover-row td.cell-stockout-slow,
.el-table .hover-row td.cell-stockout-slow .cell,
.el-table .el-table__body tr.hover-row > td.cell-stockout-slow,
.el-table--enable-row-hover .el-table__body tr:hover > td.cell-stockout-slow {
  background: #93c5fd !important;
}
.el-table .hover-row td.cell-stockout-nodata,
.el-table .hover-row td.cell-stockout-nodata .cell,
.el-table .el-table__body tr.hover-row > td.cell-stockout-nodata,
.el-table--enable-row-hover .el-table__body tr:hover > td.cell-stockout-nodata {
  background: #e2e8f0 !important;
}
.table-legend { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.table-legend .lg { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 4px; font-weight: 650; }
.table-legend .lg-today { background: #dcfce7; color: #166534; }
.table-legend .lg-yesterday { background: #fef3c7; color: #92400e; }
.table-legend .lg-stockout-soon { background: #fecaca; color: #7f1d1d; }
.table-legend .lg-stockout-watch { background: #fde68a; color: #92400e; }
.table-legend .lg-stockout-slow { background: #bfdbfe; color: #1e3a8a; }
.table-legend .lg-stockout-nodata { background: #f1f5f9; color: #64748b; }
.el-table .row-today td { background: #ecfdf5 !important; }
.el-table .row-yesterday td { background: #fffbeb !important; }
.el-table .row-today:hover td { background: #d1fae5 !important; }
.el-table .row-yesterday:hover td { background: #fde68a !important; }
.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.status-shipped { background: #d1fae5; color: #065f46; }
.status-collected { background: #bbf7d0; color: #14532d; }
.status-received { background: #a7f3d0; color: #065f46; }
.status-receiving { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #e0e7ff; color: #3730a3; }
.status-draft { background: #dbeafe; color: #1e40af; }
.status-closed { background: #e5e7eb; color: #374151; }
.status-partial-received { background: #fecaca; color: #991b1b; }
.status-prep { background: #dbeafe; color: #1e40af; }
.status-prep-collect { background: #e0e7ff; color: #3730a3; }
.status-ready { background: #cffafe; color: #155e75; }
.status-transfer { background: #fef3c7; color: #92400e; }
.status-returned { background: #fee2e2; color: #991b1b; }
.status-cancel { background: #f3f4f6; color: #4b5563; }
.status-other { background: #ede9fe; color: #5b21b6; }
.status-buyable { background: #d1fae5; color: #065f46; }
.status-not-buyable { background: #fef3c7; color: #92400e; }
.status-disabled-seller { background: #e2e8f0; color: #334155; }
.status-disabled-takealot { background: #fee2e2; color: #991b1b; }
.status-disabled-other { background: #ede9fe; color: #5b21b6; }
.issue-status-cell {
  display: inline-block;
  min-width: 96px;
}
.issue-status-cell .el-select {
  width: 108px;
}
.issue-status-cell.is-open .el-select__wrapper {
  background: #fef3c7;
  box-shadow: 0 0 0 1px #f59e0b inset;
}
.issue-status-cell.is-doing .el-select__wrapper {
  background: #dbeafe;
  box-shadow: 0 0 0 1px #93c5fd inset;
}
.issue-status-cell.is-done .el-select__wrapper {
  background: #dcfce7;
  box-shadow: 0 0 0 1px #86efac inset;
}
.col-tip-head {
  cursor: help;
  border-bottom: 1px dashed currentColor;
}
.table-card--bilingual .el-table th.el-table__cell {
  height: 48px;
  vertical-align: middle;
}
.table-card--bilingual .el-table th .cell {
  line-height: 1.15;
  padding-left: 8px;
  padding-right: 8px;
}
.col-head-bi {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.15;
  white-space: nowrap;
  padding: 2px 0;
}
.col-head-en {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}
.col-head-zh {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
}
.po-num-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.po-num-cell > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.el-table .row-po-click {
  cursor: pointer;
}
.cover-none {
  display: inline-block;
  min-width: 1em;
  color: #dc2626;
  font-weight: 800;
  cursor: help;
}
.stock-high {
  color: #dc2626;
  font-weight: 700;
}
.inv-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 8px;
}
.inv-status-panel {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line, #e4ddd2);
  border-radius: 8px;
  background: #fff;
}
.inv-status-panel-body {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(240px, 0.85fr);
  gap: 12px;
  align-items: stretch;
  height: 220px;
}
.inv-status-pie {
  width: 100%;
  height: 100%;
}
.inv-status-table {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border: 1px solid var(--line, #e6e8ea);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.inv-status-table-head,
.inv-status-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 72px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}
.inv-status-table-head {
  flex: 0 0 36px;
  height: 36px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line, #e6e8ea);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.inv-status-table-head span:nth-child(2),
.inv-status-table-head span:nth-child(3),
.inv-status-table-row span:nth-child(2),
.inv-status-table-row span:nth-child(3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.inv-status-table-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
}
.inv-status-table-row {
  flex: 1 1 0;
  min-height: 36px;
  border-bottom: 1px solid var(--line, #e6e8ea);
  font-size: 13px;
}
.inv-status-table-row:last-child {
  border-bottom: none;
}
.inv-status-table-row .status-pill {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 900px) {
  .inv-status-panel-body {
    grid-template-columns: 1fr;
    height: auto;
  }
  .inv-status-pie {
    height: 220px;
  }
  .inv-status-table {
    height: auto;
    min-height: 220px;
  }
}
.wh-cpt { background: #cffafe; color: #155e75; }
.wh-jhb { background: #ffedd5; color: #9a3412; }
.wh-dbn { background: #ede9fe; color: #5b21b6; }
.el-table th.th-wh-cpt,
.el-table th.th-wh-cpt .cell {
  background: #cffafe !important;
  color: #155e75 !important;
}
.el-table th.th-wh-jhb,
.el-table th.th-wh-jhb .cell {
  background: #ffedd5 !important;
  color: #9a3412 !important;
}
.el-table th.th-wh-dbn,
.el-table th.th-wh-dbn .cell {
  background: #ede9fe !important;
  color: #5b21b6 !important;
}
.el-table th.th-wh-buffalo,
.el-table th.th-wh-buffalo .cell {
  background: #dcfce7 !important;
  color: #166534 !important;
}
.el-table th.th-wh-kmande,
.el-table th.th-wh-kmande .cell {
  background: #e0e7ff !important;
  color: #3730a3 !important;
}
.el-table th.th-wh-tekeluo,
.el-table th.th-wh-tekeluo .cell {
  background: #fce7f3 !important;
  color: #9d174d !important;
}
.el-table th.th-wh-haixin,
.el-table th.th-wh-haixin .cell {
  background: #ffedd5 !important;
  color: #9a3412 !important;
}
.order-id-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.order-id-cell > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.promo-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #2563eb;
  cursor: help;
  line-height: 0;
}
.promo-flag:hover {
  color: #1d4ed8;
}
.rr-cancel { background: #f3f4f6; color: #4b5563; }
.rr-damaged { background: #fee2e2; color: #991b1b; }
.rr-wrong { background: #ffedd5; color: #9a3412; }
.rr-mind { background: #e0e7ff; color: #3730a3; }
.rr-failed { background: #fef3c7; color: #92400e; }
.rr-exchange { background: #cffafe; color: #155e75; }
.rr-exception { background: #fce7f3; color: #9d174d; }
.rr-other { background: #ede9fe; color: #5b21b6; }
.ro-sellable { background: #d1fae5; color: #065f46; }
.ro-pending-sellable { background: #fef3c7; color: #92400e; }
.ro-removal { background: #fee2e2; color: #991b1b; }
.ro-pending-removal { background: #ffedd5; color: #9a3412; }
.ro-other { background: #e5e7eb; color: #374151; }
.status-pill-tip { cursor: help; }
.return-tip-lines {
  max-width: 360px;
  line-height: 1.55;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}
.return-tip-lines > div + div { margin-top: 2px; }
.col-list { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow: auto; }
.col-list-locked {
  font-size: 12px;
  padding: 4px 0 2px;
}

/* —— Product master Excel grid —— */
.pm-page .page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 12px;
}
.pm-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pm-toolbar-top {
  justify-content: flex-end;
}
.pm-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pm-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
.pm-toolbar-left {
  justify-content: flex-start;
}
.pm-toolbar-right {
  justify-content: flex-end;
  margin-left: auto;
}
.excel-wrap {
  border: 1px solid #c5cdd4;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.excel-grid.el-table {
  --el-table-border-color: #d0d7de;
  font-size: 13px;
}
.excel-grid .el-table__header th {
  background: #f3f6f9 !important;
  color: #334155;
  font-weight: 600;
  padding: 6px 0;
}
.excel-grid .el-table__body td.excel-cell {
  padding: 2px 4px;
  vertical-align: middle;
}
.excel-grid .el-table__body td.excel-cell .cell {
  padding: 0 4px;
}
.excel-grid .el-input__wrapper {
  box-shadow: none !important;
  background: transparent;
  border-radius: 0;
  padding: 0 6px;
  min-height: 32px;
}
.excel-grid .el-input__wrapper:hover,
.excel-grid .el-input__wrapper.is-focus {
  box-shadow: inset 0 0 0 1px var(--brand) !important;
  background: #fff;
}
.excel-req { color: #dc2626; font-weight: 700; }
.excel-opt { color: #94a3b8; font-size: 11px; font-weight: 500; }
.excel-img-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.excel-img-row .prod-thumb { flex-shrink: 0; }
.excel-img-row .el-input { flex: 1; min-width: 0; }
.pm-list-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
.pm-supplier-expand {
  padding: 8px 12px 12px 48px;
  background: #f8fafc;
}
.pm-link {
  color: var(--brand);
  text-decoration: none;
  word-break: break-all;
}
.pm-sup-count {
  font-weight: 600;
  white-space: nowrap;
  word-break: normal;
}
.pm-sku-copy {
  font-weight: 600;
  color: #2563eb;
}
.pm-sku-copy:hover {
  text-decoration: underline;
}
.table-card--copy .el-table__body td .cell {
  padding: 4px 6px;
}
.table-card--copy .prod-thumb {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 4px;
  box-sizing: border-box;
}
.table-card--copy .prod-thumb:hover {
  border-color: #e2e8f0;
}
.pm-view-grid .el-table__body td.excel-cell .cell {
  padding: 4px 6px;
}
.pm-cell-text {
  display: block;
  min-height: 24px;
  line-height: 24px;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  user-select: none;
}
.pm-cell-text:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.pm-product-copy {
  cursor: pointer;
  border-radius: 4px;
}
.pm-product-copy:hover {
  background: #f8fafc;
  box-shadow: 0 0 0 1px #e2e8f0;
  text-decoration: none;
}
.pm-cell-text.is-empty {
  color: #94a3b8;
}
.el-table .cell .col-cell-bi,
.col-cell-bi.pm-cell-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-height: 40px;
  line-height: 1.2;
  white-space: normal;
  padding: 4px 6px;
}
.el-table .cell .col-cell-bi .col-head-en,
.el-table .cell .col-cell-bi .col-head-zh {
  display: block;
  line-height: 1.35;
  white-space: nowrap;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
.product-label-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.product-label-cell > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-label-pdf-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #dc2626;
  cursor: pointer;
}
.product-label-pdf-btn:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.pm-file-input {
  display: none;
}
.pm-supplier-ac {
  width: 100%;
}
.excel-grid .pm-supplier-ac .el-input {
  width: 100%;
}
.pm-supplier-ac-popper .pm-supplier-ac-option {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
  padding: 2px 0;
}
.pm-supplier-ac-popper .pm-supplier-ac-name {
  font-weight: 600;
}
.pm-supplier-ac-popper .pm-supplier-ac-meta {
  font-size: 12px;
  color: #64748b;
}
.pm-edit-card {
  max-width: 960px;
}
.pm-edit-img {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}
.pm-edit-img .prod-thumb {
  flex-shrink: 0;
}
.pm-edit-dims {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
@media (min-width: 560px) {
  .pm-edit-dims {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.pm-edit-suppliers {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line, #e4ddd2);
}
.pm-edit-suppliers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.pm-edit-suppliers .pm-supplier-ac {
  width: 100%;
}

.info-box {
  background: var(--info-bg);
  border-radius: 6px;
  padding: 16px 18px;
  color: #1a4d7a;
  margin: 12px 0 20px;
}
.el-pagination.is-background .el-pager li.is-active {
  background-color: var(--brand);
}
@media (max-width: 1100px) {
  .topbar { height: auto; min-height: 56px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .topbar-title { flex: 1 1 100%; }
  .topbar-aside { width: 100%; justify-content: flex-end; }
}
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-shell.sidebar-hidden { grid-template-columns: 1fr; }
  .sidebar { min-height: auto; }
  .content, .topbar { padding-left: 16px; padding-right: 16px; }
}

.po-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
@media (max-width: 720px) {
  .po-form-grid { grid-template-columns: 1fr; }
}
.po-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border, #e5e7eb);
  font-size: 14px;
}
.po-totals strong { font-weight: 700; }

.snap-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.snap-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.snap-date-chip {
  border: 1px solid var(--line, #e5e7eb);
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}
.snap-date-chip.is-on {
  background: #0b79bf;
  border-color: #0b79bf;
  color: #fff;
}
.snap-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.snap-stat {
  text-align: left;
  border: 1px solid var(--line, #e5e7eb);
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}
.snap-stat.is-on {
  border-color: #0b79bf;
  box-shadow: 0 0 0 1px #0b79bf inset;
}
.snap-stat.is-empty .snap-stat-v {
  color: #94a3b8;
}
.snap-stat.is-warn {
  border-color: #f59e0b;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35) inset;
}
.snap-stat.is-warn .snap-stat-v {
  color: #b45309;
}
.snap-stat-k {
  font-size: 12px;
  color: #64748b;
}
.snap-stat-v {
  font-size: 18px;
  font-weight: 700;
  margin: 2px 0 2px;
}
.logistics-page {
  min-height: calc(100vh - 150px);
  display: flex;
  flex-direction: column;
}
.logistics-page .outbound-group-heading td.el-table__cell {
  background: #f5f7fa !important;
  border-top: 10px solid #fff;
  padding: 0;
}
.logistics-page .outbound-group-heading .cell { padding: 0 12px; }
.outbound-group-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #303133;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.outbound-group-toggle:focus-visible { outline: 2px solid #1683bc; outline-offset: -2px; }
.outbound-group-summary { margin-left: 20px; color: #909399; font-size: 12px; }
.outbound-bill-copy { border:0; background:transparent; padding:2px 0; color:#167caf; font:inherit; cursor:pointer; white-space:nowrap; }
.outbound-bill-copy:hover { text-decoration:underline; }
.table-card.table-card--sticky { overflow:visible; }
.table-card--sticky > .grid-bar { position:sticky; top:0; z-index:15; background:#fff; margin-bottom:0; padding:12px 0; }
.table-card--sticky > .el-table,
.table-card--sticky > .el-table > .el-table__inner-wrapper { overflow:visible; }
.table-card--sticky .el-table__header-wrapper { position:sticky; top:var(--table-filter-height,56px); z-index:14; background:#fff; box-shadow:0 2px 3px #0000000a; }
.logistics-page .grid-bar {
  flex-wrap: nowrap;
  gap: 8px;
}
.logistics-page .grid-bar-filters {
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
}
.logistics-page .grid-bar-filters > .el-input {
  width: 148px;
  max-width: 148px;
  flex: 0 0 148px;
}
.logistics-page .grid-bar-filters > .el-select {
  width: auto;
  min-width: 92px;
  flex: 1 1 92px;
}
.logistics-page .grid-bar-filters > .el-select .el-select__wrapper {
  min-width: 0;
}
.logistics-page .grid-bar-right {
  flex-shrink: 0;
}
.logistics-loss-stats {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-right: 4px;
}
.logistics-loss-stat {
  min-width: 88px;
  padding: 4px 10px;
  border: 1px solid var(--line, #e6e8ea);
  border-radius: 8px;
  background: #fff;
  line-height: 1.2;
}
.logistics-loss-stat .muted {
  display: block;
  font-size: 12px;
}
.logistics-loss-stat strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
}
.logistics-foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  justify-content: flex-end;
}
.logistics-claims-link {
  color: #0b79bf;
  font-size: 13px;
  text-decoration: none;
}
.logistics-claims-link:hover {
  text-decoration: underline;
}
.replenish-page .grid-pager {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}
.rep-lead-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #334155;
  white-space: nowrap;
}
.rep-lead-field .el-input-number {
  width: 110px;
}
.rep-purchased-input {
  width: 108px;
}
.rep-purchased-input .el-input__inner {
  text-align: right;
}
.el-table .rep-purchased-col .cell {
  overflow: visible;
  text-overflow: clip;
}
.rep-axes {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 4px 0;
}
.rep-axis-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 108px;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.rep-axis-name {
  font-size: 11px;
  font-weight: 650;
  color: #475569;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rep-axis-30 .rep-axis-name { color: #c2410c; }
.rep-axis-60 .rep-axis-name { color: #a16207; }
.rep-axis-90 .rep-axis-name { color: #1d4ed8; }
.rep-axis-meta {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rep-row-tl-track {
  position: relative;
  height: 12px;
  border-radius: 6px;
  overflow: visible;
  background: #f3f4f6;
}
.rep-row-tl-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
}
.rep-row-tl-z60 {
  left: 0;
  width: 33.333%;
  background: rgba(248, 113, 113, 0.12);
}
.rep-row-tl-z90 {
  left: 33.333%;
  width: 16.667%;
  background: rgba(251, 191, 36, 0.14);
}
.rep-row-tl-zrest {
  left: 50%;
  width: 50%;
  background: rgba(96, 165, 250, 0.14);
}
.rep-row-tl-fill {
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  border-radius: 4px;
  opacity: 0.85;
}
.rep-row-tl-oos {
  position: absolute;
  top: 1px;
  bottom: 1px;
  border-radius: 3px;
  z-index: 1;
  background: repeating-linear-gradient(
    -45deg,
    rgba(220, 38, 38, 0.22),
    rgba(220, 38, 38, 0.22) 3px,
    rgba(254, 226, 226, 0.95) 3px,
    rgba(254, 226, 226, 0.95) 6px
  );
  box-shadow: inset 0 0 0 1px rgba(185, 28, 28, 0.35);
}
.rep-tl-fill-soon { background: #ef4444; }
.rep-tl-fill-watch { background: #f59e0b; }
.rep-tl-fill-slow { background: #3b82f6; }
.rep-tl-fill-none { background: #9ca3af; }
.rep-tl-fill-plan30 { background: #fb923c; }
.rep-tl-fill-plan60 { background: #fbbf24; }
.rep-tl-fill-plan90 { background: #60a5fa; }
.rep-row-tl-mark {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  margin-top: -4.5px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
  z-index: 3;
}
.rep-row-tl-mark-out { background: #dc2626; }
.rep-row-tl-mark-arrive { background: #059669; }
.rep-cell-tip {
  display: inline-block;
  min-width: 100%;
  cursor: help;
}
.proforma-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px 20px;
}
.proforma-page .page-head {
  flex-wrap: nowrap;
  align-items: center;
}
.proforma-head-actions {
  flex-wrap: nowrap !important;
  flex-shrink: 0;
}
.proforma-parties {
  display: flex;
  flex-direction: column;
  max-width: 720px;
}
.proforma-meta-grid {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(140px, 200px) minmax(140px, 200px);
  gap: 0 12px;
  max-width: 720px;
}
.proforma-grid {
  --el-table-border-color: #7f7f7f;
  --el-table-header-bg-color: #c5d9ed;
  --el-table-header-text-color: #1f1f1f;
}
.proforma-grid .el-table__header th.el-table__cell {
  background: #c5d9ed !important;
  color: #1f1f1f;
  font-weight: 700;
  border-color: #7f7f7f !important;
}
.proforma-grid .el-table__cell {
  border-color: #7f7f7f !important;
}
.proforma-grid .el-table__body td.el-table__cell {
  background: #fff;
}
.proforma-grid .el-table__footer-wrapper td.el-table__cell {
  background: #ffff00 !important;
  color: #111;
  font-weight: 700;
  border-color: #7f7f7f !important;
}
.proforma-grid .el-input__wrapper,
.proforma-grid .el-select__wrapper {
  box-shadow: none !important;
  background: transparent;
}
.proforma-grid .el-textarea__inner {
  box-shadow: none !important;
  background: transparent;
}
@media (max-width: 900px) {
  .proforma-page .page-head {
    flex-wrap: wrap;
  }
  .proforma-parties,
  .proforma-meta-grid {
    grid-template-columns: 1fr;
  }
}
.issue-log-tip-head {
  font-weight: 650;
  margin-bottom: 8px;
}
.issue-log-tip-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}
.issue-log-tip-row {
  font-size: 13px;
  line-height: 1.35;
}
.gerpgo-page {
  min-height: calc(100vh - 150px);
}
.gerpgo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.gerpgo-table {
  width: 100%;
}
.gerpgo-items {
  margin: 8px 12px 12px 48px;
}
.gerpgo-thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  background: #f3f4f6;
}
.gerpgo-sku {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.gerpgo-sku span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gg-st {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.gg-st-shipped { background: #dbeafe; color: #1d4ed8; }
.gg-st-receiving { background: #ffedd5; color: #9a3412; }
.gg-st-finished { background: #dcfce7; color: #166534; }
.gg-st-cancelled { background: #f3f4f6; color: #6b7280; }
.gg-st-pending { background: #fef3c7; color: #92400e; }
.gg-st-other { background: #e5e7eb; color: #374151; }

.listing-tool-form { max-width: 880px; }
.listing-tool-status { min-height: 1.4em; margin: 8px 0 16px; color: var(--muted); }
.listing-tool-status.ok { color: #1a7f4c; }
.listing-tool-status.err { color: #c0392b; }
.listing-tool-results, .listing-tool-part { display: grid; gap: 12px; margin-top: 8px; }
.listing-tool-part-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.listing-tool-part-head span:first-child { font-weight: 600; }
.listing-tool-count { margin-left: auto; font-size: 12px; color: var(--muted); }
.listing-tool-count.over { color: #c0392b; font-weight: 700; }
.fee-tool-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.fee-tool-row2, .fee-tool-row4 {
  display: grid;
  gap: 12px;
}
.fee-tool-row2 { grid-template-columns: 1fr 1fr; }
.fee-tool-row4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fee-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.fee-result-head h2 { margin: 0; font-size: 18px; }
.fee-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.fee-kpi {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--bg);
}
.fee-kpi-label { font-size: 12px; color: var(--muted); }
.fee-kpi-value { font-size: 20px; font-weight: 700; margin-top: 4px; }
.fee-kpi-value.pos { color: #1a7f4c; }
.fee-kpi-value.neg { color: #c0392b; }
.fee-kpi-pair { display: flex; gap: 10px; align-items: baseline; }
.fee-kpi-pair span { font-size: 14px; font-weight: 600; color: var(--muted); }
.fee-cat-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.fee-cat-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fee-cat-rate {
  flex-shrink: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-left: 12px;
  margin-left: 4px;
  border-left: 1px solid var(--line);
}
.fee-tool-page .el-form-item__label .el-checkbox {
  height: auto;
  font-weight: inherit;
  color: inherit;
}
.fee-tool-page .el-form-item__label .el-checkbox__label {
  padding-left: 8px;
  font-size: inherit;
  color: inherit;
  font-weight: inherit;
}
.fee-save-icon {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
}
.fee-saved-card { margin-top: 16px; }
.fee-saved-card .pos { color: #1a7f4c; font-weight: 600; }
.fee-saved-card .neg { color: #c0392b; font-weight: 600; }
.fee-saved-sub { color: var(--muted); font-weight: 500; margin-left: 6px; }
@media (max-width: 1100px) {
  .fee-tool-split, .fee-tool-row4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .fee-tool-split, .fee-tool-row2, .fee-tool-row4, .fee-kpis { grid-template-columns: 1fr; }
}

.sm-metric{line-height:1.35}
.sm-metric .muted{font-size:12px;opacity:.75}
.sm-tip-pre{max-width:480px}
.sm-stack{line-height:1.4;font-size:13px}
.sm-stack-main{font-size:15px;font-weight:650;line-height:1.35}
.sm-stack-sub{font-size:12px;opacity:.78;line-height:1.35}
.sm-ads{cursor:pointer}
.sm-ads:hover{opacity:.85}
.sm-checks{display:flex;flex-direction:column;gap:3px;padding:2px 0;line-height:1.25}
.sm-check{display:flex;align-items:flex-start;gap:6px;font-size:12px;cursor:pointer;user-select:none}
.sm-check input{margin-top:2px;flex:0 0 auto}
.sm-check span{opacity:.9}
.sm-note-btn{margin-top:4px;border:0;background:transparent;color:var(--accent,#2563eb);font-size:11px;padding:0;cursor:pointer;text-align:left}
.sm-note-btn:hover{text-decoration:underline}
.sm-note-preview{margin-top:2px;font-size:11px;opacity:.7;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Sync settings (platform admin) */
.sync-page { max-width: none; width: 100%; }
.sync-page-head { margin-bottom: 16px; align-items: flex-start; }
.sync-page-sub { margin: 6px 0 0; max-width: 560px; line-height: 1.45; }
.sync-alert { margin-bottom: 16px; }
.sync-health { margin-bottom: 18px; }
.sync-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 900px) {
  .sync-grid { grid-template-columns: 1fr; }
}
.sync-panel {
  background: var(--panel, #fff);
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.sync-panel-wide { margin-bottom: 14px; }
.sync-panel-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #0f172a);
}
.sync-panel-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted, #64748b);
  line-height: 1.45;
}
.sync-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sync-chip {
  appearance: none;
  border: 1px solid var(--line, #e5e7eb);
  background: #f8fafc;
  color: #334155;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.3;
  cursor: pointer;
}
.sync-chip:hover { border-color: #cbd5e1; background: #fff; }
.sync-chip.is-on {
  background: #0b79bf;
  border-color: #0b79bf;
  color: #fff;
}
.sync-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.sync-row .el-input-number { width: 140px; }
.sync-field-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
.sync-logs-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.sync-panel code {
  font-size: 12px;
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
}
.sync-logs-pager {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
/* Shared ERP warehouse list/detail typography; native and Element tables agree. */
.warehouse-outbound { font-size:14px; line-height:1.6; color:var(--el-text-color-regular,#606266); }
.warehouse-outbound .el-table,
.warehouse-outbound .el-descriptions,
.warehouse-outbound .tekeluo-fee-details { font-size:14px; line-height:1.6; }
.warehouse-outbound h3 { font-size:18px; line-height:1.5; font-weight:600; margin:22px 0 12px; color:var(--el-text-color-primary,#303133); }
.warehouse-outbound th { font-size:14px; font-weight:600; color:var(--el-text-color-secondary,#909399); }
.warehouse-outbound td { font-size:14px; }
.warehouse-outbound .pm-cell-text { display:inline-block; font-size:inherit; vertical-align:middle; }
.warehouse-bill-actions { display:flex; flex-wrap:nowrap; align-items:center; gap:12px; white-space:nowrap; }
.warehouse-bill-actions > .pm-cell-text,
.warehouse-bill-actions > .el-button { flex:0 0 auto; white-space:nowrap; }
.warehouse-outbound .tekeluo-fee-details { min-width:1000px; table-layout:fixed; }
.warehouse-outbound .tekeluo-fee-details th:nth-child(1) { width:110px; }
.warehouse-outbound .tekeluo-fee-details th:nth-child(2) { width:140px; }
.warehouse-outbound .tekeluo-fee-details th:nth-child(3) { width:110px; }
.warehouse-outbound .tekeluo-fee-details th:nth-child(4) { width:240px; }
.warehouse-outbound .tekeluo-fee-details td:not([colspan]):nth-child(-n+4),
.warehouse-outbound .tekeluo-fee-details th:nth-child(-n+4) { white-space:nowrap !important; overflow-wrap:normal !important; }
