/* ══════════════════════════════════════════════════════════════════════════
   墨影皮肤 · ink.css（2026-11-27）
   ──────────────────────────────────────────────────────────────────────────
   这一层**只负责皮肤**，不含任何业务样式、不改任何 DOM 结构。
   加载顺序：style.css → ink.css（后者赢，靠同权重 + 后加载）。

   🔴 作用域铁律：所有规则必须以 `html[data-ui="ink"]` 开头。
      目的：`data-ui` 是独立于 `data-skin` 的第二根轴 ——
        · data-skin  深/浅  = 原有主题，一条不改
        · data-ui    ink    = 本次重设计，可单独开合
      这样 `?ui=classic` 或点顶栏「旧界面」即刻回到改动前，**不需要回滚文件**。

   🔴 变量改名铁律：style.css 里那 900 多个变量是按色号命名的（--bg-4a6cf7），
      不可能逐个重命名。所以这里**只重映射真正被用到的十几个**（下方 A 段），
      剩下的原样透传。新组件一律用 --k-* 前缀，与旧变量彻底分开，
      以后要摘掉旧变量时一眼能找到边界。
   ══════════════════════════════════════════════════════════════════════════ */

/* ───────────────────────────── A. 令牌 ───────────────────────────── */
html[data-ui="ink"] {
  color-scheme: dark;

  /* 新组件专用 */
  --k-bg: #0A0E14;
  --k-panel: #111823;
  --k-panel-2: #151E2A;
  --k-panel-3: #1A2432;
  --k-line: rgba(255,255,255,.075);
  --k-line-2: rgba(255,255,255,.14);
  --k-ink: #E8ECF4;
  --k-ink-2: #98A5BA;
  --k-ink-3: #7A879C;          /* 对比度 4.9:1，11px 小字也过 WCAG AA */
  --k-accent: #5B8CFF;
  --k-accent-2: #7DA6FF;
  --k-accent-soft: rgba(91,140,255,.13);
  --k-ok: #3DD68C;
  --k-warn: #FFB020;
  --k-bad: #FF6B81;
  --k-r: 12px;
  --k-r-sm: 6px;
  --k-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  /* 旧变量：面 */
  --bg-ffffff: #111823;          /* 卡片/侧栏/顶栏 = 面板色 */
  --bg-f7f8fc: #0F1620;          /* 表头、次级面 */
  --bg-f5f7fa: #0F1620;
  --bg-f4f6fb: #0A0E14;          /* 页面底 */
  --bg-fafbff: rgba(255,255,255,.028);  /* 行悬停 */
  --bg-f1f5f9: #151E2A;
  --bg-eef1f6: #151E2A;
  --bg-eef0f4: #1A2432;
  --bg-f0f2f6: #1A2432;
  --bg-f0f4ff: rgba(91,140,255,.10);    /* 菜单悬停 */
  --bg-eaf0ff: rgba(91,140,255,.13);
  --bg-e4ebff: rgba(91,140,255,.16);

  /* 旧变量：字 */
  --ink-1f2d3d: #E8ECF4;
  --ink-0f172a: #E8ECF4;
  --ink-111827: #E8ECF4;
  --ink-5a6b8c: #98A5BA;
  --ink-6b7280: #98A5BA;
  --ink-6b7a95: #98A5BA;
  --ink-8a95a6: #7A879C;
  --ink-94a3b8: #7A879C;
  --ink-9ca3af: #7A879C;
  --ink-64748b: #7A879C;
  --ink-4b5563: #98A5BA;
  --ink-a8b2c2: #7A879C;
  --ink-aaaaaa: #7A879C;
  --ink-999999: #7A879C;
  --ink-888888: #7A879C;

  /* 旧变量：线 */
  --line-e7eaf0: rgba(255,255,255,.075);
  --line-eef1f6: rgba(255,255,255,.06);
  --line-eef2f7: rgba(255,255,255,.06);
  --line-dfe3ea: rgba(255,255,255,.14);
  --line-e2e6ee: rgba(255,255,255,.12);
  --line-e5e7eb: rgba(255,255,255,.12);

  /* 旧变量：主色（只有一个蓝，动作/链接共用） */
  --bg-4a6cf7: #5B8CFF;
  --bg-3b5bd9: #7DA6FF;
  --ink-4a6cf7: #7DA6FF;
  --line-4a6cf7: rgba(91,140,255,.55);
}


/* ══════════ 0. 回退保险（不在 data-ui 作用域内）══════════════
   app.js 现在同时输出 <svg class="mi-ico"> 和 <span class="mi-emoji">。
   默认只留 emoji —— 与改版前完全一致；只有 html[data-ui="ink"] 才换成矢量图标。
   🔴 没有这两条，旧界面下 svg 无宽高会撑成 300×150 的黑块（2026-11-27 实测踩到）。 */
.menu-item .mi-ico { display: none; }
.brand-mark { display: none; }

/* ══════════ 0b. 行内「⋯ 更多」菜单（2026-11-27，门店表重排引入）══════════════
   这一组**不带作用域**：它是**功能**不是皮肤（旧界面下同样要点得开），
   所以基础样式按浅色写一份，墨影再用 data-ui 覆盖成深色。
   🔴 菜单节点直接渲染在行内（.row-more-menu），JS 只切 .open：
      动作按钮的 data-act 从渲染那一刻就在 DOM 里，仍走全局那一个委托，与平铺按钮完全同源。 */
.row-more { position: relative; display: inline-block; margin-left: 4px; }
.row-more-btn { min-width: 28px; min-height: 24px; padding: 3px 8px !important; line-height: 1; letter-spacing: .5px; font-weight: 700; }
.row-more-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 5px); z-index: 90;
  min-width: 148px; padding: 4px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 8px; text-align: left; white-space: normal;
  box-shadow: 0 12px 28px rgba(15,23,42,.16), 0 2px 6px rgba(15,23,42,.08);
}
.row-more-menu.up { top: auto; bottom: calc(100% + 5px); }
.row-more.open .row-more-menu { display: block; }
.row-more-menu button {
  display: flex; align-items: center; gap: 7px; width: 100%; padding: 6px 9px;
  border: 0; background: none; border-radius: 5px; cursor: pointer;
  font: inherit; font-size: 12.5px; color: #3b4757; text-align: left; white-space: nowrap;
}
.row-more-menu button:hover { background: #f1f5f9; }
.row-more-menu button.danger { color: #e11d48; }
.row-more-menu button.danger:hover { background: #fff1f3; }
/* 🔴 打开时整个单元格要抬到兄弟行之上：操作列是 position:sticky + z-index:2 的层叠上下文，
   同列下面几行的 td 也是 2 且更靠后 ⇒ 不抬就是「菜单被下一行盖住」。 */
.table td.col-sticky-r.ops-open { z-index: 40; }

html[data-ui="ink"] .row-more-btn { color: var(--k-ink-2); }
html[data-ui="ink"] .row-more-menu {
  background: var(--k-panel-2); border-color: var(--k-line-2);
  box-shadow: 0 16px 34px rgba(0,0,0,.62);
}
html[data-ui="ink"] .row-more-menu button { color: var(--k-ink-2); }
html[data-ui="ink"] .row-more-menu button:hover { background: rgba(255,255,255,.07); color: var(--k-ink); }
html[data-ui="ink"] .row-more-menu button.danger { color: #FF9AA9; }
html[data-ui="ink"] .row-more-menu button.danger:hover { background: rgba(255,107,129,.14); color: #FFC0C9; }

/* ───────────────────────────── B. 骨架 ───────────────────────────── */
html[data-ui="ink"] body {
  background: var(--k-bg);
  color: var(--k-ink);
  font-size: 13.5px;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
html[data-ui="ink"] ::selection { background: rgba(91,140,255,.32); }
html[data-ui="ink"] :focus-visible { outline: 2px solid var(--k-accent); outline-offset: 2px; border-radius: 4px; }

html[data-ui="ink"] ::-webkit-scrollbar { width: 9px; height: 9px; }
html[data-ui="ink"] ::-webkit-scrollbar-thumb { background: #222C39; border-radius: 5px; border: 2px solid var(--k-bg); }
html[data-ui="ink"] ::-webkit-scrollbar-thumb:hover { background: #2E3A4A; }
html[data-ui="ink"] ::-webkit-scrollbar-track { background: transparent; }

/* ───────────────────────────── C. 侧栏 ───────────────────────────── */
html[data-ui="ink"] .sidebar {
  width: 232px; flex: 0 0 232px;
  background: linear-gradient(180deg,#0C1119 0%,#080B11 100%);
  border-right: 1px solid var(--k-line);
}
html[data-ui="ink"] .brand {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 16px; border-bottom: 1px solid var(--k-line);
}
html[data-ui="ink"] .brand-mark {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(145deg,#3E6BE0,#8AA8FF);
  color: #fff; font-family: "Songti SC","Noto Serif SC",Georgia,serif;
  font-size: 17px; font-weight: 700; line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
html[data-ui="ink"] .brand-txt { min-width: 0; }
html[data-ui="ink"] .brand-name {
  font-size: 13.5px; font-weight: 600; letter-spacing: .6px;
  color: var(--k-ink); line-height: 1.3;
}
html[data-ui="ink"] .brand-sub {
  font-size: 9.5px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--k-ink-3); line-height: 1.3;
}

html[data-ui="ink"] .menu { padding: 10px 8px 16px; }
html[data-ui="ink"] .menu-item {
  position: relative;
  padding: 7px 9px; margin: 1px 0; border-radius: var(--k-r-sm);
  font-size: 12.5px; color: var(--k-ink-2);
  transition: background 160ms cubic-bezier(.4,0,.2,1), color 160ms;
}
html[data-ui="ink"] .menu-item:hover { background: rgba(255,255,255,.045); color: var(--k-ink); }
html[data-ui="ink"] .menu-item.active {
  background: linear-gradient(90deg,var(--k-accent-soft),rgba(91,140,255,.02));
  color: #fff; font-weight: 500;
}
html[data-ui="ink"] .menu-item.active::before {
  content: ""; position: absolute; left: -8px; top: 6px; bottom: 6px;
  width: 2px; border-radius: 2px; background: var(--k-accent);
  box-shadow: 0 0 10px rgba(91,140,255,.75);
}
html[data-ui="ink"] .menu-item .mi-emoji { display: none; }
/* 🔴 display 必须在这里**显式写回来**。上面第 0 段那条 `.menu-item .mi-ico{display:none}`
   是故意不带作用域的回退保险（旧界面下藏 svg）；它作用在同一个元素上，只要这条规则
   不重新声明 display，`display:none` 就一路赢到底 —— 表现是「新界面侧栏只剩文字、图标全没」
   （2026-11-27 线上实测踩到）。后面所有覆盖 display 的地方都按这个规则办。 */
html[data-ui="ink"] .menu-item .mi-ico {
  display: block;
  width: 15px; height: 15px; flex: none; margin-right: 8px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; opacity: .72;
}
html[data-ui="ink"] .menu-item.active .mi-ico { opacity: 1; color: var(--k-accent-2); }
html[data-ui="ink"] .menu-item .mi-txt { display: flex; align-items: center; }
html[data-ui="ink"] .menu-item .mi-fold { color: var(--k-ink-3); }
html[data-ui="ink"] .menu-item .mi-fold:hover { background: rgba(255,255,255,.08); color: var(--k-accent-2); }
html[data-ui="ink"] .menu-item.active .mi-fold { color: rgba(255,255,255,.55); }
html[data-ui="ink"] .menu-item.active .mi-fold:hover { background: rgba(255,255,255,.14); color: #fff; }

html[data-ui="ink"] .menu-sub { margin: 1px 0 5px 21px; padding-left: 9px; border-left: 1px solid var(--k-line); }
html[data-ui="ink"] .menu-sub-item {
  padding: 4px 8px; border-radius: 5px; font-size: 11.5px;
  color: var(--k-ink-3);
}
html[data-ui="ink"] .menu-sub-item:hover { background: rgba(255,255,255,.04); color: var(--k-ink-2); }
html[data-ui="ink"] .menu-sub-item.on { background: rgba(91,140,255,.09); color: var(--k-accent-2); font-weight: 500; }

html[data-ui="ink"] .side-foot { padding: 10px 12px 12px; border-top: 1px solid var(--k-line); }
html[data-ui="ink"] .side-foot .who {
  font-size: 11.5px; color: var(--k-ink-2); text-align: left;
  margin-bottom: 9px; padding-left: 2px;
}
html[data-ui="ink"] .side-foot .btn { background: transparent; border-color: var(--k-line); }
html[data-ui="ink"] .side-foot .btn:hover { background: rgba(255,255,255,.05); color: var(--k-ink); border-color: var(--k-line-2); }

/* ───────────────────────────── D. 顶栏 ───────────────────────────── */
html[data-ui="ink"] .topbar {
  height: 58px; padding: 0 20px;
  background: rgba(10,14,20,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--k-line);
}
html[data-ui="ink"] .t-title { font-size: 14.5px; font-weight: 600; letter-spacing: .3px; color: var(--k-ink); }
html[data-ui="ink"] .t-link { color: var(--k-accent-2); font-size: 12px; }
html[data-ui="ink"] .t-link.sep { color: var(--k-line-2); }
html[data-ui="ink"] .t-user { color: var(--k-ink-3); font-size: 12px; }
html[data-ui="ink"] .sk-btn,
html[data-ui="ink"] #uiBtn {
  background: var(--k-panel); border: 1px solid var(--k-line);
  color: var(--k-ink-2); font-size: 11.5px; padding: 4px 9px;
  border-radius: var(--k-r-sm); cursor: pointer; transition: all 160ms;
}
html[data-ui="ink"] .sk-btn:hover,
html[data-ui="ink"] #uiBtn:hover { color: var(--k-ink); border-color: var(--k-line-2); }
html[data-ui="ink"] #uiBtn.on {
  color: var(--k-accent-2); border-color: rgba(91,140,255,.32); background: var(--k-accent-soft);
}
html[data-skin="light"] #uiBtn { display: none; }   /* 浅色皮肤下不提供新界面开关 */

html[data-ui="ink"] .content { padding: 18px 20px 40px; }

/* ─────────────────────── E. 面板 / 卡片 ─────────────────────── */
html[data-ui="ink"] .card {
  background: var(--k-panel);
  border: 1px solid var(--k-line);
  border-radius: var(--k-r);
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: none;
}
html[data-ui="ink"] .card-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;   /* 财务/设置页会把一整段口径说明塞进 .card-title，不换行就冲出卡片右边界 */
  font-size: 12.5px; font-weight: 600; letter-spacing: .3px;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--k-line);
}
html[data-ui="ink"] .card-title .sub-tip { margin: 0; font-weight: 400; }
html[data-ui="ink"] .sub-tip { font-size: 11.5px; color: var(--k-ink-3); line-height: 1.7; }
html[data-ui="ink"] .text-muted { color: var(--k-ink-3); }

html[data-ui="ink"] .cell {
  background: linear-gradient(180deg,var(--k-panel-2),var(--k-panel));
  border: 1px solid var(--k-line);
  border-radius: var(--k-r);
  padding: 14px 16px;
  box-shadow: none;
}
html[data-ui="ink"] .cell .cn {
  font-family: var(--k-mono); font-size: 24px; font-weight: 600;
  letter-spacing: -.6px; color: var(--k-ink);
}
html[data-ui="ink"] .cell .cl { font-size: 11.5px; color: var(--k-ink-2); margin-top: 4px; }
html[data-ui="ink"] .cell.primary .cn { color: var(--k-accent-2); }
html[data-ui="ink"] .cell.warn .cn { color: var(--k-warn); }
html[data-ui="ink"] .cell.danger .cn { color: var(--k-bad); }

/* ───────────────────────────── F. 表格 ───────────────────────────── */
html[data-ui="ink"] .table { font-size: 12.5px; }
html[data-ui="ink"] .table th {
  background: #0F1620;
  color: var(--k-ink-3);
  font-size: 10.5px; font-weight: 500; letter-spacing: .8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--k-line-2);
  box-shadow: none;
}
html[data-ui="ink"] .table td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255,255,255,.045);
  color: var(--k-ink);
}
html[data-ui="ink"] .table tbody tr:hover td { background: rgba(255,255,255,.028); }
html[data-ui="ink"] .table tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--k-accent); }
html[data-ui="ink"] .table td .btn { padding: 3px 8px; font-size: 11.5px; }
/* 标签是短词，永远不该被挤成一字一行（门店表「合作类型」列实测会竖排） */
html[data-ui="ink"] .table td .tag,
html[data-ui="ink"] .table td .st-tag { white-space: nowrap; }
html[data-ui="ink"] .table td.col-sticky-r { background: var(--k-panel); box-shadow: inset 1px 0 0 var(--k-line); }
html[data-ui="ink"] .table th.col-sticky-r { background: #0F1620; box-shadow: inset 1px 0 0 var(--k-line); }
html[data-ui="ink"] .table tr:hover td.col-sticky-r { background: #151E2A; }

/* ── 门店表（9 列，2026-11-27 重排）─────────────────────────────────────
   重排的目的是让「最小内容宽度」小于可用宽度：只要窄列全部 nowrap、宽列给 min-width，
   auto 布局就不会再把门店名压成一字一行。 */
html[data-ui="ink"] #st_tbl th,
html[data-ui="ink"] #st_tbl td { white-space: nowrap; }
html[data-ui="ink"] #st_tbl td.c-name { white-space: normal; min-width: 172px; }
html[data-ui="ink"] #st_tbl td.c-name b { font-size: 13px; font-weight: 600; }
html[data-ui="ink"] #st_tbl td.c-name .tag { font-size: 10px; padding: 0 5px; }
html[data-ui="ink"] #st_tbl td.c-id,
html[data-ui="ink"] #st_tbl td.c-num { font-family: var(--k-mono); font-size: 11.5px; color: var(--k-ink-2); }
html[data-ui="ink"] #st_tbl td.c-id { color: var(--k-ink-3); }
html[data-ui="ink"] #st_tbl .closed-sep td { white-space: normal; }

/* ───────────────────────────── G. 按钮 ───────────────────────────── */
html[data-ui="ink"] .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--k-r-sm);
  padding: 7px 12px; font-size: 12.5px; font-weight: 500; line-height: 1.4;
  border: 1px solid var(--k-line-2);
  background: var(--k-panel-2); color: var(--k-ink);
  transition: background 160ms, border-color 160ms, color 160ms;
}
html[data-ui="ink"] .btn:hover { background: var(--k-panel-3); border-color: rgba(255,255,255,.2); }
html[data-ui="ink"] .btn-primary {
  background: var(--k-accent); border-color: var(--k-accent); color: #fff;
}
html[data-ui="ink"] .btn-primary:hover { background: var(--k-accent-2); border-color: var(--k-accent-2); }
html[data-ui="ink"] .btn-ghost { background: transparent; color: var(--k-ink-2); border-color: var(--k-line-2); }
html[data-ui="ink"] .btn-ghost:hover { background: rgba(255,255,255,.05); color: var(--k-ink); border-color: rgba(255,255,255,.22); }
html[data-ui="ink"] .btn-danger { background: var(--k-bad); border-color: var(--k-bad); color: #2A0A10; }
html[data-ui="ink"] .btn-danger:hover { background: #FF8B9C; border-color: #FF8B9C; }
html[data-ui="ink"] .btn-danger-ghost {
  background: rgba(255,107,129,.10); border-color: rgba(255,107,129,.34); color: #FF9AA9;
}
html[data-ui="ink"] .btn-danger-ghost:hover { background: rgba(255,107,129,.18); color: #FFC0C9; }
html[data-ui="ink"] .btn-sm { padding: 4px 9px; font-size: 11.5px; border-radius: 5px; }
html[data-ui="ink"] .btn:disabled { opacity: .45; }
html[data-ui="ink"] .btn-ai {
  background: linear-gradient(135deg, var(--bg-9b6bff), var(--bg-6a5cf7));
  border-color: transparent; color: #fff;
}

/* ───────────────────────────── H. 表单 ───────────────────────────── */
html[data-ui="ink"] .form-item label { font-size: 11px; color: var(--k-ink-3); margin-bottom: 5px; letter-spacing: .2px; }
html[data-ui="ink"] .form-item input,
html[data-ui="ink"] .form-item select,
html[data-ui="ink"] .form-item textarea,
html[data-ui="ink"] .cell-input,
html[data-ui="ink"] .content input[type="text"],
html[data-ui="ink"] .content input[type="number"],
html[data-ui="ink"] .content input[type="date"],
html[data-ui="ink"] .content input[type="month"],
html[data-ui="ink"] .content input[type="password"],
html[data-ui="ink"] .content input:not([type]),
html[data-ui="ink"] .content select,
html[data-ui="ink"] .content textarea {
  background: var(--k-panel-2);
  border: 1px solid var(--k-line-2);
  border-radius: var(--k-r-sm);
  color: var(--k-ink);
  font-size: 12.5px;
  padding: 7px 10px;
  transition: border-color 160ms, box-shadow 160ms;
}
html[data-ui="ink"] .form-item input:focus,
html[data-ui="ink"] .form-item select:focus,
html[data-ui="ink"] .form-item textarea:focus,
html[data-ui="ink"] .content input:focus,
html[data-ui="ink"] .content select:focus,
html[data-ui="ink"] .content textarea:focus {
  outline: none; border-color: var(--k-accent);
  box-shadow: 0 0 0 3px rgba(91,140,255,.16);
}
html[data-ui="ink"] select option { background: #151E2A; color: var(--k-ink); }
/* 原生勾选框/单选框跟随主色（人事绩效「分配权」这类列里有大量裸 checkbox） */
html[data-ui="ink"] input[type="checkbox"],
html[data-ui="ink"] input[type="radio"] { accent-color: var(--k-accent); }
html[data-ui="ink"] input[type="checkbox"]:focus-visible,
html[data-ui="ink"] input[type="radio"]:focus-visible { outline: 2px solid var(--k-accent); outline-offset: 2px; }
html[data-ui="ink"] .toolbar { gap: 8px; margin-bottom: 12px; }
html[data-ui="ink"] .form-row { gap: 10px; margin-bottom: 10px; }

/* ───────────────────────────── I. 标签 ───────────────────────────── */
html[data-ui="ink"] .tag {
  display: inline-block; padding: 1px 7px; border-radius: 4px;
  font-size: 10.5px; letter-spacing: .2px; line-height: 1.65;
  box-shadow: none;
}
html[data-ui="ink"] .tag.blue   { background: rgba(91,140,255,.13);  color: #8FB2FF; box-shadow: inset 0 0 0 1px rgba(91,140,255,.26); }
html[data-ui="ink"] .tag.green  { background: rgba(61,214,140,.12);  color: var(--k-ok);   box-shadow: inset 0 0 0 1px rgba(61,214,140,.22); }
html[data-ui="ink"] .tag.orange { background: rgba(255,176,32,.12);  color: var(--k-warn); box-shadow: inset 0 0 0 1px rgba(255,176,32,.24); }
html[data-ui="ink"] .tag.red    { background: rgba(255,107,129,.11); color: #FF9AA9;      box-shadow: inset 0 0 0 1px rgba(255,107,129,.26); }
html[data-ui="ink"] .tag.gray   { background: var(--k-panel-3);      color: var(--k-ink-2);box-shadow: inset 0 0 0 1px var(--k-line); }
html[data-ui="ink"] .tag.purple { background: rgba(155,107,255,.12); color: #B79BFF;      box-shadow: inset 0 0 0 1px rgba(155,107,255,.26); }
html[data-ui="ink"] .tag.cyan   { background: rgba(42,213,198,.11);  color: #5EDCD1;      box-shadow: inset 0 0 0 1px rgba(42,213,198,.24); }

/* 门店健康胶囊（.st-tag / .st-risk） */
html[data-ui="ink"] .st-tag,
html[data-ui="ink"] .st-risk { border-radius: 4px; font-size: 10.5px; padding: 1px 8px; }
html[data-ui="ink"] .st-tag.st-ok,
html[data-ui="ink"] .st-risk.ok { background: rgba(61,214,140,.12); color: var(--k-ok); }
html[data-ui="ink"] .st-tag.st-warn,
html[data-ui="ink"] .st-risk.warn { background: rgba(255,176,32,.12); color: var(--k-warn); }
html[data-ui="ink"] .st-tag.st-bad,
html[data-ui="ink"] .st-risk.bad { background: rgba(255,107,129,.11); color: #FF9AA9; }
html[data-ui="ink"] .st-tag.st-muted { background: var(--k-panel-3); color: var(--k-ink-2); }
html[data-ui="ink"] .st-chip { background: var(--k-panel-3); color: var(--k-ink-3); }
html[data-ui="ink"] .st-chip.on { background: var(--k-accent-soft); color: var(--k-accent-2); }
html[data-ui="ink"] .st-num { color: var(--k-accent-2); font-family: var(--k-mono); font-weight: 700; }
html[data-ui="ink"] .st-meta { color: var(--k-ink-3); }

/* ─────────────────────── J. 统计条 / 进度 ─────────────────────── */
html[data-ui="ink"] .stat-chip {
  background: var(--k-panel); border: 1px solid var(--k-line);
  border-radius: 8px; padding: 9px 14px; box-shadow: none;
}
html[data-ui="ink"] .stat-chip .k { font-size: 11px; color: var(--k-ink-3); }
html[data-ui="ink"] .stat-chip .v { font-size: 17px; font-weight: 600; font-family: var(--k-mono); letter-spacing: -.3px; }
html[data-ui="ink"] .stat-card {
  background: linear-gradient(180deg,var(--k-panel-2),var(--k-panel));
  border: 1px solid var(--k-line);
  border-radius: var(--k-r);
  padding: 12px 14px; text-align: left;
}
html[data-ui="ink"] .stat-card b {
  font-family: var(--k-mono); font-size: 24px; font-weight: 600;
  letter-spacing: -.6px; color: var(--k-ink); line-height: 1.15;
}
html[data-ui="ink"] .stat-card span { font-size: 11.5px; color: var(--k-ink-2); }
html[data-ui="ink"] .kpi-bar { background: var(--k-panel-3); border-radius: 3px; }
html[data-ui="ink"] .kpi-fill { background: linear-gradient(90deg,#5B8CFF,#7DA6FF); border-radius: 3px; }
html[data-ui="ink"] .oc-bar { background: var(--k-panel-3); }
html[data-ui="ink"] .okr-cell { background: var(--k-panel-2); border-color: var(--k-line); }
html[data-ui="ink"] .oc-v { color: var(--k-ink); }
html[data-ui="ink"] .funnel-bar-wrap { background: var(--k-panel-3); }

/* ───────────────────────────── K. 弹窗 ───────────────────────────── */
html[data-ui="ink"] .modal-backdrop { background: rgba(4,7,11,.66); backdrop-filter: blur(3px); }
html[data-ui="ink"] .modal-content {
  background: #0E141D;
  border: 1px solid var(--k-line-2);
  border-radius: 14px;
  box-shadow: 0 24px 70px -20px rgba(0,0,0,.9);
}
html[data-ui="ink"] .modal-header { padding: 14px 18px; border-bottom: 1px solid var(--k-line); }
html[data-ui="ink"] .modal-header h3 { font-size: 14px; font-weight: 600; letter-spacing: .2px; }
html[data-ui="ink"] .modal-body { padding: 16px 18px; }
html[data-ui="ink"] .modal-footer { padding: 12px 18px; border-top: 1px solid var(--k-line); background: #0B1017; border-radius: 0 0 14px 14px; }

/* ───────────────────── L. 杂项：toast / 空态 / 页签 ───────────────────── */
html[data-ui="ink"] .toast {
  background: rgba(23,31,43,.96);
  border: 1px solid var(--k-line-2);
  border-radius: 8px; padding: 9px 16px;
  font-size: 12.5px; color: var(--k-ink);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.9);
}
html[data-ui="ink"] .empty { color: var(--k-ink-3); font-size: 12.5px; }
html[data-ui="ink"] .loading { color: var(--k-ink-3); font-size: 12.5px; }
html[data-ui="ink"] .txt-money { font-family: var(--k-mono); font-variant-numeric: tabular-nums; }

html[data-ui="ink"] .vtab { border-bottom: 1px solid var(--k-line); gap: 4px; padding-bottom: 0; }
html[data-ui="ink"] .vtab-btn {
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  border-radius: 0; padding: 7px 12px 8px; font-size: 12.5px;
  color: var(--k-ink-2);
}
html[data-ui="ink"] .vtab-btn:hover { color: var(--k-ink); background: rgba(255,255,255,.03); }
html[data-ui="ink"] .vtab-btn.on,
html[data-ui="ink"] .vtab-btn.active { color: var(--k-accent-2); border-bottom-color: var(--k-accent); font-weight: 600; background: transparent; }

/* 登录页跟随皮肤（不做重设计，只保证不刺眼） */
html[data-ui="ink"] .login-wrap { background: radial-gradient(900px 420px at 30% 0%,#16233A,#0A0E14 70%); }
html[data-ui="ink"] .login-card { background: #0E141D; border: 1px solid var(--k-line-2); border-radius: 14px; box-shadow: 0 24px 70px -24px #000; }
html[data-ui="ink"] .login-logo { color: var(--k-ink); letter-spacing: 3px; }
html[data-ui="ink"] .login-sub { color: var(--k-ink-3); }
html[data-ui="ink"] .login-field label { color: var(--k-ink-3); }
html[data-ui="ink"] .login-field input {
  background: var(--k-panel-2); border: 1px solid var(--k-line-2);
  color: var(--k-ink); border-radius: var(--k-r-sm);
}
html[data-ui="ink"] .login-field input:focus { border-color: var(--k-accent); box-shadow: 0 0 0 3px rgba(91,140,255,.16); }

/* ══════════════════ K. 版面系统（全站统一，2026-11-27 第二轮）══════════════════
   第一轮做的是「皮肤」：配色、侧栏、表格皮肤。
   这一轮做「版面」：17 个模块共用一套控件高度、行高、间距和溢出策略。
   🔴 立规原则：只调**尺度**，不挪**位置**。全部靠既有类名和元素选择器生效，
      不新增 DOM、不改 inline style —— 所以对任何页面都是纯增益，
      而且旧界面（?ui=classic）一条都不受影响。
   ══════════════════════════════════════════════════════════════════════════ */

/* K1 控件基准线：同一行里的按钮 / 输入框 / 下拉必须踩在同一条线上。
   之前各页高度是 28～34px 混杂（按钮 padding 决定、输入框 padding 决定），
   一行里三个控件能差 6px，看着就是"没对过"。 */
html[data-ui="ink"] .content .btn { height: 30px; padding-top: 0; padding-bottom: 0; }
html[data-ui="ink"] .content .btn-sm { height: 26px; padding-top: 0; padding-bottom: 0; }
html[data-ui="ink"] .content .btn-block,
html[data-ui="ink"] .modal .btn-block { height: auto; padding-top: 8px; padding-bottom: 8px; }
html[data-ui="ink"] .content input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html[data-ui="ink"] .content select { height: 30px; padding-top: 0; padding-bottom: 0; }
html[data-ui="ink"] .content textarea { padding: 7px 10px; }
/* 表内按钮再压一级：表格是密排，1px 的差都会让整列看着歪 */
html[data-ui="ink"] .table td .btn,
html[data-ui="ink"] .table td .btn-sm { height: 24px; padding: 0 8px; font-size: 11.5px; }

/* K2 宽表不许被卡片裁掉。
   🔴 这是 17 个模块里最普遍的硬伤：表格比卡片宽时，浏览器直接裁掉右侧（操作列首当其冲）。
      给卡片自己开横向滚动，配合既有的 .col-sticky-r 右固定，操作列才真的"一直在"。
      标题行跟着 sticky 到左边，横向滚动时不会滚出去。 */
html[data-ui="ink"] .card:has(> table.table) { overflow-x: auto; overflow-y: hidden; }
html[data-ui="ink"] .card:has(> table.table) > .card-title,
html[data-ui="ink"] .card:has(> table.table) > .sub-tip { position: sticky; left: 0; }
html[data-ui="ink"] .card:has(> table.table)::-webkit-scrollbar { height: 8px; }

/* K3 行高与首列：统一 44px 的视线密度（两行文字的行会自然撑高，height 只当下限） */
html[data-ui="ink"] .table tbody td { height: 44px; }
html[data-ui="ink"] .table th:first-child,
html[data-ui="ink"] .table td:first-child { white-space: nowrap; }

/* K4 空态：不再是一块没有内容的空白区（任务/话术/OKR 三页最明显） */
html[data-ui="ink"] .empty {
  display: block; padding: 46px 12px; text-align: center;
  color: var(--k-ink-3); font-size: 12.5px;
}
html[data-ui="ink"] table .empty { padding: 44px 12px; border: 0; }

/* K5 卡片节奏：最后一张不留多余底边，卡片之间的缝统一 12px（已有），
   卡片内直接放按钮的那种"工具行"不再把标题挤成两行 */
html[data-ui="ink"] .content > .card:last-of-type { margin-bottom: 0; }
html[data-ui="ink"] .card-title > .btn,
html[data-ui="ink"] .card-title > button { margin-top: -4px; margin-bottom: -4px; }

/* K6 口径 / 公式条：不再塞进卡片标题（财务「月度结算」原来是标题里一条长公式，
   12px 灰字挤在标题右边，读不了也点不到）。统一成标题下方的一条浅底说明带。 */
html[data-ui="ink"] .formula-strip {
  display: block; margin: -2px 0 14px; padding: 8px 12px;
  background: rgba(255,255,255,.025);
  border-left: 2px solid var(--k-line-2);
  border-radius: 0 6px 6px 0;
  font-size: 11.5px; line-height: 1.75; color: var(--k-ink-3);
  white-space: normal; word-break: break-word;
}
html[data-ui="ink"] .formula-strip b { color: var(--k-ink-2); font-weight: 600; }

/* K7 金额列右对齐（财务历史结算）：数字右对齐才比得出量级。
   🔴 表头必须跟着右对齐，否则"表头左、数字右"比不对齐还难看 —— 所以 th/td 同一条规则。 */
html[data-ui="ink"] #fin_hist th:nth-child(n+3):nth-child(-n+14),
html[data-ui="ink"] #fin_hist td:nth-child(n+3):nth-child(-n+14) { text-align: right; }
html[data-ui="ink"] #fin_hist th:nth-child(2),
html[data-ui="ink"] #fin_hist td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* K8 客资操作列：从「4 列等宽网格」改成「主操作 + ⋯」。
   🔴 style.css 里 `.ld-ops{grid-template-columns:repeat(4,1fr);min-width:370px}` 是客资表撑爆的根因：
      一张 14 列的表，光操作列就占 370px，其余列只能被压成一字一行。
      这条**故意不加作用域** —— 它跟的是新标记（按钮数量变了），旧界面同样需要，
      否则 4 列网格里会永远留一个空格子。 */
.ld-ops { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; min-width: 0; }
.ld-ops > .btn { width: auto; flex: 0 0 auto; }
.ld-ops .row-more { flex: 0 0 auto; }

/* K9 渠道配置表单：4 列栅格（原来两行 flex 各占 1/4 与 1/2，列对不齐） */
html[data-ui="ink"] .odch-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px; padding: 12px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--k-line); border-radius: 10px;
}
html[data-ui="ink"] .odch-grid .form-item { margin: 0; }
html[data-ui="ink"] .odch-grid .form-item input { width: 100%; box-sizing: border-box; }
html[data-ui="ink"] .odch-grid-act {
  grid-column: 3 / span 2; display: flex; align-items: flex-end; justify-content: flex-end;
}
@media (max-width: 1180px) {
  html[data-ui="ink"] .odch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-ui="ink"] .odch-grid-act { grid-column: 1 / span 2; }
}

/* K10 客资表：短字段一律不换行（"未提供"曾被挤成「未提/供」两行），
    只有客户名允许换行并给足宽度 —— 其余列靠横向滚动，不再靠压字。 */
html[data-ui="ink"] .ld-tbl td { white-space: nowrap; }
html[data-ui="ink"] .ld-tbl td.c-name { white-space: normal; min-width: 152px; }
html[data-ui="ink"] .ld-tbl td.c-name .text-muted { white-space: nowrap; }
html[data-ui="ink"] .ld-tbl td .text-muted,
html[data-ui="ink"] .ld-tbl td .tag,
html[data-ui="ink"] .ld-tbl td .st-tag { white-space: nowrap; }

/* K11 待退款块：原来是浅色粉底 + 1px 红边（浅色皮肤下的样式），搬进深色界面后
    整块像一条"系统错误"。这里只改**底色与边框浓度**，文字色沿用，红色仍只出现在金额上。
    🔴 用 !important 是因为底色写在内联 style 里（旧界面还要靠它），只能这样压。 */
html[data-ui="ink"] .refund-due {
  background: linear-gradient(90deg,rgba(255,107,129,.075),rgba(255,107,129,.015)) !important;
  border: 0 !important;
  border-left: 3px solid #FF6B81 !important;
  border-radius: 0 10px 10px 0 !important;
  color: var(--k-ink) !important;
}
html[data-ui="ink"] .refund-due b { color: #FF9AA9; }

/* K12 渠道表：账号/开户行这类长串绝不能折行（"6217 0028 7003 3962 083" 断成两截就没法核对），
     公司名允许换行并给足宽度。整表宽度超出时由 K2 的卡片滚动兜住。 */
html[data-ui="ink"] .odch-tbl td,
html[data-ui="ink"] .odch-tbl th { white-space: nowrap; }
html[data-ui="ink"] .odch-tbl td:nth-child(1),
html[data-ui="ink"] .odch-tbl th:nth-child(1) { white-space: normal; min-width: 210px; }
html[data-ui="ink"] .odch-tbl td:nth-child(4) { min-width: 190px; white-space: normal; }

/* K13 人事绩效表：底薪与提成方案两列原来被压到 ~90px，
     一句「基本4000 + 满勤300 + 补贴500 + 绩效0」折成 4 行，行高直接翻倍。
     给这两列下限 + 允许换行（其余列一律不换行，整表超宽交给 K2 的卡片滚动）。 */
html[data-ui="ink"] .hr-table th,
html[data-ui="ink"] .hr-table td { white-space: nowrap; }
html[data-ui="ink"] .hr-table td:nth-child(6),
html[data-ui="ink"] .hr-table th:nth-child(6) { min-width: 200px; white-space: normal; }
html[data-ui="ink"] .hr-table td:nth-child(7),
html[data-ui="ink"] .hr-table th:nth-child(7) { min-width: 180px; white-space: normal; }
html[data-ui="ink"] .hr-table td:nth-child(10),
html[data-ui="ink"] .hr-table th:nth-child(10) { min-width: 84px; text-align: center; }

/* K14 人事表操作列右固定：这张表加宽后「操作」被推到视口外，等于按钮全没了。
     与门店/客资同一套做法 —— 最后一列 sticky 到右边，横向滚动时它一直在。 */
html[data-ui="ink"] .hr-table th:last-child,
html[data-ui="ink"] .hr-table td:last-child {
  position: sticky; right: 0; z-index: 2;
  background: var(--k-panel); box-shadow: inset 1px 0 0 var(--k-line);
}
html[data-ui="ink"] .hr-table th:last-child { background: #0F1620; z-index: 3; }

/* ══════════════════ M. 经营大屏配色统一（2026-11-27）══════════════════
   大屏（#bigDash）原来是独立的一套霓虹青板（#3be0ff / 深海军蓝），从后台点进去像换了家公司。
   这一段由 tools/_1127_bigdash_repalette.py 自动生成：把 style.css 里大屏那一块的**颜色**
   按墨影色板重映射 —— 青收到 #5B8CFF 系、深底抬到带蓝的面板阶梯、语义红绿橙收敛到
   --k-bad/--k-ok/--k-warn。**布局、字号、动效、地图都没动**，只换颜色。
   🔴 带颜色的 @keyframes 另存为 xxx__ink 并改 animation-name，
      所以旧界面（?ui=classic）的大屏仍是原来那套青，未被污染。
   🔴 要重跑：python tools/_1127_bigdash_repalette.py（改了 style.css 大屏段后必须重跑）
   ══════════════════════════════════════════════════════════════════════ */
@keyframes brandPulse__ink {0%,100%{box-shadow:0 0 16px rgba(81,126,233,.4)}
    50%{box-shadow:0 0 30px rgba(81,126,233,.95)}}
@keyframes dotPulse__ink {0%,100%{opacity:.6;box-shadow:0 0 8px rgba(81,126,233,.6)}
    50%{opacity:1;box-shadow:0 0 16px rgba(81,126,233,1)}}
@keyframes orbGlow__ink {
    0%,100%{box-shadow:0 0 38px rgba(64,114,231,.30),inset 0 -22px 44px rgba(9,13,22,.55),inset 0 14px 26px rgba(164,188,244,.20)}
    50%{box-shadow:0 0 64px rgba(64,114,231,.58),inset 0 -22px 44px rgba(9,13,22,.55),inset 0 14px 26px rgba(233,238,255,.34)}
  }
@keyframes orbGlowNeg__ink {
    0%,100%{box-shadow:0 0 38px rgba(240,76,98,.26),inset 0 -22px 44px rgba(9,13,22,.55),inset 0 14px 26px rgba(240,76,98,.18)}
    50%{box-shadow:0 0 66px rgba(240,76,98,.55),inset 0 -22px 44px rgba(9,13,22,.55),inset 0 14px 26px rgba(233,238,255,.32)}
  }
@keyframes numFlash__ink {0%{text-shadow:0 0 0 rgba(233,238,255,0)}
    26%{text-shadow:0 0 24px rgba(233,238,255,.95),0 0 44px rgba(81,126,233,.6)}
    100%{text-shadow:0 0 0 rgba(233,238,255,0)}}
html[data-ui="ink"] #bigDash {
  background:#090D16;
}
html[data-ui="ink"] #bigDash {
  color:#E9EEFF;
}
html[data-ui="ink"] #bigDash .stage {
  background:radial-gradient(1300px 760px at 50% -12%, rgba(41,78,165,.55), transparent 68%),
      radial-gradient(1000px 700px at 2% 104%, rgba(28,61,138,.34), transparent 70%),
      radial-gradient(1000px 700px at 98% 104%, rgba(28,61,138,.34), transparent 70%),
      linear-gradient(180deg,#0D1422 0%,#090D16 58%,#0D1422 100%);
}
html[data-ui="ink"] #bigDash .stage::before {
  background-image:linear-gradient(rgba(77,122,227,.055) 1px,transparent 1px),
      linear-gradient(90deg,rgba(77,122,227,.055) 1px,transparent 1px);
  -webkit-mask-image:radial-gradient(circle at 50% 42%,#090D16 26%,transparent 86%);
  mask-image:radial-gradient(circle at 50% 42%,#090D16 26%,transparent 86%);
}
html[data-ui="ink"] #bigDash .stage::after {
  background:repeating-linear-gradient(0deg,rgba(135,166,240,.05) 0 1px,transparent 1px 3px);
}
html[data-ui="ink"] #bigDash .hd-l {
  color:#95A7D2;
}
html[data-ui="ink"] #bigDash .hd-r {
  color:#95A7D2;
}
html[data-ui="ink"] #bigDash .brand i {
  background:linear-gradient(135deg,#4476EA,#517EE9);
  color:#0D1422;
  box-shadow:0 0 18px rgba(81,126,233,.5);
}
html[data-ui="ink"] #bigDash .brand b {
  color:#E9EEFF;
}
html[data-ui="ink"] #bigDash .hd-c h1 {
  color:#E9EEFF;
  text-shadow:0 0 22px rgba(81,126,233,.75),0 0 60px rgba(68,118,234,.5);
}
html[data-ui="ink"] #bigDash .hd-c .sub {
  color:#6B86C4;
}
html[data-ui="ink"] #bigDash .hd-c .bar {
  background:linear-gradient(90deg,transparent,rgba(81,126,233,.85),transparent);
  box-shadow:0 0 12px rgba(81,126,233,.8);
}
html[data-ui="ink"] #bigDash .live {
  border:1px solid rgba(77,203,144,.45);
  background:rgba(77,203,144,.08);
  color:#4DCB90;
}
html[data-ui="ink"] #bigDash .live em {
  background:#4DCB90;
  box-shadow:0 0 10px #4DCB90;
}
html[data-ui="ink"] #bigDash .clock {
  color:#E9EEFF;
}
html[data-ui="ink"] #bigDash .hint {
  color:#6781BE;
}
html[data-ui="ink"] #bigDash .panel {
  background:linear-gradient(180deg,rgba(19,34,71,.72),rgba(13,20,34,.88));
  border:1px solid rgba(85,130,234,.2);
  box-shadow:inset 0 0 34px rgba(46,90,192,.13),0 0 0 1px rgba(19,29,48,.7);
}
html[data-ui="ink"] #bigDash .cnr {
  border:2px solid #517EE9;
}
html[data-ui="ink"] #bigDash .p-hd .dot {
  background:linear-gradient(180deg,#517EE9,#4476EA);
  box-shadow:0 0 10px rgba(81,126,233,.9);
}
html[data-ui="ink"] #bigDash .p-hd h2 {
  color:#E9EEFF;
}
html[data-ui="ink"] #bigDash .p-hd .meta {
  color:#6781BE;
}
html[data-ui="ink"] #bigDash .orb .ell {
  border:1px solid rgba(81,126,233,.22);
  box-shadow:0 0 16px rgba(81,126,233,.12) inset;
}
html[data-ui="ink"] #bigDash .orb .ball {
  background:radial-gradient(circle at 36% 26%,rgba(162,186,243,.5),rgba(44,81,169,.42) 44%,rgba(19,29,48,.94) 76%);
  border:1px solid rgba(135,166,240,.4);
  box-shadow:0 0 46px rgba(64,114,231,.4),inset 0 -22px 44px rgba(9,13,22,.55),inset 0 14px 26px rgba(164,188,244,.22);
}
html[data-ui="ink"] #bigDash .orb .ball::after {
  background:radial-gradient(ellipse at 50% 50%,rgba(233,238,255,.55),transparent 70%);
}
html[data-ui="ink"] #bigDash .orb .v {
  color:#E9EEFF;
  text-shadow:0 0 16px rgba(135,166,240,.9);
}
html[data-ui="ink"] #bigDash .orb .v small {
  color:#A4BCF4;
}
html[data-ui="ink"] #bigDash .orb .k {
  color:#98AEE0;
}
html[data-ui="ink"] #bigDash .orb.neg .v {
  color:#E9EEFF;
  text-shadow:0 0 16px rgba(240,76,98,.9);
}
html[data-ui="ink"] #bigDash .orb.neg .ball {
  border-color:rgba(240,76,98,.45);
  box-shadow:0 0 46px rgba(240,76,98,.35),inset 0 -22px 44px rgba(9,13,22,.55),inset 0 14px 26px rgba(240,76,98,.2);
}
html[data-ui="ink"] #bigDash .orb .sub {
  color:#6781BE;
}
html[data-ui="ink"] #bigDash .minis {
  border-top:1px solid rgba(85,130,234,.16);
}
html[data-ui="ink"] #bigDash .mini::before {
  background:linear-gradient(180deg,transparent,rgba(85,130,234,.35),transparent);
}
html[data-ui="ink"] #bigDash .mini .v {
  color:#4DCB90;
  text-shadow:0 0 14px rgba(77,203,144,.65);
}
html[data-ui="ink"] #bigDash .mini .v.cy {
  color:#8DABF1;
  text-shadow:0 0 14px rgba(81,126,233,.65);
}
html[data-ui="ink"] #bigDash .mini .k {
  color:#7F95C8;
}
html[data-ui="ink"] #bigDash .ring .bg {
  stroke:rgba(74,108,186,.2);
}
html[data-ui="ink"] #bigDash .ring .fg {
  filter:drop-shadow(0 0 7px rgba(81,126,233,.95));
}
html[data-ui="ink"] #bigDash .ringtxt .v {
  color:#E9EEFF;
  text-shadow:0 0 14px rgba(135,166,240,.85);
}
html[data-ui="ink"] #bigDash .ringtxt .k {
  color:#7F95C8;
}
html[data-ui="ink"] #bigDash .ringbox .cap {
  color:#6781BE;
}
html[data-ui="ink"] #bigDash .ringbox .cap b {
  color:#ACBFEC;
}
html[data-ui="ink"] #bigDash .row .lb {
  color:#A3B2D7;
}
html[data-ui="ink"] #bigDash .row .track {
  background:rgba(52,81,148,.22);
}
html[data-ui="ink"] #bigDash .row .fill {
  background:linear-gradient(90deg,#315BBE,#517EE9);
  box-shadow:0 0 12px rgba(81,126,233,.6);
}
html[data-ui="ink"] #bigDash .row .fill.g {
  background:linear-gradient(90deg,#4DCB90,#4DCB90);
  box-shadow:0 0 12px rgba(77,203,144,.55);
}
html[data-ui="ink"] #bigDash .row .fill.r {
  background:linear-gradient(90deg,#F04C62,#F04C62);
  box-shadow:0 0 12px rgba(240,76,98,.55);
}
html[data-ui="ink"] #bigDash .row .fill.o {
  background:linear-gradient(90deg,#F6AA28,#F6AA28);
  box-shadow:0 0 10px rgba(246,170,40,.5);
}
html[data-ui="ink"] #bigDash .row .val {
  color:#E9EEFF;
}
html[data-ui="ink"] #bigDash .row .val small {
  color:#7F95C8;
}
html[data-ui="ink"] #bigDash .sect {
  border-top:1px dashed rgba(85,130,234,.18);
}
html[data-ui="ink"] #bigDash .sect-t {
  color:#6B86C4;
}
html[data-ui="ink"] #bigDash .fr .lb {
  color:#A3B2D7;
}
html[data-ui="ink"] #bigDash .fr .tr {
  background:rgba(40,66,125,.25);
}
html[data-ui="ink"] #bigDash .fr .fl {
  color:rgba(13,20,34,.82);
  background:linear-gradient(90deg,rgba(68,118,234,.55),#517EE9);
  box-shadow:0 0 14px rgba(81,126,233,.45);
}
html[data-ui="ink"] #bigDash .fr .n {
  color:#E9EEFF;
}
html[data-ui="ink"] #bigDash .fr.deal .fl {
  background:linear-gradient(90deg,rgba(77,203,144,.6),#4DCB90);
  box-shadow:0 0 14px rgba(77,203,144,.5);
}
html[data-ui="ink"] #bigDash .fr.lost .fl {
  background:linear-gradient(90deg,rgba(240,76,98,.5),#F04C62);
  box-shadow:0 0 14px rgba(240,76,98,.45);
}
html[data-ui="ink"] #bigDash .lg {
  color:#95A7D2;
}
html[data-ui="ink"] #bigDash .const .stat {
  color:#6781BE;
}
html[data-ui="ink"] #bigDash .const .stat b {
  color:#8DABF1;
  text-shadow:0 0 12px rgba(81,126,233,.7);
}
html[data-ui="ink"] #bigDash .chip2 {
  background:rgba(33,55,107,.35);
  border-left:2px solid rgba(81,126,233,.6);
}
html[data-ui="ink"] #bigDash .chip2 .k {
  color:#7F95C8;
}
html[data-ui="ink"] #bigDash .chip2 .v {
  color:#E9EEFF;
}
html[data-ui="ink"] #bigDash .chip2 .v small {
  color:#98AEE0;
}
html[data-ui="ink"] #bigDash .chip2.warn {
  border-left-color:#F6AA28;
}
html[data-ui="ink"] #bigDash .chip2.warn .v {
  color:#F6AA28;
}
html[data-ui="ink"] #bigDash .chip2.ok {
  border-left-color:#4DCB90;
}
html[data-ui="ink"] #bigDash .chip2.ok .v {
  color:#4DCB90;
}
html[data-ui="ink"] #bigDash .tag2 {
  border:1px solid rgba(85,130,234,.4);
  background:rgba(54,88,166,.2);
  color:#ACBFEC;
}
html[data-ui="ink"] #bigDash .empty {
  color:#4C6AB1;
}
html[data-ui="ink"] #bigDash .ft {
  color:#6781BE;
  border-top:1px solid rgba(85,130,234,.16);
}
html[data-ui="ink"] #bigDash .ft .k {
  color:#6B86C4;
}
html[data-ui="ink"] #bigDash .ft b {
  color:#ACBFEC;
}
html[data-ui="ink"] #bigDash .panel::after {
  background:linear-gradient(180deg,transparent,rgba(113,151,238,.05) 52%,
      rgba(135,166,240,.12) 86%,transparent);
}
html[data-ui="ink"] #bigDash .hd-c h1::after {
  background:linear-gradient(100deg,transparent,rgba(233,238,255,.42),transparent);
}
html[data-ui="ink"] #bigDash .orb .ball::before {
  background:conic-gradient(from 0deg,transparent 0 60%,rgba(164,188,244,.16) 76%,
      rgba(233,238,255,.42) 85%,transparent 92%);
}
html[data-ui="ink"] #bigDash .row .fill::after {
  background:linear-gradient(90deg,transparent,rgba(233,238,255,.42) 50%,transparent);
}
html[data-ui="ink"] #bigDash .fr .fl::after {
  background-image:repeating-linear-gradient(115deg,rgba(233,238,255,.13) 0 6px,transparent 6px 15px);
}
html[data-ui="ink"] #bigDash .ft::before {
  background:linear-gradient(90deg,transparent,rgba(81,126,233,.9),transparent);
}
html[data-ui="ink"] #bigDash {
  background:#090D16;
}
html[data-ui="ink"] #bigDash .p-bd::-webkit-scrollbar-thumb {
  background:rgba(81,126,233,.28);
}
html[data-ui="ink"] #bigDash .bd-exit {
  color:#A4BCF4;
  background:rgba(33,55,107,.45);
  border:1px solid rgba(81,126,233,.34);
}
html[data-ui="ink"] #bigDash .bd-exit:hover {
  background:rgba(60,95,176,.62);
  border-color:rgba(81,126,233,.72);
  color:#E9EEFF;
}
html[data-ui="ink"] #bigDash .bd-exit:focus-visible {
  outline:1px solid rgba(81,126,233,.85);
}
html[data-ui="ink"] #bigDash .const .bdmap {
  background:#0D1422;
}
html[data-ui="ink"] #bigDash .const .bdmap {
  background-color:#0D1422 !important;
}
html[data-ui="ink"] #bigDash .const .bdmap .amap-container {
  background-color:#0D1422 !important;
}
html[data-ui="ink"] #bigDash .const .bdmap .amap-maps {
  background-color:#0D1422 !important;
}
html[data-ui="ink"] #bigDash .const .bdmap .amap-layers {
  background-color:#0D1422 !important;
}
html[data-ui="ink"] #bigDash .const .lg {
  background:rgba(13,20,34,.74);
  box-shadow:0 0 0 1px rgba(81,126,233,.14);
}
html[data-ui="ink"] #bigDash .const .stat {
  background:rgba(13,20,34,.74);
  box-shadow:0 0 0 1px rgba(81,126,233,.10);
}
html[data-ui="ink"] #bigDash .const .bdmap-note {
  color:#F6AA28;
  background:rgba(80,42,10,.86);
  border:1px solid rgba(246,170,40,.55);
}
html[data-ui="ink"] #bigDash .const .bdmap .amap-copyright {
  color:#7F95C8 !important;
}


/* ══════════════════ L. 审批 / 通知 / 提成（2026-11-28 逐页重排）══════════════════
   这些页面原来的通病是"信息都在，但没人看得出主次"：
   数量藏在长标题末尾、长列表全量铺开、每块卡长得一样重。
   ══════════════════════════════════════════════════════════════════════ */

/* L1 计数角标：挂在标题后面，比括号里的数字先被看到 */
html[data-ui="ink"] .sh-n {
  display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 6px;
  border-radius: 9px; background: rgba(255,255,255,.08);
  color: var(--k-ink); font-size: 11px; font-weight: 700; line-height: 18px;
  text-align: center; font-variant-numeric: tabular-nums; vertical-align: 1px;
}
html[data-ui="ink"] .card-title .sh-n { background: rgba(91,140,255,.20); color: #A9C2FF; }
html[data-ui="ink"] .sh-hint {
  margin-left: 8px; font-size: 11.5px; font-weight: 400; color: var(--k-ink-3);
}

/* L2 卡内分组小标题：原来直接用 .card-title 加 inline font-size，
   结果和卡片标题同级，读者分不清"这是卡"还是"这是卡里的一段"。 */
html[data-ui="ink"] .sub-head {
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
  margin: 14px 0 8px; padding-left: 9px;
  border-left: 2px solid rgba(91,140,255,.55);
  font-size: 12.5px; font-weight: 600; color: var(--k-ink-2); line-height: 18px;
}
html[data-ui="ink"] .sub-head:first-of-type { margin-top: 4px; }
html[data-ui="ink"] .sub-head .sh-n { background: rgba(255,255,255,.06); color: var(--k-ink-2); }

/* L3 金额列右对齐（审批各表：表头与单元格一起右对齐，否则头左尾右更难看） */
html[data-ui="ink"] .ap-tbl th.num,
html[data-ui="ink"] .ap-tbl td.num { text-align: right; white-space: nowrap; }

/* L4 折叠尾部：一行浅底的"展开其余 N 条"，不抢行的视觉 */
html[data-ui="ink"] .ap-more > td {
  height: auto; padding: 8px 12px !important; text-align: center;
  background: rgba(255,255,255,.02); border-top: 1px dashed var(--k-line);
}
html[data-ui="ink"] .ap-more .btn { color: var(--k-ink-3); }
html[data-ui="ink"] .ap-more .btn:hover { color: var(--k-ink); }

/* L5 待办清空态：一条 40px 的提示条，替代原来那张带表头的空表 */
html[data-ui="ink"] .ap-clear { padding: 12px 16px; margin-bottom: 14px; }
html[data-ui="ink"] .ap-clear-in { display: flex; align-items: center; gap: 10px; }
html[data-ui="ink"] .ap-clear-ic {
  display: grid; place-items: center; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(61,220,151,.14); color: var(--k-ok);
  font-size: 12px; font-weight: 700;
}
html[data-ui="ink"] .ap-clear-in b { font-size: 13px; font-weight: 600; color: var(--k-ink); }

/* L6 查看模式提示 */
html[data-ui="ink"] .ap-hint {
  margin-top: 10px; padding: 7px 11px;
  background: rgba(255,255,255,.025); border-left: 2px solid var(--k-line-2);
  border-radius: 0 6px 6px 0;
  font-size: 11.5px; color: var(--k-ink-3);
}

/* L7 提成方案表：部门做成分隔行，方案做表行。
   原来「一个部门一张卡」时，4 个部门=4 张卡，纵向全是卡边；口径说明挤在 200px 列里
   折成 6 行把行高撑到 110px。这里把口径降级成方案名下的两行副文（悬停看全文）。 */
html[data-ui="ink"] .cm-wrap { margin: 0 -4px; }
html[data-ui="ink"] .cm-tbl { min-width: 860px; }
html[data-ui="ink"] .cm-tbl th { white-space: nowrap; }
html[data-ui="ink"] .cm-tbl th.cm-post,
html[data-ui="ink"] .cm-tbl td.cm-post { width: 118px; white-space: nowrap; }
/* 🔴 除方案名列外全部给死宽度：auto 布局下方案名（内容最长）会把其余列挤到
   min-content —— 操作列的「✏ 编辑 / ✓ 启用」会被压成竖排两字一行（实测宽度只剩 30px）。 */
html[data-ui="ink"] .cm-tbl th:nth-child(3),
html[data-ui="ink"] .cm-tbl td:nth-child(3) { width: 104px; text-align: right; white-space: nowrap; }
html[data-ui="ink"] .cm-tbl th:nth-child(4),
html[data-ui="ink"] .cm-tbl td:nth-child(4) { width: 92px; text-align: center; white-space: nowrap; }
html[data-ui="ink"] .cm-tbl th:nth-child(5),
html[data-ui="ink"] .cm-tbl td:nth-child(5) { width: 168px; text-align: right; white-space: nowrap; }

/* 部门分隔行：浅底 + 上边线，读起来是"分节"而不是"又一行数据" */
html[data-ui="ink"] .cm-tbl tr.cm-dept > td {
  height: auto; padding: 8px 12px !important;
  background: rgba(91,140,255,.055);
  border-top: 1px solid var(--k-line);
  border-bottom: 1px solid rgba(91,140,255,.10);
}
html[data-ui="ink"] .cm-dept-in { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
html[data-ui="ink"] .cm-dept-in > b { font-size: 13px; font-weight: 600; color: var(--k-ink); }
html[data-ui="ink"] .cm-dept-meta { font-size: 11.5px; color: var(--k-ink-3); }
html[data-ui="ink"] .cm-dept-act { margin-left: auto; font-size: 11.5px; color: var(--k-ink-3); }
html[data-ui="ink"] .cm-dept-act b { color: var(--k-ok); font-weight: 600; }
html[data-ui="ink"] .cm-dept-act b.cm-bad { color: var(--k-bad); }

/* 方案名 + 口径副文：两行截断，悬停看全文（title 已在 JS 里给） */
html[data-ui="ink"] .cm-tbl td.cm-name { min-width: 260px; white-space: normal; color: var(--k-ink); }
html[data-ui="ink"] .cm-note {
  margin-top: 3px; font-size: 11.5px; line-height: 1.65; color: var(--k-ink-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  cursor: help;
}

/* L8 通知中心：表格 → 消息流。
   4 列表格装消息的三个毛病：内容被拉成一整行、时间折成两行、未读只差一个灰标签。
   现在未读有主色圆点 + 标题加粗，正文两行截断，时间定宽一列不换行。 */
html[data-ui="ink"] .nt-list { display: flex; flex-direction: column; }
html[data-ui="ink"] .nt-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 12px 11px 8px;
  border-top: 1px solid var(--k-line);
}
html[data-ui="ink"] .nt-row:first-child { border-top: 0; }
html[data-ui="ink"] .nt-row:hover { background: rgba(255,255,255,.022); }
html[data-ui="ink"] .nt-dot {
  flex: none; width: 6px; height: 6px; margin: 7px 0 0 2px; border-radius: 50%;
  background: transparent;
}
html[data-ui="ink"] .nt-row.unread .nt-dot { background: var(--k-accent); box-shadow: 0 0 0 3px rgba(91,140,255,.14); }
html[data-ui="ink"] .nt-main { flex: 1 1 auto; min-width: 0; }
html[data-ui="ink"] .nt-title {
  font-size: 12.5px; font-weight: 400; color: var(--k-ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html[data-ui="ink"] .nt-row.unread .nt-title { font-weight: 600; color: var(--k-ink); }
html[data-ui="ink"] .nt-body {
  margin-top: 2px; font-size: 11.5px; line-height: 1.7; color: var(--k-ink-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
html[data-ui="ink"] .nt-time {
  flex: none; width: 118px; text-align: right;
  font-family: var(--k-mono); font-size: 11px; color: var(--k-ink-3);
  white-space: nowrap; padding-top: 1px;
}

/* ══════════════════ N. 系统设置（2026-11-28）══════════════════
   设置页是全站表单最密的一页，四个毛病都在"控件形态"上，不在数据：
   ① 被收起的说明胶囊被 flex 拉成整行宽，看着像"一个空的输入框"；
   ② 回调地址这种 50 字符的 URL 挤进 108px 的 6 等分格里竖着断行；
   ③ PEM 证书塞在 1/3 栏，64 字符一行断成四截；
   ④ 保存按钮在页面顶部，改完最后一栏要滚回去很远才能保存。
   ══════════════════════════════════════════════════════════════════════ */

/* N1 「说明」胶囊：.form-item 是 flex column，子元素默认 stretch ⇒ 胶囊被拉成整行。
   改成贴着左边、内容宽，并且做成"链接感"而不是"控件感"。 */
html[data-ui="ink"] .sy-item > .tip-more {
  align-self: flex-start; width: auto; max-width: 100%;
  margin: 7px 0 0; padding: 0 2px;
  background: none; border: 0; border-radius: 0;
  color: var(--k-ink-3); font-size: 11.5px; line-height: 1.6;
  border-bottom: 1px dashed rgba(255,255,255,.16);
}
html[data-ui="ink"] .sy-item > .tip-more::before { content: 'ⓘ '; opacity: .8; }
html[data-ui="ink"] .sy-item > .tip-more:hover {
  color: var(--k-accent); background: none; border-bottom-color: currentColor;
}

/* N2 PEM / 收款码：独占整行（证书一行 64 字符，1/3 栏必然碎成四截） */
html[data-ui="ink"] .sy-grid .sy-item.sy-wide { grid-column: 1 / -1; }
html[data-ui="ink"] .sy-grid .sy-item.sy-wide textarea {
  font-family: var(--k-mono) !important; font-size: 11.5px !important; line-height: 1.7;
  min-height: 108px;
}

/* N3 体检卡：长值（回调地址）单独占满一行，用等宽小字，不再 18px 粗体竖排断行 */
html[data-ui="ink"] .kv-chip.wide { grid-column: 1 / -1; }
html[data-ui="ink"] .kv-chip.wide .v {
  font-family: var(--k-mono); font-size: 12px; font-weight: 500;
  word-break: break-all; line-height: 1.6;
}
html[data-ui="ink"] .kv-chip .k { letter-spacing: .02em; }

/* N4 保存条：粘在内容区顶部。设置页一屏放不下（支付通道 3 张卡），
   改完最后一栏要滚回顶部才能保存 —— 这是纯损失。 */
html[data-ui="ink"] .sy-bar {
  position: sticky; top: -20px; z-index: 6;
  margin: 0 -24px 12px; padding: 12px 24px;
  /* 🔴 必须完全不透明：92% + blur 会让下面滚过的「ⓘ 说明」在按钮右侧透出来，
     看着像工具条自己多了几个字（实测滚动 760px 时最明显）。 */
  background: var(--k-bg);
  border-bottom: 1px solid var(--k-line);
}
html[data-ui="ink"] .sy-bar .btn { flex: none; }
html[data-ui="ink"] #sys_dirty { margin-left: 2px; }
html[data-ui="ink"] .sy-dirty {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  background: rgba(245,166,35,.14); color: #FFC46B; font-size: 11.5px; font-weight: 600;
}

/* N5 提示条：浅色的绿/橙底在深色界面里过曝，改成"左色条 + 极淡底" */
html[data-ui="ink"] .sy-ok,
html[data-ui="ink"] .sy-warn {
  background: rgba(61,220,151,.06); border: 0; border-left: 3px solid var(--k-ok);
  border-radius: 0 8px 8px 0; padding: 9px 12px;
  color: var(--k-ink-2); font-size: 12px; line-height: 1.75;
}
html[data-ui="ink"] .sy-warn {
  background: rgba(245,166,35,.07); border-left-color: var(--k-warn); color: #F3D3A0;
}

/* N6 通道切换：三档做成等宽分段控件，选中态用主色描边（原来是三个白底按钮） */
html[data-ui="ink"] .sy-chseg { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; max-width: 660px; }
html[data-ui="ink"] .sy-ch {
  padding: 10px 12px; border-radius: 9px; border: 1px solid var(--k-line);
  background: rgba(255,255,255,.02); color: var(--k-ink-3);
  font-size: 12.5px; text-align: center;
}
html[data-ui="ink"] .sy-ch:hover { border-color: rgba(91,140,255,.45); color: var(--k-ink); }
html[data-ui="ink"] .sy-ch.on {
  background: rgba(91,140,255,.13); border-color: rgba(91,140,255,.55);
  color: #C6D8FF; font-weight: 600;
}

/* N7 支付能力体检：auto-fit 在"有一个 grid-column:1/-1 的跨行项"时，会把列宽算成
   内容最小值（实测每列塌到 ~85px，"下单主体（AppID）"被折成两行）。
   这一条是体检专用栅格，列数写死，宽屏 5 栏 + 一整行放长值。 */
html[data-ui="ink"] .kv-chips.kv-diag { grid-template-columns: repeat(5, minmax(0, 1fr)); }
html[data-ui="ink"] .kv-diag .kv-chip { min-width: 0; }
html[data-ui="ink"] .kv-diag .kv-chip .k { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1180px) {
  html[data-ui="ink"] .kv-chips.kv-diag { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ══════════════════ P. 财务各表（2026-11-28）══════════════════
   财务是全站列数最多的地方（报销 10 列、工资 14 列、往来款 9 列）。
   共同病根：auto 布局下"最长的文字列"吃掉所有余量，短字段被压到 min-content，
   于是「销售部·销售主管」竖着排成四行、「办公费」断成两行、右下角的按钮被裁一半。
   策略统一：短字段一律不换行，只让"描述类"列换行并给下限，整表超宽交给卡片横向滚动。
   ══════════════════════════════════════════════════════════════════════ */

/* P0 全局：表内按钮/标签永不折行（按钮折行等于文字被劈成两半） */
html[data-ui="ink"] .table td .btn,
html[data-ui="ink"] .table td .btn-sm,
html[data-ui="ink"] .table td .tag,
html[data-ui="ink"] .table td .od-proof { white-space: nowrap; }

/* P1 报销记录（10 列） */
html[data-ui="ink"] .fin-exp-tbl th,
html[data-ui="ink"] .fin-exp-tbl td { white-space: nowrap; }
html[data-ui="ink"] .fin-exp-tbl td:nth-child(2) { white-space: normal; min-width: 128px; }
html[data-ui="ink"] .fin-exp-tbl th:nth-child(4),
html[data-ui="ink"] .fin-exp-tbl td:nth-child(4) { width: 96px; text-align: right; }
html[data-ui="ink"] .fin-exp-tbl td:nth-child(5) { white-space: normal; min-width: 200px; }
html[data-ui="ink"] .fin-exp-tbl th:last-child,
html[data-ui="ink"] .fin-exp-tbl td:last-child { width: 150px; text-align: right; }

/* P2 营业收入总览：金额列右对齐（左对齐时 9,833 与 40,372.10 的位数对不上，比不出量级） */
html[data-ui="ink"] .settle-form th:nth-child(2),
html[data-ui="ink"] .settle-form td:nth-child(2) { text-align: right; }

/* P3 内联彩底卡的深色适配。
   这三张卡在浅色界面里靠 #fbfaff / #fffafa 的极淡底 + 淡边区分语义，
   但 style.css 的深色变体把它们换成了 #0b1220 + **#682edb 亮紫描边** / #381717 暗红底 ——
   同一份"极淡"的意图，在深色里变成一块刺眼的紫框和一块整面红底。
   这里保留语义（左侧一根色条），把面积收回来。
   🔴 用 !important 是因为底色/边框写在内联 style 上，且旧界面还要靠它。 */
html[data-ui="ink"] .card.card-violet {
  background: rgba(255,255,255,.022) !important;
  border: 1px solid var(--k-line) !important;
  border-left: 3px solid rgba(140,120,255,.45) !important;
  border-radius: 0 10px 10px 0 !important;
}
html[data-ui="ink"] .card.card-danger {
  background: rgba(255,92,122,.04) !important;
  border: 1px solid var(--k-line) !important;
  border-left: 3px solid rgba(255,92,122,.42) !important;
  border-radius: 0 10px 10px 0 !important;
}

/* P4 往来款汇总格：内联紫框（#682edb）在深色下是三块亮紫描边，抢过所有数字。
   收成中性描边，语义交给数字颜色（橙=应收 / 红=应付 / 绿=净）。 */
html[data-ui="ink"] .fin-ov-cell {
  background: rgba(255,255,255,.022) !important;
  border: 1px solid var(--k-line) !important;
}
html[data-ui="ink"] .fin-ov-cell .text-muted { color: var(--k-ink-3); }

/* P5 往来明细（9 列）：auto 布局下「未结」表头被挤成竖排两字、操作列「结清」只剩半个字。
   短字段 nowrap，事由列给下限，操作列右固定。 */
html[data-ui="ink"] .fin-cu-tbl th,
html[data-ui="ink"] .fin-cu-tbl td { white-space: nowrap; }
html[data-ui="ink"] .fin-cu-tbl td:nth-child(2) { white-space: normal; min-width: 220px; }
html[data-ui="ink"] .fin-cu-tbl td:nth-child(8) { white-space: normal; min-width: 110px; }
html[data-ui="ink"] .fin-cu-tbl th:nth-child(n+4):nth-child(-n+6),
html[data-ui="ink"] .fin-cu-tbl td:nth-child(n+4):nth-child(-n+6) { text-align: right; }
html[data-ui="ink"] .fin-cu-tbl th:last-child,
html[data-ui="ink"] .fin-cu-tbl td:last-child {
  width: 96px; text-align: right;
  position: sticky; right: 0; z-index: 2;
  background: var(--k-panel); box-shadow: inset 1px 0 0 var(--k-line);
}
html[data-ui="ink"] .fin-cu-tbl th:last-child { background: #0F1620; z-index: 3; }

/* P6 工资单（12 列）：表头一律不折行；金额列右对齐等宽 */
html[data-ui="ink"] .fin-pay-tbl th { white-space: nowrap; }
html[data-ui="ink"] .fin-pay-tbl td { white-space: nowrap; }

/* P7 两处零散的内联紫描边：往来款搜索框、往来明细的状态时间。
   搜索框在深色下是一圈亮紫，比"搜索"这个词还显眼。 */
html[data-ui="ink"] .fin-search { border-color: var(--k-line) !important; background: rgba(255,255,255,.03); }
html[data-ui="ink"] .fin-cu-tbl td:nth-child(7) div { white-space: nowrap; }

/* ══════════════════ O. 新组件的「旧界面」兜底（2026-11-28)══════════════════
   这一轮新增的类名（.cm-tbl / .fin-exp-tbl / .nt-list / .ap-clear / .sub-head …）
   完整样式只挂在墨影皮肤下。切回旧界面（?ui=classic）时它们会退化成"没有样式"——
   表格列宽重新塌、通知变成没有分隔的堆叠、计数角标变成裸数字。
   🔴 所以这里补一套中性的最小样式：只保证不塌、不重叠、能读，不追求好看。
   🔴 全部**不带 data-ui 作用域**；墨影那套选择器（html[data-ui="ink"] …）更具体，永远赢。
   🔴🔴 底色/文字色**不能写死浅色那套**：后台默认皮肤是 dark（index.html 的 data-skin="dark"），
      旧界面 = 深色底 + 原来的蓝色系。所以这里以深色为基准，再用 data-skin="light" 覆盖几处文字色。
   ══════════════════════════════════════════════════════════════════════ */

/* 计数角标 / 分组小标题 */
.sh-n { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 6px; border-radius: 9px;
  background: rgba(255,255,255,.08); color: inherit; font-size: 11px; font-weight: 700; line-height: 18px;
  text-align: center; vertical-align: 1px; }
.sh-hint { margin-left: 8px; font-size: 11.5px; font-weight: 400; opacity: .72; }
.sub-head { margin: 14px 0 8px; padding-left: 9px; border-left: 2px solid rgba(74,108,247,.55);
  font-size: 12.5px; font-weight: 600; }
.sub-head .sh-n { background: rgba(255,255,255,.06); }

/* 提成方案总表：列宽必须给死，否则旧界面下操作列会被压成竖排 */
.cm-tbl th { white-space: nowrap; }
.cm-tbl th.cm-post, .cm-tbl td.cm-post { width: 118px; }
.cm-tbl th:nth-child(3), .cm-tbl td:nth-child(3) { width: 104px; text-align: right; white-space: nowrap; }
.cm-tbl th:nth-child(4), .cm-tbl td:nth-child(4) { width: 92px; text-align: center; white-space: nowrap; }
.cm-tbl th:nth-child(5), .cm-tbl td:nth-child(5) { width: 168px; text-align: right; white-space: nowrap; }
.cm-tbl tr.cm-dept > td { background: rgba(74,108,247,.08); padding: 8px 12px !important; }
.cm-dept-in { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cm-dept-in > b { font-size: 13px; font-weight: 600; }
.cm-dept-meta { font-size: 11.5px; opacity: .7; }
.cm-dept-act { margin-left: auto; font-size: 11.5px; opacity: .72; }
.cm-dept-act b { color: #34d399; font-weight: 600; }
.cm-dept-act b.cm-bad { color: #f87171; }
.cm-note { margin-top: 3px; font-size: 11.5px; line-height: 1.65; opacity: .7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 通知中心消息流 */
.nt-list { display: flex; flex-direction: column; }
.nt-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px 11px 8px;
  border-top: 1px solid rgba(255,255,255,.07); }
.nt-row:first-child { border-top: 0; }
.nt-dot { flex: none; width: 6px; height: 6px; margin: 7px 0 0 2px; border-radius: 50%; background: transparent; }
.nt-row.unread .nt-dot { background: #4A6CF7; box-shadow: 0 0 0 3px rgba(74,108,247,.16); }
.nt-main { flex: 1 1 auto; min-width: 0; }
.nt-title { font-size: 12.5px; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-row.unread .nt-title { font-weight: 600; opacity: 1; }
.nt-body { margin-top: 2px; font-size: 11.5px; line-height: 1.7; opacity: .62;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nt-time { flex: none; width: 118px; text-align: right; font-size: 11px; opacity: .6; white-space: nowrap; }

/* 审批：待办清空条 + 折叠尾行 */
.ap-clear-in { display: flex; align-items: center; gap: 10px; }
.ap-clear-ic { display: grid; place-items: center; flex: none; width: 22px; height: 22px;
  border-radius: 50%; background: rgba(61,220,151,.16); color: #34d399; font-size: 12px; font-weight: 700; }
.ap-more > td { padding: 8px 12px !important; text-align: center; background: rgba(255,255,255,.03); }
.ap-tbl th.num, .ap-tbl td.num { text-align: right; }

/* 财务几张表：短字段不折行（新旧界面同病同治） */
.fin-exp-tbl th, .fin-exp-tbl td { white-space: nowrap; }
.fin-exp-tbl td:nth-child(2), .fin-exp-tbl td:nth-child(5) { white-space: normal; }
.fin-cu-tbl th, .fin-cu-tbl td { white-space: nowrap; }
.fin-cu-tbl td:nth-child(2), .fin-cu-tbl td:nth-child(8) { white-space: normal; }
.fin-pay-tbl th, .fin-pay-tbl td { white-space: nowrap; }

/* 旧界面 + 浅色皮肤：把上面按深色定的几处文字色换回深灰 */
html[data-skin="light"] .cm-note,
html[data-skin="light"] .cm-dept-meta,
html[data-skin="light"] .cm-dept-act,
html[data-skin="light"] .sh-hint,
html[data-skin="light"] .nt-body,
html[data-skin="light"] .nt-time { color: #8a95a6; opacity: 1; }
html[data-skin="light"] .nt-title { color: #5a6b8c; opacity: 1; }
html[data-skin="light"] .nt-row.unread .nt-title { color: #1f2d3d; }
html[data-skin="light"] .nt-row { border-top-color: #eef1f6; }
html[data-skin="light"] .cm-tbl tr.cm-dept > td { background: #f7f9fc; }
html[data-skin="light"] .sh-n { background: #eef1f6; color: #5a6b8c; }

/* ══════════════════════════════════════════════════════════════════════════
   R 段 · 供应链三页版面重排（库存管理 / 采购订货 / 直播间数据）2026-11-28
   ──────────────────────────────────────────────────────────────────────────
   共同手法：
     · 「一个大数 + 一行小字口径」代替两列并排 —— 表宽省一半，1280 屏不用横滚；
     · 副文统一用 .inv-sub（11px，--k-ink-3），三页共用一套，不再各写 inline style；
     · 提示文字从「整块说明卡」降级为标题右侧 .sh-hint 或左侧细线块，不占版面高度。
   ══════════════════════════════════════════════════════════════════════════ */

/* R0 副文：商品名/场次标题下面那行「分类 · 规格 · 单位」「峰值 / 进店率」 */
html[data-ui="ink"] .inv-sub { margin-top: 2px; font-size: 11px; color: var(--k-ink-3); line-height: 1.5; }
html[data-ui="ink"] .inv-sub .tag { font-size: 10px; padding: 0 5px; }
html[data-ui="ink"] .inv-tbl th.num, html[data-ui="ink"] .inv-tbl td.num,
html[data-ui="ink"] .lv-tbl th.num, html[data-ui="ink"] .lv-tbl td.num,
html[data-ui="ink"] .dy-tbl th.num, html[data-ui="ink"] .dy-tbl td.num,
html[data-ui="ink"] .pur-sku-tbl th.num, html[data-ui="ink"] .pur-sku-tbl td.num { text-align: right; white-space: nowrap; }

/* ── R1 库存管理 ────────────────────────────────────────────────────────── */
html[data-ui="ink"] .inv-alert { border-color: rgba(255,107,129,.28); }
html[data-ui="ink"] .inv-alert-in { display: flex; flex-wrap: wrap; gap: 6px; }
html[data-ui="ink"] .inv-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding-bottom: 10px; margin-bottom: 2px; border-bottom: 1px solid var(--k-line);
}
html[data-ui="ink"] .inv-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
html[data-ui="ink"] .inv-search { position: relative; display: inline-flex; align-items: center; }
html[data-ui="ink"] .inv-search::before {
  content: ''; position: absolute; left: 9px; width: 12px; height: 12px; pointer-events: none;
  background: no-repeat center / 12px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A879C' stroke-width='2.2' stroke-linecap='round'><circle cx='10.5' cy='10.5' r='6.5'/><path d='M20 20l-4-4'/></svg>");
}
html[data-ui="ink"] .inv-search input {
  width: 206px; height: 28px; padding: 0 10px 0 26px;
  background-color: var(--k-panel-2); border: 1px solid var(--k-line-2); border-radius: 6px;
}
html[data-ui="ink"] .inv-kpis { display: flex; gap: 16px; margin-left: auto; }
html[data-ui="ink"] .inv-kpi { display: flex; flex-direction: column; line-height: 1.15; }
html[data-ui="ink"] .inv-kpi b { font-family: var(--k-mono); font-size: 15px; font-weight: 700; color: var(--k-ink); }
html[data-ui="ink"] .inv-kpi i { font-style: normal; font-size: 10.5px; color: var(--k-ink-3); }
html[data-ui="ink"] .inv-kpi.bad b { color: var(--k-bad); }
html[data-ui="ink"] .inv-tbl td, html[data-ui="ink"] .inv-tbl th { white-space: nowrap; }
html[data-ui="ink"] .inv-tbl td.inv-name { white-space: normal; min-width: 220px; }
/* ── 2026-11-28 库存表列宽：原来「商品」是唯一的弹性列，吃满 544px（内容只占 ~230px），
      每行中间空 300px。改成六列各就各位：# 固定 / 商品 296 / 规格 250 / 价格 150 /
      库存 123 / 出入库 252 ≈ 1123（1440 下卡片内宽 1121）。
      🔴 列宽一律走类名，不写内联 style —— 内联宽度压不过媒体查询，窄屏就收不动。 */
html[data-ui="ink"] .inv-tbl .c-id { width: 48px; }
html[data-ui="ink"] .inv-tbl .inv-c-name { width: 296px; }
html[data-ui="ink"] .inv-tbl .inv-c-spec { width: 250px; }
html[data-ui="ink"] .inv-tbl .inv-c-price { width: 150px; }
html[data-ui="ink"] .inv-tbl .inv-c-stock { width: 123px; }
html[data-ui="ink"] .inv-tbl .inv-c-ops { width: 252px; }
/* 规格列：最多两行（有的规格是「1000g*15袋/件*15kg/15袋」，一行放不下），
   限行必须落在内层 div，直接给 td 加 -webkit-box 会把整行的表格布局打乱。 */
html[data-ui="ink"] .inv-tbl td.inv-spec { white-space: normal; line-height: 1.45; }
html[data-ui="ink"] .inv-2l { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html[data-ui="ink"] .inv-dim { color: var(--k-ink-3); }
html[data-ui="ink"] .inv-tbl-wrap { overflow-x: auto; }
html[data-ui="ink"] .inv-tbl thead th, html[data-ui="ink"] .inv-tbl tbody td { padding-top: 5px; padding-bottom: 5px; }
html[data-ui="ink"] .inv-sep > td {
  height: auto; padding: 6px 12px;
  background: rgba(255,255,255,.035);
  border-top: 1px solid var(--k-line); border-bottom: 1px solid var(--k-line);
  font-size: 11.5px; color: var(--k-ink-3);
}
html[data-ui="ink"] .inv-sep b { color: var(--k-ink-2); font-weight: 600; }
html[data-ui="ink"] .inv-sep-i { margin-right: 6px; }
html[data-ui="ink"] .inv-ops { white-space: nowrap; text-align: right; }
html[data-ui="ink"] .inv-qty { width: 46px; height: 24px !important; padding: 0 4px; text-align: right; font-size: 11.5px; }
html[data-ui="ink"] .inv-ops .btn { margin-left: 4px; }
html[data-ui="ink"] .inv-low { color: var(--k-bad); }
html[data-ui="ink"] .inv-none { padding: 30px; text-align: center; }
html[data-ui="ink"] .inv-tip { background: transparent; border-style: dashed; }
/* 1280 档：卡片内宽 ~961，六列按基准是 1123 ⇒ 必溢出。收固定列 + 收内距，
   实在放不下就让 .inv-tbl-wrap 横向滚动（min-width 兜住，绝不压缩到文字叠字）。 */
@media (max-width: 1360px) {
  html[data-ui="ink"] .inv-tbl thead th, html[data-ui="ink"] .inv-tbl tbody td { padding-left: 7px; padding-right: 7px; }
  html[data-ui="ink"] .inv-tbl .inv-c-name { width: 236px; }
  html[data-ui="ink"] .inv-tbl .inv-c-spec { width: 196px; }
  html[data-ui="ink"] .inv-tbl .inv-c-price { width: 128px; }
  html[data-ui="ink"] .inv-tbl .inv-c-stock { width: 104px; }
  html[data-ui="ink"] .inv-tbl .inv-c-ops { width: 228px; }
}
html[data-ui="ink"] .inv-tbl { min-width: 940px; }
/* 跳转落点：滚过去之后闪一圈，用户才知道"停在这了" */
@keyframes odFlashRing { 0%, 55% { outline-color: var(--k-acc, #5b8cff); } 100% { outline-color: transparent; } }
.od-flash { outline: 2px solid transparent; outline-offset: 3px; border-radius: 12px; animation: odFlashRing 1.3s ease-out 1; }
#fb_card, #od_ord_card { scroll-margin-top: 8px; }

/* ── R2 采购订货 ────────────────────────────────────────────────────────── */
html[data-ui="ink"] .pur-form .sub-head { margin-top: 18px; }
html[data-ui="ink"] .pur-f-cust { flex: 1 1 240px; }
html[data-ui="ink"] .pur-f-ch { flex: 0 1 230px; }
html[data-ui="ink"] .pur-ch-snap { flex: 1 1 240px; min-width: 0; }
html[data-ui="ink"] .pur-ch-snap .sub-tip { padding: 0 0 6px; }
html[data-ui="ink"] .pur-items td { height: 42px; }
html[data-ui="ink"] .pur-items select { width: 100%; }
html[data-ui="ink"] .pur-items .pur_qty { width: 100%; text-align: right; }
html[data-ui="ink"] .pur-unit > div { display: flex; align-items: baseline; gap: 6px; line-height: 1.5; }
html[data-ui="ink"] .pur-unit i { font-style: normal; font-size: 10px; color: var(--k-ink-3); }
html[data-ui="ink"] .pur-unit span { font-size: 11.5px; }
html[data-ui="ink"] .pur-items td.pur_line_profit { color: var(--k-ok); }
html[data-ui="ink"] .pur-items td.pur_line_amt { color: var(--k-accent-2); font-weight: 600; }
html[data-ui="ink"] .pur-x { text-align: center; }
html[data-ui="ink"] .pur-items-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
html[data-ui="ink"] .pur-sum { font-size: 11.5px; color: var(--k-ink-3); }
html[data-ui="ink"] .pur-sum b { margin-left: 6px; font-family: var(--k-mono); font-size: 14px; color: var(--k-accent-2); }
html[data-ui="ink"] .pur-auto { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--k-ink-2); cursor: pointer; }
html[data-ui="ink"] .pur-money { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; align-items: end; }
html[data-ui="ink"] .pur-money .form-item { margin: 0; }
html[data-ui="ink"] .pur-profit { font-family: var(--k-mono); font-size: 17px; font-weight: 700; color: var(--k-accent-2); line-height: 30px; }
html[data-ui="ink"] .pur-ups { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
html[data-ui="ink"] .pur-ups .form-item {
  margin: 0; padding: 10px 12px; background: var(--k-panel-2);
  border: 1px dashed var(--k-line-2); border-radius: 8px; min-width: 0;
}
html[data-ui="ink"] .pur-ups .form-item.is-req { border-color: rgba(255,176,32,.30); }
html[data-ui="ink"] .pur-ups .od-up-lst { margin-top: 8px; }
html[data-ui="ink"] .pur-foot {
  position: sticky; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 18px -18px -16px; padding: 10px 18px;
  background: var(--k-panel-2); border-top: 1px solid var(--k-line-2);
  border-radius: 0 0 var(--k-r) var(--k-r);
}
html[data-ui="ink"] .pur-foot-flow { flex: 1 1 300px; min-width: 0; font-size: 11px; color: var(--k-ink-3); line-height: 1.6; }
html[data-ui="ink"] .pur-sku-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
html[data-ui="ink"] .pur-sku-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
html[data-ui="ink"] .pur-sku-search input { width: 196px; height: 28px; padding: 0 10px; background-color: var(--k-panel-2); }
html[data-ui="ink"] .pur-sku-tbl td { white-space: nowrap; }
html[data-ui="ink"] .pur-sku-tbl td.inv-name { white-space: normal; min-width: 180px; }

/* ── R3 直播间数据 ──────────────────────────────────────────────────────── */
html[data-ui="ink"] .dy-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
html[data-ui="ink"] .dy-ov { font-size: 11.5px; }
html[data-ui="ink"] .dy-note {
  margin: 0 0 12px; padding: 8px 11px;
  background: rgba(255,255,255,.025); border-left: 2px solid var(--k-line-2);
  border-radius: 0 6px 6px 0;
  font-size: 11.5px; line-height: 1.7; color: var(--k-ink-2);
}
html[data-ui="ink"] .dy-note-more { display: block; color: var(--k-ink-3); }
html[data-ui="ink"] .dy-tbl td { white-space: nowrap; }
html[data-ui="ink"] .dy-tbl td:nth-child(2),
html[data-ui="ink"] .dy-tbl td:nth-child(3) { white-space: normal; min-width: 130px; }
html[data-ui="ink"] .dy-st-l + .dy-st-l { margin-top: 3px; }
html[data-ui="ink"] .dy-ops { white-space: nowrap; }
html[data-ui="ink"] .dy-ops .btn + .btn { margin-left: 4px; }
html[data-ui="ink"] .lv-bar { gap: 8px; margin-bottom: 10px; }
html[data-ui="ink"] .lv-kw { width: 168px; }
html[data-ui="ink"] .lv-tbl td { white-space: nowrap; }
html[data-ui="ink"] .lv-tbl .inv-sub { white-space: normal; }   /* 副文允许折行：不为一行小字撑宽整列 */
html[data-ui="ink"] .lv-tbl .inv-sub.nw { white-space: nowrap; }  /* 成交/成本必须一行：折成「· 成本」+「¥1,200」两行读不成句 */
html[data-ui="ink"] .lv-tbl td:nth-child(8) .inv-sub { white-space: nowrap; }   /* 客资「转销售 9」不许拆字 */
html[data-ui="ink"] .lv-tbl th:nth-child(8), html[data-ui="ink"] .lv-tbl td:nth-child(8) { min-width: 92px; }
html[data-ui="ink"] .lv-tbl { min-width: 940px; }
html[data-ui="ink"] .lv-tbl td.lv-title { white-space: normal; min-width: 170px; max-width: 300px; }
html[data-ui="ink"] .lv-tt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
html[data-ui="ink"] .lv-tbl td.lv-when b { font-family: var(--k-mono); font-size: 11.5px; }
html[data-ui="ink"] .lv-tbl td.num b { font-family: var(--k-mono); font-size: 12.5px; }
html[data-ui="ink"] .lv-ops { white-space: nowrap; }
html[data-ui="ink"] .lv-pager { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.lv-d { padding: 6px 9px; border: 1px solid var(--line-dfe3ea); border-radius: 6px; font-size: 13px; }
.lv-kw { width: 168px; }

/* ── R4 不带作用域的兜底：`?ui=classic` 下这些新类名也必须有样子 ─────────────
   🔴 旧界面默认是 dark 皮肤（index.html 的 data-skin="dark"）⇒ 以深色为基准，
      浅色用 html[data-skin="light"] 覆盖。反过来写会让旧深色界面出现白条。 */
.inv-sub { margin-top: 2px; font-size: 11px; color: #8a95a6; line-height: 1.5; }
.inv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.inv-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.inv-search input { width: 206px; padding: 6px 10px; border: 1px solid var(--line-dfe3ea); border-radius: 6px; }
.inv-kpis { display: flex; gap: 16px; margin-left: auto; }
.inv-kpi { display: flex; flex-direction: column; line-height: 1.15; }
.inv-kpi b { font-size: 15px; }
.inv-kpi i { font-style: normal; font-size: 10.5px; color: #8a95a6; }
.inv-kpi.bad b { color: #e11d48; }
.inv-tbl td, .inv-tbl th, .lv-tbl td, .dy-tbl td, .pur-sku-tbl td { white-space: nowrap; }
  /* 无皮肤兜底（旧界面走这套）：六列列宽与规格列限行，见 R1 段说明 */
  .inv-tbl .c-id { width: 48px; }
  .inv-tbl .inv-c-name { width: 296px; }
  .inv-tbl .inv-c-spec { width: 250px; }
  .inv-tbl .inv-c-price { width: 150px; }
  .inv-tbl .inv-c-stock { width: 123px; }
  .inv-tbl .inv-c-ops { width: 252px; }
  .inv-tbl td.inv-spec { white-space: normal; line-height: 1.45; }
  /* 限行必须在**无作用域**里再写一遍：旧界面（classic）不走 html[data-ui="ink"] 那套，
     少了这两行，长规格（1000g*15袋/件*15kg/15袋）会把行撑成三行。 */
  .inv-tbl .inv-2l { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .inv-tbl .inv-dim { color: #8a95a6; }
  .inv-tbl-wrap { overflow-x: auto; }
  .inv-tbl { min-width: 940px; }
  html:not([data-ui="ink"]) .inv-tbl tbody td { padding-top: 5px; padding-bottom: 5px; }
.inv-tbl td.inv-name, .pur-sku-tbl td.inv-name, .lv-tbl td.lv-title { white-space: normal; }
.inv-sep > td { padding: 6px 12px; background: rgba(255,255,255,.05); font-size: 12px; color: #8a95a6; }
.inv-sep b { color: #c8d2e0; font-weight: 600; }
.inv-sep-i { margin-right: 6px; }
.inv-ops { white-space: nowrap; text-align: right; }
.inv-qty { width: 46px; padding: 3px 4px; text-align: right; }
.inv-low { color: #e11d48; }
.inv-none { padding: 30px; text-align: center; }
.pur-items select { width: 100%; }
.pur-items .pur_qty { width: 100%; text-align: right; }
.pur-unit > div { display: flex; align-items: baseline; gap: 6px; }
.pur-unit i { font-style: normal; font-size: 10px; color: #8a95a6; }
.pur-items-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.pur-sum b { margin-left: 6px; font-size: 14px; }
.pur-profit { font-size: 17px; font-weight: 700; color: #4A6CF7; line-height: 30px; }
.pur-auto { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.pur-money { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; align-items: end; }
.pur-money .form-item { margin: 0; }
.pur-ups { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.pur-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.10); }
.pur-foot-flow { flex: 1 1 300px; font-size: 11.5px; color: #8a95a6; }
.pur-sku-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pur-sku-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.pur-sku-search input { width: 196px; padding: 6px 10px; border: 1px solid var(--line-dfe3ea); border-radius: 6px; }
.dy-note { margin: 0 0 12px; font-size: 12.5px; line-height: 1.7; }
.dy-note-more { display: block; opacity: .68; }
.dy-tbl td:nth-child(2), .dy-tbl td:nth-child(3) { white-space: normal; min-width: 130px; }
.dy-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dy-st-l + .dy-st-l { margin-top: 3px; }
.lv-pager { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }

html[data-skin="light"] .inv-sep > td { background: #f7f9fc; color: #6b7a90; }
html[data-skin="light"] .inv-tbl .inv-dim { color: #6b7a90; }
html[data-skin="light"] .inv-sep b { color: #45536b; }
html[data-skin="light"] .pur-foot { border-top-color: #eef1f6; }
html[data-skin="light"] .dy-note { background: #f7f9fc; }

/* ══════════════════════════════════════════════════════════════════════════
   S 段 · 话术库 / OKR / 建店任务（2026-11-28）
   ──────────────────────────────────────────────────────────────────────────
   三页共同的病：卡片当容器用得太碎。
     · 话术库：工具条一张卡、AI 助手一张卡、列表一张卡，每张都只装一行东西；
     · OKR：月份选择器独占一整张卡，薪资 9 个数字被拉成两条通栏；
     · 建店任务：顶部四行长文折叠后仍留一条空卡。
   手法统一为「一页一张主卡 + 一条页头条 + 卡内分组」。
   ══════════════════════════════════════════════════════════════════════════ */

/* ── S1 话术库 ─────────────────────────────────────────────────────────── */
html[data-ui="ink"] .sc-card { padding-bottom: 8px; }
html[data-ui="ink"] .sc-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--k-line);
}
html[data-ui="ink"] .sc-title { margin: 0; padding: 0; border: 0; }
html[data-ui="ink"] .sc-cnt { margin-left: 8px; font-family: var(--k-mono); font-size: 11.5px; font-weight: 500; color: var(--k-ink-3); }
html[data-ui="ink"] .sc-top-r { display: flex; align-items: center; gap: 10px; }
html[data-ui="ink"] .sc-ai-st {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px;
  border-radius: 11px; background: rgba(255,255,255,.05); border: 1px solid var(--k-line-2);
  font-size: 11px; color: var(--k-ink-3); white-space: nowrap;
}
html[data-ui="ink"] .sc-ai-st.ok { border-color: rgba(61,214,140,.30); background: rgba(61,214,140,.10); color: #7FE0B0; }
html[data-ui="ink"] .sc-ai-st.bad { border-color: rgba(255,176,32,.32); background: rgba(255,176,32,.10); color: #FFC978; }

html[data-ui="ink"] .sc-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0 10px; }
html[data-ui="ink"] .sc-tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--k-panel-2); border-radius: 8px; }
html[data-ui="ink"] .sc-tab {
  height: 26px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent;
  color: var(--k-ink-2); font-size: 12.5px; line-height: 26px; cursor: pointer; transition: background .12s, color .12s;
}
html[data-ui="ink"] .sc-tab:hover { color: var(--k-ink); background: rgba(255,255,255,.05); }
html[data-ui="ink"] .sc-tab.on { background: rgba(91,140,255,.20); color: #C6D6FF; font-weight: 600; }
html[data-ui="ink"] .sc-search { display: flex; align-items: center; gap: 6px; margin-left: auto; }
html[data-ui="ink"] .sc-search input {
  width: 236px; height: 28px; padding: 0 10px;
  background: var(--k-panel-2); border: 1px solid var(--k-line-2); border-radius: 6px; color: var(--k-ink);
}
html[data-ui="ink"] .sc-search input::placeholder { color: var(--k-ink-3); }
html[data-ui="ink"] .sc-ai {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 4px; padding: 8px 10px;
  background: rgba(255,255,255,.022); border: 1px dashed var(--k-line-2); border-radius: 8px;
}
html[data-ui="ink"] .sc-ai-t { font-size: 12px; font-weight: 600; color: var(--k-ink-2); margin-right: 2px; }
html[data-ui="ink"] .sc-ai-hint { margin-left: auto; font-size: 11px; color: var(--k-ink-3); }

html[data-ui="ink"] .sc-tbl { margin-top: 8px; }
html[data-ui="ink"] .sc-tbl th, html[data-ui="ink"] .sc-tbl td { white-space: nowrap; }
html[data-ui="ink"] .sc-tbl th.sc-id { width: 44px; }
html[data-ui="ink"] .sc-tbl th.sc-cat { width: 76px; }
html[data-ui="ink"] .sc-tbl th.sc-au { width: 96px; }
html[data-ui="ink"] .sc-tbl th.sc-tg { width: 168px; }
html[data-ui="ink"] .sc-tbl th.sc-when { width: 96px; }
html[data-ui="ink"] .sc-tbl th.sc-ops { width: 132px; text-align: right; }
html[data-ui="ink"] .sc-tbl td.sc-id { color: var(--k-ink-3); font-family: var(--k-mono); font-size: 11.5px; }
html[data-ui="ink"] .sc-tbl td.sc-main { white-space: normal; min-width: 300px; }
html[data-ui="ink"] .sc-tt { font-size: 12.5px; font-weight: 600; color: var(--k-ink); text-decoration: none; cursor: pointer; }
/* 摘要固定 2 行：话术长短不一，不限行的话 8 行表能排出三种行高，纵向扫读失去节奏 */
html[data-ui="ink"] .sc-tbl td.sc-main .inv-sub {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; max-height: 3.2em; line-height: 1.6;
}
html[data-ui="ink"] .sc-tt:hover { color: var(--k-accent-2); text-decoration: underline; }
html[data-ui="ink"] .sc-tag {
  display: inline-block; margin: 0 4px 2px 0; padding: 1px 6px;
  background: rgba(255,255,255,.055); border-radius: 4px; font-size: 10.5px; color: var(--k-ink-2);
}
html[data-ui="ink"] .sc-tag.more { color: var(--k-ink-3); background: transparent; }
html[data-ui="ink"] .sc-none { color: var(--k-ink-3); }
html[data-ui="ink"] .sc-tbl td.sc-ops { text-align: right; }
html[data-ui="ink"] .sc-empty { padding: 44px 20px !important; text-align: center; }
html[data-ui="ink"] .sc-empty-ico { font-size: 26px; opacity: .45; line-height: 1; }
html[data-ui="ink"] .sc-empty-t { margin: 10px 0 5px; font-size: 13px; font-weight: 600; color: var(--k-ink); }
html[data-ui="ink"] .sc-empty-s { font-size: 11.5px; color: var(--k-ink-3); line-height: 1.7; }

/* ── S2 OKR ────────────────────────────────────────────────────────────── */
html[data-ui="ink"] .okr-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 12px;
}
html[data-ui="ink"] .okr-tabs {
  display: inline-flex; gap: 2px; padding: 3px; margin: 0; border: 0;
  background: var(--k-panel-2); border-radius: 8px;
}
html[data-ui="ink"] .okr-tab {
  height: 27px; padding: 0 13px; margin: 0; border: 0; border-radius: 6px;
  background: transparent; color: var(--k-ink-2); font-size: 12.5px; line-height: 27px;
  transition: background .12s, color .12s;
}
html[data-ui="ink"] .okr-tab:hover { background: rgba(255,255,255,.05); color: var(--k-ink); }
html[data-ui="ink"] .okr-tab.active {
  background: rgba(91,140,255,.20); color: #C6D6FF; font-weight: 600; border: 0;
}
html[data-ui="ink"] .okr-bar-r { display: flex; align-items: center; gap: 8px; }
html[data-ui="ink"] .okr-bar-lb { font-size: 11.5px; color: var(--k-ink-3); }
html[data-ui="ink"] .okr-bar-r input {
  height: 28px; padding: 0 8px; background: var(--k-panel-2);
  border: 1px solid var(--k-line-2); border-radius: 6px; color: var(--k-ink);
}

/* 薪资：9 个数字项一格一个，输入框不再被拉成 230px 的通栏 */
html[data-ui="ink"] .okr-fg { display: grid; grid-template-columns: repeat(auto-fit, minmax(156px, 1fr)); gap: 10px 12px; }
html[data-ui="ink"] .okr-fg .form-item { margin: 0; min-width: 0; }
html[data-ui="ink"] .okr-fg .form-item > label {
  display: flex; align-items: flex-end; min-height: 2.7em; margin-bottom: 4px;
  font-size: 11px; line-height: 1.35; color: var(--k-ink-3);
}
html[data-ui="ink"] .okr-fg .form-item > input { width: 100%; height: 30px; }
html[data-ui="ink"] .okr-fg .okr-fg-wide { grid-column: 1 / -1; }
html[data-ui="ink"] .okr-split { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 4px; }
html[data-ui="ink"] .okr-split-note {
  margin-top: 26px; padding: 10px 12px;
  background: rgba(255,255,255,.022); border-left: 2px solid var(--k-line-2);
  border-radius: 0 8px 8px 0; font-size: 11.5px; line-height: 1.8; color: var(--k-ink-3);
}
html[data-ui="ink"] .okr-lad { width: 100%; max-width: 560px; }
html[data-ui="ink"] .okr-lad th, html[data-ui="ink"] .okr-lad td { white-space: nowrap; padding-top: 5px; padding-bottom: 5px; }
html[data-ui="ink"] .okr-lad td input.cell-input { width: 100%; min-width: 88px; }
html[data-ui="ink"] .okr-lad td:nth-child(1) { width: 84px; color: var(--k-ink-3); font-size: 11.5px; }
html[data-ui="ink"] .okr-lad td:nth-child(2) { width: 148px; }
html[data-ui="ink"] .okr-lad td:nth-child(4) { width: 128px; }
html[data-ui="ink"] .okr-lad label { font-size: 11.5px; color: var(--k-ink-2); }

/* 配置表：输入框撑满列，操作列贴右且不给空隙 */
html[data-ui="ink"] .okr-cfg-tbl th { white-space: nowrap; font-size: 11px; }
html[data-ui="ink"] .okr-cfg-tbl td { white-space: nowrap; }
html[data-ui="ink"] .okr-cfg-tbl td input.cell-input,
html[data-ui="ink"] .okr-cfg-tbl td select.cell-input { width: 100%; max-width: none; height: 28px; }
html[data-ui="ink"] .okr-dim-tbl th:nth-child(1) { width: 40px; }
html[data-ui="ink"] .okr-dim-tbl th:nth-child(2) { width: 172px; }
html[data-ui="ink"] .okr-dim-tbl th:nth-child(3) { width: 208px; }
html[data-ui="ink"] .okr-dim-tbl th:nth-child(4) { width: 92px; }
html[data-ui="ink"] .okr-dim-tbl th:nth-child(6) { width: 132px; }
html[data-ui="ink"] .okr-dim-tbl th:nth-child(7) { width: 44px; }
html[data-ui="ink"] .okr-ms-tbl th:nth-child(1) { width: 40px; }
html[data-ui="ink"] .okr-ms-tbl th:nth-child(3) { width: 150px; }
html[data-ui="ink"] .okr-ms-tbl th:nth-child(4) { width: 176px; }
html[data-ui="ink"] .okr-ms-tbl th:nth-child(5) { width: 44px; }
html[data-ui="ink"] .okr-dim-tbl td:nth-child(1),
html[data-ui="ink"] .okr-ms-tbl td:nth-child(1) { color: var(--k-ink-3); font-size: 11.5px; }
html[data-ui="ink"] .okr-cfg-tbl td:last-child { text-align: right; }
html[data-ui="ink"] .okr-dim-tbl td:nth-child(4) input.cell-input { max-width: 80px; }
html[data-ui="ink"] .okr-dim-tbl td:nth-child(6) input.cell-input { max-width: 116px; }
html[data-ui="ink"] .okr-ms-tbl td:nth-child(3), html[data-ui="ink"] .okr-ms-tbl td:nth-child(4) { white-space: nowrap; }
html[data-ui="ink"] .okr-ms-tbl td:nth-child(4) input.cell-input { max-width: 140px; display: inline-block; vertical-align: middle; }
html[data-ui="ink"] .card-foot-tip { margin-top: 10px; font-size: 11.5px; line-height: 1.75; color: var(--k-ink-3); }

html[data-ui="ink"] .okr-cfg-lead {
  margin: 18px 2px 8px; padding-left: 2px;
  font-size: 11.5px; color: var(--k-ink-3); letter-spacing: .3px;
}
/* 团队进度：每人一行，六格上下对齐 */
html[data-ui="ink"] .okr-plist { margin-top: 2px; }
html[data-ui="ink"] .okr-pr {
  display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 10px 2px; border-top: 1px solid var(--k-line);
}
html[data-ui="ink"] .okr-pr:first-child { border-top: 0; }
html[data-ui="ink"] .okr-pn b { font-size: 13px; color: var(--k-ink); }
html[data-ui="ink"] .okr-pn i { display: block; margin-top: 2px; font-style: normal; font-size: 10.5px; color: var(--k-ink-3); }
html[data-ui="ink"] .okr-pcs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
html[data-ui="ink"] .okr-pc { min-width: 0; }
html[data-ui="ink"] .okr-pc-k { font-size: 10.5px; color: var(--k-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-ui="ink"] .okr-pc-v { margin-top: 1px; font-family: var(--k-mono); font-size: 14px; font-weight: 600; color: var(--k-ink); }
html[data-ui="ink"] .okr-pc-v span { font-size: 10.5px; font-weight: 400; color: var(--k-ink-3); }
html[data-ui="ink"] .okr-pc-bar { height: 4px; margin: 4px 0 3px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
html[data-ui="ink"] .okr-pc-bar i { display: block; height: 4px; background: var(--k-accent); border-radius: 2px; }
html[data-ui="ink"] .okr-pc-p { font-size: 10.5px; color: var(--k-ink-3); font-family: var(--k-mono); }
html[data-ui="ink"] .okr-pc.ok .okr-pc-v { color: var(--k-ok); }
html[data-ui="ink"] .okr-pc.ok .okr-pc-bar i { background: var(--k-ok); }
html[data-ui="ink"] .okr-pc.bad .okr-pc-v { color: var(--k-bad); }
html[data-ui="ink"] .okr-pc.bad .okr-pc-bar i { background: var(--k-bad); }
html[data-ui="ink"] .okr-pc.bad .okr-pc-p { color: #FFA6B3; }

/* ── S3 建店任务 ───────────────────────────────────────────────────────── */
html[data-ui="ink"] .bt-intro { padding-top: 10px; padding-bottom: 10px; }
html[data-ui="ink"] .bt-intro-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
html[data-ui="ink"] .bt-intro-t { font-size: 14px; font-weight: 600; color: var(--k-ink); }
html[data-ui="ink"] .bt-intro-r { display: flex; gap: 8px; }
html[data-ui="ink"] .bt-doc { margin-top: 8px; }
html[data-ui="ink"] .bt-doc > summary {
  display: inline-flex; align-items: center; gap: 5px; list-style: none;
  font-size: 11.5px; color: var(--k-ink-3); cursor: pointer; user-select: none;
}
html[data-ui="ink"] .bt-doc > summary::-webkit-details-marker { display: none; }
html[data-ui="ink"] .bt-doc > summary::before { content: '▸'; font-size: 10px; }
html[data-ui="ink"] .bt-doc[open] > summary::before { content: '▾'; }
html[data-ui="ink"] .bt-doc > summary:hover { color: var(--k-ink-2); }
html[data-ui="ink"] .bt-doc-in {
  margin-top: 8px; padding: 10px 12px;
  background: rgba(255,255,255,.022); border-left: 2px solid var(--k-line-2);
  border-radius: 0 8px 8px 0; font-size: 11.5px; line-height: 1.9; color: var(--k-ink-2);
}
html[data-ui="ink"] .bt-bar2-r { display: flex; align-items: center; gap: 10px; margin-left: auto; }
html[data-ui="ink"] .bt-count { font-size: 11.5px; color: var(--k-ink-3); white-space: nowrap; }
html[data-ui="ink"] .bt-count b { color: var(--k-ink-2); font-family: var(--k-mono); }
html[data-ui="ink"] .bt-hd { padding-top: 9px; padding-bottom: 9px; }
html[data-ui="ink"] .bt-step { padding-top: 7px; padding-bottom: 7px; }
html[data-ui="ink"] .bt-seq { width: 24px; height: 24px; flex: 0 0 24px; line-height: 24px; font-size: 12px; }
html[data-ui="ink"] .bt-acts { gap: 5px; }
html[data-ui="ink"] .bt-acts .btn { min-width: 84px; justify-content: center; }
html[data-ui="ink"] .bt-note.warn {
  background: rgba(255,176,32,.055); border-top: 1px dashed rgba(255,176,32,.28);
  color: #E3AE5A; font-size: 11.5px; padding: 7px 14px;
}
html[data-ui="ink"] .bt-bar { width: 118px; }

/* ── S4 不带作用域的兜底：`?ui=classic` 下这些新类名也必须有样子 ─────────────
   旧界面默认 dark 皮肤 ⇒ 以深色为基准，浅色用 html[data-skin="light"] 覆盖。 */
.sc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sc-title { margin: 0 !important; }
.sc-cnt { margin-left: 8px; font-size: 11.5px; color: #8a95a6; }
.sc-top-r { display: flex; align-items: center; gap: 10px; }
.sc-ai-st { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); font-size: 11px; color: #8a95a6; white-space: nowrap; }
.sc-ai-st.ok { color: #7FE0B0; border-color: rgba(61,214,140,.30); }
.sc-ai-st.bad { color: #FFC978; border-color: rgba(255,176,32,.32); }
.sc-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0 10px; }
.sc-tabs { display: inline-flex; gap: 2px; padding: 3px; background: rgba(255,255,255,.05); border-radius: 8px; }
.sc-tab { height: 26px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: #98a5ba; font-size: 12.5px; line-height: 26px; cursor: pointer; }
.sc-tab.on { background: rgba(91,140,255,.22); color: #C6D6FF; font-weight: 600; }
.sc-search { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.sc-search input { width: 236px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; }
.sc-ai { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; padding: 8px 10px; border: 1px dashed rgba(255,255,255,.14); border-radius: 8px; }
.sc-ai-t { font-size: 12px; font-weight: 600; color: #98a5ba; }
.sc-ai-hint { margin-left: auto; font-size: 11px; color: #8a95a6; }
.sc-tbl th, .sc-tbl td { white-space: nowrap; }
.sc-tbl td.sc-main { white-space: normal; }
.sc-tbl td.sc-main .inv-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-height: 3.2em; line-height: 1.6; }
.sc-tt { font-weight: 600; cursor: pointer; text-decoration: none; }
.sc-tag { display: inline-block; margin: 0 4px 2px 0; padding: 1px 6px; background: rgba(255,255,255,.06); border-radius: 4px; font-size: 10.5px; }
.sc-tag.more { background: transparent; opacity: .65; }
.sc-none { opacity: .6; }
.sc-tbl td.sc-ops { text-align: right; }
.sc-empty { padding: 44px 20px !important; text-align: center; }
.sc-empty-ico { font-size: 26px; opacity: .45; line-height: 1; }
.sc-empty-t { margin: 10px 0 5px; font-size: 13px; font-weight: 600; }
.sc-empty-s { font-size: 11.5px; opacity: .68; line-height: 1.7; }

.okr-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.okr-bar .okr-tabs { display: inline-flex; gap: 2px; padding: 3px; margin: 0; border: 0; background: rgba(255,255,255,.05); border-radius: 8px; }
.okr-bar .okr-tab { height: 27px; padding: 0 13px; margin: 0; border: 0; border-radius: 6px; background: transparent; line-height: 27px; }
.okr-bar .okr-tab.active { background: rgba(91,140,255,.22); border: 0; }
.okr-bar-r { display: flex; align-items: center; gap: 8px; }
.okr-bar-lb { font-size: 11.5px; opacity: .68; }
.okr-bar-r input { height: 28px; padding: 0 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; }
.okr-fg { display: grid; grid-template-columns: repeat(auto-fit, minmax(156px, 1fr)); gap: 10px 12px; }
.okr-fg .form-item { margin: 0; min-width: 0; }
.okr-fg .form-item > label { display: flex; align-items: flex-end; min-height: 2.7em; margin-bottom: 4px; font-size: 11px; line-height: 1.35; opacity: .7; }
.okr-fg .form-item > input { width: 100%; }
.okr-fg .okr-fg-wide { grid-column: 1 / -1; }
.okr-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; margin-top: 4px; }
.okr-split-note { margin-top: 26px; padding: 10px 12px; border-left: 2px solid rgba(255,255,255,.16); font-size: 11.5px; line-height: 1.8; opacity: .72; }
.okr-lad { width: 100%; max-width: 560px; }
.okr-lad th, .okr-lad td { white-space: nowrap; }
.okr-lad td input.cell-input { width: 100%; min-width: 88px; }
.okr-lad td:nth-child(1) { width: 84px; }
.okr-lad td:nth-child(2) { width: 148px; }
.okr-lad td:nth-child(4) { width: 128px; }
.okr-lad label { font-size: 11.5px; }
.okr-cfg-tbl th, .okr-cfg-tbl td { white-space: nowrap; }
.okr-cfg-tbl td input.cell-input, .okr-cfg-tbl td select.cell-input { width: 100%; max-width: 230px; }
.okr-cfg-tbl td:last-child { text-align: right; }
.card-foot-tip { margin-top: 10px; font-size: 11.5px; line-height: 1.75; opacity: .68; }
.okr-plist { margin-top: 2px; }
.okr-pr { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 2px; border-top: 1px solid rgba(255,255,255,.08); }
.okr-pr:first-child { border-top: 0; }
.okr-pn b { font-size: 13px; }
.okr-pn i { display: block; margin-top: 2px; font-style: normal; font-size: 10.5px; opacity: .62; }
.okr-pcs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.okr-pc { min-width: 0; }
.okr-pc-k { font-size: 10.5px; opacity: .68; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.okr-pc-v { margin-top: 1px; font-size: 14px; font-weight: 600; }
.okr-pc-v span { font-size: 10.5px; font-weight: 400; opacity: .62; }
.okr-pc-bar { height: 4px; margin: 4px 0 3px; background: rgba(255,255,255,.10); border-radius: 2px; overflow: hidden; }
.okr-pc-bar i { display: block; height: 4px; background: #5B8CFF; border-radius: 2px; }
.okr-pc-p { font-size: 10.5px; opacity: .68; }
.okr-pc.ok .okr-pc-v { color: #3DD68C; }
.okr-pc.ok .okr-pc-bar i { background: #3DD68C; }
.okr-pc.bad .okr-pc-v { color: #FF6B81; }
.okr-pc.bad .okr-pc-bar i { background: #FF6B81; }

.bt-intro-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bt-intro-t { font-size: 14px; font-weight: 600; }
.bt-intro-r { display: flex; gap: 8px; }
.bt-doc { margin-top: 8px; }
.bt-doc > summary { display: inline-flex; align-items: center; gap: 5px; list-style: none; font-size: 11.5px; opacity: .7; cursor: pointer; }
.bt-doc > summary::-webkit-details-marker { display: none; }
.bt-doc > summary::before { content: '▸'; font-size: 10px; }
.bt-doc[open] > summary::before { content: '▾'; }
.bt-doc-in { margin-top: 8px; padding: 10px 12px; border-left: 2px solid rgba(255,255,255,.16); font-size: 11.5px; line-height: 1.9; opacity: .85; }
.bt-acts .btn { min-width: 84px; justify-content: center; }

html[data-skin="light"] .sc-top { border-bottom-color: #eef1f6; }
html[data-skin="light"] .sc-cnt, html[data-skin="light"] .sc-ai-hint, html[data-skin="light"] .okr-bar-lb { color: #6b7a90; }
html[data-skin="light"] .sc-ai-st { background: #f4f6fa; border-color: #e3e8f2; color: #6b7a90; }
html[data-skin="light"] .sc-tabs, html[data-skin="light"] .okr-bar .okr-tabs { background: #f2f5fa; }
html[data-skin="light"] .sc-tab, html[data-skin="light"] .okr-bar .okr-tab { color: #5b6b80; }
html[data-skin="light"] .sc-tab.on, html[data-skin="light"] .okr-bar .okr-tab.active { background: #e3ebff; color: #2f52c8; }
html[data-skin="light"] .sc-ai { border-color: #dfe5ef; background: #fafbfd; }
html[data-skin="light"] .sc-tag { background: #eef2f8; color: #4a566b; }
html[data-skin="light"] .sc-empty-s, html[data-skin="light"] .card-foot-tip { color: #6b7a90; }
html[data-skin="light"] .okr-pr { border-top-color: #eef1f6; }
html[data-skin="light"] .okr-pc-bar { background: #eef1f6; }
html[data-skin="light"] .okr-pc-k, html[data-skin="light"] .okr-pc-p { color: #6b7a90; }
html[data-skin="light"] .okr-pn i { color: #6b7a90; }
html[data-skin="light"] .okr-split-note, html[data-skin="light"] .bt-doc-in { border-left-color: #dfe5ef; color: #5f6e85; background: #fafbfd; }
.okr-cfg-lead { margin: 18px 2px 8px; padding-left: 2px; font-size: 11.5px; opacity: .68; }

.bt-bar2-r { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.bt-count { font-size: 11.5px; opacity: .72; white-space: nowrap; }

/* ══════════════════════════════════════════════════════════════════════════
   T 段 · 商城管理（2026-11-28）
   ──────────────────────────────────────────────────────────────────────────
   这一页的 crowding 是「10 个 tab × 10 张宽表」双重的：
     · tab 一条 10 个按钮，1280 下被压成竖排两三行字（「实时订单」断行）；
     · 订单表 min-width 1680px ⇒ 金额列被裁、操作列几乎看不见，必须横滚才敢用。
   手法：tab 按 group 拆两行、组名缩成左侧小标；把「同一个人/同一件事」的列并成一格
        （单号+时间、商户+收货、金额+件数），操作列只留 1 个主按钮 + ⋯。
   ══════════════════════════════════════════════════════════════════════════ */

/* ── T1 tab 条：两行分组，每个 tab 单行完整显示 ─────────────────────────── */
html[data-ui="ink"] .m-nav { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
html[data-ui="ink"] .m-nav-row { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; }
html[data-ui="ink"] .m-nav-grp {
  flex: 0 0 auto; width: 58px; padding-left: 2px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .3px;
  color: var(--k-ink-3); white-space: nowrap;
}
html[data-ui="ink"] .m-nav .vtab-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 10px; border: 1px solid transparent; border-radius: 6px;
  background: transparent; box-shadow: none; color: var(--k-ink-2);
  font-size: 12.5px; line-height: 1; white-space: nowrap;
}
html[data-ui="ink"] .m-nav .vtab-btn:hover {
  background: rgba(255,255,255,.05); border-color: transparent;
  color: var(--k-ink); box-shadow: none;
}
html[data-ui="ink"] .m-nav .vtab-btn.on {
  background: rgba(91,140,255,.20); border-color: transparent; box-shadow: none;
  color: #C6D6FF; font-weight: 600;
}
html[data-ui="ink"] .m-tab-n {
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--k-accent); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}
html[data-ui="ink"] .m-tab-n.red { background: var(--k-bad); }

/* ── T2 实时订单主表 ────────────────────────────────────────────────────── */
html[data-ui="ink"] .m-tbl th, html[data-ui="ink"] .m-tbl td { white-space: nowrap; }
html[data-ui="ink"] .m-tbl td.m-no b { font-family: var(--k-mono); font-size: 12px; font-weight: 600; color: var(--k-ink); }
html[data-ui="ink"] .m-tbl td.m-cust { white-space: normal; min-width: 234px; line-height: 1.5; }
html[data-ui="ink"] .m-cust b { font-size: 12.5px; color: var(--k-ink); }
html[data-ui="ink"] .m-store { margin-left: 6px; font-size: 10.5px; color: var(--k-ink-3); }
html[data-ui="ink"] .m-tbl td .m-addr {
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
html[data-ui="ink"] .m-tbl th.num, html[data-ui="ink"] .m-tbl td.num { text-align: right; }
html[data-ui="ink"] .m-tbl td.m-amt { font-family: var(--k-mono); font-weight: 700; }
html[data-ui="ink"] .m-st-ch { margin-top: 4px; }
html[data-ui="ink"] .m-tbl td.m-mat { white-space: normal; }
html[data-ui="ink"] .m-mat-wx { margin-top: 4px; }
html[data-ui="ink"] .m-tbl td.m-ship { white-space: normal; }
html[data-ui="ink"] .m-ops { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
html[data-ui="ink"] .m-ops > .btn { flex: 0 0 auto; }

/* ── T3 底部口径折叠 ───────────────────────────────────────────────────── */
html[data-ui="ink"] .m-doc { margin-top: 10px; }
html[data-ui="ink"] .m-doc > summary {
  display: inline-flex; align-items: center; gap: 5px; list-style: none;
  font-size: 11.5px; color: var(--k-ink-3); cursor: pointer; user-select: none;
}
html[data-ui="ink"] .m-doc > summary::-webkit-details-marker { display: none; }
html[data-ui="ink"] .m-doc > summary::before { content: '▸'; font-size: 10px; }
html[data-ui="ink"] .m-doc[open] > summary::before { content: '▾'; }
html[data-ui="ink"] .m-doc > summary:hover { color: var(--k-ink-2); }
html[data-ui="ink"] .m-doc-in {
  margin-top: 7px; padding: 10px 12px;
  background: rgba(255,255,255,.022); border-left: 2px solid var(--k-line-2);
  border-radius: 0 8px 8px 0; font-size: 11.5px; line-height: 1.85; color: var(--k-ink-2);
}
html[data-ui="ink"] .m-doc-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
html[data-ui="ink"] .m-doc-bar-t { font-size: 11.5px; color: var(--k-ink-3); }

/* ── T4 不带作用域的兜底：`?ui=classic` 下这些新类名也必须有样子 ─────────────
   旧界面默认 dark 皮肤 ⇒ 以深色为基准，浅色用 html[data-skin="light"] 覆盖。 */
.m-nav { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.m-nav-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.m-nav-grp { flex: 0 0 auto; width: 58px; font-size: 10.5px; font-weight: 600; color: #8a95a6; white-space: nowrap; }
.m-tab-n { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #2563eb; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.m-tab-n.red { background: #e11d48; }
.m-tbl th, .m-tbl td { white-space: nowrap; }
.m-tbl td.m-cust { white-space: normal; }
.m-tbl td .m-addr { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.m-tbl td.m-mat, .m-tbl td.m-ship { white-space: normal; }
.m-st-ch, .m-mat-wx { margin-top: 4px; }
.m-ops { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.m-doc { margin-top: 10px; }
.m-doc > summary { display: inline-flex; align-items: center; gap: 5px; list-style: none; font-size: 12px; opacity: .72; cursor: pointer; }
.m-doc > summary::-webkit-details-marker { display: none; }
.m-doc > summary::before { content: '▸'; font-size: 10px; }
.m-doc[open] > summary::before { content: '▾'; }
.m-doc-in { margin-top: 7px; padding: 10px 12px; border-left: 2px solid rgba(255,255,255,.16); font-size: 12px; line-height: 1.85; opacity: .9; }
.m-doc-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.m-doc-bar-t { font-size: 12px; opacity: .7; }

html[data-skin="light"] .m-nav-grp, html[data-skin="light"] .m-doc-bar-t { color: #6b7a90; }
html[data-skin="light"] .m-doc-in { background: #f7f9fc; border-left-color: #dfe5ef; color: #44526a; }
html[data-skin="light"] .m-store { color: #7a879c; }

.m-tbl th.num, .m-tbl td.num { text-align: right; }

/* ── T5 商城各面板表：同一套「主文 + 副文」节奏 ───────────────────────────
   全站统一的 .inv-sub（11px 灰色副行）在这几张表里就是第二行口径，不再各自写 inline style。 */
html[data-ui="ink"] .inv-sub.bad { color: var(--k-bad); }
html[data-ui="ink"] .inv-sub.ok { color: var(--k-ok); }
html[data-ui="ink"] .inv-sub.warn { color: #FFC978; }

/* 商品上架 */
html[data-ui="ink"] .gd-tbl th, html[data-ui="ink"] .gd-tbl td { white-space: nowrap; }
html[data-ui="ink"] .gd-tbl td.gd-name { white-space: normal; min-width: 236px; }
html[data-ui="ink"] .gd-tbl td.gd-name b { font-size: 12.5px; color: var(--k-ink); }
html[data-ui="ink"] .gd-tbl td.gd-mp b { color: var(--k-ok); }
html[data-ui="ink"] .gd-tbl td.gd-ops { text-align: right; }
html[data-ui="ink"] .gd-tbl td.gd-ops .btn.btn-sm { height: 24px; padding: 0 8px; font-size: 11.5px; }
html[data-ui="ink"] .gd-tbl .od-proof { font-size: 11px; }

/* 商户账号 */
html[data-ui="ink"] .mc-tbl th, html[data-ui="ink"] .mc-tbl td { white-space: nowrap; }
html[data-ui="ink"] .mc-tbl td.mc-name { white-space: normal; min-width: 196px; }
html[data-ui="ink"] .mc-tbl td.mc-name b { font-size: 12.5px; color: var(--k-ink); }
html[data-ui="ink"] .mc-phone { font-family: var(--k-mono); font-size: 11px; letter-spacing: .2px; }
html[data-ui="ink"] .mc-tbl td.mc-addr { white-space: normal; min-width: 220px; }
html[data-ui="ink"] .mc-tbl td.mc-addr .mc-none { color: var(--k-ink-3); }
html[data-ui="ink"] .mc-tbl td.mc-ops { text-align: right; }
html[data-ui="ink"] .mc-tbl td.mc-ops .btn.btn-sm { height: 24px; padding: 0 8px; font-size: 11.5px; }
html[data-ui="ink"] .mc-none { color: var(--k-ink-3); font-size: 11px; }

/* 加盟意向 */
html[data-ui="ink"] .jn-tbl th, html[data-ui="ink"] .jn-tbl td { white-space: nowrap; }
html[data-ui="ink"] .jn-tbl td.jn-name { white-space: normal; min-width: 160px; }
html[data-ui="ink"] .jn-tbl td.jn-name b { font-size: 12.5px; color: var(--k-ink); }
html[data-ui="ink"] .jn-phone { font-family: var(--k-mono); font-size: 11px; }
html[data-ui="ink"] .jn-tbl td.jn-remark { white-space: normal; min-width: 220px; line-height: 1.55; }
html[data-ui="ink"] .jn-tbl td.jn-ops { text-align: right; }
html[data-ui="ink"] .jn-tbl td.jn-ops .btn.btn-sm { height: 24px; padding: 0 8px; font-size: 11.5px; }

/* 待指定供货商 */
html[data-ui="ink"] .as-tbl th, html[data-ui="ink"] .as-tbl td { white-space: nowrap; }
html[data-ui="ink"] .as-tbl td.as-no b { font-family: var(--k-mono); font-size: 12px; font-weight: 600; }
html[data-ui="ink"] .as-tbl td.as-cust { white-space: normal; min-width: 222px; line-height: 1.5; }
html[data-ui="ink"] .as-tbl td.as-cust b { font-size: 12.5px; }
html[data-ui="ink"] .as-tbl td .as-addr { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
html[data-ui="ink"] .as-tbl td.as-cost .bad { color: var(--k-bad); font-weight: 600; }
html[data-ui="ink"] .as-tbl td.as-ops { text-align: right; }
html[data-ui="ink"] .as-tbl td.as-ops .btn.btn-sm { height: 26px; padding: 0 10px; font-size: 12px; }

/* 供货单跟踪 */
html[data-ui="ink"] .sp-tbl th, html[data-ui="ink"] .sp-tbl td { white-space: nowrap; }
html[data-ui="ink"] .sp-tbl td.sp-no b { font-family: var(--k-mono); font-size: 12px; font-weight: 600; }
html[data-ui="ink"] .sp-tbl td.sp-flow { white-space: normal; min-width: 200px; line-height: 1.5; }
html[data-ui="ink"] .sp-tbl td.sp-flow b { font-size: 12.5px; }
html[data-ui="ink"] .sp-vendor { color: var(--k-accent-2); }
html[data-ui="ink"] .sp-vp { font-family: var(--k-mono); font-size: 10.5px; color: var(--k-ink-3); }
html[data-ui="ink"] .sp-tbl td.sp-track { white-space: normal; min-width: 146px; line-height: 1.45; }
html[data-ui="ink"] .sp-tbl td.sp-ops { text-align: right; }
html[data-ui="ink"] .sp-tbl td.sp-ops .btn.btn-sm { height: 24px; padding: 0 8px; font-size: 11.5px; }

/* 供货商账号 */
html[data-ui="ink"] .vd-tbl th, html[data-ui="ink"] .vd-tbl td { white-space: nowrap; }
html[data-ui="ink"] .vd-tbl td.vd-name { white-space: normal; min-width: 180px; }
html[data-ui="ink"] .vd-tbl td.vd-name b { font-size: 12.5px; color: var(--k-ink); }
html[data-ui="ink"] .vd-tbl td.vd-phone { font-family: var(--k-mono); font-size: 12px; }
html[data-ui="ink"] .vd-tbl td.vd-phone .inv-sub { font-family: var(--k-sans, inherit); }
html[data-ui="ink"] .vd-tbl td.vd-ops { text-align: right; }
html[data-ui="ink"] .vd-tbl td.vd-ops .btn.btn-sm { height: 24px; padding: 0 8px; font-size: 11.5px; }

/* ── T6 兜底（不带作用域，旧界面同样是 dark 基准）───────────────────────── */
.gd-tbl th, .gd-tbl td, .mc-tbl th, .mc-tbl td, .jn-tbl th, .jn-tbl td,
.as-tbl th, .as-tbl td, .sp-tbl th, .sp-tbl td, .vd-tbl th, .vd-tbl td { white-space: nowrap; }
.gd-tbl td.gd-name, .mc-tbl td.mc-name, .jn-tbl td.jn-name, .as-tbl td.as-cust,
.sp-tbl td.sp-flow, .sp-tbl td.sp-track, .vd-tbl td.vd-name,
.mc-tbl td.mc-addr, .jn-tbl td.jn-remark { white-space: normal; }
.gd-tbl td.gd-ops, .mc-tbl td.mc-ops, .jn-tbl td.jn-ops, .as-tbl td.as-ops,
.sp-tbl td.sp-ops, .vd-tbl td.vd-ops { text-align: right; }
.inv-sub.bad, .as-tbl td.as-cost .bad { color: #e11d48; }
.inv-sub.ok { color: #059669; }
.inv-sub.warn { color: #b45309; }
.mc-none { opacity: .62; font-size: 11px; }
.mc-phone, .jn-phone, .sp-vp, .as-tbl td.as-no b, .sp-tbl td.sp-no b, .vd-tbl td.vd-phone { font-family: ui-monospace, Menlo, monospace; }
.as-tbl td .as-addr { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sp-vendor { color: #3b82f6; }

/* ── T7 活动运营：轮播 / 公告 ─────────────────────────────────────────── */
html[data-ui="ink"] .m-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 2px 0 8px; }
html[data-ui="ink"] .m-doc-inline { margin-top: 0; }
html[data-ui="ink"] .m-doc-inline > summary { font-size: 11.5px; }
html[data-ui="ink"] .m-doc-inline .m-doc-in { max-width: 720px; }

html[data-ui="ink"] .bn-tbl th, html[data-ui="ink"] .bn-tbl td { white-space: nowrap; }
html[data-ui="ink"] .bn-tbl td.bn-main { white-space: normal; min-width: 210px; }
html[data-ui="ink"] .bn-main-in { display: flex; align-items: center; gap: 9px; }
html[data-ui="ink"] .bn-tt b { font-size: 12.5px; color: var(--k-ink); }
html[data-ui="ink"] .bn-tbl td.bn-style, html[data-ui="ink"] .bn-tbl td.bn-when { white-space: normal; line-height: 1.5; }
html[data-ui="ink"] .bn-tbl td.bn-ops { text-align: right; }
html[data-ui="ink"] .bn-tbl td.bn-ops .btn.btn-sm,
html[data-ui="ink"] .nt-tbl td.nt-ops .btn.btn-sm { height: 24px; padding: 0 8px; font-size: 11.5px; }

html[data-ui="ink"] .nt-tbl th, html[data-ui="ink"] .nt-tbl td { white-space: nowrap; }
html[data-ui="ink"] .nt-tbl td.nt-main { white-space: normal; min-width: 300px; line-height: 1.6; }
html[data-ui="ink"] .nt-tbl td.nt-lv, html[data-ui="ink"] .nt-tbl td.nt-when { white-space: normal; line-height: 1.5; }
html[data-ui="ink"] .nt-tbl td.nt-ops { text-align: right; }

.bn-main-in { display: flex; align-items: center; gap: 9px; }
.bn-tbl td.bn-main, .bn-tbl td.bn-style, .bn-tbl td.bn-when,
.nt-tbl td.nt-main, .nt-tbl td.nt-lv, .nt-tbl td.nt-when { white-space: normal; }
.bn-tbl td.bn-ops, .nt-tbl td.nt-ops { text-align: right; }
.m-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 2px 0 8px; }

/* 数字列右对齐（这些表的 th 用了 class="num" 但旧样式表只对部分表生效） */
html[data-ui="ink"] .gd-tbl th.num, html[data-ui="ink"] .gd-tbl td.num,
html[data-ui="ink"] .mc-tbl th.num, html[data-ui="ink"] .mc-tbl td.num,
html[data-ui="ink"] .as-tbl th.num, html[data-ui="ink"] .as-tbl td.num,
html[data-ui="ink"] .sp-tbl th.num, html[data-ui="ink"] .sp-tbl td.num,
html[data-ui="ink"] .vd-tbl th.num, html[data-ui="ink"] .vd-tbl td.num { text-align: right; }
.gd-tbl th.num, .gd-tbl td.num, .mc-tbl th.num, .mc-tbl td.num,
.as-tbl th.num, .as-tbl td.num, .sp-tbl th.num, .sp-tbl td.num,
.vd-tbl th.num, .vd-tbl td.num { text-align: right; }

/* 表宽铺满卡片：min-width 只是下限，列少时不留右边空档 */
html[data-ui="ink"] .m-tbl, html[data-ui="ink"] .gd-tbl, html[data-ui="ink"] .mc-tbl,
html[data-ui="ink"] .jn-tbl, html[data-ui="ink"] .as-tbl, html[data-ui="ink"] .sp-tbl,
html[data-ui="ink"] .vd-tbl, html[data-ui="ink"] .bn-tbl, html[data-ui="ink"] .nt-tbl { width: 100%; }
/* ══════════════════════════════════════════════════════════════════════════
   U. 客资管理（客资列表 / 客资公海 / 我的待办 / 今日分配 共用）
   ──────────────────────────────────────────────────────────────────────────
   2026-11-28 全站版面优化第 6 轮。判据只有一条：
   一屏要能看清「谁、什么时候进来、跟到哪、下一步点哪」，
   而不是把 14 列全塞进来、每行 4 行高、筛选条一行挤 13 个控件。
     ① 筛选卡拆两行：筛选一行（搜索+6 下拉+查询/重置）、日期+录入一行；
     ② 表格 14 → 9 列：微信 / 互动类型 / 归属 / 录入时间 下沉为相邻格副行
        （信息一个字没少，只是不再各占一列宽度；要整列看可在「⚙ 自定义列表」勾回）；
     ③ 去重说明条 3 行压成 1 行，规则进 title；
     ④ 跟进进度 3~4 行压成 2 行（元信息合并成一行）。
   ══════════════════════════════════════════════════════════════════════════ */

/* ── U1 筛选卡：两行栅格 ───────────────────────────────────────────────── */
.ld-f { display: flex; flex-direction: column; gap: 8px; }
.ld-fr { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.ld-fr .ld-kw { flex: 1 1 200px; min-width: 168px; }
.ld-fr select { width: 120px; flex: 0 0 auto; }
.ld-fr .ld-go { margin-left: 2px; }
.ld-fsp { flex: 1 1 0; min-width: 0; }
.ld-adds { display: flex; align-items: center; gap: 8px; }
.ld-ftitle { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
/* 控件基准（两套皮肤共用；ink 下这些旧变量已重映射成深色） */
.ld-fr select, .ld-fr .ld-kw {
  height: 30px; padding: 0 9px; box-sizing: border-box;
  border: 1px solid var(--line-dfe3ea); border-radius: 6px;
  background: var(--bg-ffffff); color: var(--ink-1f2937); font-size: 12.5px;
}
html[data-ui="ink"] .ld-fr select,
html[data-ui="ink"] .ld-fr .ld-kw {
  background: var(--k-panel-2); border-color: var(--k-line-2); color: var(--k-ink);
}
html[data-ui="ink"] .ld-fr select:focus,
html[data-ui="ink"] .ld-fr .ld-kw:focus {
  outline: none; border-color: var(--k-accent); box-shadow: 0 0 0 3px var(--k-accent-soft);
}

/* 录入日期条：框高与下拉对齐，快捷档不再把这一行撑到换行 */
#ld_range_bar, #la_date_bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#ld_range_bar .ld-d, #la_date_bar .ld-d {
  width: 130px; height: 28px; padding: 0 8px; box-sizing: border-box;
  border: 1px solid var(--line-dfe3ea); border-radius: 6px;
  background: var(--bg-ffffff); color: var(--ink-1f2937); font-size: 12px;
}
html[data-ui="ink"] #ld_range_bar .ld-d,
html[data-ui="ink"] #la_date_bar .ld-d {
  background: var(--k-panel-2); border-color: var(--k-line-2); color: var(--k-ink);
}
#ld_range_bar .btn, #la_date_bar .btn { height: 26px; padding: 0 7px; }
#ld_range_bar .dchip, #la_date_bar .dchip { height: 26px; display: inline-flex; align-items: center; }
#ld_range_bar .sub-tip, #la_date_bar .sub-tip { font-size: 11.5px; }

/* ── U2 表格：9 列默认视图 ─────────────────────────────────────────────── */
/* 副行（.ld-sub）：客户格里的手机/微信、# 格里的录入时间、状态格里的归属 */
.ld-sub {
  display: block; margin-top: 1px; font-size: 11.5px; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html[data-ui="ink"] .ld-sub { color: var(--k-ink-3); }
html[data-ui="ink"] .ld-tbl td.c-name { white-space: normal; min-width: 168px; max-width: 216px; }
html[data-ui="ink"] .ld-tbl td.c-name .ld-sub { max-width: 200px; }
html[data-ui="ink"] .ld-dot { margin: 0 4px; }
html[data-ui="ink"] .ld-tbl td.ld-id { font-variant-numeric: tabular-nums; }
html[data-ui="ink"] .ld-tbl td.ld-src, html[data-ui="ink"] .ld-tbl td.ld-st { white-space: nowrap; }
html[data-ui="ink"] .ld-tbl td.ld-src { min-width: 130px; max-width: 196px; }
html[data-ui="ink"] .ld-tbl td.ld-src .ld-sub { max-width: 186px; }
html[data-ui="ink"] .ld-warn-t { color: var(--k-warn); }
html[data-ui="ink"] .ld-tbl td.ld-src .ld-sub { margin-top: 2px; }
html[data-ui="ink"] .ld-tbl td.ld-src .ld-sub .tag,
html[data-ui="ink"] .ld-tbl td.ld-src .ld-sub > span { font-size: 11px; padding: 0 5px; line-height: 1.6; }
html[data-ui="ink"] .ld-tbl td { padding-top: 7px; padding-bottom: 7px; vertical-align: middle; }
/* 9 列同屏必须省出这点横向内边距：每列各让 3px，全表省 ~54px —— 正好把「操作」列
   从必须横滚才能看全，拉回卡片内可见（见 2026-11-28 实测：1221px vs 卡片 1121px）。 */
html[data-ui="ink"] .ld-tbl th, html[data-ui="ink"] .ld-tbl td { padding-left: 8px; padding-right: 8px; }
html[data-ui="ink"] .ld-tbl td.ld-tr { padding-right: 6px; }

/* 跟进进度：元信息一行 + 原文一行 */
.ld-tbl td .ld-tmeta {
  display: block; font-size: 11.5px; line-height: 1.5; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
/* 跟进进度列给足宽度：这一行是「次数 · 渠道 · 多久前」，压到 150px 就会被右钉的操作列切掉 */
html[data-ui="ink"] .ld-tbl td.ld-tr { min-width: 150px; }
.ld-tbl td .ld-trace {
  display: block; max-width: 214px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: 11.5px; line-height: 1.45;
}
.ld-tbl td .ld-when { color: #8a94a6; }
html[data-ui="ink"] .ld-tbl td .ld-n { color: var(--k-accent-2); font-weight: 600; font-size: 12px; }
html[data-ui="ink"] .ld-tbl td .ld-mid { color: var(--k-ink-2); }
html[data-ui="ink"] .ld-tbl td .ld-when { color: var(--k-ink-3); }
html[data-ui="ink"] .ld-tbl td .ld-trace { color: var(--k-ink-2); }
html[data-ui="ink"] .ld-tbl td .ld-none { font-size: 11.5px; }

/* 操作列：主操作 + ⋯（K8 已定 flex，这里只收高度与间距，20 行同宽才不跳） */
html[data-ui="ink"] .ld-tbl .ld-ops { gap: 5px; justify-content: flex-end; }
html[data-ui="ink"] .ld-tbl .ld-ops > .btn.btn-sm { height: 24px; padding: 0 8px; font-size: 11.5px; }

/* ── U3 客资去重状态条：3 行 → 1 行 ──────────────────────────────────── */
.ld-dup {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 10px; padding: 6px 12px; border-radius: 8px;
  background: var(--bg-f7f8fc); font-size: 12px; line-height: 1.7;
}
.ld-dup-t { font-weight: 600; }
.ld-dup-n { color: var(--ink-b45309); font-size: 13px; }
.ld-mut { color: var(--ink-8a94a6); }
.ld-dup-go { margin-left: auto; }
.ld-dup-set { text-decoration: none; }
html[data-ui="ink"] .ld-dup { background: rgba(255,255,255,.03); border: 1px solid var(--k-line); }
html[data-ui="ink"] .ld-dup-t { color: var(--k-ink); }
html[data-ui="ink"] .ld-dup-n { color: var(--k-warn); }
html[data-ui="ink"] .ld-mut { color: var(--k-ink-3); }

/* ── U3.5 窄屏（≤1360）：9 列 + 6 下拉在 1280 上正好差一口气。
      做法是**先收可控的**（下拉 120→104、客户/来源列略收），不动字号、不隐藏信息；
      实测 1280 内容区 ~1010px，收完刚好不横滚（横滚时右钉的操作列会盖住跟进进度）。 */
@media (max-width: 1360px) {
  .ld-fr select { width: 104px; }
  .ld-fr .ld-kw { min-width: 148px; flex-basis: 168px; }
  html[data-ui="ink"] .ld-tbl td.c-name { min-width: 150px; }
  html[data-ui="ink"] .ld-tbl td.c-name .ld-sub { max-width: 180px; }
  html[data-ui="ink"] .ld-tbl td.ld-src { min-width: 116px; }
  html[data-ui="ink"] .ld-tbl td .ld-trace { max-width: 170px; }
  html[data-ui="ink"] .ld-tbl .ld-ops > .btn.btn-sm { padding: 0 7px; }
}

/* ── U4 客资公海：客户格并了微信，别让它在窄屏被压成竖排 ─────────────── */
html[data-ui="ink"] .ld-rc td { white-space: nowrap; }
html[data-ui="ink"] .ld-rc td:nth-child(3) { white-space: normal; min-width: 196px; }
html[data-ui="ink"] .ld-rc td.ld-del { white-space: nowrap; }

/* ── U5 折叠说明（公海/长文）：一句摘要常显，全文点开 ─────────────────── */
.ld-doc { margin: 0 0 10px; }
.ld-doc > summary { cursor: pointer; list-style: none; font-size: 12px; color: var(--ink-6b7280); padding: 3px 0; }
.ld-doc > summary::-webkit-details-marker { display: none; }
.ld-doc > summary::before { content: '▸ '; opacity: .7; }
.ld-doc[open] > summary::before { content: '▾ '; }
.ld-doc-in { font-size: 12.5px; line-height: 1.75; padding: 8px 12px; border-radius: 6px; background: var(--bg-f7f8fc); }
html[data-ui="ink"] .ld-doc > summary { color: var(--k-ink-3); }
html[data-ui="ink"] .ld-doc > summary:hover { color: var(--k-ink-2); }
html[data-ui="ink"] .ld-doc-in {
  background: rgba(255,255,255,.03); border: 1px solid var(--k-line); color: var(--k-ink-2);
}
/* ══════════════════════════════════════════════════════════════════════════
   W. 订单专区（2026-11-28 全站版面优化 第 7 轮）
   ──────────────────────────────────────────────────────────────────────────
   判据：一屏要看清「哪家店、多少钱、走到哪一步、下一步点哪」。
   改前实测三个毛病同一个根因 —— **这两张表都不是 .card 的直接子元素**，
   K2 的 `card:has(> table.table)` 兜不住，浏览器于是把超宽部分直接裁掉：
     ① 门店列被压成 4 行（「日川丼的 /（四川成都 / 石油大学 / 店）」）；
     ② 表头「商户货款」断成两行、「物流公司/运单号」断成三行；
     ③ 渠道配置表的操作列被卡片右边缘裁掉半个按钮。
   做法：套一层横向滚动壳 + 给表格下限宽度 + 操作列右固定 —— 与全站其它宽表同一条路。
   ══════════════════════════════════════════════════════════════════════════ */

/* ── W1 横向滚动壳（两张表共用）────────────────────────────────────────── */
.od-x { width: 100%; max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.od-x::-webkit-scrollbar { height: 8px; }
.od-x::-webkit-scrollbar-thumb { background: var(--line-cbd5e1); border-radius: 4px; }

/* ── W2 订单表：给足下限，靠横滚而不是压字 ─────────────────────────────── */
.od-tbl { min-width: 1064px; width: 100%; font-size: 12.5px; }
/* 旧界面（classic）的表体字号比 ink 大一号，同样的列在 1440 下会多出 ~68px，
   「状态」就被右钉的操作列盖掉一半。这里把这张表统一到 12.5px —— 只影响订单表，
   不动 .table 全站基准。 */
html:not([data-ui="ink"]) .od-tbl thead th,
html:not([data-ui="ink"]) .od-tbl tbody td { padding-left: 6px; padding-right: 6px; }
html:not([data-ui="ink"]) .od-tbl td .tag { font-size: 11px; padding: 0 5px; }
html:not([data-ui="ink"]) .od-tbl .btn.btn-sm { padding: 0 6px; }
/* 12 列各让 4px 内边距 = 96px，正好把「状态」从右钉的操作列底下露出来。
   🔴 必须写到 tbody/thead 这一层：style.css 里是 `.table tbody td{padding:10px 12px}`
      (0,1,2) 与 `html[data-skin="dark"] .table tbody td` (0,2,2)，只写 `.od-tbl td` 压不住。 */
.od-tbl thead th, .od-tbl tbody td { padding-left: 7px; padding-right: 7px; }
html[data-ui="ink"] .od-tbl thead th,
html[data-ui="ink"] .od-tbl tbody td { padding-left: 7px; padding-right: 7px; }
/* 「来源」只是个小标签，不该按按钮的尺寸占宽 */
.od-tbl td .tag { font-size: 11px; padding: 0 5px; line-height: 1.7; }
/* 操作列按钮收内距：一列四个按钮时最吃宽度 */
.od-tbl .btn.btn-sm { padding: 0 6px; }
.od-tbl th, .od-tbl thead th { white-space: nowrap; }
.od-tbl td { white-space: nowrap; vertical-align: middle; }
/* 门店 / 渠道本来就是长公司名：允许折两行，但不许一字一行 */
.od-tbl td.od-c-store { white-space: normal; min-width: 136px; max-width: 182px; line-height: 1.45; }
.od-tbl td.od-c-ch { white-space: normal; min-width: 142px; max-width: 186px; line-height: 1.45; }
/* 限两行：客户/渠道名最长的那几条折到三行就会把整行撑高 20px，
   一张 20 行的表看着像参差不齐。全文在 title 里，点开「单据」也能看到全名。
   🔴 限行必须落在**单元格里的 div** 上：td 一旦变成 -webkit-box 就不再是表格单元格，
      整行的列会立刻错位（2026-11-28 实测踩到，截图里门店与渠道竖着叠了两层）。 */
.od-tbl .od-2l {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-align: left;
}
.od-tbl td.od-c-logi { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
/* 窄屏（≤1360）：再收一轮，目标是「不横滚就看得到状态与操作」。
   收的都是可控项（内边距、门店/渠道宽、按钮内距），不隐藏任何一列。 */
@media (max-width: 1360px) {
  /* 1280 的内容区只有 ~961px，而这张表满载要 1082px。收的都是**可控项**：
     内边距、标签字号、门店/渠道/物流的定宽 —— 一列都不隐藏、一个字都不删。
     实测收到 ~960px 后「状态」不再被右钉的操作列盖住。 */
  .od-tbl thead th, .od-tbl tbody td { padding-left: 4px; padding-right: 4px; }
  html[data-ui="ink"] .od-tbl thead th,
  html[data-ui="ink"] .od-tbl tbody td { padding-left: 4px; padding-right: 4px; }
  .od-tbl td.od-c-store { min-width: 100px; max-width: 124px; }
  .od-tbl td.od-c-ch { min-width: 104px; max-width: 138px; }
  .od-tbl td.od-c-logi { max-width: 62px; }
  .od-tbl td .tag { font-size: 10.5px; padding: 0 4px; }
  .od-tbl td.txt-money { font-size: 12px; }
  .od-tbl th { font-size: 11.5px; }
  .od-tbl .btn.btn-sm { padding: 0 5px; font-size: 11.5px; }
  .od-tbl { min-width: 940px; }
}
/* 三个金额列右对齐 —— 竖着扫一遍就能比大小 */
.od-tbl td.txt-money { text-align: right; font-variant-numeric: tabular-nums; }
.od-tbl th.od-c-num { text-align: right; }
.od-tbl th.od-c-ops, .od-tbl td.od-c-ops { text-align: right; }
/* 操作列右固定：横滚时它一直在（与门店/客资/人事同一套做法） */
.od-tbl th:last-child, .od-tbl td:last-child {
  position: sticky; right: 0; z-index: 2;
  background: var(--bg-ffffff);
  box-shadow: inset 1px 0 0 var(--line-e4e7ee);
}
html[data-ui="ink"] .od-tbl th:last-child,
html[data-ui="ink"] .od-tbl td:last-child {
  background: var(--k-panel); box-shadow: inset 1px 0 0 var(--k-line);
}

/* ── W3 渠道配置表：同上（这张表在 .odch-card 里，不在 od_ord_card 内）──── */
.odch-x { margin-top: 8px; }
.odch-tbl { min-width: 1060px; width: 100%; }
/* 开户行 / 收款户名允许折两行：它们是最长的两串中文，nowrap 会把整表顶到 1240px */
html[data-ui="ink"] .odch-tbl td:nth-child(3) { white-space: normal; min-width: 178px; max-width: 228px; line-height: 1.45; }
html[data-ui="ink"] .odch-tbl td:nth-child(4) { min-width: 160px; max-width: 196px; }
html[data-ui="ink"] .odch-tbl td:nth-child(1),
html[data-ui="ink"] .odch-tbl th:nth-child(1) { min-width: 176px; max-width: 218px; }
.odch-tbl .odch-ops { white-space: nowrap; display: flex; gap: 5px; justify-content: flex-end; }
.odch-tbl th:last-child, .odch-tbl td:last-child {
  position: sticky; right: 0; z-index: 2;
  background: var(--bg-ffffff);
  box-shadow: inset 1px 0 0 var(--line-e4e7ee);
}
html[data-ui="ink"] .odch-tbl th:last-child,
html[data-ui="ink"] .odch-tbl td:last-child {
  background: var(--k-panel); box-shadow: inset 1px 0 0 var(--k-line);
}

/* ── W4 渠道配置卡折叠：一句摘要常显，表单与表点开才出现 ───────────────── */
.od-fold > summary { list-style: none; cursor: pointer; user-select: none; }
.od-fold > summary::-webkit-details-marker { display: none; }
.od-fold > summary.card-title {
  margin-bottom: 0; justify-content: flex-start; align-items: center;
  gap: 8px; font-size: 14px;
}
.od-fold[open] > summary.card-title {
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line-e4e7ee);
}
html[data-ui="ink"] .od-fold[open] > summary.card-title { border-bottom-color: var(--k-line); }
.od-fold > summary.card-title::before { content: '▸'; font-size: 10px; opacity: .7; }
.od-fold[open] > summary.card-title::before { content: '▾'; }
.od-fold > summary.card-title:hover .od-fold-t { color: var(--ink-4a6cf7); }
html[data-ui="ink"] .od-fold > summary.card-title:hover .od-fold-t { color: var(--k-accent-2); }
.od-fold-n {
  font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px;
  background: var(--bg-f1f5f9); color: var(--ink-475569);
}
.od-fold-h { font-size: 11.5px; font-weight: 400; color: var(--ink-8a95a6); }
.od-fold-go { margin-left: auto; font-size: 11.5px; font-weight: 400; color: var(--ink-4a6cf7); }
.od-fold-go::after { content: '展开维护'; }
.od-fold[open] .od-fold-go { color: var(--ink-8a95a6); }
.od-fold[open] .od-fold-go::after { content: '收起'; }
html[data-ui="ink"] .od-fold-n { background: rgba(255,255,255,.06); color: var(--k-ink-2); }
html[data-ui="ink"] .od-fold-h,
html[data-ui="ink"] .od-fold[open] .od-fold-go { color: var(--k-ink-3); }
html[data-ui="ink"] .od-fold-go { color: var(--k-accent-2); }

/* ── W5 KPI：8 张卡压掉 ~70px（这一页的主角是表，不是这 8 个数字）──────── */
.od-kpi { gap: 10px; margin-bottom: 12px; }
.od-kpi .kpi-card { padding: 10px 13px 9px; }
.od-kpi .kpi-card .kc-icon { width: 24px; height: 24px; top: 9px; right: 11px; font-size: 12px; border-radius: 7px; }
.od-kpi .kpi-card .kc-k { font-size: 11.5px; }
.od-kpi .kpi-card .kc-v { font-size: 22px; margin-top: 4px; }
.od-kpi .kpi-card .kc-v.money { font-size: 20px; }
.od-kpi .kpi-card .kc-foot { margin-top: 3px; font-size: 10.5px; }

/* ── W6 查询条两行分区 ─────────────────────────────────────────────────
   🔴 用 #od_ord_card 前缀：OD_Q_CSS 是注入在 body 里的 <style>，
      文档顺序在 ink.css 之后，同权重会反过来压我们一头。 */
#od_ord_card .od-qbar {
  display: flex; flex-direction: column; align-items: stretch; gap: 7px;
  padding: 8px 10px; margin-bottom: 9px;
}
#od_ord_card .od-qrow { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-width: 0; }
#od_ord_card .od-qrow label { margin: 0; }
#od_ord_card .od-qbar .od-qsep { height: 18px; }
#od_ord_card .od-qsp { flex: 1 1 0; min-width: 0; }

/* ── W7 状态 + 来源 chips 合成一排 ─────────────────────────────────────── */
#od_ord_card .od-flt { align-items: center; margin: 0 0 8px; }
#od_ord_card .od-flt-sep {
  width: 1px; height: 16px; flex: 0 0 1px;
  background: var(--bg-dfe3ea); margin: 0 4px;
}

/* ── W8 两本账汇总：去掉组头与首格的重复文案，格子压矮 ────────────────── */
/* 🔴 #fb_card（首批订货统计）是同一页的另一处汇总，必须与订单记录那组同高，
      否则一页里两种「四格汇总」尺寸不同，看着像两套设计。 */
:is(#od_ord_card, #fb_card) .od-sum { gap: 8px; margin: 2px 0 6px; }
:is(#od_ord_card, #fb_card) .od-sum-item {
  flex: 1 1 118px; min-width: 112px; padding: 7px 10px; border-radius: 9px;
}
:is(#od_ord_card, #fb_card) .od-sum-item .k { font-size: 11.5px; }
:is(#od_ord_card, #fb_card) .od-sum-item .v { font-size: 17px; margin-top: 1px; }
:is(#od_ord_card, #fb_card) .od-sum-item .sub { font-size: 11px; margin-top: 1px; line-height: 1.5; }
:is(#od_ord_card, #fb_card) .od-sum-grp { margin: 0 0 8px; }
:is(#od_ord_card, #fb_card) .od-grp-hd { margin: 0 0 3px; }
:is(#od_ord_card, #fb_card) .od-sum-total { padding: 6px 11px; font-size: 12px; line-height: 1.7; }
:is(#od_ord_card, #fb_card) .od-sum-note { font-size: 11.5px; line-height: 1.6; margin: 0 0 7px; }
:is(#od_ord_card, #fb_card) .od-rank { margin: 0 0 8px; }
:is(#od_ord_card, #fb_card) .od-rank-item { padding: 7px 10px; }

/* ── W9 订单记录标题：长句摘要 + 右侧下载 ─────────────────────────────── */
#od_ord_card .od-ctitle { align-items: center; gap: 10px; }
#od_ord_card .od-ctitle-l { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
#od_ord_card .od-ctitle-h {
  font-size: 11.5px; font-weight: 400; color: var(--ink-8a95a6);
}
html[data-ui="ink"] #od_ord_card .od-ctitle-h { color: var(--k-ink-3); }
#od_ord_card .od-ctitle-r { display: flex; align-items: center; gap: 8px; }

/* ══════════════════ V. 经营看板（2026-11-28）══════════════════
   落地页是全站唯一「默认打开」的页面，改造前是一列等宽卡片从上往下堆：
   经营业绩 → 今日待办 → 目标达标 → 近6月趋势。1440 下每张卡左右各空 600px，
   整页 1400px 高（要滚三屏），而右半边从头到尾是空的。
   改法：主区 2fr / 1fr —— 左「经营业绩」，右「待办 + 目标」，趋势留通栏。
   ⚠️ 布局类不挂 html[data-ui]：结构与皮肤无关，旧界面同样受益。 */

.dash-home {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px; align-items: start;
}
.dash-home > * { min-width: 0; }
.dash-home-l > .card, .dash-home-r > .card { margin-bottom: 0; }
.dash-home-r { display: flex; flex-direction: column; gap: 16px; }
/* 目标达标原来用 .grid(minmax 200px) ⇒ 半栏里只排得下 1 列，4 个目标竖着堆 4 行 */
.dash-home-r .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dash-home-r .cell { padding: 12px 14px; }
.dash-home-r .cell .cn { font-size: 21px; }
.dash-home-r .cell .cl { font-size: 11px; }
.dash-home-r .stat-row { gap: 10px; }
/* 1320 以下内容区只剩 ~1000px：左栏 670 装不下 6 个 chip（会 5+1 折行）⇒ 回到单列 */
@media (max-width: 1319px) {
  .dash-home { grid-template-columns: minmax(0, 1fr); }
}

/* V2 两列分区（财务「收入构成 / 成本构成」、私卡「可提现 / 本月划拨」）
   顶端那条虚线必须画在**容器**上：并排的两块各画一条，中间会断开一截。 */
.dash-2col {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px; align-items: start;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--line-eef1f6);
}
.dash-2col.first { margin-top: 0; padding-top: 0; border-top: 0; }
.dash-2col.one { grid-template-columns: minmax(0, 1fr); }
.dash-2col > .dash-section { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 900px) { .dash-2col { grid-template-columns: minmax(0, 1fr); } }

/* V3 门店区域分布：24 个地区单列直排 ⇒ 两列 12 行 */
.dash-hbars2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
.dash-hbars2 .hbar { margin-bottom: 7px; }
@media (max-width: 1000px) { .dash-hbars2 { grid-template-columns: minmax(0, 1fr); } }

/* V4 私卡大数：原来写死在 style 里的 34px/28px，并排后要统一 */
.sh-hero-num { font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
html[data-skin="dark"] .sh-hero-num { font-size: 32px; }

/* V5 kv-chips 补齐：auto-fit 下"最后一行只剩一格"会被拉成整行宽
   （客资结构「回流客」、钱包明细「账户余额」都出现过，一格占满 1100px）。
   ⚠️ 不能改成 auto-fill + 1fr：弹性轨道在 auto-fill 里仍按容器宽度铺满，
      实测还是 4+1 —— 只有 flex + 内容宽度才真正"有几格算几格"。 */
.kv-chips.kv-inline { display: flex; flex-wrap: wrap; gap: 10px; }
.kv-chips.kv-inline .kv-chip { flex: 0 1 auto; min-width: 104px; }

/* V6 说明胶囊：.tip-more 只有浅色一套配色，深色底上是一块几乎看不见的灰片。
   分区标题已强制常显，剩下的胶囊只承载"补充说明"，做成低饱和的蓝调小标签即可。 */
html[data-ui="ink"] .tip-more {
  background: rgba(91, 140, 255, .10);
  border-color: rgba(91, 140, 255, .28);
  color: var(--k-ink-3);
  font-size: 11px;
}
html[data-ui="ink"] .tip-more::before { content: 'ⓘ '; opacity: .7; }
html[data-ui="ink"] .tip-more:hover {
  background: rgba(91, 140, 255, .18);
  border-color: rgba(91, 140, 255, .55);
  color: var(--k-accent-2);
}

/* V9.5 1280 档：style.css 的 .dash-kpi 在这里从 6 列变 3 列 ⇒ 6 个 KPI 排成两行 260px 高，
   首屏留给业务卡片的位置被挤掉一大块。保持 3 列但压扁（不跟 .dash-kpi .cell .cn 的 30px 抢，
   那条是 html[data-skin="dark"] 的 (0,4,1)，这里必须同权重且写在后面才压得住）。 */
@media (max-width: 1280px) {
  html[data-ui="ink"] .dash-kpi { gap: 10px; }
  html[data-ui="ink"] .dash-kpi .cell { padding: 11px 14px; min-height: 96px; }
  html[data-ui="ink"] .dash-kpi .cell .cn { font-size: 23px; }
  html[data-ui="ink"] .dash-kpi .cell .kpi-note { -webkit-line-clamp: 1; }
}

/* V7 盈利摘要：.fin-sum-line 是 space-between，铺满 1100px 后三项各贴屏幕一端，
   读起来像三行不相干的字 ⇒ 左对齐 + 固定间距。 */
html[data-ui="ink"] .fin-sum-line { justify-content: flex-start; gap: 34px; flex-wrap: wrap; }

/* V9 经营业绩 6 格：左栏 771px 下平均 118px/格，「¥41,572.10」被 word-break 断成两行
   （实测「¥41,572.1 / 0」）。固定 3 列 2 行，每格 ~245px，金额一位不少地排一行。 */
#dash_prd .kv-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* 宽屏（≥1600）：左栏 ~900px 时 3 列会让每格 300px 太散，回到 6 列一行 */
@media (min-width: 1600px) { #dash_prd .kv-chips { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
#dash_prd .kv-chip .v { white-space: nowrap; }

/* V10 渠道来源 TOP：来源名是「抖音企业号 日常运营」两段式，108px 只截得出「抖音企业号 日…」。
   半栏卡片里 bar 本身只用掉 300/540，把标签列让到 150px 更值。 */
html[data-ui="ink"] .dash-lead .hbar .hb-l { width: 150px; }
html[data-ui="ink"] .dash-lead .hbar .hb-v { width: 82px; }

/* ── X 采购订货 · 二版（2026-11-28 第 9 轮） ─────────────────────────────────
   这一轮只动结构，不动颜色：① SKU 目录双列 ② 第 1 段两列等宽 + 快照独立一行
   ③ 单据日期段提示贴回日期框右侧。 */

/* X1 第 1 段「客户与渠道」：原来 客户 436 / 渠道 230 / 收款快照 436 三列 ——
   渠道下拉被挤到 230px，右侧 436px 只放一句 11px 灰字，看着像空了一格。
   改成两个等宽列（各 ~560px），收款快照降级成独立一行的虚线状态条。 */
.pur-f-cust, .pur-f-ch { flex: 1 1 0; min-width: 240px; }
html[data-ui="ink"] .pur-f-cust, html[data-ui="ink"] .pur-f-ch { flex: 1 1 0; min-width: 240px; }
.pur-ch-snap {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  margin: -2px 0 4px; padding: 5px 10px; border-radius: 8px;
  border: 1px dashed #e2e8f0; background: #f8fafc;
  font-size: 11.5px; line-height: 1.6;
}
.pur-ch-snap-k {
  flex: none; padding: 1px 7px; border-radius: 5px; font-size: 10.5px; letter-spacing: .4px;
  background: #eef2f7; color: #64748b;
}
.pur-ch-snap .sub-tip { margin: 0; padding: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-ui="ink"] .pur-ch-snap { border-color: var(--k-line-2); background: var(--k-panel-2); }
html[data-ui="ink"] .pur-ch-snap-k { background: rgba(255,255,255,.07); color: var(--k-ink-3); }
html[data-ui="ink"] .pur-ch-snap .sub-tip { padding: 0; }

/* X2 SKU 商品目录双列：每列一张表，表头各一份（照抄印刷品的分栏习惯）。
   ⚠️ 两列必须 align-items:start —— 否则行数不等时短的那张表会被拉伸，边框错位。 */
.pur-sku-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; align-items: start; }
.pur-sku-cols.one { grid-template-columns: 1fr; }
/* 搜索只剩 1~3 行时退回单列，但**不要把表格拉满 1123px** —— 那样「进价」又跑到屏幕最右，
   第二次制造这一轮要消灭的那片空白。单列时锁在 660px，价格列贴着名称右侧。 */
.pur-sku-cols.one > table { max-width: 660px; }
/* 右表被搜索过滤空时（tbody 无行）连表头一起收掉，否则单列下方会多出一条只有表头的空表。 */
.pur-sku-cols > table + table:not(:has(tbody tr)) { display: none; }
.pur-sku-cols > table { min-width: 0; }
.pur-sku-tbl .sk-i { width: 44px; }
.pur-sku-tbl .sk-c, .pur-sku-tbl .sk-p { width: 84px; }
.pur-sku-tbl .sk-st { width: 62px; }
/* 两表之间必须有可见分隔：左表「库存」和右表「#」只隔 20px 时会连成一片，
   「1000 | 16」两根数字挨着读成同一行的两列。用竖虚线把分栏关系画出来。 */
.pur-sku-cols > table + table { padding-left: 20px; border-left: 1px dashed #e6eaf2; }
/* 左表补一份右内距：只给右表加 padding-left 时，左表「库存」会紧贴竖线（实测 1440 下 0px）。
   补上之后两侧各 20px，两张表的**可用内容宽**也重新相等（550 → 530 / 530）。 */
.pur-sku-cols > table:first-child { padding-right: 20px; }
html[data-ui="ink"] .pur-sku-cols > table + table { border-left-color: var(--k-line-2); }
/* 行高 58 → 46：主文 12.5px + 副行 11px 两行装得下，32 行省掉 380px。
   🔴 必须写到 tbody td 这层：style.css 的 `.table tbody td{padding:10px 12px}` 是 (0,1,2)，
      深色皮肤那条还带 html[data-skin] 前缀 (0,2,2)，只写 .pur-sku-tbl td 压不住。 */
html[data-ui="ink"] .pur-sku-tbl tbody td { padding-top: 6px; padding-bottom: 6px; }
html:not([data-ui="ink"]) .pur-sku-tbl tbody td { padding-top: 6px; padding-bottom: 6px; }
html[data-ui="ink"] .pur-sku-tbl thead th { padding-top: 8px; padding-bottom: 8px; }
html[data-ui="ink"] .pur-sku-tbl td.inv-name { min-width: 0; }
html[data-ui="ink"] .pur-sku-tbl .inv-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 1280 档：两列各只剩 ~470px，五列里四列是固定宽 ⇒「库存」会顶到竖线上
   （真机实测 1280 下左表「1000」和右表「16」贴在一起）。收内距 + 收固定列 + 收栏距。 */
@media (max-width: 1360px) {
  html[data-ui="ink"] .pur-sku-tbl thead th, html[data-ui="ink"] .pur-sku-tbl tbody td { padding-left: 6px; padding-right: 6px; }
  html:not([data-ui="ink"]) .pur-sku-tbl tbody td { padding-left: 6px; padding-right: 6px; }
  .pur-sku-tbl .sk-i { width: 36px; }
  .pur-sku-tbl .sk-c, .pur-sku-tbl .sk-p { width: 72px; }
  .pur-sku-tbl .sk-st { width: 52px; }
  .pur-sku-cols { gap: 0 14px; }
  .pur-sku-cols > table + table { padding-left: 14px; }
  .pur-sku-cols > table:first-child { padding-right: 14px; }
}
/* 再窄就没有双列的位置了（每列 <430px 时名称要折三行）⇒ 退回单列，
   且第二张表的表头隐藏，读起来是一张连续的长表。 */
@media (max-width: 1200px) {
  .pur-sku-cols { grid-template-columns: 1fr; }
  .pur-sku-cols > table + table { padding-left: 0; border-left: none; }
  .pur-sku-cols > table + table > thead { display: none; }
}

/* X3 单据日期段：`.form-item` 默认 flex:1 ⇒ 日期框也撑到半屏，提示文字被推到 700px 之外。
   日期框收到内容宽（170px），提示紧跟其后。 */
.pur-date .form-item:first-child { flex: 0 0 auto; min-width: 0; }
.pur-date .form-item:first-child input { width: 170px; }
.pur-date .form-item:last-child { flex: 1 1 320px; min-width: 240px; padding-left: 8px; }

/* V8 落地页表格：月度明细只有 1 行时，默认行距把卡片撑得很空 */
html[data-ui="ink"] #dash_prd .table tbody td { padding-top: 8px; padding-bottom: 8px; }

/* ══════════ 商城管理 · 12 个 Tab 的头部节奏（R11 · 2026-11-28）══════════
   病：说明文字夹在标题与控件之间，说明一长就把控件顶到第二行右端
       ⇒ 卡内表头起点实测四种（1440 下 220 / 252 / 254 / 275px），切 Tab 整页上下跳。
   改：头部固定两段 —— ① 标题左 / 控件右；② 说明独占整行、单行省略（悬停看全文）。
   只作用于「面板最外层卡片」的头部：弹窗、嵌套小卡、其他模块的 .card-title 均不受影响。 */
#mall_panel > .card > .card-title,
#mall_live_wrap > .card > .card-title {
  align-items: center;
  row-gap: 2px;
  min-height: 40px;
}
#mall_panel > .card > .card-title > .ct-main,
#mall_live_wrap > .card > .card-title > .ct-main { white-space: nowrap; }
/* order:3 把说明排到控件之后 ⇒ 100% 宽度必然落到第二行，与标题行永远不抢位置 */
#mall_panel > .card > .card-title > .sub-tip,
#mall_live_wrap > .card > .card-title > .sub-tip {
  order: 3;
  flex: 1 1 100%;
  min-width: 0;
  margin: 0;
  font-size: 11.5px;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 深色皮肤下说明是次要色；浅色/经典皮肤继承正文色（classic 没有 --k-ink-3） */
html[data-ui="ink"] #mall_panel > .card > .card-title > .sub-tip,
html[data-ui="ink"] #mall_live_wrap > .card > .card-title > .sub-tip { color: var(--k-ink-3); }

/* 空列表：一行字贴在单元格左下角，看起来像「没渲染完」。统一居中 + 给足呼吸。 */
#mall_panel .empty-inline,
#mall_live_wrap .empty-inline { display: block; text-align: center; padding: 30px 16px; }

/* ══════════ 支付对账 · 顶部状态条（R11）══════════
   原来是竖排两行 label（左 1/3），右侧 2/3 全空。改成三段等宽条：
   ① 是否就绪（带图标，占主要宽度）② 当前通道 ③ 配置完整度 N/6。 */
.mp-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 8px 18px;
  margin: 0 0 12px;
  padding: 12px 16px;
  border: 1px solid var(--k-line, #e5eaf3);
  border-left: 3px solid #059669;
  border-radius: 10px;
  background: var(--k-panel-2, rgba(15, 23, 42, .03));
}
.mp-strip.bad { border-left-color: #e11d48; }
.mp-strip .mp-lead { display: flex; align-items: center; gap: 11px; min-width: 0; }
.mp-strip .mp-ico {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
  background: rgba(5, 150, 105, .14); color: #059669;
}
.mp-strip.bad .mp-ico { background: rgba(225, 29, 72, .14); color: #e11d48; }
.mp-strip .mp-t { font-size: 13.5px; font-weight: 600; line-height: 1.45; color: #059669; }
.mp-strip.bad .mp-t { color: #e11d48; }
.mp-strip .mp-d {
  font-size: 11.5px; line-height: 1.5; margin-top: 1px;
  color: var(--k-ink-3, #6b7a90);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-strip .mp-k { font-size: 11px; color: var(--k-ink-3, #6b7a90); line-height: 1.4; }
.mp-strip .mp-v { font-size: 13px; font-weight: 600; margin-top: 2px; }
.mp-strip .mp-v .wk { font-weight: 400; font-size: 11.5px; color: var(--k-ink-3, #6b7a90); }
.mp-strip .mp-v.bad { color: #e11d48; }
@media (max-width: 1180px) {
  .mp-strip { grid-template-columns: 1fr 1fr; }
  .mp-strip .mp-lead { grid-column: 1 / -1; }
}

/* 支付对账 · 缺失项/自测模式提示条（脱离状态条单独一行，红底轻量，不与主状态抢视线） */
.mp-note {
  margin: -4px 0 12px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid rgba(225, 29, 72, .26);
  background: rgba(225, 29, 72, .07);
  font-size: 12px;
  line-height: 1.75;
}
html[data-ui="ink"] .mp-note { border-color: rgba(225, 29, 72, .34); background: rgba(225, 29, 72, .10); }

/* 1024 档：供货单头部 6 个控件合计 727px，比 705px 的卡内宽多 22px ⇒ 控件被顶到第三行。
   只收两个最宽的宽度（搜索框 175→150、供货商 180→160），省 45px，头部回到固定的两行。 */
@media (max-width: 1180px) {
  #mall_supply_kw { width: 150px !important; }
  #mall_supply_vendor { width: 160px !important; }
}

/* 宽表右固定列：卡片自身开横向滚动后，表格会画到卡片的右内距里，
   固定列又只钉在内容盒右缘 ⇒ 内距那 18px 会漏出被裁掉的邻列文字（1024 实测「765 / 587」）。
   用固定列自己的伪元素把这段内距盖住：颜色继承单元格，不参与布局、不改变列宽。 */
#mall_panel .card:has(> table.table) .table th.col-sticky-r::after,
#mall_panel .card:has(> table.table) .table td.col-sticky-r::after,
#mall_live_wrap .card:has(> table.table) .table th.col-sticky-r::after,
#mall_live_wrap .card:has(> table.table) .table td.col-sticky-r::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: -18px;
  width: 18px;
  background: inherit;
  pointer-events: none;
}
