/* ============================================================
 * MB-ERP 本地版 样式
 * ============================================================ */
:root {
  --bg: #f5f6f8;
  --card: #fff;
  --line: #e7e9ee;
  --ink: #101828;
  --sub: #667085;
  --brand: #2563eb;
  --brand-2: #1d4ed8;
  --green: #1d9e5a;
  --red: #d64545;
  --orange: #d97b06;
  --purple: #7a4bc2;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 14px;
}
a { color: var(--brand); text-decoration: none; }
button { font-family: inherit; }
.hidden { display: none !important; }
.muted { color: #98a2b3; }
.muted-tip { color: #98a2b3; font-size: 12px; margin-left: 8px; }
.sub { display: block; color: var(--sub); font-size: 12px; font-weight: 400; margin-top: 2px; }
.code { color: var(--sub); font-size: 12px; }
.neg { color: var(--red) !important; }
.ok { color: var(--green) !important; }

/* ---------- 布局 ---------- */
#app { display: flex; flex-direction: column; height: 100vh; }
.app-hd {
  height: 64px; flex: 0 0 64px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 20px; position: relative; z-index: 60;
}
.hd-left { display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo-img { height: 42px; width: auto; display: block; flex: 0 0 auto; }
/* 顶栏右侧小字: 右端对齐展开侧栏(240px)的右边线, 底端对齐顶栏下边线 */
.logo-tagline { position: absolute; left: 240px; transform: translateX(calc(-100% + 4px)); bottom: 4px;
  font-size: 10px; line-height: 1; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap;
  color: #1E2F2E; opacity: .7; pointer-events: none; }
body.side-mini .logo-tagline { display: none; }
.logo-brand { display: inline-grid; font-size: 17px; font-weight: 600; letter-spacing: .02em; line-height: 1.16; white-space: nowrap; color: var(--ink); }
.logo-brand .logo-word { display: flex; justify-content: space-between; margin-top: 2px; }
.logo-brand .logo-tag { display: block; margin-top: 4px; font-size: 9px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: #6b7280; margin-right: -.28em; }
 .logo-tx { font-size: 16px; font-weight: 700; letter-spacing: .5px; white-space: nowrap; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700;
}
.logo-sub { color: var(--sub); font-size: 12px; border-left: 1px solid var(--line); padding-left: 12px; }
.hd-route { color: var(--sub); font-size: 13px; }
.hd-right { display: flex; align-items: center; gap: 4px; position: relative; }
.hd-btn {
  border: 0; background: transparent; padding: 7px 10px; border-radius: 8px; cursor: pointer; color: #475467; font-size: 13px;
  display: flex; align-items: center; gap: 6px;
}
.hd-btn:hover { background: #f2f4f7; }
.hd-bell-wrap, .hd-user-wrap { position: relative; }
.bell-dot { position: absolute; width: 8px; height: 8px; background: var(--red); border-radius: 50%; top: 6px; right: 6px; }
.bell-panel, .user-panel {
  position: absolute; right: 0; top: 44px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .15); width: 330px; overflow: hidden; z-index: 200;
}
.bell-t { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13px; display: flex; justify-content: space-between; }
.bell-t span { color: var(--brand); }
.bell-item { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #f2f4f7; align-items: flex-start; }
.bell-item .bi-ic { width: 26px; height: 26px; border-radius: 8px; background: #eef4ff; color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 13px; flex: 0 0 26px; }
.bell-item.warn .bi-ic { background: #fff4e6; color: var(--orange); }
.bell-item b { font-size: 13px; display: block; font-weight: 600; }
.bell-item i { font-size: 11px; color: var(--sub); font-style: normal; }
.bell-empty { padding: 30px; text-align: center; color: #98a2b3; font-size: 13px; }
.user-panel { width: 250px; padding: 6px; }
.up-company { padding: 12px 12px 10px; border-bottom: 1px solid #f2f4f7; margin-bottom: 6px; }
.up-company b { display: block; font-size: 14px; }
.up-company span { font-size: 11px; color: var(--sub); display: inline-flex; align-items: center; gap: 5px; }
.up-company span svg, .side-co span svg { width: 13px; height: 13px; flex: 0 0 auto; }
.up-item {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; font-size: 13px;
  border-radius: 8px; cursor: pointer; color: var(--ink);
}
.up-item:hover { background: #f2f4f7; }
.up-item svg, .side-logout svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--sub); }
.side-logout { display: flex; align-items: center; gap: 8px; }
.hd-user { border: 0; background: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.hd-user:hover { background: #f2f4f7; }
.hd-user b { font-weight: 600; font-size: 13px; }

.shell-row { flex: 1; display: flex; min-height: 0; position: relative; }
/* 默认: 展开式完整菜单栏(240px, 固定占位不遮内容); 可收起为 64px 图标栏 */
.app-side {
  width: 240px; flex: 0 0 240px; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden; transition: width .18s, flex-basis .18s;
}
.app-side:not(.open) { width: 64px; flex-basis: 64px; }
/* 侧栏顶部品牌区: 黑色方块 logo + 名称 + Deepspace 徽标 + 收起按钮 */
.side-brand { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.sb-logo { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; background: transparent; }
.sb-logo img { width: 22px; height: 22px; object-fit: contain; display: block; }
.sb-name { font-family: Georgia, "Times New Roman", "Songti SC", serif; font-size: 14px; font-weight: 600; letter-spacing: .2em; color: var(--ink); white-space: nowrap; }
.sb-badge { font-size: 9px; font-weight: 700; letter-spacing: .04em; color: #fff; background: #111418; border-radius: 4px; padding: 2px 5px; white-space: nowrap; flex: 0 0 auto; }
.side-pin { margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 6px; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; color: var(--sub); cursor: pointer; padding: 0; flex: 0 0 auto; }
.side-pin svg { width: 15px; height: 15px; display: block; }
.side-pin:hover { color: var(--brand); border-color: #c7d2fe; }
.app-side .nav-item { padding: 9px 14px; }
.app-side .side-foot { border-top: 1px solid var(--line); padding: 10px 18px; flex: 0 0 auto; }
.app-side .side-nav { flex: 1; overflow-y: auto; }
.app-side:not(.open) .nav-item { justify-content: center; padding: 11px 0; }
.app-side:not(.open) .nav-tx,
.app-side:not(.open) .side-foot { display: none; }
.app-side:not(.open) .side-brand { flex-direction: column; gap: 6px; padding: 12px 0 10px; }
.app-side:not(.open) .sb-logo { width: 34px; height: 34px; cursor: pointer; }
.app-side:not(.open) .sb-logo img { width: 26px; height: 26px; }
.app-side:not(.open) .sb-logo:hover { opacity: .7; }
.app-side:not(.open) .sb-name, .app-side:not(.open) .sb-badge { display: none; }
.app-side:not(.open) .side-pin { display: none; } /* 收起时只留 logo,点它展开 */
.side-nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: #344054;
  font-size: 14px; margin-bottom: 2px; transition: background .15s;
}
.nav-item:hover { background: #f2f4f7; }
.nav-item.on { background: #eef4ff; color: var(--brand-2); font-weight: 600; }
.nav-ic { width: 20px; text-align: center; font-size: 15px; }
.side-foot { padding: 10px 14px; border-top: 1px solid var(--line); }
.side-co span { font-size: 11px; color: #98a2b3; display: flex; align-items: center; justify-content: center; gap: 5px; margin-bottom: 7px; }
.side-co b { font-size: 12px; font-weight: 600; display: block; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-logout { border: 0; background: none; color: var(--sub); font-size: 12px; cursor: pointer; padding: 4px 0; margin-top: 9px; }
.side-logout:hover { color: var(--red); }

.app-main { flex: 1; overflow-y: auto; padding: 24px 24px 60px; min-width: 0; }
.pg-wrap { max-width: 1500px; }

/* ---------- 页面头 ---------- */
.page-hd { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; gap: 16px; flex-wrap: wrap; }
.page-hd h1 { font-size: 24px; font-weight: 700; letter-spacing: .2px; }
.page-hd p { color: var(--sub); font-size: 13.5px; margin-top: 3px; }
.ph-actions .mb-btn { padding: 9px 18px; font-size: 14px; min-height: 40px; }
.ph-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- 通用按钮/输入 ---------- */
.mb-btn {
  border: 1px solid #d0d5dd; background: #fff; color: #344054; padding: 7px 14px; border-radius: 8px;
  font-size: 13px; cursor: pointer; transition: all .15s; display: inline-flex; align-items: center; gap: 5px; justify-content: center;
}
.mb-btn:hover { border-color: #98a2b3; background: #fafafa; }
.mb-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.mb-btn.on { background: #eef4ff; border-color: #c7d2fe; color: var(--brand-2); font-weight: 600; }
.mb-btn.primary:hover { background: var(--brand-2); }
.mb-btn.sm { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.mb-btn.ghost { background: transparent; }
.mb-btn.danger { color: var(--red); border-color: #f5c6c6; }
.mb-btn.sm.danger { color: var(--red); border-color: #f5c6c6; background: transparent; }
.mb-btn:disabled { opacity: .5; cursor: not-allowed; }
.mb-inp {
  width: 100%; border: 1px solid #d0d5dd; border-radius: 8px; padding: 7px 11px; font-size: 13px; background: #fff;
  color: var(--ink); outline: none; transition: border .15s, box-shadow .15s; font-family: inherit;
}
.mb-inp:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.mb-inp:disabled { background: #f4f5f7; color: #667085; }
textarea.mb-inp { resize: vertical; line-height: 1.5; }
.mb-inp.readonly { background: #f9fafb; color: #344054; cursor: default; }
select.mb-inp { cursor: pointer; }
.mb-x { border: 0; background: none; font-size: 18px; color: #98a2b3; cursor: pointer; padding: 2px 6px; border-radius: 6px; line-height: 1; }
.mb-x:hover { background: #f2f4f7; color: var(--ink); }
.mb-x2 { border: 1px solid #d0d5dd; background: #fff; padding: 7px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; }

/* ---------- 徽章/头像 ---------- */
.mb-badge {
  display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap;
  margin-left: 4px; line-height: 18px; vertical-align: 1px;
}
.mb-avatar {
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
  flex: 0 0 auto; user-select: none;
}
.mini-tag {
  display: inline-block; background: #eef2f6; color: #475467; border-radius: 4px; font-size: 11px; padding: 1px 6px; margin: 1px 3px 1px 0;
}

/* ---------- toast ---------- */
#mb-toasts { position: fixed; top: 68px; left: 50%; transform: translateX(-50%); z-index: 5000; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.mb-toast {
  background: #101828; color: #fff; padding: 9px 18px; border-radius: 10px; font-size: 13px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  opacity: 1; transition: opacity .3s, transform .3s; max-width: 70vw;
}
.mb-toast.ok { background: #0d7a43; }
.mb-toast.err { background: #b42318; }
.mb-toast.warn { background: #b54708; }
.mb-toast.out { opacity: 0; transform: translateY(-6px); }

/* ---------- 筛选条 ---------- */
.mb-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.mb-tabs { display: inline-flex; background: #f2f4f7; border-radius: 10px; padding: 3px; gap: 2px; }
.mb-tab {
  border: 0; background: none; padding: 6px 14px; border-radius: 8px; font-size: 13px; color: #475467;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.mb-tab i { font-style: normal; background: #e4e7ec; border-radius: 10px; padding: 0 7px; font-size: 11px; line-height: 17px; }
.mb-tab.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }
.mb-tab.on i { background: #eef4ff; color: var(--brand); }
.mb-tabs.sm2 .mb-tab { padding: 4px 10px; font-size: 12px; }
.mb-search { min-width: 230px; }
.mb-search .mb-inp { background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="%2398a2b3" stroke-width="2"><circle cx="11" cy="11" r="7"/><path d="m21 21-4-4"/></svg>') no-repeat 10px center; padding-left: 32px; }

/* ---------- 表格 ---------- */
.list-view .mb-table-ct { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.mb-table { width: 100%; border-collapse: collapse; }
.mb-table th {
  text-align: left; font-size: 12px; color: #667085; font-weight: 600; background: #fafbfc;
  padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.mb-table td { padding: 11px 14px; border-bottom: 1px solid #f2f4f7; font-size: 13px; vertical-align: middle; }
.mb-table tbody tr:hover { background: #f8fafc; }
.mb-table tbody tr.sel { background: #eef4ff; }
.mb-table .act { text-align: right; white-space: nowrap; }
.mb-table .act .mb-btn { margin-left: 4px; }
.mb-table .empty-row td { text-align: center; color: #98a2b3; padding: 40px 10px; }
/* 电话/微信单元格: 多号码上下排列 + 复制角标 */
.cp-cell { display: flex; flex-direction: column; gap: 3px; }
.cp-line { display: flex; align-items: center; gap: 6px; }
.cp-tx { white-space: nowrap; }
.cp-btn { border: 0; background: transparent; color: #98a2b3; cursor: pointer; padding: 0; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; opacity: .4; transition: opacity .15s, color .15s, background .15s; flex: 0 0 auto; }
.cp-line:hover .cp-btn { opacity: 1; }
.cp-btn:hover { color: var(--brand); background: #eef4ff; }
.cp-btn svg { width: 13px; height: 13px; }
/* 供应管理表格: 行列间距放宽, 电话/微信/样品居中, 编号与徽章分行 */
.sup-table th, .sup-table td { padding-left: 10px; padding-right: 10px; }
.sup-table th { padding-top: 13px; padding-bottom: 13px; }
.sup-table td { padding-top: 15px; padding-bottom: 15px; }
.sup-table th:first-child, .sup-table td:first-child { padding-left: 18px; }
.sup-table th:last-child, .sup-table td:last-child { padding-right: 18px; }
.sup-table td.ct { text-align: center; }
.sup-table th:nth-child(8), .sup-table td:nth-child(8) { padding-left: 30px; }
.sup-table .cp-cell { gap: 7px; }
.sup-table .cp-line { gap: 8px; }
.sup-table .code-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.sup-table .code-cell .code { line-height: 1.4; }
.sup-table .doc-entity { min-width: 0; }
.sup-table .doc-entity span { margin-top: 4px; }
.kv-cp { display: inline-flex; align-items: center; gap: 6px; }
.wa-btn { width: 20px; height: 20px; border-radius: 50%; background: #25D366; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: transform .12s, box-shadow .12s; }
.wa-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(37,211,102,.45); }
.wa-btn svg { width: 13px; height: 13px; display: block; }
.kv-cp .cp-btn { opacity: .45; }
.kv-cp:hover .cp-btn { opacity: 1; }
.doc-entity { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.doc-entity b { display: block; font-size: 13.5px; }
.doc-entity span { font-size: 12px; color: var(--sub); display: block; margin-top: 2px; }
.doc-entity .sub { margin-top: 1px; }
.cl-need { max-width: 380px; color: #344054; line-height: 1.5; font-size: 12.5px; }
/* 客户列表-标签列: 标签优先, 一行放不下就换行收在 2 行内 */
.cl-tags { display: flex; flex-wrap: wrap; gap: 3px 4px; max-height: 44px; overflow: hidden; }
.cl-tags .mini-tag { margin: 0; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-tags .mini-tag.more { background: #e7edf5; color: #5b6b7c; font-weight: 600; }
.cl-track { font-size: 12.5px; }
.cl-freq { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #eef2f6; color: #475467; font-size: 11px; }
.mb-pager { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; color: var(--sub); font-size: 13px; flex-wrap: wrap; gap: 8px; }
.pg-right { display: flex; align-items: center; gap: 8px; }
.pg-right .mb-btn { padding: 4px 10px; font-size: 12px; }
.pg-size { width: auto; padding: 4px 8px; }
.pg-jump { width: 62px; padding: 4px 8px; }

/* ---------- 弹窗 ---------- */
.mb-modal-mask {
  position: fixed; inset: 0; background: rgba(16, 24, 40, .45); z-index: 300; display: flex; align-items: center;
  justify-content: center; padding: 24px; animation: fadeIn .15s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.mb-modal {
  background: #fff; border-radius: 14px; width: 560px; max-width: 96vw; max-height: 92vh; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(16, 24, 40, .25); animation: popIn .16s ease-out;
}
.mb-modal.small { width: 420px; }
.mb-modal.wide { width: 860px; }
.mb-modal.big { width: 980px; }
/* 出运单抽屉: 四个页签(出运信息/装箱信息/货代费用/关联合同)保持同一个框的大小, 内容在框内滚动 */
.mb-modal.so-detail-drawer { height: auto; max-height: 82vh; display: flex; flex-direction: column; animation: none; }
.mb-modal.so-detail-drawer .mb-modal-bd { scroll-behavior: auto; }
.mb-modal.so-detail-drawer .mb-modal-bd { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
@keyframes popIn { from { opacity: 0; transform: scale(.97) translateY(6px); } to { opacity: 1; transform: none; } }
.mb-modal-hd { display: flex; align-items: center; gap: 8px; padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.mb-modal-hd .mb-x { margin-left: auto; }
.mb-modal-bd { padding: 18px 20px; overflow-y: auto; }
.mb-modal-ft { padding: 13px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- 表单 ---------- */
.mb-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; }
.mb-field.half { grid-column: span 1; }
.mb-field.half2, .mb-field { grid-column: span 2; }
.mb-f-label { font-size: 13px; color: #344054; margin-bottom: 6px; font-weight: 500; }
/* 标题与提示词同一行: 提示词靠右, 右沿与下面按钮/输入框对齐 */
.mb-f-label.has-inline { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mb-f-hint-inline { font-weight: 400; font-size: 12px; color: #98a2b3; }
/* 两个输入框并排(如 联系电话 + 第二个号码) */
.mb-pair-inp { display: flex; gap: 8px; }
.mb-pair-inp .mb-inp { flex: 1 1 0; min-width: 0; }
.mb-req { color: var(--red); font-style: normal; margin-left: 2px; }
.mb-f-unit, .mini-cur { color: var(--sub); font-size: 12px; margin-left: 6px; white-space: nowrap; }
.mb-f-hint { color: #98a2b3; font-size: 11.5px; margin-top: 5px; }
.mb-f-static { padding: 7px 0; color: #344054; line-height: 1.5; }
.inp-unit { display: flex; align-items: center; gap: 8px; }
.inp-unit .mb-inp { flex: 1; }
.mb-seg { display: inline-flex; background: #f2f4f7; border-radius: 8px; padding: 3px; gap: 2px; width: 100%; }
.mb-seg .seg {
  flex: 1; border: 0; background: none; padding: 6px 8px; border-radius: 6px; font-size: 12.5px; color: #475467;
  cursor: pointer; white-space: nowrap;
}
.mb-seg .seg.on { background: #fff; color: var(--brand-2); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 24, 40, .1); }
.mb-tags-ct { border: 1px solid #d0d5dd; border-radius: 8px; padding: 5px 8px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-height: 38px; }
.mb-tags-ct .tag { background: #eef4ff; color: var(--brand-2); font-size: 12px; padding: 2px 6px 2px 9px; border-radius: 6px; display: inline-flex; align-items: center; gap: 5px; }
.mb-tags-ct .tag b { cursor: pointer; color: #7c94d8; font-weight: 600; }
.mb-tags-ct .taginp { border: 0; outline: none; flex: 1; min-width: 150px; font-size: 13px; padding: 4px; }
.kv-sec { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.kv-sec-t { font-weight: 600; font-size: 13.5px; margin-bottom: 10px; }
.kv-sec-hd { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.kv-sec-hd .kv-sec-t { margin-bottom: 0; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 24px; }
.kv { display: flex; font-size: 13px; line-height: 1.5; }
.kv > span { color: var(--sub); width: 96px; flex: 0 0 96px; }
.kv > div { flex: 1; }
.kv-full { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 14px; }
.kv-full > span { color: var(--sub); font-size: 13px; display: block; margin-bottom: 6px; }
.kv-full p { color: #344054; line-height: 1.7; white-space: pre-wrap; }
.kv-note { color: #344054; line-height: 1.7; white-space: pre-wrap; font-size: 13px; }
.mb-empty { text-align: center; color: #98a2b3; padding: 36px 12px; font-size: 13px; }
.mb-empty.sm { padding: 18px 8px; font-size: 12.5px; }

/* ---------- 单据编辑器 ---------- */
.doc-edit { display: grid; grid-template-columns: 1fr 330px; gap: 16px; align-items: start; }
.doc-edit-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ed-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.ed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 18px; }
.ed-cell { min-width: 0; }
.ed-label { display: block; font-size: 12.5px; color: #344054; font-weight: 500; margin-bottom: 6px; }
.ed-hd-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 14px; }
.ed-hd-row b { font-size: 14px; }
.ed-table-ct { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.ed-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.ed-table th { background: #fafbfc; font-size: 12px; color: #667085; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.ed-table td { padding: 8px 10px; border-bottom: 1px solid #f2f4f7; vertical-align: middle; }
.ed-table .li-prev { width: 46px; }
.li-name { font-weight: 600; font-size: 13px; }
.li-spec { font-size: 11.5px; color: var(--sub); }
.ed-table .mb-inp { padding: 5px 8px; font-size: 12.5px; min-width: 70px; }
.ed-table .li-need { min-width: 130px; }
.li-amt { text-align: right; white-space: nowrap; font-weight: 600; font-size: 13px; min-width: 90px; }
.mini-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mini-row .mb-inp { flex: 1; }
.mini-row .oi-name, .mini-row .cs-name { flex: 2.2; }
.mini-row .oi-amt, .mini-row .cs-amt { max-width: 150px; }
.doc-edit-side { position: sticky; top: 8px; display: flex; flex-direction: column; gap: 14px; }
.ed-summary { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.es-title { font-weight: 700; margin-bottom: 12px; }
.es-row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; color: #344054; }
.es-row.big b { font-size: 15px; }
.es-row.big2 { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 9px; }
.es-row.big2 b { font-size: 16px; color: var(--green); }
.es-line { border-top: 1px dashed var(--line); margin: 6px 0; }
.es-row.sub2 { color: var(--sub); font-size: 12px; }
.es-note { color: #98a2b3; font-size: 11.5px; margin-top: 10px; line-height: 1.5; }
.ed-actions { display: flex; flex-direction: column; gap: 8px; }
.ed-actions .mb-btn { width: 100%; padding: 9px; }
.ed-remark { font-size: 13px; }
.editable-line b { }
.mb-filters + .list-view { }

/* ---------- 客户 ---------- */
.cust-layout { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.cust-left { min-width: 0; }
.cust-left .mb-table-ct, .cust-follow-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.cust-follow-panel { display: flex; flex-direction: column; min-height: 480px; position: sticky; top: 8px; }
.fp-hd { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.fp-list { flex: 1; overflow-y: auto; padding: 10px 16px; max-height: 480px; }
.fl-item, .follow-item { padding: 8px 0; border-bottom: 1px dashed #eef0f4; }
.fl-add { display: flex; gap: 8px; margin-bottom: 12px; }
.fl-add .mb-inp { flex: 1; }
/* 团队成员设置 */
.tm-tip { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; color: var(--sub); line-height: 1.75; margin-bottom: 12px; }
.tm-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.fl-item:last-child { border-bottom: 0; }
.fl-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--sub); }
.fl-top b { color: #344054; }
.fl-item p { font-size: 12.5px; color: #344054; margin-top: 4px; line-height: 1.55; }
.fp-in { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.fp-ft { padding: 0 12px 12px; }
.cust-follow-panel.empty .fp-list { display: flex; align-items: center; justify-content: center; }
.cust-hero { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.ch-main { flex: 1; min-width: 0; }
.ch-name { font-size: 17px; font-weight: 700; }
.ch-code { color: var(--sub); font-size: 12px; margin-top: 4px; }
.cust-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.cust-tabs .tab { border: 0; background: none; padding: 8px 14px; cursor: pointer; font-size: 13px; color: var(--sub); border-bottom: 2px solid transparent; }
.cust-tabs .tab.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.follow-item .fi-top { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--sub); }
.doc-mini-h { font-weight: 600; font-size: 13px; margin: 10px 0 6px; }
.doc-mini { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed #eef0f4; }
.doc-mini i { margin-left: auto; color: #344054; font-style: normal; }

/* ---------- 合同详情 ---------- */
.so-detail-wrap { max-width: 1400px; }
.so-top { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; box-shadow: var(--shadow); }
.so-hd-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.so-hd-line h1 { font-size: 20px; }
.so-cust { color: var(--sub); font-size: 13px; }
.so-kpis { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)) auto; gap: 14px; margin-top: 16px; }
.so-kpi span { font-size: 12px; color: var(--sub); display: block; }
.so-kpi b { font-size: 19px; margin-top: 3px; display: block; }
.so-act { display: flex; flex-direction: column; gap: 6px; justify-content: center; grid-column: 5; }
.so-gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.gauge > div { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; }
.gauge b { color: #344054; }
.gauge i { font-style: normal; color: var(--brand); font-weight: 600; }
.gauge span { font-size: 11.5px; color: var(--sub); display: block; margin-top: 5px; }
.prog { background: #f0f1f4; border-radius: 20px; height: 6px; overflow: hidden; }
.prog-bar { height: 100%; border-radius: 20px; transition: width .3s; }
.so-steps { display: flex; align-items: flex-start; margin-top: 20px; padding-top: 6px; }
.step { text-align: center; flex: 1; }
.st-ic {
  width: 26px; height: 26px; border-radius: 50%; background: #eef0f3; color: #98a2b3; display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 700; margin: 0 auto 6px; border: 1px solid #e4e7ec;
}
.st-ic.done { background: var(--green); color: #fff; border-color: var(--green); }
.step b { display: block; font-size: 12.5px; }
.step span { font-size: 11px; color: var(--sub); display: block; margin-top: 3px; }
.st-line { flex: 0 0 30px; height: 2px; background: #e4e7ec; margin-top: 12px; }
.so-tabbar { margin: 16px 0 14px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.so-tabbar .mb-tab.on { background: #fff; }
.so-body { display: flex; flex-direction: column; gap: 14px; }
.so-body .kv-sec { margin-bottom: 0; }
.fincap { color: var(--sub); font-size: 12px; margin-left: auto; margin-right: 10px; }
.po-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #fcfcfd; }
.po-hd { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.po-amt { margin-left: auto; text-align: right; }
.po-amt b { font-size: 15px; }
.po-amt i { font-style: normal; color: var(--sub); font-size: 11.5px; display: block; }
.po-act { display: flex; gap: 6px; }
.po-lines { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.po-lines span { background: #eef2f6; padding: 2px 9px; border-radius: 6px; font-size: 11.5px; color: #475467; }
.cargo-item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #eef0f4; }
.cargo-item i { margin-left: auto; font-style: normal; font-weight: 600; }

/* ---------- 出运/装箱 ---------- */
.draft-tip { color: var(--orange); font-size: 12.5px; }
.pack-sum { display: flex; gap: 12px; margin-bottom: 12px; }
.pack-sum > div { background: #f7f8fa; border-radius: 10px; padding: 10px 16px; flex: 1; text-align: center; }
.pack-sum b { display: block; font-size: 17px; }
.pack-sum span { font-size: 11.5px; color: var(--sub); }
.ctn-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-top: 6px; }
.ctn-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.ctn-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ctn-hd span { font-size: 11.5px; color: var(--sub); }
.ctn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.ctn-kv { display: flex; justify-content: space-between; font-size: 12px; }
.ctn-kv span { color: var(--sub); }
.fee-editor { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.fee-sum { display: flex; align-items: center; gap: 26px; padding: 10px 0 14px; }
.fee-sum span { color: var(--sub); font-size: 12px; }
.fee-sum b { font-size: 16px; }
.fee-sum .mb-btn { margin-left: auto; }

/* ---------- 首页 ---------- */
.workspace-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; }
.w-clocks { grid-column: 1 / -1; display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.clock, .w-fx { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 18px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); }
.clock span, .w-fx span { color: var(--sub); font-size: 12px; }
.w-clocks { align-items: center; justify-content: flex-end; }
.w-clocks .clock, .w-clocks .w-fx { padding: 8px 14px; min-height: 40px; }
#fx-live { margin-right: auto; } /* 实时汇率单独靠左,时钟与记账汇率留在右侧 */
.w-fx { flex-direction: row; align-items: center; }
.w-fx span { color: var(--sub); font-size: 12px; }
.w-fx b { font-size: 17px; }
.clock b, .w-fx b { font-size: 17px; font-variant-numeric: tabular-nums; }
.w-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.w-stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; box-shadow: var(--shadow); transition: transform .12s; }
.w-stat:hover { transform: translateY(-2px); }
.w-stat span { display: block; font-size: 12px; color: var(--sub); }
.w-stat b { font-size: 22px; display: block; margin: 3px 0; }
.w-stat i { font-style: normal; font-size: 11.5px; color: #98a2b3; }
.w-col-left, .w-col-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px; box-shadow: var(--shadow); min-width: 0; }
.tc-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; flex-wrap: wrap; }
.tc-hd b { font-size: 15px; }
.todo-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px dashed #eef0f4; }
.todo-row:last-child { border-bottom: 0; }
.todo-ck { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid #c4c9d4; background: #fff; cursor: pointer; flex: 0 0 17px; }
.todo-ck.on { background: var(--green); border-color: var(--green); }
.todo-ck.on::after { content: "✓"; color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; }
.todo-tx { flex: 1; min-width: 0; }
.todo-tx b { font-size: 13px; }
.todo-tx span { display: block; color: var(--sub); font-size: 11.5px; }
.todo-row.done .todo-tx b { text-decoration: line-through; color: #98a2b3; }
.todo-row.over .todo-tx span { color: var(--red); }
.todo-card .tc-list { max-height: 260px; overflow-y: auto; }
.todo-tx { cursor: pointer; }
.todo-note {
  display: block; margin-top: 2px; font-style: normal; font-size: 12px; color: #8a94a6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.todo-tx:hover b { color: var(--brand); }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-head b { font-size: 15px; font-weight: 700; letter-spacing: .2px; }
.cal-head .mb-btn { padding: 3px 9px; font-size: 12px; border-radius: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; flex: 1 1 auto; min-height: 0; }
/* 日历: 卡片高度由 JS 对齐「业务趋势」底边, 日期格在框内自动均分(5/6 行都不会超出) */
.cal-card { flex: 0 0 auto; display: flex; flex-direction: column; }
.cal-card .cal-grid { flex: 1 1 auto; min-height: 0; grid-auto-rows: 1fr; }
.cal-card .cal-d { min-height: 0; }
.cal-w { text-align: center; color: #98a2b3; font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 2px 0 5px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; padding-top: 8px; font-size: 10.5px; color: #98a2b3; align-items: center; }
.cal-legend span { display: inline-flex; align-items: center; gap: 4px; }
.cl-dot { width: 8px; height: 8px; border-radius: 3px; display: inline-block; font-style: normal; font-size: 8px; line-height: 8px; text-align: center; }
.cl-dot.rest { background: #fee4e2; border: 1px solid #f97066; }
.cl-dot.work { width: auto; min-width: 8px; padding: 0 2px; background: #fef0c7; color: #b54708; border: 1px solid #fdb022; font-weight: 700; }
.cl-dot.wk { background: #fff; border: 1px solid #f0a3a5; }
.cl-dot.has { background: var(--green); border-radius: 50%; }
.cal-d {
  border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 12.5px;
  cursor: pointer; position: relative; color: #344054; border: 1px solid transparent; transition: background .15s, color .15s;
}
/* 主数字(公历)加粗一点 */
.cal-d > span { font-weight: 600; }
.cal-d.weekend > span, .cal-d.rest > span { font-weight: 700; }
.cal-d:hover { background: #f2f4f7; }
.cal-d.off { opacity: .22; }
.cal-d.weekend, .cal-d.rest { color: #e5484d; }
.cal-d.rest { font-weight: 600; }
.cal-d.work { color: #b54708; }
/* 农历(打开农历时显示在日期下方) */
.cal-d.lunar { flex-direction: column; gap: 1px; line-height: 1.05; padding-bottom: 2px; }
.cal-lunar { font-style: normal; text-decoration: none; font-size: 9.5px; color: #98a2b3; font-weight: 500; letter-spacing: -.2px; }
.cal-d .cal-lunar.fest { color: #d92d20; font-weight: 700; }
.cal-d.today .cal-lunar { color: #fff; opacity: .95; }
.cal-head .mb-btn.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.cal-d .cal-badge {
  position: absolute; top: 1px; right: 2px; font-style: normal; font-size: 9px; font-weight: 700;
  line-height: 1; padding: 2px 2px; border-radius: 4px; background: #fee4e2; color: #d92d20;
}
.cal-d.work .cal-badge { background: #fef0c7; color: #b54708; }
.cal-w.wk { color: #e5484d; }
/* 今天: 只在数字外面套一个小圆角块(不占满整格) */
.cal-d.today { background: transparent; }
.cal-d.today.rest, .cal-d.today.weekend { color: #fff; }
.cal-d.today span {
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  min-width: 26px; height: 26px; padding: 0 7px; border-radius: 9px;
  background: var(--brand); color: #fff; font-weight: 700; box-shadow: 0 4px 10px #2563eb30;
}
.cal-d.today i { font-style: normal; font-size: 9px; opacity: .85; }
.cal-d.has::after { content: ""; width: 5px; height: 5px; background: var(--green); border-radius: 50%; position: absolute; bottom: 3px; }
.cal-d.has.today::after { background: #fff; }
.cal-d em { position: absolute; top: 2px; right: 4px; font-style: normal; font-size: 9px; color: var(--orange); }
.nf-list { max-height: 330px; overflow-y: auto; }
.nf-row { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-bottom: 1px dashed #eef0f4; cursor: pointer; color: var(--ink); }
.nf-row:hover { background: #f8fafc; border-radius: 8px; }
.nf-flag { font-size: 17px; }
.nf-row div { flex: 1; min-width: 0; }
.nf-row b { display: block; font-size: 13px; }
.nf-row i { font-style: normal; font-size: 11.5px; color: var(--sub); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nf-row em { font-style: normal; font-size: 11.5px; color: var(--orange); white-space: nowrap; }
.tr-sum { display: flex; justify-content: space-between; font-size: 12px; color: var(--sub); margin-bottom: 10px; gap: 10px; flex-wrap: wrap; }
.tr-sum b { color: var(--ink); font-size: 15px; }
.tr-bar { display: flex; gap: 18px; }
.tr-it { flex: 1; }
.tr-it b { display: block; font-size: 12px; color: var(--sub); font-weight: 500; }
.tr-it i { font-style: normal; font-size: 13px; font-weight: 600; display: block; margin: 2px 0 6px; }
.wk-range { color: var(--sub); font-size: 12px; margin-bottom: 10px; }
.wk-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 10px; }
.wk-stats div { background: #f7f8fa; border-radius: 8px; padding: 8px; text-align: center; }
.wk-stats span { font-size: 11px; color: var(--sub); display: block; }
.wk-stats b { font-size: 14px; }
.wk-notes { background: #fdfaf3; border: 1px solid #f3e8c8; border-radius: 8px; padding: 10px 12px; }
.wk-notes p { font-size: 12.5px; color: #6b5a1e; line-height: 1.7; }

/* ---------- 数据概览 ---------- */
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.dash-kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.dash-kpi span { font-size: 12px; color: var(--sub); display: block; }
.dash-kpi b { font-size: 20px; display: block; margin-top: 4px; }
.dash-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.world-map-box { width: 100%; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #d8ecf8; margin-bottom: 6px; }
.dash-cols { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.map-card { flex: 0 0 calc(75% - 3px); min-width: 0; }
@media (max-width: 1100px) { .dash-cols { flex-direction: column; } .map-card { flex: 1 1 auto; width: 100%; } }

/* 运输轨迹(在途出运单) */
.track-card { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.tk-cap { font-size: 12px; color: var(--sub); }
.tk-list { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow-y: auto; }
.tk-row { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.tk-row:hover { border-color: #c7d2fe; box-shadow: 0 4px 14px #1018280f; }
.tk-hd { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tk-hd b { font-size: 13px; }
.tk-sub { margin-top: 3px; font-size: 12px; color: var(--ink); }
.tk-dest { margin-left: 6px; font-size: 11.5px; color: #475467; }
.tk-days { margin-left: auto; font-size: 17px; font-weight: 800; color: var(--brand); letter-spacing: -.3px; line-height: 1; }
.tk-meta { margin-top: 2px; font-size: 11.5px; color: var(--sub); }
.tk-no { margin-top: 6px; display: flex; align-items: center; gap: 6px; font-size: 12px; }
.tk-notx { font-weight: 600; color: #1E2F2E; letter-spacing: .2px; }
.tk-none { color: #98a2b3; }
.tk-link { margin-left: auto; color: var(--brand); text-decoration: none; font-size: 12px; white-space: nowrap; }
.tk-link:hover { text-decoration: underline; }
.tk-foot { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--sub); }
.map-body { display: flex; flex-direction: column; gap: 6px; max-height: 210px; overflow-y: auto; }
.map-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.mr-flag { width: 130px; flex: 0 0 130px; }
.map-row .prog { flex: 1; height: 8px; }
.map-row b { width: 54px; text-align: right; }
.map-row i { font-style: normal; color: var(--sub); font-size: 11.5px; width: 44px; text-align: right; }
.rank-list { display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px dashed #eef0f4; }
.rank-row .rk { width: 52px; font-size: 13px; }
.rank-row.top .rk { color: var(--orange); }
.rk-m { flex: 1; min-width: 0; }
.rk-m b { font-size: 13px; }
.rk-cheer { font-style: normal; font-size: 11px; color: var(--orange); margin-left: 6px; border: 1px solid #f3d9a4; border-radius: 4px; padding: 0 4px; background: #fff8ec; }
.rk-m span { display: block; font-size: 11px; color: var(--sub); }
.rank-row em { font-style: normal; color: var(--sub); font-size: 12px; }

/* ---------- 利润 ---------- */
.mini-pair span { font-size: 11.5px; color: var(--sub); display: block; }
.mini-pair b { font-size: 13px; font-weight: 600; }
.mini-pair i { font-style: normal; color: var(--sub); font-size: 11.5px; }
.perf-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0; }
.perf-sum div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); }
.perf-sum span { font-size: 12px; color: var(--sub); display: block; }
.perf-sum b { font-size: 18px; }

/* ---------- 外贸工具(按原站布局) ---------- */
.tool-cat { margin-bottom: 32px; }
.tool-cat-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cat-ic { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; box-shadow: 0 4px 10px rgba(2, 132, 199, .18); }
.cat-ic svg { width: 20px; height: 20px; stroke: #fff; }
.cat-ic.ci-1 { background: linear-gradient(135deg, #2563eb, #0891b2); }
.cat-ic.ci-2 { background: linear-gradient(135deg, #7c3aed, #c026d3); }
.cat-ic.ci-3 { background: linear-gradient(135deg, #059669, #0d9488); }
.cat-tx h2 { font-size: 16px; font-weight: 800; color: #0f172a; }
.cat-tx p { margin: 2px 0 0; font-size: 12px; font-weight: 700; color: #94a3b8; }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tool-card {
  display: block; width: 100%; text-align: left; background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 12px; padding: 16px; cursor: pointer; font-family: inherit;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.tool-card:hover { transform: translateY(-2px); border-color: #bfdbfe; box-shadow: 0 10px 20px rgba(37, 99, 235, .10); }
.tc-top { display: flex; align-items: center; justify-content: space-between; }
.tc-chip { background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 2px 10px; font-size: 12px; font-weight: 800; color: #64748b; }
.tc-arrow { width: 16px; height: 16px; color: #cbd5e1; transition: transform .15s, color .15s; }
.tool-card:hover .tc-arrow { color: #3b82f6; transform: translateX(2px); }
.tc-name { display: block; margin-top: 16px; font-size: 14px; font-weight: 800; color: #0f172a; }
.tc-en { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; color: #94a3b8; font-style: normal; }
.tc-desc { margin: 12px 0 0; min-height: 40px; font-size: 12px; font-weight: 600; line-height: 20px; color: #64748b; }
@media (max-width: 1500px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1280px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .tool-grid { grid-template-columns: 1fr; } }

/* FX/收款工具 */
.fx-card .fx-line { display: flex; gap: 12px; flex-wrap: wrap; }
.fx-line > div { flex: 1; min-width: 150px; }
.fx-line span { display: block; font-size: 12px; color: var(--sub); margin-bottom: 6px; }
.fx-rate-ct { display: flex; align-items: center; gap: 8px; margin: 16px 0; flex-wrap: wrap; font-size: 13px; }
.fx-rate-ct .mb-inp { width: 140px; }
.fx-result { background: #eef4ff; border-radius: 12px; padding: 18px; text-align: center; }
.fx-result span { color: var(--sub); font-size: 12px; display: block; }
.fx-result b { font-size: 28px; color: var(--brand-2); display: block; margin: 4px 0; }
.fx-result p { font-size: 12px; color: var(--sub); }
.pt-total { display: flex; align-items: baseline; gap: 14px; margin: 16px 0 6px; font-size: 13px; color: var(--sub); }
.pt-total b { font-size: 20px; color: var(--ink); }
.pt-total i { font-style: normal; font-size: 12px; }
.pt-list { margin-top: 8px; }
.pt-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #eef0f4; flex-wrap: wrap; }
.pt-name { font-weight: 600; width: 60px; }
.pt-row > b { color: var(--brand); }
.pt-bar { flex: 1; min-width: 120px; background: #eef0f3; height: 10px; border-radius: 20px; overflow: hidden; display: block; }
.pt-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2563eb, #7c3aed); }
.pt-row em { font-style: normal; font-weight: 700; min-width: 110px; }
.pt-row small { color: var(--sub); font-size: 11.5px; width: 100%; }
.elem-grid { display: flex; flex-direction: column; gap: 10px; }
.elem-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; }
.elem-hd { display: flex; justify-content: space-between; margin-bottom: 8px; }
.elem-hd span { color: var(--sub); font-size: 12px; }

/* ---------- 登录页 ---------- */
.login-wrap { display: flex; height: 100vh; }
.login-left {
  flex: 1.1; background: linear-gradient(135deg, #0b1e4b 0%, #1d4ed8 55%, #7c3aed 100%); color: #fff;
  padding: 60px 70px; display: flex; flex-direction: column;
}
.lg-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 60px; }
.lg-brand .logo-mark { width: 36px; height: 36px; font-size: 19px; background: rgba(255, 255, 255, .18); }
.lg-brand b { font-size: 20px; }
.login-left h1 { font-size: 34px; line-height: 1.3; margin-bottom: 10px; }
.login-left > p { opacity: .75; margin-bottom: 40px; font-size: 15px; }
.lg-feat { display: flex; flex-direction: column; gap: 22px; max-width: 460px; }
.lg-feat > div { display: flex; gap: 16px; align-items: flex-start; }
.lg-feat i {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .15); display: flex; align-items: center;
  justify-content: center; font-size: 19px; font-style: normal; flex: 0 0 44px;
}
.lg-feat b { display: block; font-size: 15px; margin-bottom: 3px; }
.lg-feat span { opacity: .85; font-size: 13px; line-height: 1.6; }
.login-right { flex: 1; display: flex; align-items: center; justify-content: center; background: #f7f8fa; }
.login-card { width: 380px; background: #fff; border-radius: 18px; padding: 36px 34px; box-shadow: 0 20px 50px rgba(16, 24, 40, .1); }
.login-card h2 { font-size: 22px; margin-bottom: 24px; }
.login-card .lbl { font-size: 13px; color: #344054; margin: 12px 0 6px; font-weight: 500; }
.lg-remember { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #475467; margin: 14px 0 18px; cursor: pointer; }
.lg-btn { width: 100%; padding: 11px; font-size: 15px; border-radius: 10px; }
.lg-tip { font-size: 11.5px; color: #98a2b3; margin-top: 14px; line-height: 1.6; }

/* ---------- 打印 ---------- */
.print-sheet { display: flex; flex-direction: column; width: 96vw; max-width: 900px; height: 94vh; background: #fff; border-radius: 14px; overflow: hidden; }
.print-bar { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.print-bar b { flex: 1; }
.print-frame-ct { flex: 1; }
.print-frame { width: 100%; height: 100%; border: 0; background: #fff; }
.mb-modal-mask.print-mask { z-index: 400; }

/* ---------- 其他 ---------- */
.fx-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 14px; }
.fx-edit div { display: flex; align-items: center; gap: 8px; }
.fx-edit b { width: 50px; }
.gen-lines { grid-column: 1 / -1; background: #fafbfc; border-radius: 10px; padding: 10px 12px; }
.gen-lines .mini-row { margin-bottom: 6px; }
.gen-lines .mini-row:last-child { margin-bottom: 0; }
.gl-name { flex: 1; }
.gl-name b { font-size: 13px; }
.gl-name i { font-style: normal; color: var(--sub); font-size: 11.5px; margin-left: 8px; }
.gen-lines .gl-qty { max-width: 130px; text-align: right; }
.mb-pager select { font-size: 12px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d4d9e1; border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 1200px) {
  .doc-edit { grid-template-columns: 1fr; }
  .doc-edit-side { position: static; }
  .dash-grid, .workspace-grid { grid-template-columns: 1fr; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .so-kpis { grid-template-columns: repeat(2, 1fr); }
  .so-act { grid-column: auto; flex-direction: row; }
  .cust-layout { grid-template-columns: 1fr; }
  .cust-follow-panel { position: static; min-height: 0; }
}

/* ============ 登录页风格 ============ */
.login2 {
  min-height: 100vh; background: #f6f7f9;
  display: flex; align-items: center; justify-content: center; gap: 6vw;
  padding: 40px 4vw; position: relative; overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.login2::before, .login2::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.login2::before { width: 420px; height: 420px; left: -160px; bottom: -160px; background: radial-gradient(circle, rgba(255, 122, 53, .10), transparent 65%); }
.login2::after { width: 520px; height: 520px; right: -200px; top: -180px; background: radial-gradient(circle, rgba(79, 157, 216, .10), transparent 65%); }
.lg2-left, .lg2-right { width: 270px; flex: 0 0 270px; position: relative; }
.lg2-bigword {
  font-size: 34px; font-weight: 800; line-height: 1.16; letter-spacing: 1px; color: #101010;
  font-family: "Segoe UI", Arial, sans-serif;
}
.lg2-rule { display: block; width: 44px; height: 5px; border-radius: 4px; background: #FF7A35; margin-top: 18px; }
.lg2-cats { margin-top: 26px; color: #494949; font-size: 13px; letter-spacing: 2.5px; line-height: 2.1; font-weight: 600; }
.lg2-pin-zone { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; }
.lz-l { margin-top: 30px; }
.lz-r { display: flex; gap: 20px; }
.lg-pin { text-align: center; width: 96px; }
.pin-face {
  width: 88px; height: 88px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--h1, #eee), var(--h2, #ccc));
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .14), 0 0 0 4px #f2f2ee, 0 4px 10px rgba(0, 0, 0, .12);
  display: flex; align-items: center; justify-content: center;
}
.pin-face span { font-size: 42px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .18)); }
.lg-pin i { display: block; margin-top: 9px; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; color: #7a7a7a; }
.lg-pin.rot-l .pin-face { transform: rotate(-8deg); }
.lg-pin.rot-r .pin-face { transform: rotate(8deg); }
.lg-pin.rot-l2 .pin-face { transform: rotate(-5deg); }
.lg2-slogan { margin-top: 34px; font-size: 17px; font-weight: 700; line-height: 1.5; color: #333; font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.lg2-flow {
  text-align: right; font-size: 15px; font-weight: 700; letter-spacing: 4px; line-height: 2.4; color: #333;
}
.lg2-flow .lg2-rule { margin-left: auto; margin-right: 0; margin-top: 16px; }
.lg2-right { display: flex; flex-direction: column; align-items: flex-end; }
.lz-r { margin-bottom: 40px; }
.lz-r2 { margin-top: 40px; justify-content: flex-end; }
.lg2-right .lg-pin { width: 100px; }
.login2-card {
  background: #fff; width: 400px; max-width: 92vw; border-radius: 18px; box-shadow: 0 18px 50px rgba(31, 38, 60, .12);
  padding: 34px 38px 26px; position: relative; z-index: 2;
}
.lg2-brand { display: flex; align-items: center; gap: 11px; }
.lg2-logo { display: inline-flex; }
.lg2-logo-tx { font-size: 25px; letter-spacing: .3px; color: #101010; }
.lg2-logo-tx b { font-weight: 800; }
.lg2-slogan2 { margin-top: 3px; font-size: 10.5px; letter-spacing: 2.4px; color: #888; font-weight: 600; }
.lg2-wb { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; color: #494949; font-size: 12.5px; letter-spacing: 3px; font-weight: 700; }
.lg2-wb span { flex: 1; height: 1px; background: #e2e2e2; }
.lg2-lbl { font-size: 12.5px; color: #494949; font-weight: 600; margin: 12px 0 6px; display: flex; align-items: center; gap: 6px; }
.lbl-ic { font-size: 13px; filter: grayscale(.4); }
.lg2-inp {
  width: 100%; border: 1px solid #d9d9d9; border-radius: 9px; padding: 11px 13px; font-size: 14px;
  outline: none; background: #fff; color: #222; transition: border .15s, box-shadow .15s; font-family: inherit;
}
.lg2-inp:focus { border-color: #FF7A35; box-shadow: 0 0 0 3px rgba(255, 122, 53, .16); }
.lg2-opts { display: flex; justify-content: space-between; align-items: center; margin: 13px 0 16px; font-size: 12.5px; }
.lg2-rem { color: #555; display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.lg2-rem input { accent-color: #FF7A35; width: 14px; height: 14px; }
.lg2-forgot { color: #FF7A35; font-weight: 600; cursor: pointer; text-decoration: none; }
.lg2-forgot:hover { text-decoration: underline; }
.lg2-btn {
  width: 100%; border: 0; cursor: pointer; border-radius: 9px; padding: 12px; font-size: 15px; font-weight: 700;
  color: #fff; background: linear-gradient(90deg, #FF7A35, #E65D1B); font-family: inherit;
  box-shadow: 0 8px 18px rgba(230, 93, 27, .28); transition: transform .12s, box-shadow .12s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.lg2-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(230, 93, 27, .34); }
.lg2-btn b { font-weight: 800; font-size: 16px; }
.lg2-foot { margin-top: 20px; text-align: center; font-size: 11px; color: #999; letter-spacing: .6px; }
.lg2-tip { margin-top: 10px; text-align: center; font-size: 11px; color: #b5b5b5; }
@media (max-width: 1120px) {
  .lg2-left, .lg2-right { display: none; }
}

/* ============ TradeKit 工具编辑器 ============ */
.tk-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.tk-quick { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.tk-zh { font-size: 13px; color: var(--sub); font-weight: 600; margin-left: 6px; }
.tk-body { display: flex; flex-direction: column; gap: 14px; max-width: 1240px; }
.tk-sec { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px; box-shadow: var(--shadow); }
.tk-sec-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tk-sec-hd b { font-size: 14px; }
.tk-sec-hd .mb-btn { margin-left: auto; }
.tk-sec-hd .mb-btn.primary { margin-left: 0; }
.tk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px 18px; }
.tk-f.w2 { grid-column: 1 / -1; }
.tk-f-label { font-size: 12.5px; color: #344054; margin-bottom: 5px; font-weight: 500; }
.tk-items { overflow-x: auto; }
.tk-items .mb-table td { padding: 4px 6px; }
.tk-cell { min-width: 100px; padding: 5px 8px; font-size: 12.5px; }
.tk-radios { display: flex; gap: 6px; flex-wrap: wrap; }
.tk-radio { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #d0d5dd; border-radius: 8px; padding: 6px 10px; font-size: 12px; cursor: pointer; }
.tk-radio:has(input:checked) { border-color: var(--brand); background: #eef4ff; color: var(--brand-2); }
.tk-radio input { accent-color: var(--brand); }
.tk-radios.list { flex-direction: column; align-items: stretch; }
.tk-radios.list .tk-radio { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tk-rdesc { color: #98a2b3; font-size: 12px; font-style: normal; line-height: 1.6; }
.tk-triple { display: flex; align-items: center; gap: 4px; }
.tk-f-desc { font-size: 12px; color: #98a2b3; margin-top: 6px; line-height: 1.6; }
.tk-triple .tk-tri { min-width: 0 !important; width: 100%; text-align: center; padding: 6px 4px; }
/* ---------- 货代询价单: 窄版式(截图发微信, 手机一屏刚好) ---------- */
.inq-sheet { max-width: 460px; margin: 0 auto; font-size: 13px; color: #101828; }
.inq-sheet .doc-title { font-size: 20px; letter-spacing: 3px; }
/* 收件人信息: 放在横线上面 —— 线归它, RFQ 不再画线, 整篇仍只有一条线 */
.inq-sub { font-weight: 700; font-size: 12px; margin: 6px 0 8px; padding-bottom: 5px; border-bottom: 1.5px solid #101828; }
.inq-title { letter-spacing: 14px !important; text-indent: 14px; margin: 16px 0 4px !important; padding-bottom: 0; border-bottom: 0; }
.inq-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.inq-grid.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .inq-grid.two { grid-template-columns: 1fr; } }
.inq-l { display: flex; gap: 8px; align-items: baseline; padding: 6px 8px; border-bottom: 1px dashed #e4e7ec; }
.inq-l span { flex: 0 0 auto; min-width: 96px; color: #667085; }
.inq-l b { font-weight: 600; word-break: break-word; overflow-wrap: anywhere; }
.inq-box { border: 1.5px solid #101828; border-radius: 10px; padding: 12px 16px 14px; }
.inq-item { border: 1px solid #d0d5dd; border-radius: 8px; padding: 8px 12px 4px; margin: 8px 0; }
.inq-item-hd { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.inq-item-hd i { font-style: normal; font-weight: 400; font-size: 12px; color: #667085; }
/* 货品: 左边字段, 右边产品图(与字段区等高) */
.inq-item-body { display: flex; gap: 12px; align-items: stretch; }
.inq-item-body .inq-grid { flex: 1 1 auto; min-width: 0; }
.inq-item-pic { flex: 0 0 34%; display: flex; align-items: center; justify-content: center; }
.inq-item-pic img { max-width: 100%; max-height: 100%; border: 1px solid #e4e7ec; border-radius: 6px; object-fit: contain; }
.inq-note { border: 0; padding: 2px 0 0; white-space: pre-wrap; }
.inq-empty { color: #98a2b3; padding: 6px 0; }
.tk-preview { max-width: 1240px; }
.tk-pv-bar { display: flex; gap: 8px; margin: 0 auto 12px; max-width: 980px; align-items: center; }
.pv-spacer { flex: 1; }
.tk-lang { display: inline-flex; background: #f2f4f7; border-radius: 10px; padding: 3px; }
.tk-lang .mb-tab { padding: 4px 10px; font-size: 12px; }
.tk-doc-sheet-wrap { overflow-x: auto; }
.tk-doc-sheet { overflow-x: auto; max-width: 100%; }
/* 超多列表格压缩, 防止溢出纸面 */
.tk-doc-sheet table.tbl { max-width: 100%; }
.tk-doc-sheet table.tbl th, .tk-doc-sheet table.tbl td { word-break: break-word; overflow-wrap: anywhere; }
.tk-doc-sheet table.tbl.wide { font-size: 9.5px; }
.tk-doc-sheet table.tbl.wide th, .tk-doc-sheet table.tbl.wide td { padding: 2px 3px; }
/* A4 比例预览, 与上方工具条同宽(980px)左右对齐 */
.tk-doc-sheet {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 34px rgba(16, 24, 40, .14);
  padding: 36px 48px; margin: 0 auto; max-width: 980px; width: 980px;
  font-family: "Segoe UI", Arial, "Microsoft YaHei", sans-serif; font-size: 13.5px; color: #111;
}
.tk-doc-sheet .doc-title { text-align: center; font-size: 24px; font-weight: 700; letter-spacing: 2px; margin: 4px 0 2px; text-transform: uppercase; }
.tk-doc-sheet .doc-sub { text-align: center; color: #555; font-size: 11px; margin-bottom: 8px; }
.tk-doc-sheet .seller-addr { text-align: center; font-size: 10.5px; line-height: 1.5; margin-bottom: 10px; }
.tk-doc-sheet .section-t { font-weight: 700; margin: 10px 0 4px; font-size: 13px; border-bottom: 1px solid #999; padding-bottom: 2px; }
.tk-doc-sheet .tbl { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 12px; }
.tk-doc-sheet .tbl th, .tk-doc-sheet .tbl td { padding: 8px 9px; line-height: 1.5; }
.tk-doc-sheet .tbl th, .tk-doc-sheet .tbl td { border: 1px solid #222; padding: 4px 6px; vertical-align: top; }
.tk-doc-sheet .tbl.tk-lines th, .tk-doc-sheet .tbl.tk-lines td { text-align: center; vertical-align: middle; }
.tk-doc-sheet .tbl th { background: #f1f3f5; text-align: center; }
.tk-doc-sheet .no-border td { border: none; }
.tk-doc-sheet .marks-box { border: 1.5px solid #111; padding: 8px; min-height: 70px; white-space: pre-line; }
.tk-doc-sheet .sig { display: flex; justify-content: space-between; margin-top: 26px; }
.tk-doc-sheet .sig > div { width: 44%; }
.tk-doc-sheet .line { border-bottom: 1px solid #333; height: 24px; }
.tk-doc-sheet .sig small { color: #555; white-space: pre-line; }
.tk-doc-sheet .carton-label { border: 2px solid #000; padding: 8px 10px; margin: 0 0 12px; break-inside: avoid; font-size: 13px; width: 320px; box-sizing: border-box; }
.tk-history { max-width: 860px; }
.tk-hist-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px; border-bottom: 1px dashed #e7e9ee; }
.tk-hist-item b { display: block; font-size: 13.5px; }
.tk-hist-item span { font-size: 12px; color: var(--sub); }
.tk-hist-item .act { display: flex; gap: 6px; }
.col-chk { display: flex; align-items: center; gap: 8px; padding: 7px 2px; font-size: 13px; cursor: pointer; }

.tk-bottombar { position: static; display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; padding: 14px 2px 2px; border-top: 1px solid var(--line); }
.tk-bottombar .mb-btn { min-height: 38px; padding: 8px 22px; font-size: 14px; }
.tk-page-title { margin: 6px 0 22px; }
.tk-page-title h2 { font-size: 21px; font-weight: 800; color: var(--ink); margin: 0; }
.tk-page-title p { margin: 3px 0 0; font-size: 12px; color: var(--sub); }

.mb-filters .push-right { margin-left: auto; }
.mb-btn svg { display: block; }
.mb-btn:has(svg) { display: inline-flex; align-items: center; gap: 4px; }
.mb-filters { width: 100%; }

/* 收款节点计算(新版对照原站) */
.pt-line { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 18px; }
.pt-f span { display: block; font-size: 12.5px; color: #344054; margin-bottom: 6px; font-weight: 500; }
.pt-radio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.pt-radio { border: 1px solid #d0d5dd; border-radius: 10px; padding: 10px 14px; cursor: pointer; display: flex; gap: 8px; align-items: flex-start; transition: .15s; }
.pt-radio input { margin-top: 3px; accent-color: #f97316; }
.pt-radio span { font-size: 13px; line-height: 1.5; color: #344054; white-space: pre-line; }
.pt-radio.on { border-color: #f97316; background: #fff4ec; box-shadow: 0 0 0 3px rgba(249, 115, 22, .14); }
.pt-msg { margin-top: 12px; font-size: 13px; }
.pt-warn { color: #c0392b; }
.pt-hint { color: #98a2b3; font-size: 13px; padding: 26px 0; text-align: center; line-height: 1.9; }
.pt-sched-tbl { max-width: 720px; }
.pt-total-row td { background: #f8fafc; }

/* 宽屏居中: 主内容限制最大宽度并左右对称留白 */
.pg-wrap { max-width: 1500px; margin-left: auto; margin-right: auto; width: 100%; }
.app-main > .page-hd,
.app-main > .workspace-grid,
.app-main > .so-detail-wrap,
.app-main > .tk-page-title,
.app-main > .tk-top,
.app-main > .tk-body,
.app-main > .tk-preview,
.app-main > .so-tabbar { max-width: 1500px; margin-left: auto; margin-right: auto; width: 100%; }

/* 页面进入动画 */
@keyframes mbPageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
main.r-anim > * { animation: mbPageIn .25s ease-out both; }
@media (prefers-reduced-motion: reduce) { main.r-anim > * { animation: none; } }

/* 已删除客户统一头像 */
.mb-avatar.del-av { background: #e8eaed !important; color: #c0392b !important; font-weight: 800; border: 1px dashed #c7ccd4; }

/* 修正: 单据实体里的头像恢复 flex 居中(不被 .doc-entity span 的 display:block 覆盖) */
.doc-entity .mb-avatar,
.doc-entity > .mb-avatar,
.mb-avatar { display: inline-flex; }

/* 侧栏图标(SVG) */
.nav-ic { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; }
.nav-ic svg { width: 19px; height: 19px; display: block; }
.app-side:not(.open) .nav-item { gap: 0; }
.app-side .nav-item { gap: 10px; }

/* 预览底部合计区域: 标题行与数值单元格居中 */
.tk-doc-sheet .total-line { text-align: center; font-weight: 700; margin: 6px 0 2px; }
.tk-doc-sheet table.tbl.centered th,
.tk-doc-sheet table.tbl.centered td { text-align: center; }

/* 预览参数表: 填写的日期/币种等数值格居中 */
.tk-doc-sheet table.info-tbl td { text-align: center; }

/* 预览表格更高(置于末尾确保覆盖旧规则) */
.tk-doc-sheet table.tbl th,
.tk-doc-sheet table.tbl td { padding: 9px 10px !important; line-height: 1.55; }

/* 可搜索下拉(国家选择) */
.mb-selbox { position: relative; }
.mb-selbox-pop { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px rgba(16,24,40,.14); max-height: 260px; overflow-y: auto; padding: 4px; }
.mb-selbox-item { padding: 7px 10px; font-size: 13px; border-radius: 6px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-selbox-item:hover, .mb-selbox-item.on { background: #eef4ff; color: var(--brand-2); }
.mb-selbox-none { padding: 10px; font-size: 12px; color: var(--sub); text-align: center; }

/* 客户国家列: 两位国家码小字 */
.c-code2 { font-size: 11px; color: var(--sub); font-weight: 700; letter-spacing: .5px; }

/* 客户国家国旗 */
.c-flag { width: 20px; height: 15px; border-radius: 2px; vertical-align: -2px; margin-right: 5px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }

/* 客户级别: 星级(1-5 星, 阿里风格) */
.lv-stars { display: flex; align-items: center; gap: 6px; }
.lv-star { font-size: 24px; line-height: 1; color: #d0d5dd; cursor: pointer; user-select: none; transition: .12s; }
.lv-star.on { color: #f5a623; text-shadow: 0 1px 3px rgba(245,166,35,.25); }
.lv-star:hover { transform: scale(1.15); }
.lv-star-tip { font-style: normal; font-size: 12px; color: var(--sub); margin-left: 4px; }

/* 客户级别: 自定义标签(类 WhatsApp 标签) */
.mb-level-ct { display: flex; flex-direction: column; gap: 8px; }
.lv-opts { display: flex; flex-wrap: wrap; gap: 7px; }
.lv-chip {
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px; cursor: pointer; user-select: none;
  background: #f0f1f4; color: #6b7280; border: 1.5px solid transparent; transition: .15s;
}
.lv-chip.on { background: var(--lv, #e9f2fe); color: var(--ink); border-color: currentColor; font-weight: 600; }
.lv-chip:hover { transform: translateY(-1px); }
.lv-custom .mb-inp { width: 100%; }
.c-level-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }

/* 客户列表: 创建日期/跟踪 分隔图标 */
.cl-sep { margin: 0 6px; color: #98a2b3; font-size: 11px; }

/* 客户管理: 表头与内容全部左对齐 */
.mb-table th { text-align: left; }
.mb-table td { text-align: left; }
.mb-table td.act { text-align: right; }

/* ---------- TradeKit 明细图片 ---------- */
.tk-form-pic { cursor: pointer; text-align: center; vertical-align: middle; }
.tk-form-pic i { font-style: normal; color: #98a2b3; font-size: 18px; }
/* 图片容器与旁边输入框同款外观, 图片在框内等比显示 */
.tk-form-pic .tk-pic-box {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #d0d5dd; border-radius: 8px; background: #fff;
  min-height: 36px; height: 36px; overflow: hidden; transition: border-color .15s;
}
.tk-form-pic .tk-pic-box:hover { border-color: var(--brand); }
.tk-form-pic .tk-pic-box img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
/* 预览/A4: 图片最大 4.4cm x 3.4cm, 四周 0.35cm 边距, 锁定纵横比 */
.tk-doc-sheet .tk-pic { padding: 0.35cm !important; }
.tk-doc-sheet .tk-pic img { display: block; margin: 0 auto; max-width: 4.4cm; max-height: 3.4cm; width: auto; height: auto; object-fit: contain; }

/* 供应商档案 - 图片资料(固定尺寸网格 + 点击放大) */
.ph-block { margin-top: 16px; }
.ph-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ph-hd span { font-size: 12px; color: #667085; font-weight: 500; }
.ph-hd i { font-style: normal; font-size: 11px; color: #98a2b3; }
.ph-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.ph-cell { width: 100%; aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); background: #f8fafc; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.ph-cell img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }
.ph-add { cursor: pointer; color: #98a2b3; font-size: 28px; font-weight: 300; border-style: dashed; }
.ph-add:hover { color: var(--brand); border-color: #c7d2fe; background: #f5f8ff; }
.ph-del { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(10,14,20,.6); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; display: none; align-items: center; justify-content: center; }
.ph-cell:hover .ph-del { display: flex; }
.ph-cell[data-pi] { cursor: grab; touch-action: none; will-change: transform; }
.ph-cell[data-pi]:active { cursor: grabbing; }
.ph-cell.dragging { box-shadow: 0 10px 26px rgba(15,23,42,.28), 0 0 0 2px var(--brand); z-index: 3; }
.ph-cell.dragging img { filter: brightness(1.02); }
/* 出运单里的图片槽(电子存根 / 付款凭证), 与供应商传图一致的样式 */
.doc-pics { display: flex; gap: 10px; flex-wrap: wrap; }
.doc-pics .ph-cell { width: 108px; height: 108px; aspect-ratio: auto; flex: 0 0 auto; }
.doc-pics .ph-add { font-size: 24px; }
.doc-pics-tip { font-weight: 400; font-size: 11.5px; color: #98a2b3; margin-left: 4px; }
.ph-lightbox { position: fixed; inset: 0; background: rgba(8,12,20,.86); display: flex; align-items: center; justify-content: center; z-index: 9999; cursor: zoom-out; }
.ph-lightbox img { max-width: 88vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.55); }

@media (max-width: 900px) { .ph-grid { grid-template-columns: repeat(4, 1fr); } }

/* 供应管理 - 样品标记 */
.sp-yes { color: #1d9e5a; font-weight: 700; font-size: 15px; }
.sp-no { color: #c4c9d1; }

/* 报价详情展示(分类上色 + 金额高亮) */
.qd-wrap { font-size: 13.5px; line-height: 1.95; }
.qd-title { font-size: 16px; font-weight: 800; color: #101828; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 2px solid #101828; }
.qd-hd { font-size: 14px; font-weight: 700; margin: 14px 0 6px; padding: 5px 10px; border-radius: 6px; display: flex; align-items: center; gap: 8px; }
.qd-hd i { width: 4px; height: 15px; border-radius: 2px; display: inline-block; flex: 0 0 auto; }
.qd-note { color: #7b8793; font-size: 12.5px; margin: 2px 0 6px; padding-left: 12px; }
.qd-row { padding: 3px 0 3px 12px; color: #344054; }
.qd-price { background: #fff3bf; color: #b54708; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
/* 报价详情里的表格(用 | 或 Excel 制表符分隔的行) */
.qd-tb { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: 12.5px; }
.qd-tb th, .qd-tb td { border: 1px solid #e4e7ec; padding: 8px 10px; text-align: left; vertical-align: top; line-height: 1.65; }
.qd-tb th { background: #f7f8fa; color: #475467; font-weight: 700; white-space: nowrap; }
.qd-tb td:first-child { font-weight: 600; color: #101828; }
.qd-tb tbody tr:nth-child(even) { background: #fcfcfd; }
.qd-tb td:empty { background: #fafbfc; }
.fac-cell { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 供应商已有报价的小绿点(跟在「报价详情」按钮文字后面, 仍在按钮框内) */
.qdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #1d9e5a; margin-left: 6px; vertical-align: 1px; box-shadow: 0 0 0 2px #e6f6ed; }

/* 云端/本地模式提示条(右下角; 云端一切正常时不显示) */
.mb-mode-chip { position: fixed; right: 14px; bottom: 14px; z-index: 9999; max-width: 62vw;
  padding: 7px 13px; border-radius: 999px; font-size: 12px; line-height: 1.45;
  box-shadow: 0 8px 20px #0000001f; background: #fff7e6; color: #8a5a00; border: 1px solid #f0c36d; }
.mb-mode-chip.err { background: #fff1f0; color: #b42318; border-color: #f3b4ae; }
.mb-mode-chip.ok { background: #ecfdf3; color: #067647; border-color: #a8e0bf; }

/* 登记收款: 支付条款 + 总价/预付款/尾款(参照样式) */
.pay-sec { grid-column: 1 / -1; display: grid; gap: 14px; }
.pay-sec-hd { display: flex; align-items: center; gap: 10px; background: #f4f6fa; border-radius: 8px; padding: 9px 12px; }
.pay-sec-t { flex: 0 0 auto; font-size: 14px; font-weight: 700; color: #101828; }
.pay-sec-note { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; outline: none; font-size: 12.5px; color: #475467; padding: 0; }
.pay-sec-note::placeholder { color: #98a2b3; }
.pay-line { display: flex; align-items: center; gap: 14px; }
.pay-k { flex: 0 0 76px; display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; font-size: 13.5px; color: #101828; }
.pay-star { color: #d92d20; font-style: normal; font-weight: 700; }
.pay-v { font-size: 14px; color: #667085; }
.pay-note { font-size: 12px; color: #98a2b3; margin-left: auto; }
.pay-ctrl { position: relative; flex: 0 0 auto; width: 300px; max-width: 100%; height: 40px; display: flex; align-items: center;
  border: 1px solid #d0d5dd; border-radius: 6px; background: #fff; }
.pay-ctrl:focus-within { border-color: #84adff; box-shadow: 0 0 0 3px #84adff1f; }
.pay-cur { height: 100%; padding: 0 12px; display: flex; align-items: center; font-size: 13px; color: #667085; border-right: 1px solid #e4e7ec; }
.pay-amt { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; padding: 0 12px; font-size: 14px; color: #101828; }
.pay-caret { flex: 0 0 auto; width: 36px; height: 100%; display: flex; align-items: center; justify-content: center;
  border: 0; border-left: 1px solid #e4e7ec; background: transparent; color: #667085; cursor: pointer; padding: 0; }
.pay-caret:hover { background: #f9fafb; }
.pay-remark { display: block; width: 100%; box-sizing: border-box; min-height: 68px; padding: 10px 12px;
  font-size: 14px; line-height: 1.5; color: #101828; font-family: inherit;
  border: 1px solid #d0d5dd; border-radius: 6px; background: #fff; outline: none; resize: vertical; }
.pay-remark:focus { border-color: #84adff; box-shadow: 0 0 0 3px #84adff1f; }
.pay-remark::placeholder { color: #98a2b3; }
.pay-menu { position: absolute; top: calc(100% + 4px); right: 0; min-width: 100%; z-index: 30; display: none;
  background: #fff; border: 1px solid #e4e7ec; border-radius: 8px; box-shadow: 0 12px 28px #1018281f; padding: 4px; }
.pay-menu.on { display: block; }
.pay-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 6px;
  background: transparent; font-size: 13px; color: #344054; cursor: pointer; white-space: nowrap; }
.pay-menu button:hover { background: #f2f4f7; }

/* 室内设计·项目统计: 合计行 */
.interior-table tr.sum-row td { background: #f7f9fc; border-top: 2px solid var(--line); font-weight: 700; }
.interior-table tr.sum-row:hover td { background: #f7f9fc; }

/* 室内设计·项目统计: 选择勾选框 + 状态下拉 */
.interior-table td.ct { text-align: center; }
.int-ck { width: 19px; height: 19px; border-radius: 4px; border: 1.5px solid #c4c9d4; background: #fff; cursor: pointer;
  padding: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; line-height: 1;
  transition: .12s; vertical-align: middle; }
.int-ck:hover { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.int-ck.on { background: var(--brand); border-color: var(--brand); }
.int-ck.on::after { content: "✓"; }
.interior-table select.int-st { width: 100%; min-width: 92px; padding: 4px 7px; font-size: 12.5px; border-radius: 7px; }
.interior-table select.int-st.st-done { color: #106b3e; border-color: #b7e2cb; background: #f4fbf7; font-weight: 600; }
.interior-table select.int-st.st-wait { color: #9a5700; border-color: #f0d8b4; background: #fffaf2; font-weight: 600; }
.interior-table select.int-st.st-none { color: #667085; }

/* 状态: 只展示新增项目时录入的状态(表格里不给改) */
.int-st-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid #e4e7ec; color: #667085; background: #f4f5f7; white-space: nowrap; }
.int-st-badge.st-done { color: #106b3e; border-color: #b7e2cb; background: #f0fbf5; }
.int-st-badge.st-wait { color: #9a5700; border-color: #f0d8b4; background: #fff8ee; }

/* 项目名称列: 备注不超出本列宽度, 超出省略; 鼠标悬停用 title 看完整内容 */
.interior-table { table-layout: fixed; }
.interior-table td.int-name { overflow: hidden; }
.interior-table td.int-name .nm { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.interior-table td.int-name .int-note { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sub); font-size: 12px; font-weight: 400; margin-top: 2px; }
/* 隐藏费用(眼睛) */
.int-mask { color: #98a2b3; letter-spacing: 1px; }
/* 隐藏金额(眼睛): 利润管理等 */
.mask-amt { color: #98a2b3; letter-spacing: 1px; }
/* 室内设计页头: 批量改状态下拉(和旁边的按钮一样高) */
.mb-int-sel { min-height: 40px; padding: 0 30px 0 14px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; color: var(--ink);
  font-size: 14px; font-family: inherit; cursor: pointer; appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23667085" stroke-width="2.2" stroke-linecap="round"><path d="m6 9 6 6 6-6"/></svg>');
  background-repeat: no-repeat; background-position: right 10px center; }
.mb-int-sel:hover { border-color: #b9c0cc; }
.mb-int-sel:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
/* 拖拽刷选勾选框时不要选中文字 */
body.int-dragging { user-select: none; -webkit-user-select: none; }
body.int-dragging .int-ck { cursor: crosshair; }
.interior-table td.int-pick { cursor: pointer; }

/* ---------- 供应商二维码弹窗 ---------- */
.qr-modal { width: 720px; max-width: 96vw; }
.qr-modal .mb-modal-bd { max-height: 72vh; overflow: auto; }
.qr-tip { font-size: 12.5px; color: #667085; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; margin-bottom: 12px; line-height: 1.65; }
.qr-pwdbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.qr-pwdbar > span { font-size: 13px; color: var(--sub); }
.qr-pwdbar .qr-pwdinp { width: 130px; }
.qr-pwdbar i { font-style: normal; }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.qr-grid.one { grid-template-columns: 1fr; justify-items: center; }
.qr-cell { border: 1px solid var(--line); border-radius: 10px; padding: 10px 8px; text-align: center; background: #fff; }
.qr-grid.one .qr-cell { width: 320px; }
.qr-cell img { width: 100%; max-width: 150px; height: auto; image-rendering: pixelated; }
.qr-grid.one .qr-cell img { max-width: 300px; }
.qr-cell b { display: block; font-size: 12.5px; margin-top: 6px; word-break: break-all; }
.qr-cell span { display: block; font-size: 11.5px; color: var(--sub); margin-top: 2px; }
.qr-linkbar { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.qr-linkbar .mb-inp { flex: 1; font-size: 12.5px; }
.qr-linkbar a.mb-btn { display: inline-flex; align-items: center; text-decoration: none; }

/* 室内设计: 单独一块, 位于「登录企业」上方(不属于主菜单) */
.side-extra { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 6px; flex: 0 0 auto; }
.side-extra.on { background: #eef4ff; }

/* ---------- 表单里的图片字段(产品图片/目录用) ---------- */
.mb-picfield { display: flex; align-items: center; gap: 10px; }
.mb-picbox { width: 64px; height: 64px; border: 1px dashed #d0d5dd; border-radius: 8px; background: #fafbfc;
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 64px; }
.mb-picbox img { width: 100%; height: 100%; object-fit: cover; }
.mb-picbox span { font-size: 11px; color: #98a2b3; }
.mb-picbtns { display: flex; flex-direction: column; gap: 6px; }

/* ---------- 产品目录编辑器 ---------- */
.cat-editor { position: fixed; inset: 0; z-index: 380; background: #eef0f4; display: flex; flex-direction: column; }
.cat-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cat-top-t { font-size: 15px; }
.cat-top-s { font-size: 12.5px; color: var(--sub); }
.cat-top-sp { flex: 1 1 auto; }
.cat-lab { font-size: 12px; color: var(--sub); }
.cat-sel { width: 82px; }
.cat-ck { font-size: 12.5px; color: #344054; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.cat-themes { display: inline-flex; gap: 6px; }
.cat-theme { display: inline-flex; border: 1px solid #d0d5dd; border-radius: 7px; padding: 0; overflow: hidden; cursor: pointer; background: #fff; }
.cat-theme i { width: 12px; height: 20px; display: block; }
.cat-theme.on { border-color: var(--brand); box-shadow: 0 0 0 2px #2563eb1f; }
.cat-body { flex: 1 1 auto; display: flex; min-height: 0; }
.cat-side { width: 330px; flex: 0 0 330px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow: auto; padding: 12px; gap: 8px; }
.cat-sec { font-size: 12px; color: var(--sub); font-weight: 600; margin: 6px 0 2px; display: flex; justify-content: space-between; }
.cat-inp { font-size: 12.5px; padding: 6px 9px; }
textarea.cat-inp { resize: vertical; line-height: 1.5; }
.cat-tools { display: flex; gap: 6px; }
.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-grp { display: flex; justify-content: space-between; font-size: 11.5px; color: #667085; background: #f8fafc; border-radius: 6px; padding: 4px 8px; margin-top: 6px; }
.cat-grp i { font-style: normal; color: #98a2b3; }
.cat-row { display: flex; align-items: center; gap: 7px; padding: 4px 6px; border-radius: 7px; cursor: pointer; }
.cat-row:hover { background: #f6f8fb; }
.cat-row.on { background: #f1f6ff; }
.cat-th { width: 30px; height: 30px; border-radius: 6px; background: #f2f4f7; overflow: hidden; display: flex; align-items: center; justify-content: center; flex: 0 0 30px; }
.cat-th img { width: 100%; height: 100%; object-fit: cover; }
.cat-th i { font-style: normal; font-size: 12px; color: #98a2b3; }
.cat-nm { flex: 1 1 auto; min-width: 0; font-size: 12.5px; display: flex; flex-direction: column; }
.cat-nm em { font-style: normal; font-size: 11px; color: #98a2b3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-stk { background: #fff4e5; color: #9a5700; border-radius: 99px; padding: 0 5px; font-size: 10px; font-weight: 600; }
.cat-ord { display: flex; flex-direction: column; gap: 1px; }
.cat-mv { border: 0; background: #f2f4f7; color: #667085; font-size: 8px; line-height: 1; padding: 3px 4px; border-radius: 4px; cursor: pointer; }
.cat-mv:hover { background: #e4e7ec; }
.cat-empty { color: #98a2b3; font-size: 12.5px; padding: 12px 0; text-align: center; }
.cat-prev { flex: 1 1 auto; overflow: auto; padding: 16px; }
.cat-prev-in { transform-origin: top left; box-shadow: 0 6px 22px rgba(16,24,40,.16); background: #fff; }
.cat-prev-in .cat-page { margin-bottom: 10px; }

/* ---------- 产品目录: 手动排版 / 页面列表 / 挑产品 ---------- */
.cat-side .cat-sec i.cat-tip { font-style: normal; font-weight: 400; color: #98a2b3; font-size: 11px; }
.cat-tip { font-style: normal; font-weight: 400; color: #98a2b3; font-size: 11px; }
.cat-modes { display: flex; gap: 6px; }
.cat-pages { display: flex; flex-direction: column; gap: 8px; }
.cat-pnote { font-size: 11.5px; color: #667085; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; line-height: 1.7; }
.cat-prow { border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.cat-phd { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--sub); }
.cat-pbtn { display: inline-flex; gap: 4px; }
.cat-pbtn button { border: 1px solid #e4e7ec; background: #fff; color: #667085; font-size: 9px; line-height: 1; padding: 3px 5px; border-radius: 5px; cursor: pointer; }
.cat-pbtn button:hover { background: #f2f4f7; }
.cat-pchips { display: flex; flex-wrap: wrap; gap: 4px; }
.cat-pchip { background: #f1f6ff; color: #1d4ed8; border-radius: 99px; padding: 2px 4px 2px 8px; font-size: 11px; display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
.cat-pchip b { cursor: pointer; color: #7c93c4; font-weight: 400; padding: 0 2px; }
.cat-pchip b:hover { color: #d64545; }
.cat-pempty { font-size: 11.5px; color: #98a2b3; }
.cat-pact { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cat-addpage { align-self: flex-start; }
.cat-picklist { max-height: 46vh; overflow: auto; margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.cat-pick { display: flex; align-items: center; gap: 8px; padding: 5px 7px; border-radius: 7px; cursor: pointer; }
.cat-pick:hover { background: #f6f8fb; }
.cat-pick.on { background: #f1f6ff; }
.cat-slout { max-height: 42vh; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.cat-sl { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; display: flex; gap: 10px; align-items: baseline; }
.cat-sl b { flex: 0 0 40%; font-size: 12.5px; }
.cat-sl span { font-size: 11.5px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-doc .cat-blank { border: 1px dashed var(--soft); border-radius: 3mm; padding: 12mm; text-align: center; color: var(--sub); font-size: 9pt; }
.cat-prev { display: flex; justify-content: center; }
.cat-prev-in { margin: 0 auto; }
