/* ==========================================================================
   去 AI 味覆盖层（admin 网页端 · 2026-11-15）
   --------------------------------------------------------------------------
   背景：用户反馈「界面 AI 味太重」。静态扫描（.tmp-log/ego/r400-ai-smell-scan.cjs）
   归因到四类「一眼 AI 生成」手法，全部住在 global.css 里，而 global.css 正被并行会话
   占用（git status = M），不能整文件入库。因此本层按「后加载覆盖」方式单独成文件，
   只做减法（关动画 / 关玻璃 / 关光晕 / 压平渐变），不改任何 token、不改配色语义。

   原则：
   1. 只覆盖 global.css 的「材质与动效」声明，不动尺寸、间距、字号、颜色 token。
   2. 每条都保留原值注释，方便一键回退（把 App.tsx 里那行 import 删掉即整体复原）。
   3. 全部 `!important`：global.css 同选择器先加载，靠 !important 稳定压过，
     避免排序变化导致时好时坏。

   覆盖清单（按 global.css 行号定位）：
   · 264-272 / 2501-2600 / 2799-2803  入场动画（.anim-ios-* / gs-rise / 页面容器 / Tab 面板）
   · 1506-1541                        侧栏紫渐变 + 24px 点阵纹理 + 顶部椭圆光晕
   · 1618-1623 / 1754-1759 / 1773-1790 菜单选中渐变 + 彩色外发光 + inset 白高光 + 斜向玻璃 ::after
   · 276-299 / 1793-1800              iOS 液态玻璃（backdrop-filter blur 12-40px + saturate 180%）
   · 1914-1920                        快捷入口图标玻璃高光
   · 1940-1948 / 586-596 / 2175-2190  图标按钮 / 柱状图上的白色径向高光
   ========================================================================== */

/* 1. 装饰性入场动画：全站 488 个页面容器「淡入 + 上浮 12px + 级联延迟」整体停用。
      真实 ERP（乐檬/万机管家）切页是直切，没有整页浮入。 */
.gs-rise,
.ios-page-content,
.ant-tabs-tabpane-active {
  animation: none !important;
}

/* 2. 侧栏：原 180deg 三段紫渐变 + 2.5% 不透明度 24px 点阵 + 顶部 200×120 椭圆光晕
      → 单一平面深色（仍由主色派生，切换 8 套主题色行为不变）。 */
.gst-sidebar {
  background: color-mix(in srgb, var(--primary-color) 20%, #14102a) !important;
}
.gst-sidebar::before {
  opacity: 0 !important; /* 原 radial-gradient 点阵纹理 24px */
}
.gst-sidebar-glow {
  display: none !important; /* 原 200×120 椭圆光晕 */
}

/* 3. 侧栏菜单：选中态原 135° 双停渐变 + `0 2px 14px` 彩色外发光 + inset 白色 1px 高光
      → 主色 18% 半透明平面块，层级交给左侧指示条（::before 保留不动）。 */
.gst-menu-item {
  box-shadow: none !important;
}
.gst-menu-item.selected {
  background: rgb(var(--primary-rgb) / 0.18) !important;
  box-shadow: none !important;
}
.gst-submenu-item {
  box-shadow: none !important;
}
.gst-submenu-item.selected {
  background: rgb(var(--primary-rgb) / 0.12) !important;
  box-shadow: none !important;
}
/* 原 hover/selected 时 135deg rgba(255,255,255,.06) 斜向玻璃扫光 */
.gst-menu-item::after,
.gst-submenu-title::after,
.gst-submenu-item::after {
  background: none !important;
}

/* 4. 液态玻璃：折叠弹出菜单 blur(40px) saturate(180%)、.ios-glass 族 blur 12px。
      背景本身已 0.96 不透明，去模糊后观感一致但不再有「毛玻璃」AI 味。 */
.ios-glass,
.ios-glass-heavy,
.ios-glass-card,
.gst-collapsed-flyout {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 5. 快捷入口图标块玻璃高光（配合组件内已改的平面图标块） */
.gst-quick-icon-glass {
  display: none !important;
}

/* 6. 图标按钮 / 柱状图上的白色径向高光（装饰性反光，无信息量） */
.ios-icon-btn::after,
.ios-bar-chart .ios-bar::after {
  background: none !important;
}

/* 7. 其余入口动画（真机实测仍在跑的 5 处，2026-11-15 r403 取证）：
      `.erp-page-enter`（TabNav 内容容器整块上滑，global.css:481）、
      `.ios-page-header`（每个页头 20px 上滑，global.css:654，全站 186 个页头）、
      `.anim-ios-up`（Dashboard 模块 60ms 级联，Dashboard.tsx:383）、
      `.ios-logo-enter`（logo 缩放 + 旋转 -12° 回弹，global.css:1983）、
      `.ios-logo-breathe`（logo 3.5s 无限呼吸投影，global.css:1977）。 */
.erp-page-enter,
.ios-page-header,
.anim-ios-up,
.anim-ios-down,
.anim-ios-scale,
.anim-ios-right,
.ios-logo-enter,
.ios-logo-breathe {
  animation: none !important;
}

/* 8. 呼吸点（在线状态 LED）：`ServerStatusPanel` / `SidebarStatusBar` 内联
      `animation: breathe 2s ease-in-out infinite` 做 1→0.8 缩放脉冲。
      真实 ERP 状态灯是静止的，脉冲属装饰动效。选择器按内联 style 值命中，
      不依赖 class（SidebarStatusBar 正被并行会话占用，不能改文件）。 */
[style*="breathe"] {
  animation: none !important;
}

/* 9. 顶栏 / 侧栏用户面板的液态玻璃：`.ios-topbar` 内联 blur(40px) saturate(180%)、
      `.gst-sidebar-user` blur(20px) saturate(180%)。底色本身已近实色，去模糊后观感一致。 */
.ios-topbar,
.gst-sidebar-user {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 11. 影响面最大的一条：global.css:1436 `.ios-page-content > *` 给**每个页面的每个直接子节点**
      （卡片 / 表格 / Tabs / 工具条）都挂了 `ios-slide-up`（淡入 + 上浮 16px + scale .98）。
      488 个页面 × 每页 2-6 个子节点，这就是「打开任何一页所有卡片一起往上飘」的来源。
      真机 r406 复验后残余的 4-6 个在用动画节点全部出自此处。 */
.ios-page-content > * {
  animation: none !important;
}

/* 13. 卡片悬停位移：原 `0 8px 30px` 深投影 + 上浮位移（global.css:315 `.ant-card-hoverable:hover`
      `translateY(-3px) scale(1.005)`、:532 `.pf-stat-card`、:705 `.ios-stat-card`、:1913 快捷图标
      `translateY(-2px)`、:2174 统计图标 `scale(1.08)`）。
      真实 ERP 的卡片悬停不位移（位移会让整屏元素跟着跳），只保留底色/边框反馈。
      注：`.ant-card-hoverable:hover` 原声明带 !important，且 global.css 后加载，
      故这里用「同名类重复一次」提高特异性，保证本层 !important 胜出。 */
.ant-card.ant-card-hoverable:hover {
  transform: none !important;
  box-shadow: var(--shadow-card) !important;
}
.pf-stat-card.pf-stat-card:hover {
  transform: none !important;
  box-shadow: var(--shadow-card) !important;
}
.ios-stat-card.ios-stat-card:hover {
  transform: none !important;
  box-shadow: var(--shadow-card) !important;
}
.ios-glass-card.ios-glass-card:hover {
  transform: none !important;
}
.gst-quick-item .gst-quick-icon-wrap:hover,
.gst-quick-item:hover .gst-quick-icon-wrap {
  transform: none !important;
}
.ios-stat-card:hover .ios-stat-icon-bg {
  transform: none !important;
}
/* 柱状图悬停提亮（filter: brightness(1.1)）也压平：图表反馈应走 tooltip，不靠发光 */
.ios-bar-chart .ios-bar:hover {
  filter: none !important;
}

/* 14. 工作台白卡 `.kit-white-card`（global.css:2490/2493/2496）：静止态用紫调阴影
      `--shadow-card-soft = 0 2px 12px rgba(90,80,150,.08)`，悬停再换成更深的紫调
      `--shadow-card-soft-hover = 0 6px 20px rgba(90,80,150,.14)` 并上浮 2px。
      紫调投影 + 上浮 + 加深是全站最强的「AI 卡片呼吸」观感。
      改为全站标准中性阴影 `0 1px 4px rgba(0,0,0,.04)`（与 246 张普通卡一致），悬停不位移。 */
.kit-white-card.kit-white-card {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}
.kit-white-card.kit-white-card:hover {
  transform: none !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}
/* 15. 圆角档位：容器档 `--radius-lg = 14px`（global.css:153，卡片/表格/弹层共用；
      `--radius-xl = 24px` 用于弹窗）在 12–16px 区间是 2023 年后「现代 SaaS」的视觉签名，
      乐檬 ERP / 万机管家这类 B 端老牌产品的容器圆角在 4–8px。同步收一档：
      lg 14→10（与 sm/md 控件档同值，圆角阶梯从 7 档收敛为 xs6 / 10 / xl16 三档），
      xl 24→16（弹窗不再像营销卡）。改的是 token 不是逐处样式，回退=删这两行。 */
:root {
  --radius-lg: 10px !important;
  --radius-xl: 16px !important;
}
/* 16. 胶囊状态签：`.pf-status-tag`（global.css:544）、`.pf-reconcile-badge`（:565）、
      `.param-pill`（:930）用 `--radius-full = 999px` 渲染成 iOS/消费级胶囊。
      B 端 ERP 的状态签是 4–6px 方角小签（乐檬列表的「正常/停用」即是），
      统一收到 6px（与 antd Tag 由 main.tsx 承担的 6px 同档，全站状态签同形）。
      注意不动输入框圆角：AGENTS.md「输入框强制规范」明定 40px 高 / 12px 圆角 / 紫色 hover。 */
.param-pill,
.pf-status-tag,
.pf-reconcile-badge {
  border-radius: 6px !important;
}

/* 17. ERP 密度层（2026-11-15 用户新需求：功能区布局按专业 ERP 密度重排，不是微调）。
      取证（ego r435 四页实测）：页头标题 22px（比 Modal 标题还大）、页头块高 /products 124px、
      下边距 20px、内容区 padding 20px 24px、默认档表格 th/td 竖向 padding 12px、卡 body 16px 20px。
      专业 ERP（乐檬/金蝶类）基准：标题 16-17px、页头单行 40-48px、下边距 12px、
      内容 padding 16px 20px、默认档单元格竖向 9-10px、卡 body 14px 16px。
      注意：内容区 padding 在 global.css:2643 已有 !important 且被更高特异性规则改成 20/24，
      故本条用「同名类重复」提特异性；其余同名 !important 同理。 */
.ios-page-header.ios-page-header {
  /* v5.3（2026-11-24）：12 → 6，页头与列表容器间距压缩（用户点名「上下留白再减少一点」） */
  margin-bottom: 4px !important;
}
.ios-page-header.ios-page-header h2,
.ios-page-content.ios-page-content h2 {
  font-size: 17px !important;
  line-height: 1.35 !important;
  /* v5 flat[01]：page header 负字距 -0.01em → 0（tokens: 正文/标题不做 optical tracking） */
  letter-spacing: 0 !important;
  padding-left: 10px !important;
}
.ios-page-header h2::before,
.ios-page-title::before {
  width: 3px !important;
}
.ios-page-subtitle.ios-page-subtitle {
  font-size: 12px !important;
  margin-top: 2px !important;
  padding-left: 10px !important;
}
.ios-page-content.ios-page-content {
  padding: 16px 20px !important;
}
/* 17b（v5 flat[01]）：合伙人财务族页头 `.pf-header h2`（global.css:592）仍是 22px，
   与全站 `.ios-page-header h2` 17px 构成页头字号双档——同一角色两档是「字阶不统一」。
   压到 17px 与全站一致（字重/字距在 global.css 源定义已改 600 / 0）。 */
.pf-header.pf-header h2 {
  font-size: 17px !important;
}
/* 表格竖向密度：global.css:337/351 对全部表格（含 small 档）无差别 !important 12px 16px，
   这里统一收紧竖向（横向 16px 保留不挤列宽）；同名重复类提特异性压过同特异性的后者。
   批十一（2026-11-15 用户拍板「10 行+表头一屏」标准）：竖向 10px→6px，实测行高 63→55，
   10 行+表头+分页完整落入 921px 视口（原 983→903）。 */
.ant-table-wrapper.ant-table-wrapper .ant-table-thead > tr > th,
.ant-table-wrapper.ant-table-wrapper .ant-table-thead > tr > td {
  padding: 6px 16px !important;
  /* 批十一 v2（用户定版）：表头文字一律不换行——「状态」等短词列头在窄列+漏斗图标挤压下
     竖排两字是可访问性事故；列宽不足由用户拖拽/列显隐解决，不由折行兜底 */
  white-space: nowrap;
}
.ant-table-wrapper.ant-table-wrapper .ant-table-tbody > tr > td {
  /* v6.4（2026-11-24 用户「行高你没做啊」实证）：竖向内距归零 —— 行高由 --gs-row-h 单一真源定量，
     单元格内距不得参与行高计算。修前 6px 竖向内距 + 内容 = 44/48/52 三种实测行高并存。 */
  padding: 0 16px !important;
}
/* 密度三档（批十一 v2 曾按 antd size 分 4/6/10px 三档）—— v6.4 起**统一归零**：
   行高差异改由 useTableDensity 的 --gs-row-h（36/44/52，设置面板可改）承担，
   antd size 只影响控件尺寸，不再改变行高。修前 middle 档 10px 是
   /products/store-goods 行高 52px、品牌页 49px 的直接来源（v6-14 移除 size="small" 后
   这些页回落到 middle 档 → 一夜之间全部长高 8px）。 */
.ant-table-wrapper.ant-table-wrapper .ant-table.ant-table-small .ant-table-tbody > tr > td,
.ant-table-wrapper.ant-table-wrapper .ant-table.ant-table-middle .ant-table-tbody > tr > td,
.ant-table-wrapper.ant-table-wrapper .ant-table.ant-table-large .ant-table-tbody > tr > td {
  padding: 0 16px !important;
}
/* 批十一 v3（用户「为什么 10 行还要下拉」）：标准档纵向预算终局压缩——
   序号列场景下表头+10行+分页必须零滚动落一屏：
   ① 表尾分页上边距 16→8；② 卡体 padding 14→10（横向保留 16 不挤） */
.ant-table-wrapper .ant-table-pagination.ant-pagination {
  margin: 8px 0 4px !important;
}
.ant-card.ant-card .ant-card-body {
  padding: 10px 16px !important;
}

/* 批十一 v4：表格全屏模式（TableToolbar fullscreenRef 目标）——对标 ProTable 全屏：
   目标容器（Card）fixed 铺满视口，内部表格自适应高度随 ResizeObserver 重新计算 */
.gs-table-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000 !important;
  overflow: auto !important;
  background: var(--bg-page, #f5f6f7) !important;
  padding: 12px !important;
  margin: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  border-radius: 0 !important;
}

/* 批十一 v5：批量操作条（ProTable tableAlert 模式）——淡紫底、主色描边，与「激活=淡紫」颜色语言一致 */
.gs-bulk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(114, 46, 209, 0.08);
  border: 1px solid rgba(114, 46, 209, 0.28);
  border-radius: 10px;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--text-primary);
}
.gs-bulk-bar b { color: var(--primary-color); }
.gs-saved-view-row {
  display: flex;
  align-items: center;
  gap: 2px;
  border-radius: 8px;
}
.gs-saved-view-row:hover { background: var(--primary-bg, rgba(114, 46, 209, 0.06)); }
/* 批十一 v7：通用右键菜单（Odoo Smart List View 单元格复制 / SegmentFault antd 右键复制实践） */
.gs-ctx-menu{position:fixed;z-index:1200;min-width:160px;padding:4px;background:#fff;border-radius:8px;box-shadow:0 6px 16px rgba(0,0,0,.12),0 0 1px rgba(0,0,0,.2);-webkit-user-select:none;-moz-user-select:none;user-select:none}
.gs-ctx-menu-item{padding:6px 12px;font-size:13px;color:#333;border-radius:6px;cursor:pointer;line-height:1.4}
.gs-ctx-menu-item:hover{background:rgba(114,46,209,.08);color:#722ed1}
/* 批十一 v8：行内快捷编辑铅笔图标（hover 显形，Odoo editable list view 惯例） */
tr.ant-table-row .gs-inline-edit-icon{opacity:0;transition:opacity .15s}
tr.ant-table-row:hover .gs-inline-edit-icon{opacity:1}
/* 列头筛选漏斗弱化（批十一 v2，用户「太丑」）：antd 默认 FilterFilled 实心深灰常驻很重。
   无筛选值时 35% 透明度小号浅灰，hover 显形；有筛选值（open/filtered class）恢复主色 */
.ant-table-wrapper .ant-table-filter-trigger {
  margin-inline-start: 2px;
}
.ant-table-wrapper .ant-table-filter-trigger .ant-table-filter-icon {
  color: var(--text-tertiary);
  opacity: 0.4;
  font-size: 11px;
  transition: opacity var(--duration-fast) ease, color var(--duration-fast) ease;
}
.ant-table-wrapper .ant-table-filter-trigger:hover .ant-table-filter-icon,
.ant-table-wrapper .ant-table-filter-trigger.ant-table-filter-open .ant-table-filter-icon {
  opacity: 1;
}
.ant-table-wrapper th.ant-table-column-has-filters.ant-table-filter-active .ant-table-filter-icon {
  color: var(--primary-color);
  opacity: 1;
}
/* 列宽拖拽手柄（批十一 v2）：th 右缘 6px 热区，hover 显现紫描边，拖拽中全局 col-resize 光标。
   v5 flat[42]（2026-11-23）：原 `right:-3px` 把热区向外挑 3px，position:absolute 仍计入滚动态宽度 →
   表格 scrollWidth 比客户区大 3px，**自适应（未设 scroll.x）的表格底部常驻一条横向滚动条**
   （文件管理实测 clientW 1554 / scrollW 1557，overflowers 里唯一越界元素就是本手柄 over=3）。
   transform 平移同样被 scrollable overflow region 计入（实测仍 +3），所以必须真正收进盒内：
   改为 `right:0`（热区落在 th 右缘内侧 6px，拖拽手感不变），溢出归零。此法对全部接入
   ResizableTitle 的页面同时生效。 */
th .gs-col-resizer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 6px;
  cursor: col-resize;
  z-index: 2;
}
th .gs-col-resizer::after {
  content: '';
  position: absolute;
  top: 20%;
  bottom: 20%;
  right: 2px;
  width: 2px;
  border-radius: 2px;
  background: var(--primary-color);
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
}
th:hover .gs-col-resizer::after {
  opacity: 0.55;
}
th.gs-resizing .gs-col-resizer::after {
  opacity: 1;
}
.ant-card.ant-card .ant-card-body {
  padding: 14px 16px !important;
}
.ios-empty-state {
  padding: 32px 16px !important;
}

/* 10. 仪表盘「本月营收」 hero 卡（`var(--card-hero-gradient)`，Dashboard.tsx 内联引用）。
     v4 是深紫三段渐变 + 紫色投影；v4 的 de-ai 补丁把它压成 `primary 30% 混 #1a1430`（仍是深紫）。
     v5 flat[01]（2026-11-23 unslop 全量判据）把 token 改为中性深面 #17171a，
     这条 !important 兜底同步改中性 —— 内联 style 优先级高于普通样式表，必须靠本规则压住历史值。
     深色卡上不用彩色阴影：tokens 里 light 主题浮现用 0 8px 24px rgba(0,0,0,0.06)。 */
[style*="card-hero-gradient"] {
  background: #17171a !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
}

/* 18. 侧栏子菜单毛玻璃（2026-11-15 全站布局审计批二，ego r439/r440 取证）：
      `.gst-submenu-inner` 全站 37 个常驻层，各自 `backdrop-filter: blur(12px)` +
      半透明黑底 rgba(0,0,0,0.18)——玻璃拟态残留在导航 chrome 上（首批清理只清了卡片）。
      ERP 侧栏子菜单是实色面板（乐檬/金蝶类无 blur）；37 个 blur 层还有持续合成开销。
      修法：去 blur，底色取原视觉近似实色（rgba(0,0,0,0.18) 叠侧栏 rgb(40,30,83) ≈ rgb(33,25,68)）。 */
.gst-submenu-inner {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgb(33, 25, 68) !important;
}

/* 19. 侧栏分组标签 11px（r440 smallText 取证：`.gst-menu-group-label` ×10 组 +
      "开发端" 11px）：低于 12px 底线（ui-ux-pro-max 正文判据），统一抬 12px。
      豁免不动：顶栏 kbd 10px（键帽惯例）、图表 SVG 轴 tspan 11px（图例惯例）、
      "SMART ERP" 10.64px（品牌字）、badge 10px（antd 官方小档）。 */
.gst-menu-group-label {
  font-size: 12px !important;
}

/* 20. 页头 actions 行距压缩（r440 取证 /products 页头块 118px，其中 actions 87px =
      两行按钮/筛选堆叠，gap 偏大）：把 actions 行距收到 8px，两行态省约 8-10px。
      页面级重构（筛选器折叠进「筛选」按钮）待 products 页面文件 M 占用释放，报告记账。 */
.ios-page-header-actions {
  gap: 8px !important;
  row-gap: 8px !important;
}




/* ---- 第21条 · 首屏纵向预算（2026-11-15 批七，用户截图反馈）----
   根因：.ios-page-content 高度由内容撑开，开单类页面「flex:1 明细区」无法吃满
   视口剩余 → 表格区被挤到首屏外。给 content 确定高度后 flex 子卡生效。
   对无 flex:1 子卡 页面无视觉变化（仅容器底对齐视口）。 */
.ios-page-content.ios-page-content {
  min-height: calc(100vh - 132px);
  box-sizing: border-box;
}

/* ---- 第22条 · 元数据 hero/Alert 卡压缩（图2 档案控制台类页面）----
   「框架对齐结论」等开发元数据 Alert 卡 161px 挤占表格首屏。
   页面级折叠重构待文件释放；先全局压缩：内边距+Statistic 字号降档。 */
.ant-alert.ant-alert-with-description {
  padding: 10px 16px !important;
}
.ant-alert .ant-alert-message {
  font-size: 14px !important;
}
.ant-alert .ant-alert-description {
  font-size: 12px !important;
}
.ant-alert .ant-statistic-title {
  font-size: 12px !important;
  margin-bottom: 2px !important;
}
.ant-alert .ant-statistic-content {
  font-size: 22px !important;
}
.ant-alert .ant-statistic-content-value-int,
.ant-alert .ant-statistic-content-value-decimal {
  font-size: 22px !important;
}

/* ---- 第23条 · 表格首屏最小可视保障（列表页通用）----
   页头/筛选/统计堆叠后表格首行距视口顶 ≤ 480px 时不再额外收紧；
   仅当表单/卡堆叠导致表格被推出视口的页面需要页面级重构（已逐页记档）。 */

/* ---- 第24条 · Tag warning 族收敛修复（2026-11-15 批八，用户截图「部分链路看不清」）----
   根因（ego r453 computed 取证）：main.tsx colorWarning:'var(--warning-color)' 把 CSS
   变量字符串喂给 antd 主题，antd 色彩派生算法解析不了 var() → .ant-tag-warning
   派生崩坏兜底成 bg=rgb(64,64,64)/color=rgb(0,0,0)（黑底黑字，对比度 1:1 不可读）。
   success/error 早已在 global.css:3040/3045 有收敛族躲过此坑，warning 是漏网族。
   修法：与既有 green/success、red/error 同款收敛（橙字橙底橙边，走全局语义 token），
   全站所有 color="warning" Tag 收益（订货模板/跟进等列「部分链路」即此类）。 */
.ant-tag.ant-tag-warning,
.ant-tag.ant-tag-amber {
  color: var(--warning-color) !important;
  background: var(--warning-bg) !important;
  border-color: rgba(255, 159, 10, 0.28) !important;
}

/* ---- 第25条 · 元数据 Alert 二档压缩（chain-console hero 卡 137px 仍挤首屏）----
   只命中带 Statistic 的开发元数据卡（:has 定点，普通提示 Alert 不受影响）：
   说明文字 11px×1.5、卡内边距 8px、Statistic 20px；标题行与统计行距收 4px。
   治本（默认折叠/移「关于」弹窗）仍待 CustomerChainConsole.tsx M 占用释放。 */
.ant-alert.ant-alert:has(.ant-statistic) {
  padding: 8px 16px !important;
}
.ant-alert.ant-alert:has(.ant-statistic) .ant-alert-message {
  margin-bottom: 4px !important;
}
.ant-alert.ant-alert:has(.ant-statistic) .ant-alert-description {
  font-size: 11px !important;
  line-height: 1.5 !important;
}
.ant-alert.ant-alert:has(.ant-statistic) .ant-statistic-title {
  margin-bottom: 0 !important;
}
.ant-alert.ant-alert:has(.ant-statistic) .ant-statistic-content {
  font-size: 20px !important;
  line-height: 1.2 !important;
}
.ant-alert.ant-alert:has(.ant-statistic) .ant-statistic-content-value-int,
.ant-alert.ant-alert:has(.ant-statistic) .ant-statistic-content-value-decimal {
  font-size: 20px !important;
}/**
 * 侧栏可读性补丁（2026-11-13 · 全局 UI 优化批）
 *
 * 问题（真机截图实证）：侧栏底是深紫渐变（color-mix 主色 + #14102a），而文字色沿用
 *   - 菜单项 rgba(255,255,255,0.55) → 13.5px 正文对比度约 3.4:1（低于 WCAG AA 4.5:1）
 *   - 分组标签 10px / rgba(255,255,255,0.22) → 对比度约 1.5:1，几乎看不见
 *   - 用户角色 rgba(255,255,255,0.30) → 同上
 * 用户原话「很多字都看不清楚」。
 *
 * 为什么单独一个文件而不是改 global.css：global.css 当前有他人未提交的 626 行 param-* 改动，
 * 混写会让本批改动无法按文件精确入库。本文件由 Sidebar.tsx 直接 import，选择器统一带
 * `.gst-sidebar` 前缀（比 global.css 高一级特异性），不依赖加载顺序。
 */

.gst-sidebar .gst-menu-item {
  color: rgba(255, 255, 255, 0.82);
}

.gst-sidebar .gst-menu-item:hover {
  color: #fff;
}

.gst-sidebar .gst-menu-item.selected {
  color: #fff;
}

/* 图标跟随文字色，避免「文字提亮、图标还暗」 */
.gst-sidebar .gst-menu-icon {
  color: inherit;
}

.gst-sidebar .gst-menu-group-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.06em;
}

.gst-sidebar .gst-user-role {
  color: rgba(255, 255, 255, 0.72);
}
*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}
::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}
.container {
  width: 100%;
}
@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}
.\!visible {
  visibility: visible !important;
}
.visible {
  visibility: visible;
}
.collapse {
  visibility: collapse;
}
.static {
  position: static;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.sticky {
  position: sticky;
}
.right-0 {
  right: 0px;
}
.top-1\/2 {
  top: 50%;
}
.z-50 {
  z-index: 50;
}
.col-span-4 {
  grid-column: span 4 / span 4;
}
.col-span-8 {
  grid-column: span 8 / span 8;
}
.m-0 {
  margin: 0px;
}
.m-1 {
  margin: 0.25rem;
}
.m-2 {
  margin: 0.5rem;
}
.m-3 {
  margin: 0.75rem;
}
.m-4 {
  margin: 1rem;
}
.m-5 {
  margin: 1.25rem;
}
.m-9 {
  margin: 2.25rem;
}
.\!mb-0 {
  margin-bottom: 0px !important;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.ml-2 {
  margin-left: 0.5rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.\!table {
  display: table !important;
}
.table {
  display: table;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.size-4 {
  width: 1rem;
  height: 1rem;
}
.h-2 {
  height: 0.5rem;
}
.h-48 {
  height: 12rem;
}
.h-64 {
  height: 16rem;
}
.h-8 {
  height: 2rem;
}
.h-96 {
  height: 24rem;
}
.h-\[calc\(100\%-1px\)\] {
  height: calc(100% - 1px);
}
.h-full {
  height: 100%;
}
.h-screen {
  height: 100vh;
}
.max-h-\[80vh\] {
  max-height: 80vh;
}
.min-h-0 {
  min-height: 0px;
}
.min-h-\[60vh\] {
  min-height: 60vh;
}
.w-1 {
  width: 0.25rem;
}
.w-8 {
  width: 2rem;
}
.w-fit {
  width: -moz-fit-content;
  width: fit-content;
}
.w-full {
  width: 100%;
}
.min-w-0 {
  min-width: 0px;
}
.max-w-full {
  max-width: 100%;
}
.flex-1 {
  flex: 1 1 0%;
}
.shrink-0 {
  flex-shrink: 0;
}
.border-collapse {
  border-collapse: collapse;
}
.-translate-y-1\/2 {
  --tw-translate-y: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.cursor-help {
  cursor: help;
}
.cursor-pointer {
  cursor: pointer;
}
.resize {
  resize: both;
}
.scroll-mt-14 {
  scroll-margin-top: 3.5rem;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-12 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-cols-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.flex-row {
  flex-direction: row;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-nowrap {
  flex-wrap: nowrap;
}
.items-start {
  align-items: flex-start;
}
.items-center {
  align-items: center;
}
.items-baseline {
  align-items: baseline;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-1\.5 {
  gap: 0.375rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-x-4 {
  -moz-column-gap: 1rem;
       column-gap: 1rem;
}
.gap-y-1 {
  row-gap: 0.25rem;
}
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}
.overflow-auto {
  overflow: auto;
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-x-auto {
  overflow-x: auto;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.whitespace-nowrap {
  white-space: nowrap;
}
.break-all {
  word-break: break-all;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: var(--radius-lg);
}
.rounded-md {
  border-radius: var(--radius-sm);
}
.rounded-l-lg {
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
}
.border {
  border-width: 1px;
}
.border-2 {
  border-width: 2px;
}
.border-gray-100 {
  --tw-border-opacity: 1;
  border-color: rgb(243 244 246 / var(--tw-border-opacity, 1));
}
.border-green-200 {
  --tw-border-opacity: 1;
  border-color: rgb(187 247 208 / var(--tw-border-opacity, 1));
}
.border-transparent {
  border-color: transparent;
}
.bg-background {
  background-color: var(--bg-container-solid);
}
.bg-gray-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.bg-green-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(240 253 244 / var(--tw-bg-opacity, 1));
}
.bg-muted {
  background-color: var(--bg-fill);
}
.bg-popover {
  background-color: var(--bg-container-solid);
}
.bg-primary {
  --tw-bg-opacity: 1;
  background-color: rgb(var(--primary-rgb, 121 87 247) / var(--tw-bg-opacity, 1));
}
.bg-primary\/20 {
  background-color: rgb(var(--primary-rgb, 121 87 247) / 0.2);
}
.bg-transparent {
  background-color: transparent;
}
.p-1 {
  padding: 0.25rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-\[3px\] {
  padding: 3px;
}
.\!px-0 {
  padding-left: 0px !important;
  padding-right: 0px !important;
}
.\!py-1 {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.pl-5 {
  padding-left: 1.25rem;
}
.pr-1 {
  padding-right: 0.25rem;
}
.pr-2 {
  padding-right: 0.5rem;
}
.pr-3 {
  padding-right: 0.75rem;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-\[11px\] {
  font-size: 11px;
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.font-bold {
  font-weight: 700;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.tabular-nums {
  --tw-numeric-spacing: tabular-nums;
  font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
}
.text-\[\#595959\] {
  --tw-text-opacity: 1;
  color: rgb(89 89 89 / var(--tw-text-opacity, 1));
}
.text-\[\#8c8c8c\] {
  --tw-text-opacity: 1;
  color: rgb(140 140 140 / var(--tw-text-opacity, 1));
}
.text-\[\#bfbfbf\] {
  --tw-text-opacity: 1;
  color: rgb(191 191 191 / var(--tw-text-opacity, 1));
}
.text-blue-500 {
  --tw-text-opacity: 1;
  color: rgb(59 130 246 / var(--tw-text-opacity, 1));
}
.text-gray-300 {
  --tw-text-opacity: 1;
  color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.text-gray-400 {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-gray-800 {
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}
.text-muted-foreground {
  color: var(--text-secondary);
}
.text-primary {
  --tw-text-opacity: 1;
  color: rgb(var(--primary-rgb, 121 87 247) / var(--tw-text-opacity, 1));
}
.text-secondary {
  color: var(--bg-fill);
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.underline {
  text-decoration-line: underline;
}
.line-through {
  text-decoration-line: line-through;
}
.opacity-50 {
  opacity: 0.5;
}
.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-md {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-sm {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.outline {
  outline-style: solid;
}
.invert {
  --tw-invert: invert(100%);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-\[color\2c background-color\2c border-color\2c box-shadow\] {
  transition-property: color,background-color,border-color,box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-\[transform\] {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
@keyframes enter {
  from {
    opacity: var(--tw-enter-opacity, 1);
    transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));
  }
}
@keyframes exit {
  to {
    opacity: var(--tw-exit-opacity, 1);
    transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));
  }
}
.ease-in-out {
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.ease-out {
  animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
.running {
  animation-play-state: running;
}
.paused {
  animation-play-state: paused;
}

/* ============================================================
   高手贴膜 ERP - iOS 26 Liquid Glass 设计系统 v3.0
   基于 Apple Human Interface Guidelines + iOS 26 设计规范
   ============================================================ */

:root {
  /* ===== zIndex 分层令牌（2026-10-11 交互整改批）=====
     此前全站散落 9 个离散值（1/2/10/20/50/1000/2000/2100/2400/3000/9999），
     其中 OfflineBanner 9999 与 UpdateProgressToast 3000 高于一切模态 → 离线横幅压住弹窗顶部、
     更新浮层遮挡确认按钮。现按语义分 4 级，层级递增：
       --z-base    1    页内基础叠放（卡片徽标、局部遮罩）
       --z-sticky  100  粘性层（顶栏、侧栏、页内锚点导航）
       --z-overlay 1000 全屏遮罩（antd Modal/Drawer mask 同档）
       --z-modal   1100 模态内容层（antd Modal/Drawer 容器同档）
       --z-toast   1200 全局提示层（message/notification、离线横幅、热更浮层）
     注：antd 5 zIndexPopupBase=1000、容器偏移 +100，故 Modal/Drawer 实测落在 1100，与 --z-modal 对齐。 */
  --z-base: 1;
  --z-sticky: 100;
  --z-overlay: 1000;
  --z-modal: 1100;
  --z-toast: 1200;
  /* 品牌色系 — 主色紫（单色系，禁紫蓝渐变）
   *
   * 定版演进（勿再凭旧注释改回蓝）：主色历史为 蓝(#1677ff/#1890ff/#2563eb) → 紫(#7c5cfa) → 紫(#7957f7)。
   * store/theme.ts 的 LEGACY_COLORS 仍保留前几代蓝/旧紫值，仅用于把存量用户迁移到当前默认色，
   * **不代表「蓝才是定版」**。当前实测紫 103 处 / 蓝 14 处，紫色已是既成事实；
   * 且 #7957f7 白字对比度 4.65:1 达标（tools/a11y-contrast.mjs），改蓝需重跑全站配色校准。
   * 原注释「品牌色系 - 专业蓝（去AI味校准：禁紫蓝渐变，单色系）」与下方实际值矛盾，已按事实更正：
   * 「去 AI 味」的真源是**单色系 + 禁渐变**（渐变才是 AI 生成 UI 的最强特征），而非某个具体色相。 */
  /* 主色 #7957f7（2026-10-07 a11y 波）：旧 #7c5cfa 上白字 4.40:1 略低于 4.5:1，新值 4.65:1 达标；
     运行时真源在 store/theme.ts DEFAULT_PRIMARY（boot 时 setProperty 覆盖本值，两处同步改） */
  --primary-color: #7957f7;
  /* 主色 RGB 三元组（2026-10-11 批1 令牌地基）：rgba(124,92,250,*) 旧紫全站散落40 处，
     与 --primary-color #7957f7(=121,87,247) 不同基色 —— 用户在 store/theme.ts 切换8 个预设主色时
     这些派生色永远锁死旧紫，主题功能形同虚设。本档为全站主色派生的唯一真源：
     一律改写 rgb(var(--primary-rgb) / α)。运行时真源仍是 store/theme.ts DEFAULT_PRIMARY，
     该处在 setProperty('--primary-color') 时同步 setProperty('--primary-rgb')（见下）。 */
  --primary-rgb: 121 87 247;
  --primary-hover: #6a48ec;
  --primary-active: #5a3cd8;
  --primary-light: rgb(var(--primary-rgb) / 0.10);
  --primary-bg: rgb(var(--primary-rgb) / 0.07);
  --primary-glass: rgb(var(--primary-rgb) / 0.14);
  --primary-border: rgb(var(--primary-rgb) / 0.26);
  /* 主色 focus 光环两档（对齐 main.tsx Input.activeShadow 分浅/暗取值，见 shadcn focus-visible ring 语言） */
  --primary-ring: rgb(var(--primary-rgb) / 0.15);
  --primary-ring-strong: rgb(var(--primary-rgb) / 0.28);
  /* 图表/状态色主色派生（MarketPrice/ProcurementTracking 等图表 stroke 曾各自硬编码第三种紫 #7c5cff） */
  --primary-chart: var(--primary-color);
  --primary-glow: rgb(var(--primary-rgb) / 0.42);
  /* shadcn input 边框 RGB 通道（tailwind.config input:<alpha-value> 消费，bg-input/30 等透明度类依赖）：
     浅色档 ≈ rgba(0,0,0,0.12) 的不透明等效观感通道 */
  --input-rgb: 137 137 140;
  /* 语义色-浅色档（2026-10-07 a11y 波）：旧 iOS 亮色作正文时对白底全部不达标
     （#34c759=2.22 / #ff9f0a=2.06 / #ff3b30=3.55，均 <4.5:1）；暗色档在
     [data-theme='dark'] 显式保留原亮色（对深底 7.7 / 8.3 / 4.8 达标）。
     定版值实测：#1a7f37=5.08 / #b25e00=4.67 / #d70015=5.38（tools/a11y-contrast.mjs） */
  --success-color: #1a7f37;
  --success-bg: rgba(52, 199, 89, 0.08);
  --warning-color: #b25e00;
  --warning-bg: rgba(255, 159, 10, 0.08);
  --error-color: #d70015;
  --error-bg: rgba(255, 59, 48, 0.08);
  --info-color: var(--primary-color); /* 批13：随主题切换 */
  /* 键盘焦点环主色（focus-visible 光环，WCAG 非文字 ≥3:1）：#7957f7 对白底 4.65 / 对页底 #f0f2f5 4.14 */
  --focus-ring: var(--primary-color); /* 批13：随主题切换（对白底各预设色均≥3:1 非文字标准） */
  /* 强调色 - 青绿=正向数据强调（文章同款），紫=图表系列 */
  --accent-mint: #13deb9;
  --accent-purple: #6a48ec;
  --accent-teal: #13deb9;
  /* 2026-10-11 批1补漏：以下 5 个变量此前「被使用但从未定义」，var() 落空后回落各处硬编码
     浅色 fallback（#fafafa / #f0f0f0 / #f0a500 / #ffbb96），暗色档必然破底。
     取值按语义就近对齐既有真源，不新增观感：--bg-secondary→容器填充档、--border-secondary→弱边框档、
     --brand/--rank-bronze→主色与铜牌档。 */
  --bg-secondary: var(--bg-fill);
  --border-secondary: var(--border-color-light);
  --brand: var(--primary-color);
  --text-color-secondary: var(--text-secondary);
  --rank-bronze: #b06a2c;
  /* mint/teal 文本档（2026-10-08 波1 mint 对比度 token 配方，期31波3 报告五·1 留档落地）：
     亮值 #13deb9 作正文对白底仅 1.72:1（Dashboard「今日利润」KPI 值/Surge TrendBadge 1.62）不达标；
     因 --accent-mint/--accent-teal 消费面含 8+ 处图表 fill（Dashboard 饼图/进度条、MallAnalytics、
     FinanceReport/ProductOpsBoard/PurchaseDelivery/ServerStatus/VirtualStocks…），整体加深会改图表观感，
     故按报告二选一取「文本档分离」：fill 保持亮值不变，文本另立本档 #0b7d66——
     实测对白底 5.07 / 对 TrendBadge 淡底 #effbf2 4.77 / 对页底 #f0f2f5 4.52 均 ≥4.5（tools 同款 WCAG 算法） */
  --accent-mint-text: #0b7d66;
  --accent-teal-text: #0b7d66;
  --accent-cyan: #08979c; /* 2026-10-04：ImageVerifyPanel「近似」chip 计数色收编（与裁决列 antd Tag color="cyan" 同源定值） */
  /* 文字层级 */
  --text-primary: rgba(0, 0, 0, 0.88);
  --text-secondary: rgba(0, 0, 0, 0.56);
  --text-tertiary: rgba(0, 0, 0, 0.55); /* a11y 2026-10-07：0.36 对白底 2.52:1 <4.5:1 不达标，0.55=4.74:1（POS「应收」/「共N件｜原价」/表单辅助说明等正文性文字） */
  --text-quaternary: rgba(0, 0, 0, 0.20);
  /* 行高双档（期30波2排版归一）：正文/表格/说明一律 --lh-body，数字/标签等紧凑场合 --lh-tight；
     此前 inline 1.2/1.35/1.7/1.9/2 五档散值并存，页面侧一律引用本 token */
  --lh-body: 1.5;
  --lh-tight: 1.2;
  /* 反向白字 - 深色卡/渐变卡上的文字（2026-10-02：Dashboard 深卡 '#fff' 裸字面量 ui-audit P1-2 归零专用 token） */
  --text-inverse: #ffffff;
  /* Dashboard 深色营收卡（2026-10-04 token 化；2026-11-23 v5 flat[01] unslop 化）
     v4 是「深紫三段渐变 + 紫色投影」= unslop 双红（色相渐变面 + 彩色阴影）。
     v5 定为中性深面（graphite 最深层一档）+ 中性浮起阴影；色彩只活在数字与语义涨跌里。
     token 名保留（存量调用点/回滚友好），值已改为纯中性。 */
  --card-hero-gradient: #17171a;
  --card-hero-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --card-hero-chip: rgba(255, 255, 255, 0.06);
  --card-hero-track: rgba(255, 255, 255, 0.10);
  /* 深卡发丝线（primary 文字 8% 透明度口径，见 unslop tokens: hairline） */
  --card-hero-hairline: rgba(255, 255, 255, 0.08);
  /* 表面色 - iOS 26 半透明 */
  --bg-layout: #f0f2f5;
  --bg-container: rgba(255, 255, 255, 0.72);
  --bg-container-solid: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --bg-fill: rgba(0, 0, 0, 0.03);
  --bg-fill-hover: rgba(0, 0, 0, 0.06);
  /* 表格停靠配套不透明底（期31波2补落期27波3「fix 单元格不透明底停靠规范层」欠账；值=半透明 token 叠算等值，
     见下方 Table 规范层注释。dark 档同批在 [data-theme='dark'] 内覆盖 */
  --table-header-bg: #f7f7f7;           /* 表头不透明底：#fff 容器叠 --bg-fill 3% 黑（原玻璃态视觉等值） */
  --table-row-hover-solid: #f2efff;     /* tbody 停靠格 hover：#fff 叠 --primary-light 10% 紫 */
  --table-row-selected-solid: #f6f4ff;  /* tbody 停靠格选中：#fff 叠 --primary-bg 7% 紫 */
  /* 边框 - 更柔和 */
  --border-color: rgba(0, 0, 0, 0.06);
  --border-color-light: rgba(0, 0, 0, 0.03);
  --border-color-strong: rgba(0, 0, 0, 0.10);
  /* iOS 26 液态玻璃模糊 */
  --glass-blur: blur(40px) saturate(180%);
  --glass-blur-heavy: blur(60px) saturate(200%);
  --glass-blur-light: blur(20px) saturate(150%);
  /* 布局 */
  --sidebar-width: 240px;
  --sidebar-collapsed-width: 72px;
  --topbar-height: 52px;
  --tabnav-height: 40px;
  /* iOS 26 柔和阴影 - 更扩散、更轻 */
  --shadow-xs: 0 0.5px 1px rgba(0,0,0,0.03);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.03);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.10), 0 8px 20px rgba(0,0,0,0.05);
  --shadow-card: 0 1px 4px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 8px 30px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.03);
  --shadow-glass: 0 2px 20px rgba(0,0,0,0.06), inset 0 0.5px 0 rgba(255,255,255,0.4);
  /* 侧栏投影（MainLayout aside，含 1px 内描边高光；值自 MainLayout 内联等值搬迁 token 化） */
  --shadow-sidebar: 4px 0 24px rgba(0,0,0,0.12), 1px 0 0 rgba(255,255,255,0.03);
  /* 圆角 - iOS 26 更大更圆润（2026-10-11 批1 修正阶梯倒挂）
   此前 --radius-md:14px > --radius-lg:12px，语义名与数值反向，导致 global.css:310 的 Select 下拉
   圆角(14) 大于 Card(12)，层级视觉倒置。现按数值递增重排，消费方（md 6 处 / lg 23 处）
   语义随之归位——lg 承接原 md 的 14px，md 降为 10px 档，视觉差异 ≤2px 且方向正确。 */
--radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 10px;   /* 控件档（下拉/提示/告警卡）：与 sm 同值，避免新增 11px 孤档 */
  --radius-lg: 14px;   /* 容器档（卡片/表格）：承接原 md 14px，Card 视觉不变 */
  --radius-xl: 24px;
  --radius-full: 999px;
  --radius-btn: 8px; /* 2026-10-02 用户定版：全站按钮圆角统一 8（.ant-btn/.pf-btn 系专用档） */
  /* 动画缓动 - iOS 26 弹性 */
  --ease-ios: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-instant: 0.1s;
  --duration-fast: 0.18s;
  --duration-normal: 0.28s;
  --duration-slow: 0.42s;
  --duration-spring: 0.5s;
}

/* iOS 26 暗色模式 */
[data-theme='dark'] {
  --text-primary: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.60);
  --text-tertiary: rgba(255, 255, 255, 0.55); /* a11y 2026-11-14：0.38 对暗底 #1c1c1e 仅 3.32:1 <4.5:1，0.55=5.9:1（与浅色档 0.55 对称） */
  --text-quaternary: rgba(255, 255, 255, 0.20);
  --bg-layout: #000000;
  --bg-container: rgba(28, 28, 30, 0.72);
  --bg-container-solid: #1c1c1e;
  --bg-elevated: rgba(44, 44, 46, 0.80);
  --bg-glass: rgba(44, 44, 46, 0.55);
  --bg-fill: rgba(255, 255, 255, 0.05);
  --bg-fill-hover: rgba(255, 255, 255, 0.08);
  /* 表格停靠配套不透明底（暗色档，叠算基=暗算法容器 #141414；配对浅色档见 :root） */
  --table-header-bg: #202020;           /* #141414 叠 --bg-fill 5% 白 */
  --table-row-hover-solid: #252039;     /* #141414 叠 --primary-light 16% 紫 */
  --table-row-selected-solid: #221d32;  /* #141414 叠 --primary-bg 13% 紫 */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-light: rgba(255, 255, 255, 0.04);
  --border-color-strong: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-card: 0 1px 4px rgba(0,0,0,0.3);
  --shadow-card-hover: 0 8px 30px rgba(0,0,0,0.4);
  --shadow-glass: 0 2px 20px rgba(0,0,0,0.4), inset 0 0.5px 0 rgba(255,255,255,0.08);
  /* 与浅色同值零视觉差（纯 token 化搬迁，不改暗色已验收观感） */
  --shadow-sidebar: 4px 0 24px rgba(0,0,0,0.12), 1px 0 0 rgba(255,255,255,0.03);
  --primary-light: rgb(var(--primary-rgb) / 0.16);
  --primary-bg: rgb(var(--primary-rgb) / 0.13);
  /* shadcn input RGB 通道暗色档（≈rgba(255,255,255,0.20) 等效） */
  --input-rgb: 214 214 219;
  /* 2026-10-11 批1：--accent-purple 此前仅 :root 有值，暗色档缺失，导致 13 处消费点
     （Dashboard/partner-finance/MallAnalytics 图表与统计卡）在暗底 #1c1c1e 上仅约 3.4:1，
     低于正文 4.5:1。暗色档提亮至 #a78bfa（对深底 6.25:1，与 --focus-ring 暗色档同值同源）。 */
  --accent-purple: #a78bfa;
  /* 暗色档铜牌档提亮（浅色档 #b06a2c 对深底不达标） */
  --rank-bronze: #d9a05b;
  /* 暗色语义色显式保留原 iOS 亮色档（对 #1c1c1e 深底 7.7 / 8.3 / 4.8 均≥4.5，实测 tools/a11y-contrast.mjs）——
     浅色档已换深色达标值（:root），此处锚定暗色观感不变 */
  --success-color: #34c759;
  --warning-color: #ff9f0a;
  --error-color: #ff3b30;
  /* mint/teal 文本档暗色档（2026-10-08 波1）：暗底复用亮值——对 #1c1c1e 9.87 /
     对淡底 #203627 7.52 实测均 ≥4.5，锚定暗色观感与 fill 一致不变 */
  --accent-mint-text: #13deb9;
  --accent-teal-text: #13deb9;
  /* 暗色焦点环提亮档（#a78bfa 对深底 6.25 ≥3） */
  --focus-ring: var(--primary-color); /* 批13：暗档也随主题（预设色对深底均≥3:1） */
  --success-bg: rgba(52, 199, 89, 0.15);
  --warning-bg: rgba(255, 159, 10, 0.15);
  --error-bg: rgba(255, 59, 48, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Noto Sans SC', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1;
  color: var(--text-primary);
  background: var(--bg-layout);
  line-height: var(--lh-body);
  letter-spacing: -0.01em;
}
#root { min-height: 100vh; }
::-moz-selection { background: var(--primary-color); color: #fff; }
::selection { background: var(--primary-color); color: #fff; }

/* ===== iOS 26 滚动条 ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.10); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.20); }
::-webkit-scrollbar-track { background: transparent; }
[data-theme='dark'] ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); }
[data-theme='dark'] ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.20); }

/* ===== 表格横向滚动条治理（v5 flat[21] 实测，flat[19] 扩散） =====
   antd 有 `scroll.y` 时必然渲染 15px `.ant-table-cell-scrollbar` 补偿列 + 纵向滚动条吃掉 15px 布局宽，
   Chrome 110+ 已移除 `overflow: overlay`（写了也不生效）→ 唯一可靠解是「列宽总和 ≤ clientW」，
   否则底部会出现整条横向滚动条轨道并裁掉右侧操作列。
   列宽已贴合容器、无需横向滚动的表页显式标 `.gs-table-nox`，关掉横向滚动（隐藏 2~4px 舍入余量，不裁内容）。 */
.gs-table-nox .ant-table-content,
.gs-table-nox .ant-table-body { overflow-x: hidden !important; }

/* 表格卡去内边距：上方 `.ant-card .ant-card-body { padding: 16px 20px !important }` 会把
   Card 的 `styles={{ body: { padding: 0 } }}` 一律压制（2026-11-22 flat[23] 实测 cardBodyPad=14px 16px，
   即全站表格页「贴边表格」声明全部未生效，空隙 32px 让列宽和与容器宽口径失配）。
   这里用类级 !important 兜住：标了 `.gs-table-nox` 的卡 body 内边距归零，工具条/分页自带内距。 */
.ant-card.gs-table-nox > .ant-card-body { padding: 0 !important; }

/* ===== iOS 26 动画关键帧 ===== */
@keyframes ios-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ios-slide-up { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes ios-slide-down { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ios-scale-in { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes ios-slide-right { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes ios-bounce { 0% { opacity: 0; transform: scale(0.3); } 50% { transform: scale(1.04); } 70% { transform: scale(0.96); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ios-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes ios-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes ios-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ios-gradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes ios-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes ios-count-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ios-ripple { 0% { transform: scale(0); opacity: 0.4; } 100% { transform: scale(4); opacity: 0; } }

/* iOS 26 动画工具类 */
.anim-ios-fade { animation: ios-fade-in var(--duration-normal) var(--ease-ios) both; }
.anim-ios-up { animation: ios-slide-up var(--duration-slow) var(--ease-out-expo) both; }
.anim-ios-down { animation: ios-slide-down var(--duration-normal) var(--ease-ios) both; }
.anim-ios-scale { animation: ios-scale-in var(--duration-normal) var(--ease-ios) both; }
.anim-ios-right { animation: ios-slide-right var(--duration-slow) var(--ease-out-expo) both; }
.anim-ios-bounce { animation: ios-bounce 0.6s var(--ease-spring) both; }
.anim-ios-float { animation: ios-float 3.5s ease-in-out infinite; }
.anim-ios-pulse { animation: ios-pulse 2s ease-in-out infinite; }
.anim-ios-count { animation: ios-count-up 0.5s var(--ease-out-expo) both; }
.anim-delay-1 { animation-delay: 40ms; } .anim-delay-2 { animation-delay: 80ms; }
.anim-delay-3 { animation-delay: 120ms; } .anim-delay-4 { animation-delay: 160ms; }
.anim-delay-5 { animation-delay: 200ms; } .anim-delay-6 { animation-delay: 240ms; }

/* ===== iOS 26 液态玻璃工具类 ===== */
.ios-glass {
  background: var(--bg-container);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 0.5px solid var(--border-color);
  box-shadow: var(--shadow-glass);
}
.ios-glass-heavy {
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border: 0.5px solid var(--border-color);
  box-shadow: var(--shadow-glass);
}
.ios-glass-card {
  background: var(--bg-elevated);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 0.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  transition: color var(--duration-normal) var(--ease-ios), background-color var(--duration-normal) var(--ease-ios), border-color var(--duration-normal) var(--ease-ios), box-shadow var(--duration-normal) var(--ease-ios), opacity var(--duration-normal) var(--ease-ios), transform var(--duration-normal) var(--ease-ios);
}
.ios-glass-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

/* ===== iOS 26 全局组件覆盖 ===== */

/* Card - 液态玻璃卡片 */
.ant-card {
  border-radius: var(--radius-lg) !important;
  border: 0.5px solid var(--border-color) !important;
  box-shadow: var(--shadow-card) !important;
  background: var(--bg-container-solid) !important;
  transition: color var(--duration-normal) var(--ease-ios), background-color var(--duration-normal) var(--ease-ios), border-color var(--duration-normal) var(--ease-ios), box-shadow var(--duration-normal) var(--ease-ios), opacity var(--duration-normal) var(--ease-ios), transform var(--duration-normal) var(--ease-ios) !important;
}
.ant-card-hoverable:hover {
  transform: translateY(-3px) scale(1.005) !important;
  box-shadow: var(--shadow-card-hover) !important;
}
.ant-card .ant-card-head {
  border-bottom: 0.5px solid var(--border-color) !important;
  min-height: 50px !important;
  padding: 12px 20px !important;
}
.ant-card .ant-card-head-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
}
.ant-card .ant-card-body { padding: 16px 20px !important; }

/* Table - 可视化增强表格 */
.ant-table-wrapper .ant-table {
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  font-size: 13px;
}
.ant-table-wrapper .ant-table-thead > tr > th,
.ant-table-wrapper .ant-table-thead > tr > td {
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-secondary) !important;
  /* 期31波2：底色改不透明 --table-header-bg（原 --bg-fill 半透明玻璃态会让 fixed 停靠表头透出
     横向滑入的下层表头文字，实测叠插「操状态」乱字，证据
     docs/审查/ui-acceptance-期27/shots/local-12-users.after2.png、期31 r31-07c/r31-09） */
  background: var(--table-header-bg) !important;
  border-bottom: 0.5px solid var(--border-color) !important;
  padding: 8px 12px !important;
}
.ant-table-wrapper .ant-table-tbody > tr > td {
  font-size: 13px;
  padding: 8px 12px !important;
  transition: color var(--duration-fast) ease, background-color var(--duration-fast) ease, border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, opacity var(--duration-fast) ease, transform var(--duration-fast) ease;
  border-bottom: 0.5px solid var(--border-color-light) !important;
}
.ant-table-wrapper .ant-table-tbody > tr:hover > td {
  background: var(--primary-light) !important;
}
.ant-table-wrapper .ant-table-tbody > tr:last-child > td {
  border-bottom: none !important;
}
/* 表格行选中态 */
.ant-table-wrapper .ant-table-tbody > tr.ant-table-row-selected > td {
  background: var(--primary-bg) !important;
}
/* ===== 表格 fix 停靠单元格不透明底规范层（期27波3留账 → 期31波2补落） =====
   antd 对 fixed:'left/right' 单元格默认给不透明底（es/table/style/fixed.js: background: tableBg），
   但 tbody hover/选中被上方两条半透明紫洗规则覆盖时停靠格会重新透出滑入行内容；
   本层给停靠格配对不透明等值底（token 见 :root / [data-theme='dark']）。
   表头不透明底已并入上方 thead 规则（--table-header-bg）。
   本层落地后，各表操作列方可安全声明 fixed:'right'（Users/Members 期31波2 同批启用）。 */
.ant-table-wrapper .ant-table-tbody > tr:hover > td.ant-table-cell-fix-left,
.ant-table-wrapper .ant-table-tbody > tr:hover > td.ant-table-cell-fix-right {
  background: var(--table-row-hover-solid) !important;
}
.ant-table-wrapper .ant-table-tbody > tr.ant-table-row-selected > td.ant-table-cell-fix-left,
.ant-table-wrapper .ant-table-tbody > tr.ant-table-row-selected > td.ant-table-cell-fix-right {
  background: var(--table-row-selected-solid) !important;
}
/* 表格分页（布局内边距保留在此；配色/胶囊形态已并入文末导航族规范层，全局统一） */
.ant-table-wrapper .ant-table-pagination { padding: 12px 0 4px !important; }

/* 批三十二（2026-11-18 用户截图点名·v5.3 修订 2026-11-24）：
   合计行与分页器同一行。原实现把分页 absolute 挂在「最后一列合计格」内，实测尾列常为
   15px 滚动条占位列 / 96~167px 窄列，而分页实际宽约 219px → 必然向左压住相邻数值合计
   （flat92 截图「共 1 张」压住「品项数 4」「数量 100」）。现改为随「合计（N 条）」标签
   同格流式排列（kit/TableSummary 输出），标签格右侧多为空合计文本列，溢出落在空列上。 */
.ant-table-wrapper .ant-table-summary td {
  overflow: visible;
}
.ant-table-wrapper .summary-pagination {
  position: static;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transform: none;
}
.ant-table-wrapper .summary-pagination .ant-pagination {
  margin: 0 !important;
  flex-wrap: nowrap;
}

/* 单据明细表格行内控件紧凑层（2026-11-17 批二十九，用户截图点名授权：行宽行高全局同步。
   仅限 .ant-table 上下文，页面主输入框仍走全局 40px 规范；对标乐檬/JeecgBoot 明细行内控件 30~32px） */
.ant-table-wrapper .ant-table .ant-input,
.ant-table-wrapper .ant-table .ant-select-selector,
.ant-table-wrapper .ant-table .ant-picker {
  min-height: 30px !important;
  height: 30px !important;
  font-size: 13px !important;
  border-radius: 8px !important;
}
.ant-table-wrapper .ant-table .ant-input-affix-wrapper {
  padding: 0 8px !important;
}
.ant-table-wrapper .ant-table .ant-select-single .ant-select-selector {
  line-height: 28px !important;
}
.ant-table-wrapper .ant-table .ant-select-single:not(.ant-select-customize-input) .ant-select-selector {
  padding: 0 8px !important;
}
.ant-table-wrapper .ant-table .ant-input-number {
  line-height: 28px !important;
}
.ant-table-wrapper .ant-table .ant-input-number-input {
  height: 28px !important;
  font-size: 13px !important;
}
/* 表格筛选栏 */
.ant-table-wrapper .ant-table-filter-column { font-size: 12px; }

/* Tag —— 2026-10-06 波4 起统一并入文末「语义组件族规范层」（shadcn Badge 语言：
   rounded-md 小圆角 + 1px 极浅细边框；胶囊 border:none 形态退役；
   圆角/默认底/默认字色由 main.tsx Tag token 驱动，预设色双轨收敛同层） */

/* Button —— 2026-10-06 波2 起统一并入文末「控件族规范层」（shadcn 设计语言：
   solid/outline/ghost/link 底色分层 + 零位移 hover + 150ms 克制过渡 + focus-visible 光环）；
   色彩语义/阴影层级/字重全部由 main.tsx theme.components.Button token 驱动。
   旧「iOS 弹性按钮」（primary 紫光晕 + hover 上浮 + active 0.96 + transition all）已退役，
   防 token 与 css !important 双真源打架（圆角 8 由 Button.borderRadius token 全档承担）。 */

/* ===== 全局输入框规范层（2026-09-19 用户定版：全系统唯一输入样式） =====
   半径/边框/hover/focus 光环全部由 main.tsx 主题 token 驱动
   （Input/Select/DatePicker/InputNumber：40px 高、12 圆角、紫色 focus 光环）。
   本层只做 token 覆盖不到的抛光：过渡、前缀图标、占位符。
   禁止再用 !important 覆盖输入框边框/圆角/背景/高度，禁止裸 <input>——
   旧 antd 默认灰边框样式已被用户评定「太丑」全网禁用（AGENTS.md 有强制规约）。 */
.ant-input, .ant-input-affix-wrapper, .ant-select .ant-select-selector {
  transition: border-color var(--duration-fast) var(--ease-ios),
    box-shadow var(--duration-fast) var(--ease-ios),
    background var(--duration-fast) var(--ease-ios);
}
.ant-input-prefix, .ant-input-suffix,
.ant-input-affix-wrapper > .anticon:not(.ant-input-clear-icon) {
  color: var(--text-tertiary);
}
.ant-input-clear-icon:hover { color: var(--text-secondary); }

/* filled 变体焦点可见性补齐（2026-11-14 r276/r277 实测取证）
   antd 5.29.3 `genBaseFilledStyle` 的 `:focus/:focus-within` 只写 outline:0 + borderColor，
   不消费 Input token 的 activeShadow；全站工具条搜索/筛选都是 variant="filled"，
   键盘 Tab 聚焦在这些控件上「零视觉反馈」（首轮 75 页采样中 47 页命中）。
   本层只补光环，不动边框/圆角/背景/高度（遵守 2026-09-19 输入框规约）。 */
.ant-input-filled:focus,
.ant-input-filled:focus-within,
.ant-input-affix-wrapper.ant-input-filled:focus-within,
.ant-input-number-filled:focus-within,
.ant-picker-filled:focus-within {
  box-shadow: 0 0 0 3px rgb(var(--primary-rgb) / 0.15) !important;
}
.ant-select-filled.ant-select-focused .ant-select-selector,
.ant-select-focused.ant-select-filled .ant-select-selector {
  box-shadow: 0 0 0 3px rgb(var(--primary-rgb) / 0.15) !important;
}

/* Tabs / Segmented / Pagination / Breadcrumb —— 2026-10-05 波1 起统一并入文末
   「导航族规范层」（shadcn 设计语言：激活底色胶囊 + muted 文字 + 克制 hover）；
   旧「hover 紫跳变 + 2.5px 墨条」作用域规则已退役，防两套真源。 */

/* Modal - iOS 26 弹出面板 */
.ant-modal .ant-modal-content {
  border-radius: var(--radius-xl) !important;
  overflow: hidden;
  box-shadow: var(--shadow-xl) !important;
  background: var(--bg-container-solid) !important;
}
.ant-modal .ant-modal-header { padding: 20px 24px 12px; }
.ant-modal .ant-modal-title { font-size: 17px; font-weight: 600; letter-spacing: 0; }
.ant-modal .ant-modal-body { padding: 12px 24px 20px; }
.ant-modal .ant-modal-footer { padding: 12px 24px 20px; border-top: none; }
.ant-modal .ant-modal-close { border-radius: var(--radius-full) !important; }

/* Drawer - 侧滑面板 */
.ant-drawer .ant-drawer-content {
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  background: var(--bg-container-solid) !important;
}
.ant-drawer .ant-drawer-header {
  padding: 16px 24px;
  border-bottom: 0.5px solid var(--border-color) !important;
}
.ant-drawer .ant-drawer-title { font-size: 17px; font-weight: 600; letter-spacing: 0; }
.ant-drawer .ant-drawer-body { padding: 20px 24px; }

/* 其他组件 */
.ant-statistic-content-value { font-weight: 500 !important; letter-spacing: 0; }
.ant-statistic-content-prefix { margin-right: 6px; }
.ant-statistic-content-suffix { font-size: 13px !important; opacity: 0.6; margin-left: 2px !important; }
/* 面包屑配色已收编 main.tsx Breadcrumb token（linkColor/lastItemColor/separatorColor）
   + 文末导航族规范层（hover 过渡/当前位字重），旧 !important 作用域规则退役 */
/* Badge 计数字号/字重已收编 main.tsx Badge token（textFontSize/textFontWeight）；
   本行仅保留 token 覆盖不到的描边环与胶囊圆角 */
.ant-badge-count { box-shadow: 0 0 0 2px var(--bg-container-solid); border-radius: var(--radius-full) !important; }
/* Empty muted 层已并入文末「语义组件族规范层」（波4：插画位降饱和 + 文案层级），旧散则退役 */
/* Tooltip / Popover(含 Popconfirm) / Dropdown 面板 —— 2026-10-06 波2 起统一并入文末
   「控件族规范层」（浅底实底 + 1px 细边框 + 柔化 shadow-md，去玻璃模糊）；
   面板底色/文字色由 main.tsx Tooltip token（tooltipBg/tooltipColor）与 Menu token 驱动，
   旧「玻璃模糊 + shadow-lg 重投影 + 14 圆角」散则已退役，防两套真源。 */
.ant-descriptions-item-label { font-weight: 500; color: var(--text-secondary); }
.ant-message-notice-content { border-radius: var(--radius-md) !important; box-shadow: var(--shadow-md) !important; backdrop-filter: var(--glass-blur); }

/* ===== 页面过渡 ===== */
.page-fade-enter { opacity: 0; transform: translateY(8px) scale(0.99); }
.page-fade-enter-active { opacity: 1; transform: translateY(0) scale(1); transition: opacity 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo); }
.page-fade-exit { opacity: 1; }
.page-fade-exit-active { opacity: 0; transition: opacity 0.15s; }
.erp-page-enter { animation: ios-slide-up var(--duration-slow) var(--ease-out-expo) both; }

/* ===== TabNav 标签栏 - iOS 26 ===== */
.tab-nav-tabs .ant-tabs-nav { margin-bottom: 0 !important; }
.tab-nav-tabs .ant-tabs-tab {
  padding: 6px 14px !important;
  font-size: 12px !important;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
  transition: color var(--duration-fast) var(--ease-ios), background-color var(--duration-fast) var(--ease-ios), border-color var(--duration-fast) var(--ease-ios), box-shadow var(--duration-fast) var(--ease-ios), opacity var(--duration-fast) var(--ease-ios), transform var(--duration-fast) var(--ease-ios) !important;
}
.tab-nav-tabs .ant-tabs-tab-active { background: var(--bg-layout) !important; }
.tab-nav-tabs .ant-tabs-tab .ant-tabs-tab-remove {
  margin-left: 6px !important; font-size: 10px !important;
  opacity: 0; transition: opacity var(--duration-fast) ease !important;
}
.tab-nav-tabs .ant-tabs-tab:hover .ant-tabs-tab-remove { opacity: 1; }

/* 滞销行高亮 */
.ant-table-row-stale td { background: var(--error-bg) !important; }
.ant-table-row-stale:hover td { background: rgba(255,59,48,0.12) !important; }

/* ===== 表格语义行状态（阻断项修复：4 个 rowClassName 在此之前零定义）=====
 * 审查核实（已构建产物 dist/assets/*.css 实测确认 0 处定义）：
 *   ant-table-row-warning  ← inventory/StocktakingNew.tsx:457 盘点有差异行
 *   ant-table-row-critical ← inventory/Warnings.tsx:194       缺货行
 *   row-overdue← repair/Rentals.tsx:110        租赁逾期行
 *   alert-open-row          ← system/ServerStatus.tsx:1211     告警未处理行
 * 这四类语义高亮此前完全不可见 —— 用户无从区分该优先处理哪行，属业务缺陷而非美观问题。
 * 统一复用语义 token（暗色主题自动跟随），与上方 stale 同族。 */
.ant-table-row-warning td { background: var(--warning-bg) !important; }
.ant-table-row-warning:hover td { background: color-mix(in srgb, var(--warning-color) 14%, transparent) !important; }
.ant-table-row-critical td { background: var(--error-bg) !important; }
.ant-table-row-critical:hover td { background: rgba(255,59,48,0.12) !important; }
.row-overdue td { background: var(--error-bg) !important; }
.row-overdue:hover td { background: rgba(255,59,48,0.12) !important; }
.alert-open-row td { background: var(--warning-bg) !important; }
.alert-open-row:hover td { background: color-mix(in srgb, var(--warning-color) 14%, transparent) !important; }

/* ===== 合伙人财务模块专用样式（兼容保留） ===== */
@keyframes pf-slide-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pf-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pf-scale-in { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes pf-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes pf-count-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.pf-container { padding: 20px 24px; animation: pf-fade-in 0.4s var(--ease-ios); }
.pf-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; animation: pf-slide-up 0.4s var(--ease-ios); }
.pf-header h2 { margin: 0; font-size: 22px; font-weight: 600; color: var(--text-primary); position: relative; padding-left: 14px; letter-spacing: 0; } /* 2026-11-14 r271：20→22 与 .ios-page-header h2 归一（合伙人财务 14 页此前比全站矮 2px） */
.pf-header h2::before { content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 4px; border-radius: var(--radius-xs); background: var(--primary-color); }
.pf-stat-row { margin-bottom: 20px; }
.pf-stat-card { border-radius: var(--radius-lg); border: 0.5px solid var(--border-color); overflow: hidden; transition: color var(--duration-normal) var(--ease-ios), background-color var(--duration-normal) var(--ease-ios), border-color var(--duration-normal) var(--ease-ios), box-shadow var(--duration-normal) var(--ease-ios), opacity var(--duration-normal) var(--ease-ios), transform var(--duration-normal) var(--ease-ios); cursor: default; position: relative; box-shadow: var(--shadow-card); }
.pf-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: transparent; }
.pf-stat-card .ant-card-body { padding: 16px 20px; min-height: 80px; display: flex; flex-direction: column; justify-content: center; } /* 2026-10-12 批8：90→80 与 .ios-stat-card 对齐（此前同屏混用两套 class 的 KPI 卡相差 10px 高度） */
.pf-stat-row > .ant-col, .pf-equal-row > .ant-col { display: flex; }
.pf-stat-row > .ant-col > .pf-stat-card, .pf-equal-row > .ant-col > .pf-content-card, .pf-equal-row > .ant-col > .pf-stat-card { width: 100%; display: flex; flex-direction: column; }
.pf-equal-row > .ant-col > .pf-content-card > .ant-card-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.pf-content-card { border-radius: var(--radius-lg); border: 0.5px solid var(--border-color); transition: color var(--duration-normal) var(--ease-ios), background-color var(--duration-normal) var(--ease-ios), border-color var(--duration-normal) var(--ease-ios), box-shadow var(--duration-normal) var(--ease-ios), opacity var(--duration-normal) var(--ease-ios), transform var(--duration-normal) var(--ease-ios); box-shadow: var(--shadow-card); }
.pf-content-card:hover { box-shadow: var(--shadow-sm); }
.pf-content-card .ant-card-head { border-bottom: 0.5px solid var(--border-color); min-height: 48px; }
.pf-content-card .ant-card-head-title { font-size: 15px; font-weight: 600; }
.pf-tab-panel { animation: pf-fade-in 0.3s var(--ease-ios); }
.pf-table .ant-table-tbody > tr { transition: background var(--duration-fast) ease; }
.pf-table .ant-table-tbody > tr:hover > td { background: var(--primary-light) !important; }
.pf-status-tag { border-radius: var(--radius-full); font-size: 12px; padding: 1px 8px; border: none; font-weight: 500; }
.pf-delay-1 { animation-delay: 0.05s; } .pf-delay-2 { animation-delay: 0.1s; } .pf-delay-3 { animation-delay: 0.15s; }
.pf-delay-4 { animation-delay: 0.2s; } .pf-delay-5 { animation-delay: 0.25s; } .pf-delay-6 { animation-delay: 0.3s; }
.pf-animate-up { animation: pf-slide-up 0.45s var(--ease-out-expo) both; }
.pf-animate-scale { animation: pf-scale-in 0.35s var(--ease-ios) both; }
.pf-gradient-header { background: var(--primary-color); border-radius: var(--radius-lg); color: #fff; padding: 20px 24px; margin-bottom: 20px; }
.pf-value-animate { animation: pf-count-up 0.5s var(--ease-out-expo) both; }
.pf-modal-form .ant-form-item { margin-bottom: 16px; }
.pf-modal-form .ant-form-item:last-child { margin-bottom: 0; }
/* 打印机型号档案弹窗（20 字段）：纵向行距压到 8px，使 880 宽弹窗一屏完整不内滚（判据 v5 R 维度） */
.printer-model-form .ant-form-item { margin-bottom: 8px; }
.printer-model-form .ant-form-item:last-child { margin-bottom: 0; }
.pf-action-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; min-height: 32px; }
.pf-btn { height: 32px !important; padding: 4px 15px !important; font-size: 13px !important; border-radius: var(--radius-btn) !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 4px !important; transition: color var(--duration-fast) var(--ease-ios), background-color var(--duration-fast) var(--ease-ios), border-color var(--duration-fast) var(--ease-ios), box-shadow var(--duration-fast) var(--ease-ios), opacity var(--duration-fast) var(--ease-ios), transform var(--duration-fast) var(--ease-ios) !important; }
.pf-btn-sm { height: 26px !important; padding: 2px 10px !important; font-size: 12px !important; border-radius: var(--radius-btn) !important; }
.pf-btn-primary { min-width: 104px !important; }
.pf-btn-secondary { min-width: 88px !important; }
.pf-card-extra-btn { font-size: 13px !important; height: 32px !important; padding: 0 12px !important; border-radius: var(--radius-btn) !important; display: inline-flex !important; align-items: center !important; gap: 2px !important; cursor: pointer; color: var(--primary-color); transition: color var(--duration-fast) var(--ease-ios), background-color var(--duration-fast) var(--ease-ios), border-color var(--duration-fast) var(--ease-ios), box-shadow var(--duration-fast) var(--ease-ios), opacity var(--duration-fast) var(--ease-ios), transform var(--duration-fast) var(--ease-ios); border: 1px solid transparent !important; }
.pf-card-extra-btn:hover { background: var(--primary-bg); }
.pf-quick-nav-item { padding: 10px 14px; border-radius: var(--radius-sm); cursor: pointer; background: var(--bg-fill); border: 0.5px solid var(--border-color); transition: color var(--duration-normal) var(--ease-ios), background-color var(--duration-normal) var(--ease-ios), border-color var(--duration-normal) var(--ease-ios), box-shadow var(--duration-normal) var(--ease-ios), opacity var(--duration-normal) var(--ease-ios), transform var(--duration-normal) var(--ease-ios); display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; }
.pf-quick-nav-item:hover { background: var(--primary-bg); border-color: rgb(var(--primary-rgb) / 0.26); transform: translateY(-1px); box-shadow: 0 2px 8px rgb(var(--primary-rgb) / 0.09); }
.pf-table .ant-btn-link { height: auto !important; padding: 0 4px !important; font-size: 12px !important; }
.pf-header-actions { display: flex; align-items: center; gap: 8px; }
.pf-alert-card { border-radius: var(--radius-md); }
.pf-reconcile-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--radius-full); font-size: 12px; font-weight: 500; }
.pf-reconcile-badge-dot { width: 6px; height: 6px; border-radius: 50%; }
.pf-mini-trend { display: flex; align-items: flex-end; gap: 2px; height: 24px; }
.pf-mini-trend-bar { width: 4px; border-radius: var(--radius-xs); transition: height 0.3s ease; }
.pf-health-ring { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.pf-health-ring svg { transform: rotate(-90deg); }
.pf-health-ring-text { position: absolute; text-align: center; }
.pf-budget-selector .ant-select-selector { border-radius: var(--radius-sm); }

/* ERP 通用样式 */
.erp-page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.erp-page-header h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; letter-spacing: 0; }
.erp-stat-row { margin-bottom: 16px; }
.erp-stat-row > .ant-col { display: flex; }
.erp-stat-row > .ant-col > .ant-card { width: 100%; border-radius: var(--radius-lg); transition: color var(--duration-normal) var(--ease-ios), background-color var(--duration-normal) var(--ease-ios), border-color var(--duration-normal) var(--ease-ios), box-shadow var(--duration-normal) var(--ease-ios), opacity var(--duration-normal) var(--ease-ios), transform var(--duration-normal) var(--ease-ios); }
.erp-stat-row > .ant-col > .ant-card:hover { box-shadow: var(--shadow-sm); }

/* iOS 26 数据可视化条形图 */
.ios-bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 100%; padding-top: 8px; }
.ios-bar-chart .ios-bar {
  flex: 1; min-width: 0; border-radius: var(--radius-xs) var(--radius-xs) 0 0;
  transition: height 0.6s var(--ease-out-expo);
  position: relative;
}
.ios-bar-chart .ios-bar:hover { filter: brightness(1.1); }
.ios-bar-chart .ios-bar::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent);
  border-radius: var(--radius-xs) var(--radius-xs) 0 0;
}

/* iOS 26 迷你趋势图 */
.ios-trend-line {
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ===== 响应式 ===== */
/* 注：原此处有 `@media (max-width: 1200px) { .erp-hide-tablet }`，该类全站 tsx/js 0 引用（死代码），
   且 1200 与响应式适配层的 1199 构成两条并行断点体系。已删除，断点唯一真源见下方适配层。 */
/* B24:汉堡按钮桌面默认隐藏（≥769px 无视觉痕迹；≤768px 在下方媒体查询内反转为 flex） */
.erp-mobile-menu-btn { display: none !important; }
@media (max-width: 768px) {
  .erp-hide-mobile { display: none !important; }
  :root { --sidebar-width: 0px; --sidebar-collapsed-width: 0px; }
  .ant-card .ant-card-body { padding: 12px 16px !important; }

  /* ===== B23 响应式基座（仅 ≤768px 生效，桌面零改动） ===== */
  /* 表格横向滚动兜底：容器出滚动条，禁止挤压列宽导致表头逐字竖排 */
  .ant-table-wrapper { overflow-x: auto; }
  .ant-table-wrapper .ant-table { overflow-x: auto !important; overflow-y: hidden !important; }
  .ant-table-wrapper .ant-table-thead > tr > th,
  .ant-table-wrapper .ant-table-thead > tr > td { white-space: nowrap !important; }
  /* 顶栏紧凑化：隐藏面包屑与全局搜索框，防 Logo/面包屑/页签三层文字叠压 */
  .ios-topbar { padding: 0 10px !important; }
  .ios-topbar .ant-breadcrumb { display: none !important; }
  .ios-topbar-search { display: none !important; }

  /* ===== B24 移动端抽屉导航：汉堡按钮仅小屏显示 ===== */
  .erp-mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  /* 平滑滚动也是动效（锚点导航/scrollIntoView），reduce 下一并降级为即时跳转 */
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    /* 清零延迟档（anim-delay-* / --gs-delay）：防 reduce 下元素隐入首帧再延迟闪现 */
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* ============================================================
   iOS 26 页面级样式 — 全局深度重构
   ============================================================ */

/* ===== 页面标题 - 带渐变竖条装饰 ===== */
.ios-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  /* 批十一：页头下边距 20→12，配合 subtitle 行内化（PageHeader v2），页头块整体省 ~30px */
  /* v5.3（2026-11-24）：12→8，竖向全部让给列表容器（用户点名「上下留白再减少一点」） */
  margin-bottom: 8px;
  animation: ios-slide-up var(--duration-slow) var(--ease-out-expo) both;
}
.ios-page-header h2,
.ios-page-title {
  margin: 0;
  /* 期30波2：20→22 归一到 token 档（main.tsx fontSizeHeading2=22）——此前 raw <h2> 页头
     吃本层 20px、antd Title 页吃 token 22px，同「页面标题」角色跨页双档 */
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  padding-left: 14px;
  /* v5 flat[01]：页头标题统一 600 / letter-spacing 0（de-ai.css 已把字号压到 17） */
  letter-spacing: 0;
  line-height: 1.3;
}
.ios-page-header h2::before,
.ios-page-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 4px;
  border-radius: var(--radius-xs);
  background: var(--primary-color);
}
.ios-page-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  /* 响应式（2026-10-05）：窄屏允许操作区换行并独占一行，避免按钮溢出屏幕 */
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}
.ios-page-subtitle {
  /* 批十一：subtitle 行内化（PageHeader v2）——从独立行改为 h2 行尾小字 */
  font-size: 12px;
  font-weight: 400;
  color: var(--text-tertiary);
  margin-left: 12px;
  padding-left: 0;
  letter-spacing: 0;
}

/* ===== 统计卡片增强 ===== */
.ios-stat-card {
  position: relative;
  overflow: hidden;
  transition: color var(--duration-normal) var(--ease-ios), background-color var(--duration-normal) var(--ease-ios), border-color var(--duration-normal) var(--ease-ios), box-shadow var(--duration-normal) var(--ease-ios), opacity var(--duration-normal) var(--ease-ios), transform var(--duration-normal) var(--ease-ios);
  border-radius: var(--radius-lg) !important;
  border: 0.5px solid var(--border-color) !important;
  box-shadow: var(--shadow-card) !important;
}
.ios-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

/* ===== 统计卡片语义色变体（阻断项修复：6 档此前全部零定义）=====
 * components/ios/IosStatCard.tsx:19-26 的 colorMap 映射到下列 6 个类，
 * 但这些类在本文件中从未定义 —— 导致 11 处页面（inventory/InventoryQuery.tsx:304-306、
 * Warnings.tsx:181-184、products/Categories.tsx:124、Suppliers.tsx:263-264 等）手写的
 * className="ios-stat-card ios-stat-card-blue" 完全没有颜色语义，
 * 「库存总值/预警商品」「缺货/低库存/超储」等本应分色的 KPI 卡视觉完全一致。
 *
 * 实现：以 CSS 变量级联（自定义属性继承）驱动单一 ::before 顶栏，
 * 六个变体类只负责给 --ios-stat-accent 赋值，新增档位只需加一行。
 * 注意：.ios-stat-card 必须 position:relative（已在上方声明）以承载 ::before。 */
.ios-stat-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--ios-stat-accent, transparent);
}
.ios-stat-card-blue   { --ios-stat-accent: var(--primary-color); }
.ios-stat-card-green  { --ios-stat-accent: var(--success-color); }
.ios-stat-card-orange { --ios-stat-accent: var(--warning-color); }
.ios-stat-card-red    { --ios-stat-accent: var(--error-color); }
.ios-stat-card-purple { --ios-stat-accent: var(--accent-purple); }
.ios-stat-card-cyan   { --ios-stat-accent: var(--accent-cyan); }
.ios-stat-card .ant-card-body {
  padding: 16px 20px !important;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ios-stat-card .ant-statistic-content-title {
  font-size: 12px !important;
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
  margin-bottom: 4px !important;
}
.ios-stat-card .ant-statistic-content-value {
  /* 期30波2：font-size 22px !important 覆盖退役——统计档字号由 main.tsx Statistic.contentFontSize=22
     单一真源驱动（token 档），本层只保留字重/字距抛光 */
  /* v5 flat[01]：700 + -0.03em（tracking-tight bold figures）是 AI sign；tokens card figures = 500 / 0 */
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}
.ios-stat-card .ant-statistic-content-prefix {
  margin-right: 4px;
  font-size: 16px;
}
.ios-stat-card .ant-statistic-content-suffix {
  font-size: 12px !important;
  opacity: 0.5;
  margin-left: 2px;
}
/* 统计卡片颜色变体（单色顶栏，专业风格） */

/* ===== 筛选栏统一 ===== */
.ios-filter-bar {
  background: var(--bg-container-solid);
  border-radius: var(--radius-lg);
  border: 0.5px solid var(--border-color);
  box-shadow: var(--shadow-card);
  padding: 12px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== 文本工具类 ===== */
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-mono {
  font-family: 'SF Mono', 'JetBrains Mono', 'Cascadia Code', Menlo, monospace;
  font-variant-numeric: tabular-nums;
}
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-error { color: var(--error-color) !important; }
.text-primary-theme { color: var(--primary-color) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-tertiary { color: var(--text-tertiary) !important; }

/* ===== 金额格式化 ===== */
.amount-positive {
  color: var(--success-color);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.amount-negative {
  color: var(--error-color);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.amount-neutral {
  color: var(--text-primary);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ===== 通用参数编辑栅格（ParamsEditor：字典驱动参数页，替代两列表格） ===== */
.param-desc {
  margin: 0 0 12px;
  max-width: 960px;
  color: var(--text-tertiary);
  line-height: var(--lh-body);
}
/* v5 flat[40]（2026-11-23）登录白名单页「当前登录 IP」提示条：
   白名单页最容易自锁（开了开关但没加自己 IP，下次登录直接被拦）。
   形态取一行扁条：标签 + IP 等宽码 + 复制 + 一句提醒，不占纵向空间（页面要一屏）。 */
.param-login-ip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: -4px 0 14px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-container-solid);
}
.param-login-ip-label {
  font-size: 12px;
  color: var(--text-tertiary);
}
.param-login-ip-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}
.param-login-ip-tip {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* v5 flat[36]（2026-11-23）参数设置四 Tab 实测全部超过一屏（库存 1351 / 配送 1399 / 会员 1133 vs 826），
   「保存修改」按钮会随内容滚出视口，用户找不到保存入口 → 工具条吸顶，Tab 列表紧随其后吸顶。
   只命中参数设置页（.param-tabs-list 仅该页渲染），不影响 ParamsEditor 的一屏铺满页。 */
.param-shell > .param-toolbar {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--bg-container-solid);
  padding-top: 4px;
  margin-top: -4px;
}
.param-shell .param-tabs-list {
  position: sticky;
  top: 47px;
  z-index: 4;
  background: var(--bg-container-solid);
}
/* v5 flat[36] U4：加载失败态（与「该分类暂无可配置参数」空态严格区分） */
.param-error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 56px 20px;
  text-align: center;
}
.param-error-icon {
  font-size: 38px;
  line-height: 1;
  color: var(--error-color, #ff4d4f);
  opacity: 0.9;
}
.param-error-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.param-error-desc {
  max-width: 520px;
  font-size: 12px;
  line-height: 18px;
  color: var(--text-tertiary);
}
/* v5 flat[36] R1 收口：参数设置四 Tab 走 is-dense（40px 行高 + 卡 3 列）后仍差最后 51px
   （库存 877 / 872 vs 826），逐项压掉「不属于信息本体」的垂直开销：
   卡片内边距 24→12、工具条与页头下边距、卡片间距 10→8、Tab 面板上间距。
   只命中 .param-settings（参数设置页独占 class），ParamsEditor 的一屏求解不受影响。 */
.param-card.param-settings .ant-card-body {
  padding: 12px 16px;
}
.param-settings .param-page-head {
  padding-bottom: 6px;
}
.param-settings .param-toolbar {
  margin-bottom: 8px;
}
.param-settings .param-sections.is-dense {
  gap: 8px;
  /* 行高 36（标签最多 2 行 34px 仍放得下）+ 卡 2 列（每卡 783 宽，卡内 236 行可 3 并排，
     行的浮动起点由下面的 flex-start 保证）—— 实测 4 卡 2 排：库存 419→288、配送同、结算/会员更矮。 */
  --param-row-h: 36px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* 2 列卡时 is-dense 的「末卡跨 3 列」超出列数会生成隐式第 3 列，这里改成跨 2 列（仍独占一整排） */
.param-settings .param-sections.is-dense > .param-section:last-child:nth-child(3n + 1) {
  grid-column: span 2;
}
/* v5 flat[36] T2：is-dense 的卡内 body 继承全局 justify-content: space-evenly（为 flex-column 纵向均分设计），
   切到 flex-row 后变成**横向均分** —— 一排只放得下 1 行时该行被推到卡片中间，
   实测库存卡 rowXs = [956, 824, 956, 824, 830, 1082]、异常统计卡 = [339, 620, 964, 1509, 924]，
   同一张卡内标签起点忽左忽右。改为左对齐 + 顶部聚齐（纵向不再把 3 项卡摊成 130px 行距）。 */
.param-settings .param-sec-body {
  justify-content: flex-start;
  align-content: flex-start;
}
.param-settings [role='tabpanel'] {
  margin-top: 0;
}
.param-count {
  margin-left: auto;
  color: var(--text-tertiary);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.param-save-hint {
  color: var(--text-tertiary);
  font-size: 12px;
}
.param-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 4px 24px;
  max-width: 1160px;
}
.param-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 8px;
  border-radius: var(--radius-btn);
  transition: background-color var(--duration-fast) var(--ease-smooth);
}
.param-item:hover {
  background: var(--bg-fill);
}
.param-label {
  flex: 0 0 176px;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.param-control {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.param-control .ant-input {
  width: 100%;
  max-width: 320px;
}
.param-item-wide {
  grid-column: 1 / -1;
}
.param-item-wide .param-control .ant-input {
  width: min(560px, 100%);
}
.param-dirty {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--warning-color);
  white-space: nowrap;
}

/* ===== 参数分组布局 v2（security-config 样板：卡片分区 + 行式参数） =====
   对齐「档案设置」参考图的可执行规则：
   - 间距落在 4/8 栅格：4 行距 / 8 控件间隙 / 12 列间隙 / 16 卡片间隙 / 20 卡片内边距
   - 字号 4 档：20 页面标题 / 14 分组标题 / 13 标签与值 / 12 辅助与校验
   - 控件统一 40px（main.tsx token），行高 48px 保证控件上下各 4px 呼吸
   - 单一描边体系：1px var(--border-color)，全页无阴影、无渐变
   - 每行两条左缘对齐线：标签左缘 + 控件左缘；辅助说明右对齐，不新增对齐线 */
.param-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
}
.param-page-title {
  /* 字号/字重继承 .ios-page-content h2 全局档（22/700），此处只负责图标条与对齐 */
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.param-card.ant-card {
  /* 全局 .ant-card 用 !important 挂了阴影/0.5px 边框；本页统一为「1px 描边 + 零阴影」单一深度体系 */
  border-width: 1px !important;
  box-shadow: none !important;
}
.param-page-title::before {
  content: '';
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--primary-color);
}
.param-page-desc {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--text-tertiary);
}
.param-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding-top: 4px;
}
.param-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  line-height: 1;
  color: var(--text-secondary);
  background: var(--bg-fill);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.param-pill.is-dirty {
  color: var(--primary-color);
  background: var(--primary-bg);
}
.param-pill.is-err {
  color: var(--error-color);
  background: var(--error-bg);
}
/* 超预算提示（> SPLIT_THRESHOLD 项）：黄档告警，不阻断编辑，只说明该页该拆 */
.param-pill.is-warn {
  color: var(--warning-color);
  background: var(--warning-bg);
}
.param-hit-count {
  font-size: 12px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.param-kbd-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.param-kbd-hint kbd {
  font: inherit;
  font-size: 11px;
  line-height: 16px;
  padding: 0 5px;
  border-radius: 4px;
  border: 1px solid var(--border-color-strong);
  background: var(--bg-fill);
  color: var(--text-secondary);
}
/* ===== 参数分区卡片布局 v4.1（A 方案落回：独立卡片 + 左文右控件） =====
   结构：标签与说明在左列上下叠、控件统一右缘；每组独立成卡。
   字重/颜色四档（不再挤在同一档 12–13px 里）：
     卡片标题 16/600 primary（letter-spacing -0.01em，与全局 h3 同档）
     卡片说明 13/400 secondary（副标题，紧贴标题下）
     行标签   13/500 primary（正文级）
     行说明/脚注 12/400 tertiary（脚注另加浅填充底 + 上描边，靠面而非靠色再降一层）
   降级规则（密度分档，真源在 ParamsEditor 的 DENSITY_TIERS，CSS 只按 class 落地）：
     · 宽松 ≤10 项：行高 48、双列、行内说明；
     · 紧凑 11–18 项：行高 44、双列、行内说明（字号行高压到 13/18 + 12/15 仍两行可读）；
     · 极紧凑 19–30 项：行高 40、三列、说明改 hover/focus 提示（标签后 info 图标，可 Tab 到）；
     · >30 项：判「需拆页」，页面顶部给出拆分提示，守卫脚本同时报警。
     · 单卡页（可见分区=1）→ .is-single 单列铺满，不占半宽留空；
     · 双列奇数卡 → 末卡 span 2；三列首列零头 → 末卡 span 3（不留半格空洞）；
     · 卡片行内对齐、跨行不强制等高（去掉 grid-auto-rows:1fr）；
     · 具体断点见文末 @media：<1199px 全单列；<767px 行内换行。
     · 长值（URL / 模板 ID / 多行）→ .param-row-wide 标签独占一行、控件整行铺满；
     · 说明超长 → 单行截断 + 原生 title 提示，不换行（避免行高在网格里跳动）。 */
.param-sections {
  --param-row-h: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* 同排卡片底边对齐（栅格整洁）；卡内行均分剩余高度，避免留白堆在卡片底部 */
  align-items: stretch;
  gap: 12px;
}
/* 紧凑档：行高 44，说明压到 13/18 + 12/15 仍保持两行 */
.param-sections.is-compact {
  --param-row-h: 44px;
  gap: 10px;
}
.param-sections.is-compact .param-row {
  padding: 3px 12px;
}
.param-sections.is-compact .param-row-text {
  gap: 2px;
}
.param-sections.is-compact .param-row-label {
  line-height: 18px;
}
.param-sections.is-compact .param-row-hint {
  line-height: 15px;
}
/* 极紧凑档：行高 40 + 三列，行内说明让位给 info 图标的 hover/focus 提示 */
.param-sections.is-dense {
  --param-row-h: 40px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.param-sections.is-dense .param-sec-head {
  padding: 8px 14px 6px;
}
.param-sections.is-dense .param-section .param-sec-title {
  font-size: 15px;
  line-height: 20px;
}
.param-sections.is-dense .param-sec-desc {
  font-size: 12px;
  line-height: 16px;
}
.param-sections.is-dense .param-sec-body {
  padding: 2px;
  /* P2 自动排版：行按字段类型算出的 --field-basis 并排，容器自然铺满；
     一行放几个由卡片实际宽度决定，控件宽度不随容器拉伸。 */
  flex-direction: row;
  flex-wrap: wrap;
  /* 卡内多行均分卡片剩余高度（space-evenly 让上下与行间空隙一致，不出现中间一处大空） */
  align-content: space-evenly;
  gap: 2px 6px;
}
.param-sections.is-dense .param-row {
  padding: 2px 10px;
  gap: 10px;
  flex: 0 0 var(--field-basis, 180px);
  width: var(--field-basis, 180px);
  max-width: 100%;
}
.param-sections.is-dense .param-row-wide {
  flex: 1 1 100%;
  width: 100%;
}
.param-sections.is-dense .param-row-text {
  flex-direction: row;
  align-items: center;
  gap: 4px;
}
.param-sections.is-dense .param-row-label {
  min-width: 0;
  /* 并排后列宽收窄：允许标签折两行，优先保完整可读，避免「商品条码不允…」式截断 */
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 17px;
}
.param-sections.is-dense .param-sec-foot {
  padding: 4px 14px;
  line-height: 16px;
}
/* 单卡页（可见分区=1）不占半宽，避免右侧出现一块空 */
.param-sections.is-single {
  grid-template-columns: minmax(0, 1fr);
}
.param-sections.is-single.is-dense {
  grid-template-columns: minmax(0, 1fr);
}
/* v5 flat[35]+flat[37]（2026-11-23）：低密度（≤8 项）页——单卡与多卡同样——卡内字段必须排两列。
   修前实测：零售业务参数 5 个开关被拉成「标签贴左、开关贴右」的整行布局，视距 1500px＋，
   点一次开关要把视线横移半个屏幕（unslop signs「伸展布局 / 大留白」）。两列后每格 ~780px，
   与多卡片页卡内两列（switch basis 170）视觉一致；≤3 项时也按两列排，末行自然收口。 */
.param-sections.is-sparse .param-sec-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  -moz-column-gap: 28px;
       column-gap: 28px;
  align-content: start;
}
/* 两列网格里宽字段（URL / 长文本）仍独占整行 */
.param-sections.is-sparse .param-sec-body > .param-row-wide {
  grid-column: 1 / -1;
}
@media (max-width: 1199px) {
  .param-sections.is-sparse .param-sec-body {
    grid-template-columns: minmax(0, 1fr);
    -moz-column-gap: 0;
         column-gap: 0;
  }
}
/* 奇数张卡时末卡收口：双列 span 2；三列且剩单卡（3n+1）时 span 3 */
.param-sections:not(.is-dense) > .param-section:last-child:nth-child(odd) {
  grid-column: span 2;
}
.param-sections.is-dense > .param-section:last-child:nth-child(3n + 1) {
  grid-column: span 3;
}
/* P1 一屏铺满：行高（JS 反向分配，40–52）已到上限后，把余量均分给每一排卡片。
   必须用 stretch 而不是 space-between：
     · space-between 只把余量塞到「排与排之间」，单卡页（retail / supplier / login 等）
       只有一排，余量会被堆到卡片下方变成一大块空白（实测 187px）；
     · stretch 会把自动行撑高，单卡页的卡片同样吃满高度，卡内行再由 space-evenly 均分。 */
.param-sections.is-fill {
  align-content: stretch;
}
/* v5 flat[38]（2026-11-23）：铺满态卡内不再 space-evenly 均分行距。
   档案参数 19 项 6 卡实测：卡 387 高只放 2 排，行被摊成中间 85px 空白（「行飘在卡里」）。
   行贴着卡头成块排列，余量交给行高（ParamsEditor fit 上限已放宽到 64px）。 */
.param-sections.is-fill .param-sec-body {
  justify-content: flex-start;
  /* 关键：flex-wrap 的纵向对齐也要钉到顶部。只改 justify-content 时实测排间距仍被拉伸到
     71~97px（行高 50 的行之间空出 20~47px），原因是 align-content 默认 stretch 把余量摊给各排。 */
  align-content: flex-start;
}
/* 铺满态收掉卡片底部内边距：页面壳自带 20px 下边距已够呼吸，
   卡片再留 16px 会把内容顶离底部 36px（用户反馈的「下方留白太大」的真因之一）。
   只作用于本页 .param-card，不改全局卡片。 */
.param-card:has(.param-sections.is-fill) .ant-card-body {
  padding-bottom: 0 !important;
}
/* 铺满态用 1px 负外边距吸收卡片底部描边，让「内容高 / 可用高」差值正好落到 20px
   （页面壳 20px 下边距），同时保证主区 scrollHeight 不越界。 */
.param-card:has(.param-sections.is-fill) {
  margin-bottom: -1px;
}
/* P1 兜底：行高已到 40 仍放不下时隐藏卡片副标题，优先保住一屏（标题与业务规则仍在） */
.param-sections.is-tight .param-sec-desc {
  display: none;
}
.param-sections.is-tight .param-sec-head {
  padding-top: 6px;
  padding-bottom: 5px;
}
.param-section {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-container-solid);
  overflow: hidden;
}
.param-sec-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px 10px;
  border-bottom: 1px solid var(--border-color-light);
}
.param-sec-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-right: auto;
  min-width: 0;
}
/* 卡片语义图标：线性图标、无底色块
   v5 flat[34]（2026-11-23）：原 26×26 主色淡底圆角方片（`background: var(--primary-bg)` + 紫图标）＝unslop signs
   明确点名的「彩色圆底图标块」AI 味 pattern，且 6 张卡 6 个色块把视线从字段本身抢走 → 改为 16px 线性图标、
   中性灰（`--text-secondary`）、无底无圆角，只作分组辨识（quiet chrome）。全站 16 个参数页同源生效。 */
.param-sec-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background: none;
  color: var(--text-secondary);
  font-size: 16px;
}
.param-sec-icon > .anticon { font-size: 16px; }
.param-sec-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 2px;
}
/* 选择器提高一级 specificity：.ios-page-content h3 的 16px 全局档是页头标题真源，
   本页卡片标题同档 16/600，显式压过全局规则，避免被 h3 兜底后字号失控 */
.param-section .param-sec-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 22px;
  color: var(--text-primary);
}
.param-sec-desc {
  margin: 0;
  font-size: 13px;
  font-weight: 500; /* 与脚注 12/400 拉开档：说明是副标题，脚注是注释 */
  line-height: 18px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.param-sec-action.ant-btn {
  flex: 0 0 auto;
  height: 24px;
  padding: 0 8px;
  font-size: 12px;
  color: var(--primary-color);
}
.param-batch {
  display: flex;
  align-items: center;
  gap: 8px;
}
.param-sec-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly; /* 均分卡片剩余高度，留白不再堆在底部 */
  gap: 2px;
  padding: 4px;
}
/* 低密度页（≤8 项）：行靠上紧凑排列，剩余高度留在卡片底部，不再把行距摊成几十上百像素
   （2026-11-23 会员特权页实测 4 行被 space-evenly 摊成 200px 行距）。 */
.param-sections.is-sparse .param-sec-body {
  justify-content: flex-start;
}
/* 行：左文本块（标签 + 说明，上下叠） / 右控件（统一右缘），无分隔线，靠整行 hover 填充区分。
   行高由 --param-row-h 驱动（宽松 48 / 紧凑 44 / 极紧凑 40），卡片按内容定高，短卡不再被拉齐整页。
   宽松档 48 = 标签 20 + 说明 16 + 间距 2 + 上下内边距 8，两行文字不挤。 */
.param-row {
  flex: 0 0 auto;
  height: var(--param-row-h, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--param-row-h, 48px);
  padding: 4px 12px;
  border-radius: var(--radius-btn);
  transition: background-color var(--duration-fast) var(--ease-smooth),
              box-shadow var(--duration-fast) var(--ease-smooth);
}
/* 三态：hover 灰底 / focus-within 淡紫底 + 1px 内描边（键盘可达位置一眼可见）/ is-locked 降级不响应 hover */
.param-row:hover {
  background: var(--bg-fill);
}
.param-row:focus-within {
  background: var(--primary-bg);
  box-shadow: inset 0 0 0 1px var(--primary-border);
}
.param-row.is-locked:hover {
  background: transparent;
}
.param-row-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 3px; /* 20+16+3+上下各 4 = 47 ≤ 48：标签+说明两行不显挤也不溢出 */
  min-width: 0;
}
.param-row-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.param-row.is-locked .param-row-label {
  color: var(--text-secondary);
}
/* v5 flat[38]：标签行（label + 预留标记同一行，紧邻）。
   修前 tag 是 .param-row-text（flex-column）的第 2 个子项且 align-self:center，
   实测行宽 782 时标签 x=290、tag x=635 —— 标签与标记被拉开 345px，中间还夹着落差，
   与控件形成「标签 …… 预留 …… 控件」三孤岛。包一层 flex-row 后 tag 贴标签文本，行高不变。 */
.param-row-labelline {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.param-row-labelline > .param-row-label {
  flex: 0 1 auto;
  min-width: 0;
}
/* v5 flat[38]：生效状态小标签（已接 / 预留）—— 纯文字 + 描边，不用彩色实心块（unslop 禁 pill/圆底块）。
   dense 档说明只能 hover 看，靠这 2 个字让「假开关」一眼可辨。 */
.param-row-tag {
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 15px;
  padding: 0 4px;
  border-radius: 3px;
  border: 1px solid transparent;
  white-space: nowrap;
  align-self: center;
}
.param-row-tag.is-live {
  color: var(--success-color, #52c41a);
  border-color: rgba(82, 196, 26, 0.28);
  background: rgba(82, 196, 26, 0.07);
}
.param-row-tag.is-reserved {
  color: var(--text-tertiary);
  border-color: rgba(0, 0, 0, 0.12);
  background: transparent;
}
.param-row.is-dirty .param-row-label::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--primary-color);
  vertical-align: 2px;
}
.param-row-ctrl {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.param-row-ctrl .ant-input-number,
.param-row-ctrl .ant-input {
  max-width: 100%;
}
.param-row-hint {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 锁定态说明保持 tertiary：这条文案是「为什么不能改」，要能读清（0.20 过淡） */
.param-row.is-locked .param-row-hint {
  color: var(--text-tertiary);
}
/* 极紧凑档的说明入口：行内说明收成 info 图标，hover / focus（可 Tab 到）弹出完整文案。
   说明没有被藏掉，只是从常驻改为按需；图标是触发面，焦点环与主色反馈保证键盘可达。 */
.param-row-hint-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
  color: var(--text-tertiary);
  cursor: help;
  outline: none;
  transition: color var(--duration-fast) var(--ease-smooth),
              background-color var(--duration-fast) var(--ease-smooth);
}
.param-row-hint-btn:hover,
.param-row-hint-btn:focus-visible {
  color: var(--primary-color);
  background: var(--primary-bg);
}
.param-row-hint-btn:focus-visible {
  box-shadow: 0 0 0 2px var(--primary-ring);
}
/* 校验错误行：错误文案必须常驻可见（不能靠 tooltip）。
   宽松/紧凑档上下两行展示并放开定高；极紧凑档把错误文案收到标签右侧单行（超长 ellipsis + title），
   不撑高行、不把控件顶出卡片 —— 错误仍常驻，不让用户滚动才看得到。 */
.param-row.is-invalid {
  height: auto;
  min-height: var(--param-row-h, 48px);
  padding-top: 3px;
  padding-bottom: 3px;
}
.param-sections.is-dense .param-row.is-invalid {
  height: var(--param-row-h, 40px);
  min-height: var(--param-row-h, 40px);
  padding: 2px 10px;
}
.param-sections.is-dense .param-row.is-invalid .param-row-err {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 16px;
}
.param-row-err {
  font-size: 12px;
  line-height: 16px;
  color: var(--error-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 卡片脚注：贴卡片底，用业务规则替代空白（3 项短卡与 4 项长卡等高时不留死白）。
   浅填充 + 上描边把脚注压成第三层（比行说明更弱、比正文更远） */
.param-sec-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-top: 1px solid var(--border-color-light);
  background: var(--bg-fill);
  font-size: 12px;
  line-height: 18px;
  color: var(--text-tertiary);
}
.param-sec-foot .param-sec-meta {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--text-quaternary);
  font-variant-numeric: tabular-nums;
}
/* 长值行（URL / 模板 ID / 多行文本）：标签独占一行，控件整行铺开，不再被右侧窄槽挤压 */
.param-row-wide {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  height: auto;
  min-height: var(--param-row-h, 48px);
  padding: 8px 12px;
}
.param-row-wide .param-row-ctrl {
  width: 100%;
  justify-content: flex-end;
}
.param-row-wide .param-row-ctrl > .ant-input,
.param-row-wide .param-row-ctrl > .ant-input-number,
.param-row-wide .param-row-ctrl > .ant-input-number-group-wrapper,
.param-row-wide .param-row-ctrl > .ant-picker,
.param-row-wide .param-row-ctrl > span {
  width: 100%;
  max-width: 100%;
}
.param-revert.ant-btn {
  height: 24px;
  padding: 0 6px;
  font-size: 12px;
  color: var(--primary-color);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-smooth);
}
.param-row:hover .param-revert,
.param-row:focus-within .param-revert {
  opacity: 1;
}
.param-hit {
  padding: 0 1px;
  border-radius: 2px;
  background: var(--primary-light);
  color: var(--primary-color);
}
.param-confirm p {
  margin: 0 0 8px;
  color: var(--text-secondary);
}
.param-confirm ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-primary);
}
@media (max-width: 1199px) {
  .param-sections { grid-template-columns: 1fr; }
  /* 单列时不再有「奇数末卡跨列」的意义，取消跨列避免 2 列残留 */
  .param-sections > .param-section:last-child:nth-child(odd) { grid-column: auto; }
}
@media (max-width: 767px) {
  .param-grid { grid-template-columns: 1fr; }
  .param-label { flex-basis: 120px; }
  .param-pills { width: 100%; }
  .param-kbd-hint { display: none; }
  .param-row {
    height: auto;            /* 窄屏改为换行堆叠，锁定行高会裁剪提示 */
    min-height: 48px;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 8px;
  }
  .param-row-text { flex: 1 1 auto; }
  .param-row-ctrl { flex: 1 1 auto; justify-content: flex-end; }
  .param-row-meta { flex: 1 1 auto; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .param-item { transition: none; }
  .param-row { transition: none; }
  .param-revert.ant-btn { transition: none; }
}

/* ===== 内容区域入场动画 ===== */
.ios-page-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* v5 flat[42] 文件管理：工具条一行（左筛选 → 右上传/刷新/列设置）。
   修前筛选是一段裸 flex div、列设置在 Card 内另起一行右对齐，纵向多占 40px 且两段割裂。 */
.files-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 40px;
}
.files-toolbar-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.files-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

/* v5 flat[44] 架构看板：卡片内统计数字（原 Badge 彩球裸数字改为「标签 · 数字」）。
   等宽数字避免 6/5、11/6 参差；字重 600 但不用 700+（unslop 禁 800 字重）。 */
.arch-stat-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
  font-weight: 600;
  color: var(--text-primary, #1f1f1f);
}

.ios-page-content > * {
  animation: ios-slide-up var(--duration-slow) var(--ease-out-expo) both;
}
.ios-page-content > *:nth-child(1) { animation-delay: 0ms; }
.ios-page-content > *:nth-child(2) { animation-delay: 50ms; }
.ios-page-content > *:nth-child(3) { animation-delay: 100ms; }
.ios-page-content > *:nth-child(4) { animation-delay: 150ms; }
.ios-page-content > *:nth-child(5) { animation-delay: 200ms; }
.ios-page-content > *:nth-child(6) { animation-delay: 250ms; }

/* h2/h3 全局覆盖（兼容未使用 ios-page-header 的页面）——页头标题唯一字号真源：
   22px = main.tsx token fontSizeHeading2 档（期30波2与 .ios-page-header h2 同步收敛） */
.ios-page-content h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0;
}
.ios-page-content h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

/* ===== 内容卡片增强 ===== */
.ios-content-card {
  border-radius: var(--radius-lg) !important;
  border: 0.5px solid var(--border-color) !important;
  box-shadow: var(--shadow-card) !important;
  transition: color var(--duration-normal) var(--ease-ios), background-color var(--duration-normal) var(--ease-ios), border-color var(--duration-normal) var(--ease-ios), box-shadow var(--duration-normal) var(--ease-ios), opacity var(--duration-normal) var(--ease-ios), transform var(--duration-normal) var(--ease-ios) !important;
}
.ios-content-card:hover {
  box-shadow: var(--shadow-sm) !important;
}

/* ===== 状态指示器 ===== */
.ios-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.ios-status-dot-success { background: var(--success-color); box-shadow: 0 0 6px rgba(52,199,89,0.4); }
.ios-status-dot-error { background: var(--error-color); box-shadow: 0 0 6px rgba(255,59,48,0.4); }
.ios-status-dot-warning { background: var(--warning-color); box-shadow: 0 0 6px rgba(255,159,10,0.4); }
.ios-status-dot-info { background: var(--primary-color); box-shadow: 0 0 6px rgb(var(--primary-rgb) / 0.42); }

/* ===== 空状态美化 ===== */
.ios-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-tertiary);
}
.ios-empty-state .ant-empty-image { opacity: 0.4; }
.ios-empty-state .ant-empty-description { font-size: 13px; color: var(--text-tertiary); }

/* ===== 响应式增强 ===== */
@media (max-width: 768px) {
  .ios-page-header h2, .ios-page-title { font-size: 18px; }
  /* 期30波2：统计卡 18px !important 响应式覆盖退役——移动端同样吃 Statistic token 22 档，
     避免第五档散字号（大数字双档制：统计 22 / hero 28） */
}

/* ============================================================
   全局 UI 重构 — 侧边栏 / 顶栏 / 快捷入口
   ============================================================ */

/* ===== 侧边栏容器 ===== */
.gst-sidebar {
  height: 100%;
  display: flex;
  flex-direction: column;
  /* 2026-10-12 批13：原硬编码紫渐变(#372d68→#221b45)导致切换主题色时左侧栏始终为紫
     （用户报告）。改 color-mix 主色派生：以近黑底 #14102a 锚定暗度，混入主色取紫相——
     默认紫主题观感与原值几乎等值，切换 8 个预设色时侧栏整体跟随。 */
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--primary-color) 30%, #14102a) 0%,
    color-mix(in srgb, var(--primary-color) 22%, #14102a) 55%,
    color-mix(in srgb, var(--primary-color) 12%, #14102a) 100%);
  overflow: hidden;
  position: relative;
}
.gst-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.5) 1px, transparent 0);
  background-size: 24px 24px;
}

/* 顶部光晕 */
.gst-sidebar-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(var(--primary-rgb) / 0.16) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== Logo 区 ===== */
.gst-sidebar-logo {
  padding: 18px 20px 14px;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  flex-shrink: 0;
}
.gst-sidebar-logo.collapsed { padding: 18px 14px 14px; }

/* ===== 迷你统计卡 ===== */

/* ===== 菜单滚动区 ===== */
.gst-sidebar-menu {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.gst-sidebar-menu::-webkit-scrollbar { width: 4px; }
.gst-sidebar-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
.gst-sidebar-menu::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ===== 分组标签 ===== */
.gst-menu-group-label {
  padding: 14px 20px 4px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.22);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.gst-sidebar.collapsed .gst-menu-group-label {
  text-align: center;
  padding: 10px 0 2px;
  font-size: 0;
}
.gst-sidebar.collapsed .gst-menu-group-label::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: rgba(255,255,255,0.12);
}

/* ===== 菜单项 ===== */
.gst-menu-item {
  position: relative;
  margin: 1px 8px;
  padding: 0 14px 0 16px;
  border-radius: 10px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  /* 原 transition: all → 显式列举。实际变化属性：:hover 变 background/color；.selected 变
     background/color/box-shadow。font-weight（.selected 加粗）属布局属性，纳入过渡会引发布局重排，故排除。 */
  transition: background 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.gst-menu-item:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.92);
}
.gst-menu-item.selected {
  background: linear-gradient(135deg, rgb(var(--primary-rgb) / 0.55) 0%, rgb(var(--primary-rgb) / 0.32) 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 0.5px 0 rgba(255,255,255,0.12), 0 1px 3px rgba(0,0,0,0.25); /* 2026-11-18 unslop details pass：彩色发光阴影 → 中性小阴影+hairline 高光 */
}
.gst-sidebar.collapsed .gst-menu-item {
  justify-content: center;
  padding: 0;
}

/* 选中指示条 */
.gst-menu-item.selected::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3.5px;
  height: 24px;
  background: var(--primary-color); /* 批13：原 #6b8aff→#a78bfa 双色渐变不随主题且违单色系定版，改主色 */
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 12px rgb(var(--primary-rgb) / 0.7), 0 0 24px rgb(var(--primary-rgb) / 0.36);
  z-index: 2;
}

/* 图标 */
.gst-menu-icon {
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.48);
  /* 原 transition: all → 显式列举。该规则实际只被 .gst-menu-item 的后代状态驱动：
     颜色（默认/hover/selected）与 filter（.selected 的 drop-shadow 辉光）两个属性，无布局属性。 */
  transition: color 0.25s ease,
              filter 0.25s ease;
}
.gst-menu-item.selected .gst-menu-icon {
  color: #fff;
  filter: drop-shadow(0 0 5px rgb(var(--primary-rgb) / 0.55));
}
.gst-menu-item:hover .gst-menu-icon { color: rgba(255,255,255,0.85); }

/* 标签文字 */
.gst-menu-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

/* ===== 子菜单 ===== */
.gst-submenu-title {
  position: relative;
  margin: 1px 8px;
  padding: 0 14px 0 16px;
  border-radius: 10px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  /* 原 transition: all → 显式列举。实际变化属性：:hover / .open 各自变 background 与 color，
     无第三种状态属性。 */
  transition: background 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.gst-submenu-title:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.92); }
.gst-submenu-title.open { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.85); }
.gst-sidebar.collapsed .gst-submenu-title { justify-content: center; padding: 0; }

.gst-submenu-arrow {
  font-size: 10px;
  color: rgba(255,255,255,0.40);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  margin-left: auto;
}
.gst-submenu-title.open .gst-submenu-arrow { transform: rotate(180deg); }
.gst-sidebar.collapsed .gst-submenu-arrow { display: none; }

/* 子菜单面板 */
.gst-submenu-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
/* 2026-10-18：600px 会把「二手机管理」24 个子项截掉尾部（手机库/实时报价等 6 项不可见且不可滚）。
   提到 2000px 覆盖最长分组，滚动交给外层 .gst-sidebar-menu。 */
.gst-submenu-panel.open { max-height: 2000px; opacity: 1; }

.gst-submenu-inner {
  background: rgba(0,0,0,0.18);
  border-radius: 12px;
  margin: 2px 8px;
  padding: 4px 0;
  border: 0.5px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0.5px 0 rgba(255,255,255,0.04);
}

/* 子菜单项 */
.gst-submenu-item {
  position: relative;
  margin: 1px 6px;
  padding-left: 46px;
  padding-right: 12px;
  border-radius: 8px;
  height: 34px;
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.55);
  font-size: 12.5px;
  font-weight: 400;
  cursor: pointer;
  /* 原 transition: all → 显式列举。实际变化属性：:hover 变 background/color；.selected 变
     background/color/box-shadow。font-weight 同上属布局属性，排除以免重排。 */
  transition: background 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.gst-submenu-item:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.90); }
.gst-submenu-item.selected {
  background: linear-gradient(135deg, rgb(var(--primary-rgb) / 0.21) 0%, rgb(var(--primary-rgb) / 0.10) 100%);
  color: rgba(255,255,255,0.98);
  font-weight: 600;
  box-shadow: 0 1px 8px rgb(var(--primary-rgb) / 0.13);
}
.gst-submenu-item.selected::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 0 3px 3px 0;
  box-shadow: none;
}

/* 玻璃高光 */
.gst-menu-item::after,
.gst-submenu-title::after,
.gst-submenu-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.gst-menu-item:hover::after,
.gst-submenu-title:hover::after,
.gst-submenu-item:hover::after { opacity: 1; }
.gst-menu-item.selected::after,
.gst-submenu-item.selected::after { opacity: 1; }

/* ===== 折叠态浮动弹出菜单 ===== */
.gst-collapsed-flyout {
  position: fixed;
  z-index: 1000;
  background: rgba(17, 30, 51, 0.96);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 0.5px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 8px 20px rgba(0,0,0,0.2);
  padding: 6px;
  min-width: 180px;
  /* 折叠态一组最多 80+ 项（库存管理派生分组），必须可滚动，否则超出视口的下半截既看不到也点不到 */
  max-height: min(70vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: gst-flyout-in 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes gst-flyout-in {
  from { opacity: 0; transform: scale(0.92) translateX(-8px); }
  to { opacity: 1; transform: scale(1) translateX(0); }
}
.gst-collapsed-flyout-title {
  padding: 8px 14px 6px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.40);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.gst-collapsed-flyout-item {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}
.gst-collapsed-flyout-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.gst-collapsed-flyout-item.selected { background: rgb(var(--primary-rgb) / 0.21); color: #fff; font-weight: 600; }
/* 折叠态飞出层的派生分组成员标题（第三层及更深）：只做层级分隔，不做可点入口，
   避免「分组标题 = 首个子项路径」的重复入口。 */
.gst-collapsed-flyout-group { margin-top: 2px; }
.gst-collapsed-flyout-group-title {
  padding: 7px 14px 3px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.04em;
}
.gst-collapsed-flyout-group + .gst-collapsed-flyout-group { border-top: 0.5px solid rgba(255,255,255,0.06); margin-top: 4px; }

/* ===== 用户面板 ===== */
.gst-sidebar-user {
  padding: 14px 18px;
  border-top: 0.5px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.gst-sidebar.collapsed .gst-sidebar-user { padding: 14px 12px; }

.gst-user-info { display: flex; align-items: center; margin-bottom: 10px; }
.gst-user-name { color: #fff; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.01em; }
.gst-user-role { color: rgba(255,255,255,0.30); font-size: 11.5px; display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.gst-user-role-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success-color); display: inline-block; box-shadow: 0 0 6px rgba(52,199,89,0.4); }

.gst-user-actions { display: flex; gap: 8px; }
.gst-user-btn {
  flex: 1;
  border: 0.5px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.55);
  padding: 7px 0;
  cursor: pointer;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.gst-user-btn:hover { background: rgba(255,255,255,0.10); }
.gst-user-btn.danger { color: rgba(255,99,99,0.75); }

.gst-user-collapsed { display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* ===== 快捷入口重构 ===== */
.gst-quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.gst-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 4px;
  border-radius: var(--radius-md);
  transition: background 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.gst-quick-item:hover { background: var(--bg-fill-hover); }
.gst-quick-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.gst-quick-item:hover .gst-quick-icon-wrap { transform: translateY(-2px); }
.gst-quick-icon-glass {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 50%);
  pointer-events: none;
}
.gst-quick-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
/* ============================================================
   iOS 26 Liquid Glass - v4.0
   ============================================================ */

/* Topbar icon button press feedback */
.ios-icon-btn {
  position: relative;
}
.ios-icon-btn:active {
  transform: scale(0.88) !important;
  transition: transform 0.08s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.ios-icon-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.ios-icon-btn:active::after {
  opacity: 1;
  transition: opacity 0s;
}

/* Topbar search */
.ios-topbar-search:focus-within {
  border-color: rgb(var(--primary-rgb) / 0.52) !important;
  box-shadow: 0 0 0 4px rgb(var(--primary-rgb) / 0.09);
}

/* Logo breathing glow */
@keyframes ios-logo-glow {
  0%, 100% {
    box-shadow: 0 2px 16px rgb(var(--primary-rgb) / 0.36), 0 0 0 0 rgb(var(--primary-rgb) / 0.21), inset 0 1px 0 rgba(255,255,255,0.25);
  }
  50% {
    box-shadow: 0 2px 24px rgb(var(--primary-rgb) / 0.56), 0 0 0 6px rgb(var(--primary-rgb) / 0.09), inset 0 1px 0 rgba(255,255,255,0.35);
  }
}
@keyframes ios-logo-enter {
  0% { opacity: 0; transform: scale(0.6) rotate(-12deg); }
  60% { transform: scale(1.08) rotate(2deg); }
  80% { transform: scale(0.96) rotate(-0.5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
.ios-logo-breathe {
  animation: ios-logo-glow 3.5s ease-in-out infinite;
}
.ios-logo-breathe:hover {
  animation: ios-logo-glow 1.5s ease-in-out infinite;
}
.ios-logo-enter {
  animation: ios-logo-enter 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* TabNav iOS 26 tabs */
.tab-nav-tabs {
  --tab-height: 34px;
}
.tab-nav-tabs .ant-tabs-nav::before {
  border-bottom: none !important;
}
.tab-nav-tabs .ant-tabs-tab {
  margin: 0 2px !important;
  padding: 5px 12px !important;
  border: none !important;
  background: transparent !important;
  border-radius: 8px 8px 0 0 !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  transition: color 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
}
.tab-nav-tabs .ant-tabs-tab:hover {
  color: var(--text-primary) !important;
  background: var(--bg-fill) !important;
}
.tab-nav-tabs .ant-tabs-tab-active {
  background: var(--bg-layout) !important;
  color: var(--text-primary) !important;
  font-weight: 600 !important;
}
.tab-nav-tabs .ant-tabs-tab-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary-color);
}
.tab-nav-tabs .ant-tabs-tab .ant-tabs-tab-btn {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tab-nav-tabs .ant-tabs-tab .ant-tabs-tab-remove {
  margin-left: 5px !important;
  margin-right: -2px !important;
  font-size: 9px !important;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: color 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tab-nav-tabs .ant-tabs-tab:hover .ant-tabs-tab-remove {
  opacity: 1;
  transform: scale(1);
}
.tab-nav-tabs .ant-tabs-tab .ant-tabs-tab-remove:hover {
  background: var(--error-bg);
  color: var(--error-color);
}
/* 2026-10-12 回归修复：此前强制隐藏 antd 页签收纳器（.ant-tabs-nav-operations），
   页签开多后失去「⋯ 更多」折叠兜底 → 无限平铺溢出画布（用户报「顶部功能按钮溢出
   边界、大量功能缩小平铺一行」）。恢复收纳器并给页签加防压缩约束（常见后台规范：
   页签定宽上限 + 超长省略 + 溢出收纳，参考 shadcn/浏览器标签页形态）。 */
.tab-nav-tabs .ant-tabs-tab {
  flex: none;              /* 禁止被 flex 压缩到文字断裂 */
  max-width: 168px;
}
.tab-nav-tabs .ant-tabs-tab .ant-tabs-tab-btn {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* TabNav toolbar button */
.ios-tab-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-tertiary);
  transition: color 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  background: transparent;
}
.ios-tab-btn:hover {
  background: var(--primary-light);
  color: var(--primary-color);
}
.ios-tab-btn:active {
  transform: scale(0.88);
  transition: transform 0.08s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* iOS 26 skeleton */
@keyframes ios-skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.ios-skeleton {
  background: linear-gradient(90deg, var(--bg-fill) 0%, var(--bg-fill-hover) 40%, var(--bg-fill) 80%);
  background-size: 200% 100%;
  animation: ios-skeleton-shimmer 1.8s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
.ios-skeleton-circle { border-radius: 50%; }
.ios-skeleton-text { height: 14px; margin-bottom: 8px; }
.ios-skeleton-title { height: 20px; width: 60%; margin-bottom: 12px; }
.ios-skeleton-card { height: 120px; border-radius: var(--radius-lg); }
.ios-skeleton-row { display: flex; gap: 12px; margin-bottom: 12px; }
.ios-skeleton-cell { flex: 1; height: 40px; border-radius: var(--radius-sm); }
/* Theme trigger iOS 26 */
.ios-theme-trigger {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  width: 36px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--primary-color);
  color: #fff;
  border-radius: 12px 0 0 12px;
  box-shadow: -4px 0 20px rgb(var(--primary-rgb) / 0.19);
  transition: color 0.28s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  font-size: 16px;
}
.ios-theme-trigger:hover {
  width: 42px;
  box-shadow: -6px 0 28px rgb(var(--primary-rgb) / 0.42);
}
.ios-theme-trigger:active {
  transform: translateY(-50%) scale(0.92);
  transition: transform 0.08s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ios-color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: color 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.ios-color-swatch:hover { transform: scale(1.12); }
.ios-color-swatch.active {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 4px rgb(var(--primary-rgb) / 0.16);
}

/* Dashboard stat value animation */
@keyframes ios-number-pop {
  0% { opacity: 0; transform: translateY(8px) scale(0.96); }
  60% { transform: translateY(-2px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.ios-stat-value {
  animation: ios-number-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  font-variant-numeric: tabular-nums;
}
.ios-stat-icon-bg {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ios-stat-card:hover .ios-stat-icon-bg {
  transform: scale(1.08);
}
.ios-stat-icon-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
  pointer-events: none;
}

/* Number formatting——hero 数字档 28（期30波2双档制：统计 22 / hero 28；24 旧值归档） */
.ios-number-highlight {
  font-size: 28px;
  /* v5 flat[01]：700/-0.03em → tokens card figures 500/0（tracking-tight bold = AI sign） */
  font-weight: 500;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  line-height: var(--lh-tight);
}
.ios-number-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

/* iOS 26 ripple */
@keyframes ios-ripple {
  0% { transform: scale(0); opacity: 0.4; }
  100% { transform: scale(4); opacity: 0; }
}
.ios-ripple {
  position: relative;
  overflow: hidden;
}
.ios-ripple::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  top: 50%;
  left: 50%;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}
.ios-ripple:active::after {
  animation: ios-ripple 0.45s ease-out;
}

/* focus-visible（2026-10-07 a11y 波）：焦点环主色走 --focus-ring 语义 token。
   旧 rgba(124,92,250,0.52) 对白底 2.05:1 低于 WCAG 非文字 3:1；--focus-ring 浅色档
   #7957f7=4.65 / 暗色档 #a78bfa=6.25，侧栏 NAV、原生 button 等非 .ant-btn 元素全量生效 */
:focus-visible {
  outline: 2px solid var(--focus-ring, #7957f7);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- skip-link 键盘旁路（WCAG 2.4.1 Bypass Blocks，2026-10-07 a11y 波）----
   顶栏/页签条/侧栏底部前置停靠约 14 个功能钮，键盘用户连 Tab 才能进主内容；
   首 Tab 直达主内容焦点（TabNav 首元素渲染 .erp-skip-link，目标 #erp-main-content） */
.erp-skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 3000;
  padding: 8px 18px;
  border-radius: var(--radius-btn);
  background: var(--primary-color);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: top var(--duration-fast) var(--ease-smooth);
}
.erp-skip-link:focus,
.erp-skip-link:focus-visible {
  top: 10px;
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* processing animation */
@keyframes ios-processing {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}
.ios-processing {
  animation: ios-processing 1.4s ease-in-out infinite;
}

/* hover lift */
.ios-hover-lift {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.ios-hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

/* Select dropdown */
.ant-select-dropdown {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  border: 0.5px solid var(--border-color) !important;
  padding: 4px !important;
}
.ant-select-item {
  border-radius: var(--radius-sm) !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
}
.ant-select-item-option-selected {
  background: var(--primary-bg) !important;
  font-weight: 600 !important;
}

/* Picker */
.ant-picker {
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border-color-strong) !important;
}
.ant-picker-focused {
  box-shadow: 0 0 0 4px rgb(var(--primary-rgb) / 0.11) !important;
  border-color: var(--primary-color) !important;
}
.ant-switch-checked { background: var(--primary-color) !important; }
.ant-progress-bg { border-radius: var(--radius-full) !important; }

/* BackTop */
.ant-back-top {
  right: 24px !important;
  bottom: 24px !important;
}

/* Responsive */
@media (max-width: 768px) {
  .ios-theme-trigger {
    width: 30px;
    height: 60px;
    border-radius: 10px 0 0 10px;
    font-size: 14px;
  }
  .gst-quick-grid { grid-template-columns: repeat(3, 1fr); }
  .tab-nav-tabs .ant-tabs-tab {
    padding: 4px 10px !important;
    font-size: 11.5px !important;
  }
  .ios-number-highlight { font-size: 20px; }
}
/* ===== 登录页（分栏专业版）=====
   入场动效已收编全站标准 .gs-rise（动效层），一次性 login-fade 变体已删除，防两套入场动效并存 */
@media (max-width: 991px) {
  .login-brand-panel { display: none !important; }
  .login-mobile-logo { display: flex !important; }
}

/* ===== 登录表单卡（浮起、单层输入面；2026-10-02 圆角收敛至全站 Card 带 10-12）===== */
.login-card {
  background: var(--bg-container-solid);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 40px rgba(15, 23, 42, 0.08);
  border: 0.5px solid var(--border-color-light);
}
/* ===== 登录输入框（主流开源风格：白底细边框、无框内标签）=====
   参照 soybean-admin / pure-admin 登录表单：大尺寸输入框 + 占位符驱动 */
.login-card .login-input.ant-input-affix-wrapper,
.login-card .login-input {
  background: #fff;
  border: 1px solid #d9dff0 !important;
  border-radius: 8px !important;
  padding: 0 14px;
  height: 46px;
  box-shadow: none !important;
  transition: border-color 0.18s var(--ease-smooth), box-shadow 0.18s var(--ease-smooth);
}
.login-card .login-input .ant-input {
  background: transparent;
  border: none !important;
  border-radius: 0 !important;
  padding: 0;
  height: 100%;
  box-shadow: none !important;
  font-size: 14.5px;
}
.login-card .login-input .ant-input:focus,
.login-card .login-input .ant-input:focus-visible {
  outline: none;
  box-shadow: none !important;
}
.login-card .login-input .ant-input-prefix { margin-inline-end: 10px; }
.login-card .login-input .ant-input-prefix > .lucide {
  color: var(--text-tertiary);
  transition: color 0.18s var(--ease-smooth);
}
.login-card .login-input:focus-within {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px var(--primary-light) !important;
}
.login-card .login-input:focus-within .ant-input-prefix > .lucide {
  color: var(--primary-color);
}
.login-card .login-input.ant-input-status-error {
  border-color: var(--error-color) !important;
}
/* autofill 白底覆盖 */
.login-card .login-input input:-webkit-autofill,
.login-card .login-input input:-webkit-autofill:hover,
.login-card .login-input input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-primary);
  caret-color: var(--text-primary);
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  border-radius: 8px;
  -webkit-transition: background-color 99999s ease-out;
  transition: background-color 99999s ease-out;
}

/* ===== 指标卡 pastel 色块体系（对标 B 端数据概览：整卡淡彩底 + 白底图标徽章）===== */
.kit-stat-tinted {
  --tint-bg: rgb(var(--primary-rgb) / 0.07);
  --tint-strong: var(--primary-color);
  background: var(--tint-bg);
  border: none;
  box-shadow: none;
}
.kit-stat-tinted .kit-stat-icon-badge {
  background: var(--bg-container-solid);
  color: var(--tint-strong);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
/* MD2 渐变对：main→state 徽章 + glow 同色投影 */
.tint-mint   { --tint-bg: rgba(19, 222, 185, 0.10); --tint-strong: #0bb8a0; --tint-main: #2be3c0; --tint-state: #0fae94; --tint-glow: rgba(19,222,185,0.35); }
.tint-orange { --tint-bg: rgba(255, 167, 38, 0.12); --tint-strong: #f57c00; --tint-main: #ffb74d; --tint-state: #fb8c00; --tint-glow: rgba(255,167,38,0.35); }
.tint-blue   { --tint-bg: rgb(var(--primary-rgb) / 0.10); --tint-strong: var(--primary-color); --tint-main: #9b82ff; --tint-state: #6a48ec; --tint-glow: rgb(var(--primary-rgb) / 0.35); }
.tint-pink   { --tint-bg: rgba(236, 64, 122, 0.10); --tint-strong: #d81b60; --tint-main: #f06292; --tint-state: #d81b60; --tint-glow: rgba(236,64,122,0.32); }
.tint-cyan   { --tint-bg: rgba(73, 163, 241, 0.10); --tint-strong: #1a73e8; --tint-main: #64b5f6; --tint-state: #1a73e8; --tint-glow: rgba(73,163,241,0.35); }
.tint-purple { --tint-bg: rgb(var(--primary-rgb) / 0.09); --tint-strong: var(--accent-purple); --tint-main: #a78bfa; --tint-state: #6a48ec; --tint-glow: rgb(var(--primary-rgb) / 0.32); }

/* ===== B端卡片质感（轻阴影 + 大圆角）===== */
:root {
  --shadow-card-soft: 0 2px 12px rgba(90, 80, 150, 0.08);
  --shadow-card-soft-hover: 0 6px 20px rgba(90, 80, 150, 0.14);
  /* 工作台徽章/状态 chip 色板（青绿正向/琥珀警示；原裸 hex 提升 token，值不变零视觉差） */
  --mint-strong: #0bb8a0;
  --mint-bg: rgba(19, 222, 185, 0.14);
  --amber-strong: #d97706;
  --amber-bg: rgba(255, 167, 38, 0.14);
  --amber-bg-soft: rgba(245, 158, 11, 0.14);
  --rose-bg-soft: rgba(255, 77, 109, 0.10);
}

/* ===== 页内锚点导航（PageSections 页签条）=====
   白底胶囊容器 + 紫色选中药丸，走项目主题 tokens，不依赖 tailwind dark: 变体 */
.anchor-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  width: -moz-fit-content;
  width: fit-content;
  background: var(--bg-container-solid);
  border: 0.5px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow-card-soft);
  /* 批八十五表头压缩（2026-11-21）：锚点导航条下边距 16→8、内边距 4→2，
     PageSections 骨架页首屏预算省 ~14px（全站 66 个 PageSections 页同步受益，v112 实测 trade-in 36.0%→压缩中） */
  padding: 2px;
  margin-bottom: 8px;
}
.anchor-nav button {
  border: none;
  cursor: pointer;
  border-radius: 7px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  background: transparent;
  color: var(--text-secondary);
  transition: background 0.15s var(--ease-smooth), color 0.15s var(--ease-smooth);
}
.anchor-nav button:hover { background: var(--bg-fill); color: var(--text-primary); }
.anchor-nav button[aria-current="true"] {
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px var(--primary-glass);
}

/* ===== 三联打印（P2I）：打印时仅输出单据区 ===== */
@media print {
  body * { visibility: hidden !important; }
  .bill-print-area, .bill-print-area * { visibility: visible !important; }
  .bill-print-area { position: absolute; left: 0; top: 0; width: 100%; }
  .bill-print-copy { padding: 12px 24px; color: #000 !important; }
  .ant-modal-header, .ant-modal-footer { visibility: hidden !important; height: 0 !important; overflow: hidden !important; }
}

@keyframes login-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.login-spin { animation: login-spin 0.9s linear infinite; }

/* ===== 工作台徽章色（青绿正向/琥珀警示，tokens 化）===== */
.badge-mint { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--mint-strong); background: var(--mint-bg); padding: 1px 6px; border-radius: 999px; }
.badge-amber { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--amber-strong); background: var(--amber-bg); padding: 1px 6px; border-radius: 999px; }
.chip-amber-soft { background: var(--amber-bg-soft); color: var(--amber-strong); }
.chip-status-done { background: var(--mint-bg); color: var(--mint-strong); }
.chip-status-pending { background: var(--amber-bg); color: var(--amber-strong); }
.chip-status-cancel { background: var(--rose-bg-soft); color: var(--error-color); }
.kit-white-card { background: var(--bg-container-solid); border-radius: var(--radius-lg); box-shadow: var(--shadow-card-soft); }

/* ===== 全局交互升级（hover 升浮 / 页面进入过渡）===== */
.kit-white-card {
  transition: box-shadow 0.2s var(--ease-smooth), transform 0.2s var(--ease-smooth);
}
.kit-white-card:hover {
  box-shadow: var(--shadow-card-soft-hover);
  transform: translateY(-2px);
}
/* 页面壳入场（ios-page-content 全站 228 个页面共用）
   原实现 `animation: page-enter 0.28s` 为**无条件**声明，与 gs-rise 体系的 gs-rise-in 属于
   两套并行 transform 入场动画：MainLayout 页面容器同时挂 `ios-page-content gs-rise`，两条规则
   同特异性 (0,1,0)，靠源顺序决胜而非叠加（animation 属性不累加），但两套动画的关键帧参数不同
   （translateY 10px/0.28s vs 6px/240ms），一旦文件内顺序变动即产生抖动；且原声明自身不带
   prefers-reduced-motion 包裹，只能依赖下方 1831 行的 `animation: none !important` 事后补救。

   改为直接复用 gs-rise 体系的 gs-rise-in 关键帧，并整体包进 no-preference：
     · 入场参数与全站 gs-rise 完全一致，消除双动画竞争；
     · 降级包裹下沉到声明处，reduce 模式下本规则整体不生效（不再依赖 !important 事后补救）；
     · 其余 227 个仅挂 ios-page-content（未挂 gs-rise）的页面入场动效语义不变，仅时长由
       280ms 收敛到 240ms 与全站节奏对齐。*/
@media (prefers-reduced-motion: no-preference) {
  .ios-page-content {
    animation: gs-rise-in 240ms var(--ease-out-expo) backwards;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ios-page-content, .kit-white-card { animation: none !important; transition: none !important; }
}

/* ===== 乐檬式农历日期单元格（2026-09-19） ===== */
.ant-picker-panel .lunar-cell{min-width:38px;padding:2px 4px;border-radius:6px;line-height:1.12;text-align:center}
.lunar-cell .lunar-num{font-size:13px}
.lunar-cell .lunar-sub{font-size:10px;line-height:1.1;color:var(--text-tertiary,#999)}
.lunar-cell .lunar-fest{color:#e0862c}
.ant-picker-cell:hover .lunar-cell{background:rgb(var(--primary-rgb) / .12)}
.ant-picker-cell-selected .lunar-cell,.ant-picker-cell-selected:hover .lunar-cell{background:var(--primary-color,#7c5cff)}
.ant-picker-cell-selected .lunar-cell .lunar-num,.ant-picker-cell-selected .lunar-cell .lunar-sub,.ant-picker-cell-selected .lunar-cell .lunar-fest{color:#fff}


/* ===== 工具条颜色反馈（n45 第五迭代：颜色按钮+筛选激活态）===== */
/* 刷新圆形按钮：主题紫淡底+紫图标（对标 ProTable option 栏彩色图标按钮）*/
.btn-refresh-tinted{background:var(--primary-bg);border-color:transparent;color:var(--primary-color)}
.btn-refresh-tinted:hover{background:var(--primary-color);color:#fff}
/* antd v5 的 .ant-btn:hover 由 CSS-in-JS 以同等权重略后注入，把上面的 hover 覆盖成淡紫不变色；
   2026-11-14 r271 实测「刷新按钮 hover 前后背景完全一致」，故补一条更高权重规则保证填充反馈真的发生 */
.btn-refresh-tinted.ant-btn:hover,
.btn-refresh-tinted.ant-btn:focus-visible{
  background:var(--primary-color)!important;
  border-color:transparent!important;
  color:#fff!important;
}
.btn-refresh-tinted.ant-btn:active{background:var(--primary-color-deep,var(--primary-color))!important}
/* 筛选激活反馈：有值时下拉淡紫底+紫字（颜色状态反馈）*/
.filter-active .ant-select-selector{background:var(--primary-bg)!important;border-color:var(--primary-color)}
.filter-active .ant-select-selection-item{color:var(--primary-color)}

/* Select 激活反馈（filled 变体有值态：placeholder 消失即选中）——全局颜色层次工具条 n46 */
.ant-select-filled:has(.ant-select-selection-item:not(.ant-select-selection-placeholder)) .ant-select-selector{background:var(--primary-bg)}
.ant-select-filled:has(.ant-select-selection-item:not(.ant-select-selection-placeholder)) .ant-select-selection-item{color:var(--primary-color)}

/* 日期范围筛选激活反馈（与 Select 有值态同语言；:has 无法探测受控 input 值，故由页面按状态挂 filter-active）——W4-2 */
.filter-active.ant-picker{background:var(--primary-bg)!important;border-color:var(--primary-color)}
.filter-active.ant-picker .ant-picker-input>input{color:var(--primary-color)}

/* ===== 全局动效层（2026-09-30 定版：gs-rise 入场 / gs-lift hover / --gs-delay stagger）=====
   入场 = fade + translateY(6px)，240ms cubic-bezier(0.16,1,0.3,1)（token 复用 --ease-out-expo）；
   stagger 双通道：① 类名档位 gs-d1..gs-d8（0~280ms，ServerStatus 等既有消费方沿用，语义不变）；
   ② 任意元素自定义 --gs-delay（如 style={{ '--gs-delay': '120ms' }}），未设时回退 0ms。
   fill 用 backwards：延迟期保持首帧隐藏态，动画结束归还 transform 控制权（不锁卡片 hover 浮起）。
   整段包 no-preference：系统开启「减弱动态效果」时本层完全不生效（零动效降级）；
   hover 浮起 .gs-lift 仅在 (hover:hover) and (pointer:fine) 指针设备内生效，触屏不误触。 */
@keyframes gs-rise-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .gs-rise {
    animation: gs-rise-in 240ms var(--ease-out-expo) backwards;
    animation-delay: var(--gs-delay, 0ms);
  }
  .gs-d1 { --gs-delay: 0ms; }
  .gs-d2 { --gs-delay: 40ms; }
  .gs-d3 { --gs-delay: 80ms; }
  .gs-d4 { --gs-delay: 120ms; }
  .gs-d5 { --gs-delay: 160ms; }
  .gs-d6 { --gs-delay: 200ms; }
  .gs-d7 { --gs-delay: 240ms; }
  .gs-d8 { --gs-delay: 280ms; }
  /* .ios-page-content 直接子级的 gs-rise 以 gs-dN/--gs-delay 为准：
     覆盖上方 nth-child 位置延迟（特异性同为 0,2,0，靠文件内靠后的源顺序取胜） */
  .ios-page-content > .gs-rise { animation-delay: var(--gs-delay, 0ms); }

  @media (hover: hover) and (pointer: fine) {
    .gs-lift {
      transition: transform 150ms var(--ease-smooth), box-shadow 150ms var(--ease-smooth);
    }
    .gs-lift:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-card-hover);
    }
  }
}

/* ===== 图表柱统一入场动效层（2026-10-03 W2-域1）=====
   手写 div 柱图与 recharts 图表动画同一时长语言：400ms ease-out
   （单一真源 components/kit/chartTheme.ts CHART_MOTION，两处同参改动需同步）；
   stagger 复用既有 --gs-delay 通道（chartBarDelay() 统一计算）；
   hover 提亮走 filter（非颜色值，明暗主题通用）；整段包 no-preference 与 gs-rise 同规：
   系统开启「减弱动态效果」时本层完全不生效（零动效降级）。 */
@keyframes gs-chart-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .gs-chart-bar {
    transform-origin: bottom;
    animation: gs-chart-grow 400ms ease-out backwards;
    animation-delay: var(--gs-delay, 0ms);
    transition: filter 150ms var(--ease-smooth);
  }
  @media (hover: hover) and (pointer: fine) {
    .gs-chart-bar:hover { filter: brightness(1.1); }
  }
}

/* ============================================================
   响应式适配层（2026-10-01 断点体系定版）
   ------------------------------------------------------------
   断点阶梯（与 MainLayout useMediaQuery 断点一一对应）：
   ≥1200  全量形态：完整侧栏 240px / KPI 四列 / 顶栏搜索完整
   ≤1199  平板横屏：页面 padding 收窄 + KPI 卡降两列 + 顶栏搜索缩为图标触发
   ≤1100  侧栏紧凑：视口派生折叠为图标模式（72px，--sidebar-collapsed-width，
          由 MainLayout 只读派生、不写偏好 store）+ 侧栏内边距收窄
   ≤768   手机：侧栏隐藏 + 汉堡抽屉（断点与 MainLayout useIsMobile 的 768px 严格对齐，
          本段 768px 块与上方 B23/B24 既有 768px 块选择器互补、可安全叠加）
   本段布局规则无条件生效；任何动效类规则必须包
   @media (... and (prefers-reduced-motion: no-preference))，
   只影响动效、不影响布局（系统开启「减弱动态效果」时布局断点照常工作）。
   ============================================================ */

/* ---- 平板横屏层 ≤1199px：为 1024 级内容区让出空间 ---- */
@media (max-width: 1199px) {
  /* 顶栏搜索缩窄为图标触发（点击语义不变，仍开 CommandPalette；Ctrl K 快捷键不受影响） */
  .ios-topbar-search {
    min-width: 0;
    padding: 6px 10px;
  }
  .ios-topbar-search .ios-topbar-search-text,
  .ios-topbar-search .ios-topbar-search-kbd { display: none; }

  /* 页面内容 padding 收窄（覆盖 MainLayout 内联 20px 24px） */
  .ios-page-content { padding: 16px !important; }

  /* KPI/四分之一宽卡片降两列（antd lg=6 在 992~1199 仍占 25%，此处降半）；
     仅作用于页面内容区，弹层（Modal/Drawer 传送门）不受影响 */
  .ios-page-content .ant-col-lg-6 { width: 50%; }
}

/* ---- 侧栏紧凑层 ≤1100px：收窄内边距（折叠本身由 MainLayout 视口派生完成）---- */
@media (max-width: 1100px) {
  /* 手动折叠钮在强制折叠视口内无效果，隐藏防「点了没反应」错觉 */
  .erp-hide-compact { display: none !important; }

  /* 侧栏内边距收窄：徽标区 18/20 → 16/12，用户面板 14/18 → 12/8（8pt 节奏） */
  .gst-sidebar .gst-sidebar-logo,
  .gst-sidebar.collapsed .gst-sidebar-logo { padding: 16px 12px 12px; }
  .gst-sidebar .gst-sidebar-user,
  .gst-sidebar.collapsed .gst-sidebar-user { padding: 12px 8px; }
}

/* ---- 折叠动效强化（纯动效，reduced-motion 下整段不生效，布局不受影响）---- */
@media (max-width: 1100px) and (prefers-reduced-motion: no-preference) {
  .gst-sidebar .gst-sidebar-logo,
  .gst-sidebar.collapsed .gst-sidebar-logo,
  .gst-sidebar .gst-sidebar-user,
  .gst-sidebar.collapsed .gst-sidebar-user {
    transition: padding var(--duration-normal) var(--ease-out-expo);
  }
}

/* ---- 手机层 ≤768px：浮层 / 弹窗 / 表格（断点对齐 MainLayout useIsMobile 768px；
     修复恰 768px（iPad 竖屏）时汉堡抽屉已弹出但本段浮层样式不生效的 1px 错位；
     与上方 B23/B24 768px 块选择器互补无冲突）---- */
@media (max-width: 768px) {
  /* 汉堡抽屉浮层样式（B24 Drawer）：右侧圆角 + 深投影，浮层质感 */
  .gst-mobile-drawer .ant-drawer-content {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    box-shadow: var(--shadow-xl);
  }

  /* Modal 全宽（留 16px 安全边距，8pt 节奏） */
  .ant-modal { max-width: calc(100vw - 16px) !important; }
  .ant-modal .ant-modal-content { padding: 16px; }

  /* Drawer 全宽收口（与上方 Modal 同口径，8pt 同边距）
     背景：业务抽屉普遍硬编码 820~1080px（PurchaseReceipts 920 / ProcurementTracking 1080 等），
     此前本断点块只收了 Modal 没收 Drawer，导致 375px 下右侧内容永久不可见且无横向滚动兜底
     （BUG-UI-DRAWER-FIXED-WIDTH）。排除汉堡菜单抽屉 gst-mobile-drawer——其宽度由 MainLayout
     视口派生，不应被强制全宽。 */
  .ant-drawer:not(.gst-mobile-drawer) { max-width: calc(100vw - 16px) !important; }
  .ant-drawer:not(.gst-mobile-drawer) .ant-drawer-body { padding: 16px; }

  /* 表格字号缩小（配合 B23 横向滚动兜底，防挤压竖排） */
  .ant-table-wrapper .ant-table { font-size: 12px; }
  .ant-table-wrapper .ant-table-thead > tr > th { font-size: 11.5px; }
}

/* ===== Dashboard 快捷操作宫格（响应式降列）：≥769px 四列，≤768px 降两列（8pt gap，token 取色）===== */
.dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

/* 批88 U5：Dashboard 模块网格升级 12 列自由宽度（子项 gridColumn span 3/4/6/8/9/12 由 inline style 控制，
   6 档宽度 × 3 档高度；spanOf() 缺省 12=整宽）。窄屏 1180px 以下退化为单列（宽度档失效不挤压），
   gap 承担原 marginBottom 间距。 */
.dash-module-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
@media (max-width: 1180px) {
  .dash-module-grid { grid-template-columns: 1fr; }
  .dash-module-grid > section { grid-column: span 1 !important; }
}
@media (max-width: 768px) {
  .dash-quick-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   P4 组织架构树（2026-10-05）
   行内操作（新增下级 / 编辑 / 删除）只在 hover 或选中时出现，且隐藏时不接收点击：
   否则按钮会占住整行中央，用户点「这一行」容易误触发新增/编辑/删除（Playwright 实测点中过）。
   ============================================================ */
.org-node-actions {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-smooth);
}
.ant-tree-node-content-wrapper:hover .org-node-actions,
.ant-tree-node-content-wrapper-selected .org-node-actions,
.ant-tree-treenode-selected .org-node-actions {
  opacity: 1;
  pointer-events: auto;
}
/* 标题撑满整行 + 行内操作贴右端：避免按钮落在行中央被误点（配合 .org-node 的 width:100%） */
.org-tree .ant-tree-node-content-wrapper { display: flex; align-items: center; }
.org-tree .ant-tree-title { flex: 1; min-width: 0; }

/* 375px 响应式收口：页头在窄屏改为上下两行（标题一行、操作一行），
   避免操作区被压出屏幕；统计卡在页面内单独降列（Users 页用的是 xs/md）。 */
@media (max-width: 768px) {
  .ios-page-header { flex-direction: column; align-items: stretch; }
  .ios-page-header-actions { width: 100%; justify-content: flex-start; }
  /* 角色权限：窄屏把左右两栏改为上下堆叠——固定 292px 的角色栏会把矩阵挤出屏幕 */
  .rp-shell { flex-direction: column; height: auto !important; min-height: 0 !important; }
  .rp-roles { width: 100% !important; flex: 0 0 auto !important; max-height: 45vh; }
  .rp-matrix { min-height: 60vh; }
}

/* ============================================================
   导航族规范层（2026-10-05 波1：Tabs / Segmented / Pagination / Breadcrumb 同族重塑）
   ------------------------------------------------------------
   设计语言：shadcn/ui（重点参考其 Tabs）——中性灰轨道 + 激活底色胶囊替代重色下划线 +
   muted 次级文字 + 克制 hover（~150ms 中性提亮，不再紫跳变）+ 8-10px 圆角 +
   focus-visible 光环；品牌紫只出现在激活态（延续全站「越紫越主动」颜色语言）。
   分工：色彩语义由 main.tsx theme.components token 驱动（Tabs/Segmented/Pagination/
   Breadcrumb 四组 token，2026-10-05 增补）；本层只做 token 覆盖不到的形态与动效。
   边界说明：
   · TabNav 顶栏页签（.tab-nav-tabs）沿用其已验收自有形态，本层选择器均被其 !important 压制；
   · 卡片型页签（type="card"）底色走 Tabs.cardBg token，激活态沿用 antd 卡片描边语言；
   · Segmented 拇指聚焦光环由 antd 原生 &-focused 承担（es/segmented/style L82），本层不重复画；
   · 旧「表格作用域实心紫分页 / hover 紫跳变 Tabs / !important 面包屑」规则已上收退役（防两套真源）。
   ============================================================ */

/* ---- Tabs：激活底色胶囊 ---- */
.ant-tabs-tab {
  border-radius: var(--radius-btn);
  transition: color var(--duration-fast) var(--ease-smooth),
    background-color var(--duration-fast) var(--ease-smooth);
}
/* hover 克制：中性微底（文字提亮由 token itemHoverColor 承担） */
.ant-tabs-tab:hover { background: var(--bg-fill); }
/* 激活胶囊：淡紫洗底（--primary-bg 随 [data-theme='dark'] 自适应）+ token 紫字 600 */
.ant-tabs-tab-active { background: var(--primary-bg); }
.ant-tabs-tab-active .ant-tabs-tab-btn { font-weight: 600; }

/* ---- Tabs：TabsList 灰轨道容器（2026-10-12 批6，对齐 shadcn Radix Tabs 形态）----
   shadcn 基准（new-york/tabs.tsx）：TabsList = bg-muted 灰轨道 + p-[3px] + rounded-lg；
   TabsTrigger 激活态 = bg-background 抬升 + shadow-sm。antd 结构映射：
   .ant-tabs-nav-list ≈ TabsList（包全部 tab 项的 flex 容器）。
   形态补齐但色彩语言保留项目定版：激活仍为紫洗底（「越紫越主动」），
   仅补极轻 xs 阴影获得 shadcn 的「激活即抬升」层次，不改为白底。
   限定线型且排除卡片型（card/editable-card 走 cardBg token 自有描边语言）
   与 TabNav 顶栏（.tab-nav-tabs 已验收自有形态，见 L462/1326）。 */
.ant-tabs-line:not(.ant-tabs-card) .ant-tabs-nav-list {
  background: var(--bg-fill);
  padding: 3px;
  border-radius: var(--radius-sm);
}
.ant-tabs-line:not(.ant-tabs-card) .ant-tabs-tab-active {
  box-shadow: var(--shadow-xs);
}
/* 图标尺寸收口：shadcn [&_svg]:size-4 同档（此前 68 处 tab 图标 16/24px 混用） */
.ant-tabs-tab .anticon { font-size: 16px; }

/* ---- Tab 面板入场：复用 gs-rise-in 关键帧（单一动效真源）----
   backwards 填充：动画结束归还 transform 控制权，不锁面板内 hover 浮起/fixed 后代；
   整段包 no-preference：系统「减弱动态效果」时零动效降级（与 gs-rise 同规）。 */
@media (prefers-reduced-motion: no-preference) {
  .ant-tabs-tabpane-active { animation: gs-rise-in 240ms var(--ease-out-expo) backwards; }
}

/* ---- Segmented：灰轨道 + 白胶囊拇指（形态由 token 承担，本层仅字重与过渡抛光）---- */
.ant-segmented-item-label {
  transition: color var(--duration-fast) var(--ease-smooth);
}
.ant-segmented-item-selected { font-weight: 600; }

/* ---- Pagination：细边胶囊 + 淡紫激活（全局统一，含表格内建分页）----
   旧表格作用域「实心紫块白字」已退役；激活观感与 Tabs/Segmented 同语言：淡紫洗底+紫字。 */
.ant-pagination-item,
.ant-pagination-item-link {
  border-radius: var(--radius-btn);
  border-color: var(--border-color-strong);
  transition: border-color var(--duration-fast) var(--ease-smooth),
    background-color var(--duration-fast) var(--ease-smooth),
    color var(--duration-fast) var(--ease-smooth);
}
.ant-pagination-item:hover,
.ant-pagination-item-link:hover { border-color: rgb(var(--primary-rgb) / 0.45); }
.ant-pagination-item-active {
  background: var(--primary-light);
  border-color: rgb(var(--primary-rgb) / 0.45);
}
.ant-pagination-item-active a { color: var(--primary-color); font-weight: 600; }

/* ---- Breadcrumb：muted 链路 + 当前位品牌紫（颜色由 token 驱动，本层仅动效与字重）---- */
.ant-breadcrumb a { transition: color var(--duration-fast) var(--ease-smooth); }
.ant-breadcrumb li:last-child { font-weight: 500; }
.ant-breadcrumb-separator { color: var(--text-tertiary); }

/* ---- focus-visible 光环（键盘可达性，2026-10-07 a11y 波收口）----
   旧方案 outline:none + 3px var(--primary-light)（10% 紫洗底）对白底仅 1.13:1，
   远低于 WCAG 非文字 3:1 且 primary 实心底上完全不可辨；统一改 2px 实线焦点环
   （--focus-ring 语义 token，offset 2px 与元素底色脱敏），与全局 :focus-visible 同语言 */
.ant-tabs-tab:focus-visible,
.ant-tabs-tab-btn:focus-visible {
  outline: 2px solid var(--focus-ring, #7957f7);
  outline-offset: 2px;
  border-radius: var(--radius-btn);
}
.ant-pagination-item a:focus-visible,
.ant-pagination-item-link:focus-visible {
  outline: 2px solid var(--focus-ring, #7957f7);
  outline-offset: 2px;
  border-radius: var(--radius-btn);
}

/* ============================================================
   控件族规范层（2026-10-06 波2：Button 全家族 + Dropdown/Menu/Tooltip/Popconfirm 同族重塑）
   ------------------------------------------------------------
   设计语言：shadcn/ui（重点参考其 Button）——solid/outline/ghost/link 靠「底色深浅」
   分层而非重描边；中性灰 hover（zinc 系），品牌紫只给主动操作（primary 实心）与
   确认入口（link 紫字）+ 激活态（延续「越紫越主动」）；阴影分层 solid=shadow-xs 微紫晕、
   其余零阴影；hover 零位移（不上浮）；约 150ms 克制过渡；focus-visible 紫色光环。
   分工：
   · 色彩语义/阴影层级/字重（500）由 main.tsx theme.components.Button/Menu/Tooltip token
     驱动（token 名对 antd 5.29.3 源码逐一验证存在）；
   · 本层只做 token 覆盖不到的形态与动效（过渡、active 轻触、link 下划线、浮层细边框）。
   边界说明：
   · 圆角 8 由 Button.borderRadius/SM/LG token 全档承担，css 不再重复声明（shape=circle
     回归 antd 原生 50%——旧 .ant-btn 半径规则退役后无压制源）；
   · 浮层底色随主题：--bg-container-solid / --border-color-strong / --shadow-md 均带
     [data-theme='dark'] 暗色分支，深浅模式零额外规则；
   · Popconfirm 复用 .ant-popover DOM（气泡确认），与 Popover 同规则；
   · 旧「iOS 弹性按钮（紫光晕+上浮+scale0.96+transition all）」与「浮层玻璃模糊+shadow-lg」
     散则已退役（见文件中部指针注释），防 token 与 !important 双真源。
   ============================================================ */

/* ---- Button：形态与动效（色彩/阴影/字重全由 token 驱动）---- */
.ant-btn {
  transition: color 150ms var(--ease-smooth), background-color 150ms var(--ease-smooth),
    border-color 150ms var(--ease-smooth), box-shadow 150ms var(--ease-smooth) !important;
}
/* active 轻触回缩（0.97 档，design-spec §4）；零位移 hover（shadcn 无上浮）。
   包 no-preference：系统「减弱动态效果」时零动效降级（与导航族 gs-rise-in 同规）。 */
@media (prefers-reduced-motion: no-preference) {
  .ant-btn:active { transform: scale(0.97) !important; }
}
/* link 变体：hover 下划线（shadcn link 签名）；字色品牌紫由 colorLink 派生 */
.ant-btn-link:hover { text-decoration: underline; text-underline-offset: 4px; }
/* focus-visible 焦点环（键盘可达性，2026-10-07 a11y 波收口）：
   旧 outline:none + 3px var(--primary-light) 洗底对白底仅 1.13:1（WCAG 非文字需 3:1），
   6 页实测按钮焦点态几乎不可辨；改 2px 实线焦点环（--focus-ring=#7957f7 对白底 4.65），
   outline 走元素外侧 + offset 2px，primary 紫实心底上同样可辨；
   !important 压制 antd 内建 focus 环（cssinjs 注入序靠后） */
.ant-btn:focus-visible {
  outline: 2px solid var(--focus-ring, #7957f7) !important;
  outline-offset: 2px;
}

/* ---- Dropdown / Menu 浮层：实底 + 1px 细边框 + 柔化 shadow-md（去玻璃模糊）----
   面板圆角 14→10（--radius-sm，细边浮层档）；item 圆角由 main.tsx Menu token
   （itemBorderRadius:6，shadcn 菜单档）单一真源驱动，本层不再声明 radius 防双真源；
   item hover/选中配色由 Menu token 承担（中性 hover + 淡紫选中），此处仅形态。 */
.ant-dropdown-menu {
  background: var(--bg-container-solid) !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border-color-strong);
  box-shadow: var(--shadow-md) !important;
  padding: 4px !important;
}
.ant-dropdown-menu-item {
  padding: 8px 12px !important; /* 8pt 节奏档（沿用旧验收值），仅圆角/面板语言随本波收口 */
  font-size: 13px !important;
}

/* ---- Tooltip：浅底细边框柔和阴影（shadcn tooltip：bg-popover + border + shadow-md）----
   底色/字色走全站 token（--bg-container-solid/--text-primary 自带 [data-theme='dark'] 暗色
   分支）；箭头色经 antd 自留 CSS 变量 --antd-arrow-background-color 同步（es/tooltip/style
   L42 消费点实证），tooltipBg token 因 5.29.3 TS 接口未声明不走 theme 层。
   !important 硬约束（等特异性 antd 后注入必胜，见本文件波4规范层说明）：
   · color：antd 编译产物 .ant-tooltip .ant-tooltip-inner (0,2,0) 设 color:var(--ant-tooltip-color,#fff)
     （es/tooltip/style L48），本层单类 (0,1,0) 无 !important 时浅底+白字不可读（回归实锤）；
   · 箭头变量：antd 在 .ant-tooltip 同选择器 (0,1,0) 也声明该变量（es/tooltip/style L42），
     注入序靠后胜出→箭头深色与浅面板错配，必须 !important 同竞。 */
.ant-tooltip { --antd-arrow-background-color: var(--bg-container-solid) !important; }
.ant-tooltip-inner {
  background: var(--bg-container-solid) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color-strong);
  box-shadow: var(--shadow-md) !important;
  border-radius: var(--radius-sm) !important;
  padding: 6px 12px !important; /* 微型标签档（沿用旧验收值），12px 字号配 6/12 内边距 */
  font-size: 12px !important;
}
/* 参数页 info 说明气泡：深底高对比（2026-11-09 P0 实证——上面的浅底 tooltip 悬在白卡上
   实测 bg #fff / 字 rgba(0,0,0,.88) / 边框 0.10，用户肉眼「看不到弹出」，故本页单独反色） */
.ant-tooltip.param-hint-tip {
  --antd-arrow-background-color: #1f2430 !important;
  max-width: 280px;
}
.ant-tooltip.param-hint-tip .ant-tooltip-inner {
  background: #1f2430 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22) !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-size: 12.5px !important;
  line-height: 18px !important;
}

/* ---- Popover / Popconfirm：柔化阴影 + 12 圆角 + 1px 细边框 ----
   （shadow-lg→shadow-md 柔化；圆角 14→12 与 Modal 24/卡片 12 家族呼应） */
.ant-popover-inner {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-md) !important;
  border: 1px solid var(--border-color-strong) !important;
}

/* ============================================================
   图表规范层（2026-10-06 波3：recharts 全局观感收口）
   ------------------------------------------------------------
   设计语言：shadcn/ui Chart——中性灰极浅网格（1px）/ muted 次级坐标轴文字 /
   极浅轴线（刻度须退役）/ Tooltip 实底+1px细边框+柔和阴影+圆角 / Legend muted /
   字体继承正文；色值全走全站 token（--border-color / --text-secondary / --text-primary /
   --bg-container-solid 自带 [data-theme='dark'] 分支），深浅模式零额外规则。
   分工（单一真源约定）：
   · 数值参数（轴字号/柱圆角/折线宽/动效/色板）= components/kit/chartTheme.ts
     （CHART_GRID/CHART_AXIS/CHART_TOOLTIP/CHART_LEGEND/CHART_BAR/CHART_LINE/CHART_PALETTE，
     新图表页展开式消费，kit/index.ts 已出出口）；
   · 本层只做 CSS 兜底：未接 chartTheme 的存量图表页零改动即达同观感。
     recharts 默认样式（Tooltip 白底灰框/刻度 #666/Legend 彩字）是 inline style，
     对应属性必须 !important 压制；改 chartTheme.ts 数值时同步核对本层。
   ============================================================ */

/* ---- 字体继承 + focus 清理：wrapper 回接正文字族；鼠标点击不出默认 focus 框
   （:not(:focus-visible) 保留键盘焦点可达性，与全站 focus-visible 光环体系同规） ---- */
.recharts-wrapper { font-family: inherit; color: var(--text-secondary); }
.recharts-wrapper:focus:not(:focus-visible),
.recharts-surface:focus:not(:focus-visible),
.recharts-tooltip-wrapper:focus:not(:focus-visible),
.recharts-sector:focus:not(:focus-visible) { outline: none; }

/* ---- 网格：中性灰 1px 极浅（统一色；各页自选虚线节奏不覆盖，防双真源） ---- */
.recharts-cartesian-grid line { stroke: var(--border-color); }

/* ---- 坐标轴：轴线极浅 1px / 刻度须退役 / 刻度文字 muted 次级 ---- */
.recharts-cartesian-axis-line { stroke: var(--border-color); }
.recharts-cartesian-axis-tick-line { stroke: transparent; }
.recharts-cartesian-axis-tick text { fill: var(--text-secondary); }

/* ---- Tooltip：实底 + 1px 细边框 + 柔和阴影 + 圆角（压制 recharts 默认 inline 白底灰直角框）----
   正文收中性（shadcn 语言：系列色只留在图标/指示位，正文不彩字） */
.recharts-default-tooltip {
  background: var(--bg-container-solid) !important;
  border: 1px solid var(--border-color-strong) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-md) !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
}
.recharts-tooltip-label { color: var(--text-secondary); font-weight: 500; }
.recharts-tooltip-item { color: var(--text-primary) !important; }

/* ---- Legend：muted 次级文字（!important 压 recharts 默认 inline 系列彩字，系列色留在图标上） ---- */
.recharts-legend-item-text { color: var(--text-secondary) !important; }

/* ============================================================
   语义组件族规范层（2026-10-06 波4：Tag / Badge / Alert / Empty 同族重塑）
   ------------------------------------------------------------
   设计语言：shadcn/ui Badge/Alert——rounded-md 小圆角 + 1px 极浅细边框 +
   极浅语义底 + muted 文案层级；语义色一律跟随全站 --success/--warning/--error/
   --primary token（自带 [data-theme='dark'] 暗色分支，深浅模式零额外规则）。
   分工：Tag 圆角/默认底/默认字色由 main.tsx Tag token 驱动；Badge 字号/字重由
   Badge token 驱动；本层只做 token 覆盖不到的形态与语义收敛。
   背景：上游审计实锤——①Tag 胶囊 border:none 全站无描边、②预设色名(green/red
   全站 56/32 处)与状态色名(success/error 40/16 处)双轨并存且 antd 静态预设色板
   （green=#52c41a 系/red=#f5222d 系，es/tag/style/presetCmp.js 实证为
   genPresetColor 派生）与项目 iOS 语义色（#34c759/#ff3b30）色相漂移，同页混用
   即两套观感（Customers.tsx:310 success vs :415 green）；③Alert 边框=全局
   lineWidth 0.5px 半像素+borderRadiusLG 18 过圆+语义底偏饱和；④Empty 双形态
   （SIMPLE 166 处 vs 默认大图 125 处）同页混用观感跳变。
   !important 说明：antd cssinjs 运行时注入序靠后，等特异性规则 antd 胜出，
   本层覆盖 antd 自设属性处（边框/底色/圆角/文案色）必须 !important（与文件既有
   覆盖层同规）。
   ============================================================ */

/* ---- Tag：rounded-md + 1px 极浅细边框（胶囊 border:none 退役）----
   圆角 6px 由 main.tsx Tag.borderRadiusSM token 承担，本层不重复声明（单一真源） */
.ant-tag {
  border: 1px solid var(--border-color-strong) !important;
  font-weight: 500 !important;
  padding: 2px 8px !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  letter-spacing: 0;
}
/* borderless 变体（<Tag bordered={false}>，类名实证 es/tag/index.js L69）必须显式回放
   antd 无边框语义——基础规则的 border !important 无视特异性，antd 的
   border-color:transparent（es/tag/style/index.js L87）救不回来，只能在本层补刀 */
.ant-tag.ant-tag-borderless { border-color: transparent !important; }
/* 预设色名 → 状态色族收敛：green≡success、red≡error 渲染同族（底/边/字全走语义
   token），页面两色名混用不再产生视觉分裂 */
.ant-tag.ant-tag-green,
.ant-tag.ant-tag-success {
  color: var(--success-color) !important;
  background: var(--success-bg) !important;
  border-color: rgba(52, 199, 89, 0.28) !important;
}
.ant-tag.ant-tag-red,
.ant-tag.ant-tag-error {
  color: var(--error-color) !important;
  background: var(--error-bg) !important;
  border-color: rgba(255, 59, 48, 0.28) !important;
}

/* ---- Alert：细边框（1px）+ 极浅语义底 + 10px 圆角 + muted 描述行 ----
   圆角走 --radius-sm(10)：全局 borderRadiusLG=18 过圆，且 StandardReports 三处
   inline borderRadius:8 散写被本层 !important 统一收口（规格层解决，不动页面）；
   消息主文案/图标色保持 antd 语义色派生（colorInfo=品牌紫，与全站 info 语言一致） */
.ant-alert {
  border-radius: var(--radius-sm) !important;
  border-width: 1px !important;
}
.ant-alert-info {
  background: var(--primary-bg) !important;
  border-color: rgb(var(--primary-rgb) / 0.28) !important;
}
.ant-alert-success {
  background: var(--success-bg) !important;
  border-color: rgba(52, 199, 89, 0.28) !important;
}
.ant-alert-warning {
  background: var(--warning-bg) !important;
  border-color: rgba(255, 159, 10, 0.30) !important;
}
.ant-alert-error {
  background: var(--error-bg) !important;
  border-color: rgba(255, 59, 48, 0.28) !important;
}
.ant-alert .ant-alert-description {
  color: var(--text-secondary);
  font-size: 13px;
}

/* ---- Empty：muted 插画位 + 文案层级 ----
   双形态观感收敛：默认大图降饱和降不透明度向 SIMPLE 的低调观感靠拢，同页两形态
   不再跳变（antd Empty 无组件 token，全部在本层落地）；描述行=tertiary 档，
   footer（操作按钮位）上间距收口 8pt 节奏 */
.ant-empty .ant-empty-image img {
  filter: grayscale(25%);
  opacity: 0.72;
}
.ant-empty-description {
  color: var(--text-tertiary);
  font-size: 13px;
}
.ant-empty-footer { margin-top: 16px; }

/* ============================================================
   图标规范层（2026-10-06 波4：全站图标一致性基座）
   ------------------------------------------------------------
   审计基线：全站图标字号 17 档（10~60px）并存、lucide 出现 13/15/17 非档位值、
   antd/lucide 双库线宽与行内基线不一致（Topbar 16/17/14 同语境混用等）。
   页面级逐处归一属业务页域（本波禁改 pages/），本层先立「档位 + 线宽 + 基线」
   三件套基座：后续页面图标收敛时引用变量取值，禁止再新增档位外字号。
   档位（12/14/16/20/24，与全站字号节奏对齐）：
   --icon-xs 12（表头/徽章内）· --icon-sm 14（按钮/输入框前缀）
   --icon-md 16（工具条/卡片标题旁）· --icon-lg 20（图标章/统计卡）
   --icon-xl 24（空态插画/页头强调）
   ============================================================ */
:root {
  --icon-xs: 12px;
  --icon-sm: 14px;
  --icon-md: 16px;
  --icon-lg: 20px;
  --icon-xl: 24px;
}
/* 线宽统一：lucide 全站 stroke-width 2（shadcn 图标线宽语言；lucide 出厂默认即 2，
   此处以 CSS 压过 svg 属性级散写 strokeWidth，防 1/1.5/2 混用；
   antd 图标为 fill 体系不受影响。个别大尺寸图标需细线时用 style={{ strokeWidth: n }}
   内联显式豁免（内联 style 优先级高于本层非 important 声明）） */
svg.lucide { stroke-width: 2; }
/* 基线对齐：与 .anticon 内建 -0.125em 同档，lucide 在文字行内随行对齐
   （flex/align-items 容器内 vertical-align 无副作用，仅行内流生效） */
svg.lucide { vertical-align: -0.125em; }

/* ===== D2-5 异常行为高亮（AppBehaviorLogs，coord-6b7a7f 2026-10-13）===== */
/* 非营业时段（22:00–06:00）记录行淡黄底；仅视觉提示不阻断 */
.abn-offhours > td {
  background: rgba(250, 211, 96, 0.14) !important;
}

/* ===== 批十二 V22-1 在途单联查定位高亮（Transfers ?focus=，coord-ui271 2026-11-17）===== */
/* 从商品在途页「联查调拨单」跳转后目标行琥珀底高亮，仅视觉定位不阻断 */
.row-focus-target > td {
  background: rgba(250, 173, 20, 0.16) !important;
}

/* ===== 批八十五表头压缩（2026-11-21）：单据类页骨架收紧档（文件末尾定义压过全部先前层） =====
   页面根挂 page-tight-gap 时：子块间距 16→6、页头下边距 12→0。
   仅显式挂类的页面生效，不影响全站默认；v112 实测 deductions 32.3%→压缩中。 ===== */
.ios-page-content.page-tight-gap { gap: 6px !important; }
.ios-page-content.page-tight-gap > .ios-page-header { margin-bottom: 0 !important; }

/* ===== 批八十七 消息通知表格化（2026-11-21）：未读行高亮（A4 容器规划/List→Table 重构配套） ===== */
.notif-unread-row > td { background: var(--primary-bg) !important; }
.notif-unread-row:first-child > td:first-child { border-left: 3px solid var(--primary-color); }

/* v4 审查 H3：空态占位行隐性 4px 溢出（sw1558 vs 容器1554，v132/v133 实测无可见子元素越界）→ 裁剪防幽灵横向滚动条 */
.ant-table-placeholder > .ant-table-cell { overflow: hidden; }

/* ===== v5.1 flat80（2026-11-23）：数字等宽工具类 =====
   表格内编码 / IMEI / 金额 / 数量统一 tabular-nums，个位对齐便于竖排扫读比较。
   此前只有类名无实现（mono-num 在 InventoryQuery 中被引用但无样式定义）。 */
.mono-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ===== v5.2 全局制式：列表页表格撑满（2026-11-23 用户定版，判据 G1/G2）=====
   背景（ego round-457 实测）：antd 的 `scroll.y` 只设「最大高度」——10 行时 bodyH=369、
   切到「已完成」2 行时 bodyH=73，Card 下方留 430px 纯空白。用户点名「有的页面容器小、
   有的页面无限下拉，根本没有标准」。
   契约：页面给表格外套一层 `.gs-table-fill`，并通过 CSS 变量传入「体最小高度」：
     <div class="gs-table-fill" style={{ '--gs-table-body-h': `${tableY - 72}px` }}>
   本层把这些页面的表格体拉满（行少也占满、行多仍内部滚动），不改无 scroll.y 的页面。
   72 = 表头 32(实测) + 合计行 37 + 边框/留白 3。 */
.gs-table-fill .ant-table-body {
  min-height: var(--gs-table-body-h, 0) !important;
  overscroll-behavior: contain;
}
/* 纵向滚动条收窄（9px → 6px），避免挤掉 3px 后触发幽灵横向滚动条（round-457 hScroll=9） */
.gs-table-fill .ant-table-body::-webkit-scrollbar { width: 6px; height: 6px; }
.gs-table-fill .ant-table-body::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.18);
  border-radius: 3px;
}

/* ── v5.6 全站表单制式（2026-11-24 用户点名「表单该有的设置」）─────────────────
   与 kit/useFormPrefs 配套：body.gs-no-required-mark 时隐藏全部必填星号。
   antd 的 ConfigProvider.form.requiredMark 在个别页面 Form 上不穿透（tax-codes 弹层实测仍显星号），
   故用一条确定性的 CSS 兜底；只关视觉标记，不关校验（rules 仍拦截提交）。 */
body.gs-no-required-mark .ant-form-item-required::before,
body.gs-no-required-mark .ant-form-item-label > label.ant-form-item-required::before {
  display: none !important;
}

/* 表单标签列宽：ConfigProvider.form.labelCol 只作用于「未显式声明 labelCol」的横向表单，
   这里再补一条弹性兜底（页面显式 labelCol 仍优先，因为内联样式未被覆盖）。 */

/* ===== v6 R004 表格定高全局兜底层（2026-11-24 P0-1 批量铺开）=================
   背景：全站 507 个含表页里只有 17 页接了 useTableAutoHeight，其余页面表格高度随行数增长 →
   用户感知为「有的页面容器很小、有的无限下拉」。逐页加 hook 成本过高（553 页），
   而 antd 在「未配置 scroll.y」时渲染 `.ant-table-content`、配置后渲染 `.ant-table-body`，
   因此只对前者限高即可精准覆盖未改造页，已接定高的页完全不受影响。
   表头用 sticky 保住可读性（内滚时表头不跟走）。 */
.ios-page-content .ant-table-wrapper:not(.gs-table-nox) .ant-table-content {
  /* R061 口径修正：这里只给「尚未被 tableFillManager 接管」的表格兜底，所以必须**撑满**，
     不能再写制式高（448）—— 那会让大屏下行数只有 10 行的页留下 300+px 灰底空白（用户三次点名）。
     行高/每页行数由制式层管，容器高度由「撑满」管，两件事不许混。 */
  max-height: calc(100vh - 236px);
  overflow: auto;
}
.ios-page-content .ant-table-wrapper .ant-table-content > table > thead > tr > th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
}
[data-theme='dark'] .ios-page-content .ant-table-wrapper .ant-table-content > table > thead > tr > th {
  background: #1c1c1e;
}

/* ===== v6 R049/R050/R052 表格制式定量层（2026-11-24 用户点名「全局都显示 10 行、高度一致」）=====
   单一真源 = useTableDensity 写入 :root 的四个变量（账号级偏好，改一处全站同高）：
     --gs-row-h 行高 / --gs-head-h 表头高 / --gs-table-rows 每页可见行数 / --gs-table-h = 表头 + 行高×行数
   本层只做「消费」，页面不得自行写死行高或表格高度（违反 = 交付打回）。 */
:root {
  --gs-row-h: 44px;
  --gs-head-h: 38px;
  --gs-table-rows: 10;
  /* 38 + 10×44 + 10×1（每行分隔线）= 488 —— 少算分隔线会把第 10 行裁掉
     v6.2：行高 40→44（用户「单行高度可以考虑增高一点」），制式高同步 448→488 */
  --gs-table-h: 488px;
}

/* 行高/表头高全站统一（含已接 scroll.y 的页：此前行高由内容撑开，导致同屏各页疏密不一） */
.ios-page-content .ant-table-wrapper .ant-table-thead > tr > th {
  height: var(--gs-head-h);
  padding-top: 0;
  padding-bottom: 0;
}
.ios-page-content .ant-table-wrapper .ant-table-tbody > tr > td {
  height: var(--gs-row-h);
  padding-top: 0;
  padding-bottom: 0;
  /* v6.4（2026-11-24 用户「行高你没做啊 / 要么 15 行要么 10 行」）：
     行内容一律单行 —— 修前窄列长文本（供应商名 5 行、会员标签 flex-wrap）把行撑到 48/53/65px，
     同一屏各页疏密不一。行盒是唯一的，内容必须服从行盒：单行 + 省略号，全量信息由列宽拖拽/Tooltip/详情承担。
     注意「不写 display 改写」—— 改写会让操作列按钮竖排（已否决路径，见 R059 反证）。 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 行内 antd 空态：v6.5 试验已回滚（2026-11-24 真机 round-679 反证）
   ❌ 路径：`.ant-table-placeholder > td { height: calc(--gs-table-h - --gs-head-h) }` ——
   app-settings 空态行确实撑到 450px，但 wrapper 仍 120px、卡底 992 > 视口 910，整页被推出视口 82px
   （空白没消失，只是变成纵向滚动），属「伪修复」。空态撑满必须按真机 tableY 算，
   走 Transfers 的 `height: Math.max(tableY - 8, 320)` 分支式写法。 */
/* 行内 ant-space 强制单行：会员页「首单达成 / 测试数据」两个 Tag 带 flex-wrap: wrap，
   在窄列里换成两行把行高从 44 撑到 53（真机 v612/v614 取证）。 */
.ios-page-content .ant-table-wrapper .ant-table-tbody > tr > td .ant-space {
  flex-wrap: nowrap !important;
}
/* v6.3（2026-11-24 用户「行高不一致 / 这页 15 行那页 20 行」实证）：
   商品档案页实测行高 55px ≠ 制式 44px —— 根因是"商品缩略图"列里的包裹 DIV 高 42px
   （图片 28 + 自身留白），6+6 padding + 1 border 把行撑到 55。制式行高是「行盒」高度，
   内容必须服从行盒：行内块级容器一律压到 行高 - 上下内距 - 分隔线，超出裁剪（全量信息由 Tooltip 承担）。 */
.ios-page-content .ant-table-wrapper .ant-table-tbody > tr > td img {
  max-height: calc(var(--gs-row-h) - 16px);
  width: auto;
  -o-object-fit: contain;
     object-fit: contain;
  vertical-align: middle;
  display: inline-block;
}
/* 只裁「含图片的容器」：图片区的包裹 DIV 带着自身留白（商品页实测 44px）必须服从行盒；
   纯文本容器不许裁 —— 裁到 31px 会把第二行文字切掉半截（/customers 真机截图「名称下面露半行」），
   比行高不齐更丑。文本单行化属页面级列语义（R060 逐页 ellipsis），不在全局层强改。 */
.ios-page-content .ant-table-wrapper .ant-table-tbody > tr > td div:has(img),
.ios-page-content .ant-table-wrapper .ant-table-tbody > tr > td .ant-image {
  max-height: calc(var(--gs-row-h) - 13px);
  width: auto;
  overflow: hidden;
}
.ios-page-content .ant-table-wrapper .ant-table-tbody > tr > td .ant-image img {
  max-height: 100%;
  width: auto;
  -o-object-fit: contain;
     object-fit: contain;
}
/* R084（2026-11-24 用户「库存流水下方留白这么大」）——表格行区填充行（.gs-pad-row）。
   R059 原文要求「多出来的部分由表格白底空白行区吸收」，但 R059 只落码了「撑满容器」，
   没有把剩余高度变成可见行区 ⇒ 10 行数据之后是一块 106px 无行线白板，看着就是留白。
   页面按可用高度补真实空行（dataSource 补 __pad 行，44px 制式行高），这里给空行加行线，
   让空位读作「空行网格」而不是「白板」。antd 对 tbody 最后一行不加边框，所以必须 !important。
   注意：空行的单元格内容由页面层短路为空（不能留各列 render 的「—」兜底，否则像故障数据）。 */
.ios-page-content .ant-table-wrapper .ant-table-tbody > tr.gs-pad-row > td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  background: transparent;
}
.ios-page-content .ant-table-wrapper .ant-table-tbody > tr.gs-pad-row:hover > td {
  background: transparent;
}

/* ===== v6 R059 行内容单行化 —— 全局强制版已否决（2026-11-24 真机反证）=====
   试过一条 `td > div { display: inline-block }` 想以纯 CSS 把双行内容压成单行，
   真机实测反噬：销售页「操作」列 4 个按钮被挤成竖排、行高从 52px 涨到 125px、
   438px 制式高只剩 3 行可见。结论：行内容排布不能用全局 CSS 改写（各列结构异构），
   只能在页面级按「列语义」处理（见 R060：逐页行内容单行化，进 P0-1b 清单）。
   本条仅保留「行内容不得低于既定行高」的兜底，不改排布。 */
.ios-page-content .ant-table-wrapper .ant-table-tbody > tr > td > * { line-height: 1.45; }

/* ===== v6 R062 页头控件制式（2026-11-24 用户截图点名：红框①标题+Tabs 与红框②筛选+操作
   「没有对齐、元素大小不一致、没有整体性」）=================================================
   根因：同一行里混了 5 种高度 —— 搜索框/日期/主按钮 40px，图标按钮/文字按钮 32px，
   标题 22px 文字，Tabs 32px；flex 只是把两簇推到两端，中间空档没有任何分组语义。
   口径（不许各页自行改）：
     · 页头内一切控件统一 32px 高（紧凑档，与表格行高 40 形成层级差）；
     · 页头整体最小高 40px，标题与控件垂直居中，杜绝「文字比按钮高一截」；
     · 右侧按「筛选组 / 主操作 / 工具组」紧排 8px，不再靠 space-between 硬撑。 */
.ios-page-header {
  min-height: 40px;
}
.ios-page-header .ant-input,
.ios-page-header .ant-input-affix-wrapper,
.ios-page-header .ant-picker,
.ios-page-header .ant-select-single:not(.ant-select-customize-input) .ant-select-selector,
.ios-page-header .ant-btn {
  height: 32px;
}
.ios-page-header .ant-input-affix-wrapper > .ant-input { height: auto; }
.ios-page-header .ant-btn-sm { height: 32px; padding: 0 10px; }
/* 标题与 Tabs 同排时按基线居中（原 h2 行高 30 会把 Tabs 顶成偏上） */
.ios-page-header h2 { display: flex; align-items: center; gap: 16px; line-height: 32px; }
.ios-page-header-actions { gap: 8px; }
/* 工具组（表格设置/列设置/刷新等次级动作）之间 4px，和主操作拉开层级 */
.ios-page-header-actions .ant-space { gap: 4px !important; }

/* v6-8（2026-11-24 用户「没有整体性 / 左右重新排版」）：页头按钮只允许三种外观，
   此前同一行里同时出现「实心紫主按钮 + 无边框文字按钮 + 描边按钮 + 圆形按钮」四种，
   视觉上像随手摆的四个组件。口径：
     · primary（实心紫）= 页面唯一主操作；
     · default（白底细描边）= 一切次级动作，文字按钮（text）在页头一律升格为描边，
       不再允许「无边框文字」和「描边按钮」并排；
     · circle（32×32 浅底）= 纯图标入口（设置/刷新/全屏）。 */
.ios-page-header .ant-btn-text:not(.ant-btn-dangerous) {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
}
.ios-page-header .ant-btn-text:not(.ant-btn-dangerous):hover {
  background: var(--gs-accent-weak, rgba(124, 92, 255, 0.08));
  border-color: rgba(124, 92, 255, 0.35);
  color: var(--primary-color);
}
.ios-page-header .ant-btn-circle,
.ios-page-header .ant-btn-round.ant-btn-icon-only {
  width: 32px;
  min-width: 32px;
  padding: 0;
}
/* 日期区间在页头里必须留够宽，否则「到」字与日历图标互相挤压（用户截图「文字还有截断」） */
.ios-page-header .ant-picker-range { min-width: 268px; }
.ios-page-header .ant-select { min-width: 120px; }
/* v6-9（2026-11-24 六页真机抽查暴露的两处漏网）：
   ① filled / bordered 变体的 Select 不吃上一条「ant-select-single … selector」的高度，
      /finance/payable 页头实测 40px、内部 span 39px、顶边 113 与同排 120 错位；
   ② h2 被 de-ai.css 压在 17px/22.95 行高，页头里 32px 控件与 22.95 行高的标题基线差 4.5px。
   这里用双类选择器提权，保证「页头内一切控件与标题同一条 32px 基线」。 */
.ios-page-header.ios-page-header .ant-select {
  height: 32px !important;
}
.ios-page-header.ios-page-header .ant-select .ant-select-selector,
.ios-page-header.ios-page-header .ant-select-selection-wrap,
.ios-page-header.ios-page-header .ant-select-selection-search-input,
.ios-page-header.ios-page-header .ant-select-selection-item {
  height: 32px !important;
  min-height: 32px !important;
  line-height: 30px !important;
}
.ios-page-header.ios-page-header h2 {
  display: flex !important;
  align-items: center !important;
  gap: 16px;
  /* !important：de-ai.css 同优先级把 h2 压在 17px/1.35（22.95），与 32px 控件差 4.5px 基线 */
  line-height: 32px !important;
}

/* 分页器不再被容器裁掉（用户截图「页」字被咬）：
   容器层 overflow:hidden 做圆角，pager 内容一超宽就被切。改为允许换行 + 右侧留内距，
   窄窗口时「跳至/条每页」自动折到第二行，而不是被裁掉右半截。
   R051（2026-11-24 用户「点每页条数没反应」）真机根因：**右下角「服务器实时状态」悬浮球**
   （position:fixed; right:12px; bottom:10px; 66×31; z-index:1200）盖住分页条右端，
   elementFromPoint 命中的是悬浮球而不是 .ant-select → 点击被它吃掉，下拉不弹。
   实测 /finance/payable 分页条 1792~1881、悬浮球 1830~1896，重叠 51px。
   口径：分页条右侧留 96px 安全区，右缘收到 1813（球左缘 1830 之外），彻底避开。 */
.ios-page-content .ant-table-pagination.ant-pagination {
  flex-wrap: wrap;
  row-gap: 6px;
  /* !important：后面还有一条 `padding: 12px 0 4px` 简写会覆盖 padding-right（真机 computed 实测为 0），
     不加这一下避让就失效，分页条右端继续被悬浮球吃掉。 */
  padding-right: 96px !important;
  margin-inline-start: 0;
}

/* 表格设置入口去重（R052 收口，2026-11-24 真机截图暴露）：
   /finance/payable 页头同时出现「文字·表格设置」+「圆形·表格设置」两个按钮 —— 页头（498 页）
   与工具条（93 页）各渲染一个，重叠页就重复。口径：**同页只留一个入口，优先文字钮**（更易发现），
   页头圆钮在有文字钮时自动让位。用 :has() 跨子树判定，不依赖挂载顺序、不需要 JS 计数。 */
.ios-page-content:has(.gs-density-text) .gs-density-compact,
body:has(.gs-density-text) .gs-density-compact {
  display: none !important;
}

/* ===== v6 R053 列表容器标准层（2026-11-24 图2 点名「表单容器标准吗」）=====
   事实：库存查询有 Card 包裹、销售订单裸表格 —— 同一套系统两种容器观感。
   统一口径：列表容器 = 白底 + 12px 圆角 + hairline 边框 + 内距 0（表格自贴边）；
   Card 内的表格不再叠第二层容器（避免双层边框）。 */
.ios-page-content .ant-table-wrapper .ant-table {
  background: transparent;
}
.ios-page-content .ant-table-wrapper:not(.gs-table-nox) {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  overflow: hidden;
}
.ios-page-content .ant-card .ant-table-wrapper {
  background: transparent;
  border: 0;
  border-radius: 0;
}
[data-theme='dark'] .ios-page-content .ant-table-wrapper:not(.gs-table-nox) {
  background: #1c1c1e;
  border-color: rgba(255, 255, 255, 0.10);
}

/* R053-2（2026-11-24 用户「这页大那页小」的 23px 根因，真机实测）：
   /inventory（Card 包裹）表格左缘 277 / 右缘 1865，/sales（裸表）260 / 1888 ——
   Card body 的 16px 内距让有卡页横向缩进 17/23px，同一套系统两种表格宽度。
   口径：Card body 内**只有一张表**时水平内距归零（表格自行贴边，左缘与裸表页一致）；
   body 内还有工具条/筛选时保留内距，让工具条与表格同缩进（不出现「工具条缩进、表格贴边」）。 */
.ios-page-content .ant-card > .ant-card-body:has(> .ant-table-wrapper) {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 容器下方留白统一：列表内容底到页面底固定 4px（2026-11-24 用户「容器还需要往下一点」：
   原 12px 叠上页面 padding 16 与表尾 padding，真机量出容器底距视口 41px，视觉上仍像「没铺满」） */
.ios-page-content > *:last-child { margin-bottom: 0 !important; }
.ios-page-content.ios-page-content { padding-bottom: 4px !important; }

/* ===== v6 R063 合计行吸底（2026-11-24 用户第三次点名「下方留白太多」的收口）=====
   容器撑满后，10 行数据只占上半截，如果合计行跟着数据走，底部就出现「数据 → 合计 → 一大段空 →
   分页」的三段断裂观感（真机 round-531 实测空白 ~150px）。
   竞品（金蝶/管家婆）的做法是把合计与分页钉在容器底，空白留在数据区里 —— 白底空白行看起来就是
   表格的一部分，而不是「表格没了」。这里用 sticky bottom 落地，不改任何页面代码。 */
.ios-page-content .ant-table-summary {
  position: sticky;
  bottom: 0;
  z-index: 2;
}
.ios-page-content .ant-table-summary > tr > td {
  background: var(--gs-surface, #fff);
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.06);
}
[data-theme='dark'] .ios-page-content .ant-table-summary > tr > td {
  background: #1c1c1e;
}
/* ===== v6.2 R065 双层页面容器去重（2026-11-24 用户「容器都溢出屏幕了」）=====
   MainLayout 已渲染一层 .ios-page-content（承载全站唯一内边距 20px 24px + gap），
   而 502 个页面又各自写了 <div className="ios-page-content">，形成「同容器套同容器」：
   内边距叠成 40px、gap 叠成 32px，纵向预算被吃掉；撑满算法按视口算就会越过视口底。
   口径：内层只做分组语义，不承担内边距；并有 min-height:0 允许其在滚动容器内收缩。 */
.ios-page-content .ios-page-content {
  padding: 0 !important;
  gap: 12px;
  min-height: 0;
  flex: 1 1 auto;
}

/* ===== v6.2 R066 分页器视觉重构（用户「右下方的UI有点单调元素不丰富，重构」）=====
   原形态：共 N 条 / ‹ 1 2 3 … 20 › / 10 条每页 / 跳至 [ ] 页 —— 元素等权、按钮小、无选中强调。
   重构口径：页码 32×32 圆角 8、选中紫底白字、上下页圆形；条数/跳转框统一 32 高描边；
   总条数加粗并与页码之间留 12px 分组间距。 */
.ios-page-content .ant-table-pagination.ant-pagination .ant-pagination-item,
.ios-page-content .ant-table-pagination.ant-pagination .ant-pagination-prev,
.ios-page-content .ant-table-pagination.ant-pagination .ant-pagination-next {
  min-width: 32px;
  height: 32px;
  line-height: 30px;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
.ios-page-content .ant-table-pagination.ant-pagination .ant-pagination-item-active {
  background: var(--primary-color, #7c5cff);
  border-color: var(--primary-color, #7c5cff);
}
.ios-page-content .ant-table-pagination.ant-pagination .ant-pagination-item-active a {
  color: #fff;
}
.ios-page-content .ant-table-pagination.ant-pagination .ant-pagination-total-text {
  font-weight: 600;
  margin-right: 12px;
  color: var(--text-primary, rgba(0, 0, 0, 0.88));
}
.ios-page-content .ant-table-pagination.ant-pagination .ant-pagination-options .ant-select,
.ios-page-content .ant-table-pagination.ant-pagination .ant-pagination-options .ant-select-selector {
  height: 32px;
  border-radius: 8px;
}
.ios-page-content .ant-table-pagination.ant-pagination .ant-pagination-options-quick-jumper input {
  height: 32px;
  border-radius: 8px;
}

/* ===== v6.2 R068 列表底部统计条（合计 + 分页器，钉在容器最下方）=====
   由 <TableSummaryBar/> 渲染，父级为 .gs-table-shell（Table 之后）。
   高度固定 52px，永不随数据行数改变位置；表格体由 tableFillManager 撑满且扣除本栏高度，
   因此本栏始终落在容器底、在视口内、不被截断。 */
.gs-sum-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 0 16px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13px;
}
.gs-sum-label { font-weight: 600; color: var(--text-primary, rgba(0, 0, 0, 0.88)); white-space: nowrap; }
.gs-sum-sub { margin-left: 6px; font-weight: 400; font-size: 12px; color: var(--text-tertiary, rgba(0, 0, 0, 0.45)); }
.gs-sum-values { display: flex; align-items: center; gap: 16px; min-width: 0; flex-wrap: wrap; row-gap: 2px; }
.gs-sum-value { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.gs-sum-title { font-style: normal; font-size: 12px; color: var(--text-tertiary, rgba(0, 0, 0, 0.45)); }
.gs-sum-value b { font-weight: 600; color: var(--text-primary, rgba(0, 0, 0, 0.88)); }
.gs-sum-spacer { flex: 1 1 auto; }
.gs-sum-pager { flex: 0 0 auto; }
[data-theme='dark'] .gs-sum-bar { background: #1c1c1e; border-top-color: rgba(255, 255, 255, 0.10); }
/* v6.2 R069：表体填充行线 —— 容器撑满而数据不足整页时，空白区不再是一块死白，
   而是延续 44px 行节奏的淡网格（纯 CSS 背景，不往 tbody 插任何 DOM，避开 React diff 复用坑）。
   偏移 38px = 表头高，让线从第一条数据行底开始。 */
.ios-page-content .gs-table-shell .ant-table-content {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(var(--gs-row-h, 44px) - 1px),
    rgba(0, 0, 0, 0.045) calc(var(--gs-row-h, 44px) - 1px),
    rgba(0, 0, 0, 0.045) var(--gs-row-h, 44px)
  );
  background-position: 0 var(--gs-head-h, 38px);
}
.ios-page-content .gs-table-shell .ant-table-tbody > tr > td { background: #fff; }
[data-theme='dark'] .ios-page-content .gs-table-shell .ant-table-tbody > tr > td { background: #1c1c1e; }
/* 统计条底色略深于表体，形成明确的「表尾」层次 */
.gs-sum-bar { background: #fafafa; }
[data-theme='dark'] .gs-sum-bar { background: #232326; }
.gs-table-shell { display: flex; flex-direction: column; min-height: 0; }
/* ===== v6.2 R070 数据行动态可视化（用户：「数据行的动态可视化效果」）=====
   1) 行内左缘 3px 状态色条（按订单状态着色，一眼分辨完成/待审/退款）
   2) 悬停：整行淡紫渐显 + 极轻上浮，配合 150ms 过渡（不改变行高，避免撑破制式） */
.ant-table-tbody > tr.ant-table-row { position: relative; transition: background-color 150ms ease; }
.ant-table-tbody > tr.ant-table-row > td:first-child { position: relative; }
.ant-table-tbody > tr.ant-table-row > td:first-child::before {
  content: '';
  position: absolute;
  left: 0; top: 7px; bottom: 7px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--gs-row-accent, transparent);
  transition: opacity 150ms ease;
  opacity: 0.85;
}
.gs-row-status-paid > td:first-child::before,
.gs-row-status-completed > td:first-child::before { --gs-row-accent: #16a34a; }
.gs-row-status-confirmed > td:first-child::before { --gs-row-accent: #7c5cff; }
.gs-row-status-pending_audit > td:first-child::before,
.gs-row-status-draft > td:first-child::before { --gs-row-accent: #f59e0b; }
.gs-row-status-refunded > td:first-child::before { --gs-row-accent: #ef4444; }
.gs-row-status-cancelled > td:first-child::before,
.gs-row-status-voided > td:first-child::before { --gs-row-accent: #9ca3af; }
.ant-table-tbody > tr.ant-table-row:hover > td { background-color: rgba(124, 92, 255, 0.055) !important; }
.ant-table-tbody > tr.ant-table-row:hover > td:first-child::before { opacity: 1; }

/* ===== v6.3 R077 工作台模块「隐藏」按钮语义色（2026-11-24）=====
   修前：EyeOff 隐藏按钮染 var(--error-color) 红色 —— 「隐藏」是可逆操作（底部「已隐藏」区一键恢复），
   红色把可逆动作渲染成危险删除，用户不敢点。
   修后：默认中性灰，悬停升到主文字色（说明"可操作但不危险"）；红色只留给真删除/不可逆动作。 */
.gs-mod-hide { color: var(--text-tertiary); transition: color 150ms ease; }
.gs-mod-hide:hover { color: var(--text-primary); }
[data-theme='dark'] .gs-mod-hide { color: var(--text-quaternary); }
/* ===== v6-B11 R133 浮层让位（2026-11-25 真机实证）=====
   修前：右下角「服务器在线/离线」悬浮牌（固定 right:12 bottom:10 z:var(--z-toast)）在弹层打开时
   压在抽屉右下角操作按钮上——实测供应商档案抽屉「登记签约结果」按钮 x1764..1901 y854..890，
   悬浮牌容器 x1829..1896 y869..900 正好叠住，ego 点击报「<div> intercepts pointer events」，
   真人鼠标点同一处同样无效（用户最反感的「按钮点不动」）。
   修后：任何 Drawer / Modal 打开期间，悬浮牌淡出且不接收指针事件，关闭后自动恢复。
   :has() 仅用于全局一次性判定，命中成本可忽略（祖先 1 层扫描）。 */
.server-status-pill { transition: opacity 160ms ease; }
body:has(.ant-drawer-open) .server-status-pill,
body:has(.ant-modal-wrap:not(.ant-modal-wrap-hidden)) .server-status-pill { opacity: 0; pointer-events: none; }
.after\:absolute::after {
  content: var(--tw-content);
  position: absolute;
}
.after\:bg-foreground::after {
  content: var(--tw-content);
  background-color: var(--text-primary);
}
.after\:opacity-0::after {
  content: var(--tw-content);
  opacity: 0;
}
.after\:transition-opacity::after {
  content: var(--tw-content);
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.hover\:text-foreground:hover {
  color: var(--text-primary);
}
.hover\:shadow-lg:hover {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.focus-visible\:border-ring:focus-visible {
  --tw-border-opacity: 1;
  border-color: rgb(var(--primary-rgb, 121 87 247) / var(--tw-border-opacity, 1));
}
.focus-visible\:outline-1:focus-visible {
  outline-width: 1px;
}
.focus-visible\:outline-ring:focus-visible {
  outline-color: rgb(var(--primary-rgb, 121 87 247) / 1);
}
.focus-visible\:ring-\[3px\]:focus-visible {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus-visible\:ring-ring\/50:focus-visible {
  --tw-ring-color: rgb(var(--primary-rgb, 121 87 247) / 0.5);
}
.disabled\:pointer-events-none:disabled {
  pointer-events: none;
}
.disabled\:opacity-50:disabled {
  opacity: 0.5;
}
.data-\[state\=inactive\]\:hidden[data-state="inactive"] {
  display: none;
}
.data-\[orientation\=horizontal\]\:flex-col[data-orientation="horizontal"] {
  flex-direction: column;
}
.data-\[variant\=line\]\:rounded-none[data-variant="line"] {
  border-radius: 0px;
}
.data-\[state\=active\]\:bg-background[data-state="active"] {
  background-color: var(--bg-container-solid);
}
.data-\[state\=active\]\:text-foreground[data-state="active"] {
  color: var(--text-primary);
}
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lg\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.dark\:data-\[state\=active\]\:border-input[data-state="active"]:where([data-theme="dark"], [data-theme="dark"] *) {
  --tw-border-opacity: 1;
  border-color: rgb(var(--input-rgb) / var(--tw-border-opacity, 1));
}
.dark\:data-\[state\=active\]\:bg-input\/30[data-state="active"]:where([data-theme="dark"], [data-theme="dark"] *) {
  background-color: rgb(var(--input-rgb) / 0.3);
}
.dark\:data-\[state\=active\]\:text-foreground[data-state="active"]:where([data-theme="dark"], [data-theme="dark"] *) {
  color: var(--text-primary);
}
.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*='size-']) {
  width: 1rem;
  height: 1rem;
}
.\[\&_svg\]\:pointer-events-none svg {
  pointer-events: none;
}
.\[\&_svg\]\:shrink-0 svg {
  flex-shrink: 0;
}
