:root {
  /* 默认主题 = 售前系统「海蓝」 */
  --bg: #eef3fb;
  --panel: #ffffff;
  --line: #e2e8f2;
  --text: #22303f;
  --muted: #7d8ca0;
  --brand: #1f6fd6;
  --manual: #e8930c;
  --manual-bg: #fff6e6;
  --auto: #2ea36b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
}

.layout { display: flex; height: 100vh; overflow: hidden; }

/* ---------- sidebar ---------- */
.sidebar { width: 200px; background: #101828; color: #cfd6e4; display: flex; flex-direction: column; flex-shrink: 0; }
.brand { padding: 18px 16px 14px; border-bottom: 1px solid #1d2939; }
.brand-title { font-size: 15px; font-weight: 600; color: #fff; }
.brand-sub { font-size: 11px; color: #7d8ba1; margin-top: 4px; }
.nav { padding: 10px 8px; flex: 1; overflow: auto; }
.nav-item {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px;
  border-radius: 6px; cursor: pointer; color: #c3cbd9; margin-bottom: 2px; user-select: none;
}
.nav-item:hover { background: #1a2636; color: #fff; }
.nav-item.active { background: var(--brand); color: #fff; }
.nav-item .tag { font-size: 10px; opacity: .75; margin-left: auto; }
.nav-group {
  font-size: 11px; color: #6b7a90; padding: 10px 10px 4px;
  letter-spacing: 1px; border-top: 1px solid #1d2939; margin-top: 6px;
}
.nav-group:first-child { border-top: none; margin-top: 0; }
.sidebar-foot { padding: 12px; border-top: 1px solid #1d2939; }
.flow-tip { font-size: 11px; color: #7d8ba1; line-height: 1.9; }

/* ---------- main ---------- */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px; background: var(--panel); border-bottom: 1px solid var(--line);
}
h1 { font-size: 16px; margin: 0; }
.sub { color: var(--muted); font-size: 12px; margin-top: 4px; }

.tabs { display: flex; gap: 6px; }
.tabs button {
  border: 1px solid var(--line); background: #fff; padding: 7px 18px;
  border-radius: 999px; color: #475467; font-size: 13px;
}
.tabs button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.subtabs { display: flex; gap: 4px; margin-right: 6px; }
.subtabs button { padding: 5px 12px; font-size: 12px; border-radius: 6px; color: #475467; }
.subtabs button.active { background: #eef3ff; border-color: #c9dcff; color: var(--brand); font-weight: 600; }
.picker { position: relative; }
.picker-panel {
  position: absolute; top: 38px; left: 0; z-index: 40; width: 320px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .16); padding: 10px 12px;
}
.picker-all { display: flex; align-items: center; gap: 6px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line); margin-bottom: 8px; color: #475467; }
.picker-list { max-height: 300px; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.picker-list label { display: flex; align-items: center; gap: 5px; font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-foot { padding-top: 8px; border-top: 1px solid var(--line); margin-top: 8px; }
th .th-sub { font-weight: 400; font-size: 11px; color: var(--muted); margin-top: 2px; }
.fld-ops { margin-left: 6px; white-space: nowrap; }
.fld-ops button { padding: 0 6px; font-size: 12px; line-height: 18px; }
input.fm-input {
  font-family: inherit; font-size: 12px; width: 100%; min-width: 150px;
  padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; background: #fff;
}
input.fm-input:focus { outline: none; border-color: var(--brand); }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { background: #e8eefb; }
th.sorted { color: var(--brand); }
button.copy-col {
  border: none; background: transparent; color: var(--muted);
  padding: 0 2px; margin-left: 4px; font-size: 12px; cursor: pointer;
}
button.copy-col:hover { color: var(--brand); }
tr.dup-row td { background: #fff1f0 !important; }
tr.dup-row td.sticky { background: #fff1f0 !important; color: #b42318; }

button {
  font-family: inherit; font-size: 13px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  padding: 7px 14px; border-radius: 6px;
}
button:hover { border-color: #c9d0dc; background: #fafbfc; }
button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
button.primary:hover { background: #245ae0; }
button.ghost { background: transparent; }
button.danger { color: #d9480f; border-color: #ffd8c2; }
button.danger:hover { background: #fff4ee; }
button.icon { border: none; background: transparent; font-size: 15px; padding: 4px 8px; color: var(--muted); }

.panel { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.panel[hidden] { display: none; }
.stats { display: flex; gap: 10px; padding: 12px 20px 0; flex-wrap: wrap; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; min-width: 104px; }
.stat .k { color: var(--muted); font-size: 11px; }
.stat .v { font-size: 18px; font-weight: 600; margin-top: 2px; }
.stat .v.manual { color: var(--manual); }
.stat .v.auto { color: var(--auto); }

.toolbar { display: flex; align-items: center; gap: 8px; padding: 12px 20px; flex-wrap: wrap; }
.search {
  font-family: inherit; font-size: 13px; padding: 7px 11px;
  border: 1px solid var(--line); border-radius: 6px; width: 260px; background: #fff;
}
.search.shop-input { width: 190px; }
.check { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.spacer { flex: 1; }
.hint { color: var(--muted); font-size: 12px; }
.toolbar { padding: 8px 20px; }
.toolbar.filter-bar { background: #f7faff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toolbar.export-bar { background: #fbfcfd; border-bottom: 1px solid var(--line); }
.group-label {
  font-size: 12px; font-weight: 600; color: #475467;
  padding: 3px 10px 3px 0; margin-right: 4px; border-right: 1px solid var(--line);
}

/* ---------- 多条件筛选 ---------- */
select.limit-sel {
  font-family: inherit; font-size: 12px; padding: 6px 8px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text);
}
.pager { display: inline-flex; align-items: center; gap: 4px; }
.pager .pg { font-size: 12px; color: var(--muted); padding: 0 4px; }
.pager button[disabled] { opacity: .45; cursor: default; }

/* 快捷分组 */
.toolbar.quick-bar { background: #fbfcff; border-bottom: 1px solid var(--line); padding-top: 6px; padding-bottom: 6px; }
.chips { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
button.chip {
  border-radius: 999px; padding: 4px 12px; font-size: 12px;
  border: 1px solid var(--line); background: #fff; color: #475467;
}
button.chip:hover { border-color: var(--brand); color: var(--brand); }
button.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.chip-n { font-size: 11px; opacity: .75; margin-left: 4px; }
.facet { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; }
.facet-name { font-size: 11px; color: var(--muted); }
button.mini-chip { padding: 2px 9px; font-size: 12px; }
.toolbar.quick-bar { align-items: flex-start; }
.multi-filter {
  padding: 9px 20px 11px; background: #f9fbff;
  border-bottom: 1px solid var(--line);
}
.mf-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mf-head b { font-size: 12px; color: #475467; }
.mf-head select, .mf-row select {
  font-family: inherit; font-size: 12px; padding: 4px 8px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
.mf-list { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.mf-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mf-row .mf-field { min-width: 150px; }
.mf-row .mf-op { min-width: 104px; }
.mf-row .mf-value {
  font-family: inherit; font-size: 12px; padding: 5px 9px; width: 300px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
.mf-row .mf-del { color: #d92d20; }
button.on { border-color: var(--brand); color: var(--brand); background: #eef3ff; }

/* 输出表：双击手动修正的格子 */
td.manual-out { background: var(--manual-bg); }
td.manual-out::after { content: "✎"; color: var(--manual); font-size: 10px; margin-left: 4px; }
input.cell-edit {
  font-family: inherit; font-size: 12px; width: 100%; min-width: 110px;
  padding: 2px 5px; border: 1px solid var(--brand); border-radius: 5px; background: #fff;
}

/* ---------- table ---------- */
.table-wrap { flex: 1; overflow: auto; padding: 0 20px 20px; }
table { border-collapse: separate; border-spacing: 0; background: var(--panel); width: max-content; min-width: 100%; }
th, td {
  border-bottom: 1px solid var(--line); border-right: 1px solid #f0f2f5;
  padding: 5px 8px; text-align: left; white-space: nowrap; max-width: 260px;
  overflow: hidden; text-overflow: ellipsis;
}
thead th {
  position: sticky; top: 0; z-index: 3; background: #f0f3f8;
  font-weight: 600; color: #475467; border-bottom: 1px solid #d8dee8;
}
th.sticky, td.sticky { position: sticky; left: 0; z-index: 2; background: #fff; box-shadow: 1px 0 0 var(--line); }
thead th.sticky { z-index: 4; background: #f0f3f8; }
tbody tr:hover td { background: #f8fafd; }
tbody tr:hover td.sticky { background: #f8fafd; }
td.empty-cell { color: #c4cad4; }
td.ck, th.ck { width: 34px; text-align: center; }
td.altcodes { color: var(--muted); font-size: 12px; }
tr.row-warn td { background: #fff8f6; }
.badge { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 10px;
  background: var(--manual-bg); color: var(--manual); border: 1px solid #f7ddb0; }
.badge.auto { background: #eaf7f1; color: var(--auto); border-color: #cdeadd; }
.badge.warn { background: #fdeceb; color: #d92d20; border-color: #f9d2cf; }

input.cell {
  font-family: inherit; font-size: 12px; width: 100%; min-width: 90px;
  border: 1px solid transparent; background: transparent; padding: 3px 5px; border-radius: 4px;
  color: inherit;
}
input.cell:hover { border-color: var(--line); background: #fff; }
input.cell:focus { outline: none; border-color: var(--brand); background: #fff; }
input.cell.code { min-width: 170px; font-weight: 600; }
td.manual-cell input.cell { background: var(--manual-bg); }
td.row-btn, th.row-btn { width: 62px; text-align: center; }
button.mini { padding: 2px 8px; font-size: 12px; }

input.match-input {
  font-family: inherit; font-size: 12px; padding: 4px 6px;
  border: 1px solid var(--line); border-radius: 5px; background: #fff; max-width: 240px;
  width: 240px;
}
input.match-input.pending { border-color: var(--manual); background: var(--manual-bg); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; }
.modal-mask { position: absolute; inset: 0; background: rgba(16, 24, 40, .35); }
.modal-panel {
  position: absolute; top: 7vh; left: 50%; transform: translateX(-50%);
  width: 720px; max-width: 92vw; max-height: 82vh;
  background: var(--panel); border-radius: 10px; display: flex; flex-direction: column;
  box-shadow: 0 16px 40px rgba(16, 24, 40, .2);
}
.modal-head, .drawer-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
}
.drawer-foot { border-bottom: none; border-top: 1px solid var(--line); }
.drawer-foot[hidden] { display: none; }
.modal-head h2 { font-size: 15px; margin: 0; }
.modal-body { flex: 1; overflow: auto; padding: 4px 20px 16px; }

.group-title { font-size: 12px; color: var(--muted); margin: 16px 0 8px;
  border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.col-row { display: flex; align-items: center; justify-content: space-between;
  padding: 5px 0; border-bottom: 1px dashed #eef1f5; }
.col-ops button { padding: 2px 8px; margin-left: 4px; font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 10px; border-radius: 999px; font-size: 12px; background: #f2f5fa; border-color: #e3e9f2; }
.row-inline { display: flex; gap: 8px; }
.row-take td { background: #eaf7f1; }
.row-keep td { background: #f5f6f8; color: var(--muted); }
.auto-text { color: var(--auto); }
.row-inline input {
  font-family: inherit; font-size: 13px; padding: 7px 10px; flex: 1;
  border: 1px solid var(--line); border-radius: 6px;
}
.shop-fix-row { align-items: center; margin-bottom: 6px; }
.shop-fix-row .pid { width: 190px; color: var(--muted); font-size: 12px; }
.muted { color: var(--muted); }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: #101828; color: #fff; padding: 10px 18px; border-radius: 8px; z-index: 90;
  max-width: 84vw;
}
.toast.err { background: #b42318; }
.toast-action {
  background: transparent; border: 1px solid rgba(255,255,255,.5); color: #fff;
  padding: 2px 10px; font-size: 12px; border-radius: 6px; margin-left: 6px;
}
.toast-action:hover { background: rgba(255,255,255,.15); }

/* 确认框 */
.confirm { position: fixed; inset: 0; z-index: 95; }
.confirm-mask { position: absolute; inset: 0; background: rgba(16, 24, 40, .45); }
.confirm-panel {
  position: absolute; top: 30vh; left: 50%; transform: translateX(-50%);
  width: 480px; max-width: 92vw; background: #fff; border-radius: 12px;
  box-shadow: 0 20px 50px rgba(16, 24, 40, .3); overflow: hidden;
}
.confirm-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px 0; }
.confirm-icon {
  width: 22px; height: 22px; border-radius: 50%; background: #fdeceb; color: #d92d20;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.confirm-title { font-size: 15px; font-weight: 600; }
.confirm-body { padding: 12px 20px 4px; color: #475467; line-height: 1.9; font-size: 13px; }
.confirm-body .warn-box {
  background: #fff8f6; border: 1px solid #ffd8c2; color: #b54708;
  border-radius: 8px; padding: 10px 12px; margin: 8px 0;
}
.confirm-body code { background: #f2f4f7; padding: 1px 6px; border-radius: 4px; }
.confirm-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px 18px; }
button.danger-solid { background: #d92d20; border-color: #d92d20; color: #fff; }
button.danger-solid:hover { background: #b42318; }

/* 登录 */
.login { position: fixed; inset: 0; z-index: 120; background: #101828;
  display: flex; align-items: center; justify-content: center; }
.login[hidden] { display: none; }
.login-card { width: 340px; background: #fff; border-radius: 12px; padding: 26px 24px 20px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.login-card .brand-title { font-size: 17px; color: #101828; }
.login-card .brand-sub { margin-bottom: 6px; }
.login-card input { font-family: inherit; font-size: 14px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; }
.login-card button { padding: 10px; font-size: 14px; }
.login-msg { color: #d92d20; font-size: 12px; min-height: 16px; }
.login-tip { color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); padding-top: 10px; }
.who { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.who button { padding: 4px 10px; font-size: 12px; }
.role-tag { font-size: 11px; padding: 1px 7px; border-radius: 10px; background: #eef3ff;
  color: #2f6bff; border: 1px solid #d6e2ff; }
.cat-picker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #475467; font-size: 12px; }
.cat-picker label { display: flex; align-items: center; gap: 4px; }
.page-note {
  display: flex; align-items: center; gap: 8px;
  margin: 0 20px 6px; padding: 5px 10px; border-radius: 6px; font-size: 12px;
  background: #fffaf0; border: 1px solid #ffe0b2; color: #8a5a00; line-height: 1.6;
}
.page-note[hidden] { display: none; }
.page-note .note-close {
  margin-left: auto; border: none; background: transparent; color: #b98a2b;
  font-size: 13px; padding: 0 4px; cursor: pointer;
}
.page-note .note-close:hover { color: #8a5a00; }
.theme-sel { font-family: inherit; font-size: 12px; padding: 5px 8px; border: 1px solid var(--line);
  border-radius: 6px; background: #fff; color: var(--text); max-width: 120px; }

/* ============ 主题：奶油风 ============ */
body[data-theme="cream"] {
  /* 取自售前系统「奶油风」实际色值 */
  --bg: #fff8f0; --panel: #ffffff; --line: #f0e6da; --text: #7a6a5f; --muted: #a8968a;
  --brand: #d99058; --manual: #cf8f2a; --manual-bg: #fdf4e3; --auto: #6f9f6f;
}
body[data-theme="cream"] .sidebar { background: #f4e7d8; }
body[data-theme="cream"] .brand { border-color: #e6d5c1; }
body[data-theme="cream"] .brand-title { color: #7a6a5f; }
body[data-theme="cream"] .brand-sub, body[data-theme="cream"] .flow-tip { color: #a8968a; }
body[data-theme="cream"] .nav-group { color: #b9a48d; border-color: #e6d5c1; }
body[data-theme="cream"] .nav-item { color: #7a6a5f; }
body[data-theme="cream"] .nav-item:hover { background: #efe0cd; }
body[data-theme="cream"] .nav-item.active { background: #d99058; color: #fff; }
body[data-theme="cream"] thead th { background: #faf1e6; color: #7a6a5f; }
body[data-theme="cream"] .toolbar.filter-bar { background: #fdf8f0; }
body[data-theme="cream"] .toolbar.export-bar { background: #fbf6ee; }
body[data-theme="cream"] .page-note { background: #fff6e6; border-color: #f0dcc0; color: #8a6a3a; }
body[data-theme="cream"] .tabs button.active,
body[data-theme="cream"] button.primary { background: #d99058; border-color: #d99058; color: #fff; }
body[data-theme="cream"] .theme-sel { background: #fffdf8; }
body[data-theme="cream"] .multi-filter { background: #fdf8f0; }
body[data-theme="cream"] button.on { background: #fdf1e3; }

/* ============ 主题：暗黑赛博 ============ */
body[data-theme="cyber"] {
  /* 取自售前系统「暗夜赛博」实际色值 */
  --bg: #05060f; --panel: #10131d; --line: #232a3d; --text: #a9d8ff; --muted: #6d86a8;
  --brand: #00e5ff; --manual: #ffb020; --manual-bg: #2b2411; --auto: #22e0a3;
}
body[data-theme="cyber"]::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,229,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,43,214,.05) 1px, transparent 1px),
    radial-gradient(circle at 50% -8%, rgba(168,85,247,.22), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(0,229,255,.10), transparent 45%);
  background-size: 44px 44px, 44px 44px, 100% 100%, 100% 100%;
}
body[data-theme="cyber"] .layout { position: relative; z-index: 1; }
body[data-theme="cyber"] .sidebar { background: #05080f; }
body[data-theme="cyber"] .brand { border-color: #16233a; }
body[data-theme="cyber"] .brand-title { color: #00d3ff; text-shadow: 0 0 10px rgba(0,211,255,.6); }
body[data-theme="cyber"] .nav-item { color: #9fb6d6; }
body[data-theme="cyber"] .nav-item:hover { background: #131c2d; }
body[data-theme="cyber"] .nav-item.active { background: #00d3ff; color: #04121a; box-shadow: 0 0 14px rgba(0,211,255,.5); }
body[data-theme="cyber"] thead th { background: #162034; color: #8fb2d9; }
body[data-theme="cyber"] th.sorted { color: #00d3ff; }
body[data-theme="cyber"] .toolbar.filter-bar { background: #0d1420; }
body[data-theme="cyber"] .toolbar.export-bar { background: #0b111b; }
body[data-theme="cyber"] .page-note { background: #131c2b; border-color: #24344d; color: #8fb2d9; }
body[data-theme="cyber"] .tabs button.active,
body[data-theme="cyber"] button.primary {
  background: #00d3ff; border-color: #00d3ff; color: #04121a; box-shadow: 0 0 12px rgba(0,211,255,.45);
}
body[data-theme="cyber"] button { background: #141d2e; border-color: #24334a; color: #cfe3ff; }
body[data-theme="cyber"] .theme-sel,
body[data-theme="cyber"] input, body[data-theme="cyber"] select, body[data-theme="cyber"] textarea {
  background: #0e1521; border-color: #24334a; color: #d3e2f5;
}
body[data-theme="cyber"] tbody tr:hover td { background: #16213a; }
body[data-theme="cyber"] tr.dup-row td { background: #2a1620 !important; }
body[data-theme="cyber"] .modal-panel, body[data-theme="cyber"] .picker-panel,
body[data-theme="cyber"] .confirm-panel, body[data-theme="cyber"] .drawer-panel,
body[data-theme="cyber"] .login-card { background: #101725; }
body[data-theme="cyber"] .multi-filter { background: #0d1420; }
body[data-theme="cyber"] .mf-head b { color: #8fb2d9; }
body[data-theme="cyber"] button.on { background: #0b2530; color: #00d3ff; }

/* 截断格子的完整内容气泡 */
.cell-pop {
  position: absolute; z-index: 80;
  background: #101828; color: #fff; font-size: 12px; line-height: 1.7;
  padding: 10px 12px; border-radius: 8px; max-width: 620px;
  white-space: pre-wrap; word-break: break-all; overflow-wrap: anywhere;
  box-shadow: 0 10px 26px rgba(16, 24, 40, .28); cursor: default;
}
.cell-pop::after {
  content: '点击任意处关闭'; display: block; margin-top: 6px;
  font-size: 10px; color: #98a2b3;
}

/* 上传批次卡片 */
.batch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(520px, 1fr)); gap: 12px; }
.batch-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; display: flex; flex-direction: column;
}
.batch-card-head { padding: 10px 12px; background: #f7f9fc; border-bottom: 1px solid var(--line); cursor: pointer; }
.batch-card-head:hover { background: #f0f4fb; }
.bc-title { font-weight: 600; font-size: 13px; word-break: break-all; }
.bc-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.bc-meta .chev { margin-left: auto; color: var(--muted); transition: transform .15s; }
.batch-card.open .bc-meta .chev { transform: rotate(180deg); }
.tag2 {
  font-size: 11px; padding: 1px 8px; border-radius: 10px;
  background: #eef3ff; color: #2f6bff; border: 1px solid #d6e2ff;
}
.tag2.warn { background: #fdeceb; color: #d92d20; border-color: #f9d2cf; }
.batch-card-body { display: none; max-height: 300px; overflow: auto; }
.batch-card.open .batch-card-body { display: block; }
.batch-card-body table { width: 100%; min-width: 0; }
.preview-tip { padding: 6px 10px; font-size: 11px; }
.batch-card-foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 9px 12px; background: #fbfcfe; border-top: 1px solid var(--line);
}
.batch-card-foot input {
  font-family: inherit; font-size: 13px; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 6px; width: 128px;
}
.batch-card-foot .label { color: var(--muted); font-size: 12px; }
.modal-panel { width: 1080px; }
