/* ============================================================
   设计令牌（Design Tokens）—— 海喆资环ERP
   三套可选配色：pro 专业稳重 / tech 现代科技 / warm 温润细腻
   每套含 浅色(light) 与 深色(dark) 两种模式
   切换方式：<html data-theme="pro|tech|warm" data-mode="light|dark">
   ============================================================ */
:root {
  /* —— pro 专业稳重（默认浅色）—— */
  --blue: #1A3A5C;          /* 主色：深海藏青 */
  --blue2: #2C5282;         /* 次主色：按钮/链接 */
  --blue-light: #E8EDF2;    /* 主色浅染：表头/悬停底 */
  --accent: #D4965A;        /* 强调：低饱和金铜（主操作，呼应紫铜回收） */
  --accent2: #E2B06A;       /* 次强调：图标/圆点 */
  --bg: #E8EDF2;            /* 页面底 */
  --surface: #FFFFFF;       /* 卡片/面板/弹窗等表面 */
  --surface-2: #F1F4F8;     /* 次级表面：输入框/斑马/悬停 */
  --line: #DCE3EA;          /* 描边/分割线 */
  --text: #1E2A3A;          /* 主文字 */
  --muted: #5A6B7E;         /* 次文字 */
  --green: #3EAC7A;         /* 成功（哑光） */
  --red: #E2595A;           /* 危险（哑光朱砂） */
  --warning: #D9A84C;       /* 警告（芥末黄） */
  --info: #0EA5E9;          /* 信息（天空蓝） */
  --side-bg: linear-gradient(180deg, #1A3A5C 0%, #14283C 100%);
  --side-text: #ffffff;
  --side-muted: #9fb1c8;
  --shadow: 0 2px 10px rgba(26, 58, 92, .08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .25);
}
/* —— tech 现代科技 —— */
[data-theme="tech"] {
  --blue: #2C3E8F;          /* 克莱因蓝偏紫（记忆点） */
  --blue2: #4A5BD0;
  --blue-light: #EAECF7;
  --accent: #0EA5E9;        /* 天空蓝：交互/主操作 */
  --accent2: #7FD3F5;
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --surface-2: #F1F4F9;
  --line: #DCE2EC;
  --text: #1E2A3A;
  --muted: #5A6478;
  --green: #10B981;
  --red: #E2595A;
  --warning: #D9A84C;
  --info: #0EA5E9;
  --side-bg: linear-gradient(180deg, #2C3E8F 0%, #1E2A66 100%);
  --side-text: #ffffff;
  --side-muted: #AEB8E8;
  --shadow: 0 2px 10px rgba(44, 62, 143, .08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .25);
}
/* —— warm 温润细腻 —— */
[data-theme="warm"] {
  --blue: #5B6C7E;          /* 钢铁蓝灰 */
  --blue2: #7C8C9B;
  --blue-light: #EFEAE3;    /* 亚麻暖浅 */
  --accent: #D4A373;        /* 陶土橙：重要待办/主操作 */
  --accent2: #E2B98E;
  --bg: #F9F7F4;            /* 天然亚麻色 */
  --surface: #FFFFFF;
  --surface-2: #F4F1EC;
  --line: #E6E0D8;
  --text: #3A3530;          /* 暖调深字（禁用纯黑） */
  --muted: #6B635A;
  --green: #7FA874;         /* 鼠尾草绿 */
  --red: #C8795A;           /* 暖调哑光红 */
  --warning: #D9A84C;
  --info: #C98A4E;
  --side-bg: linear-gradient(180deg, #5B6C7E 0%, #3F4A57 100%);
  --side-text: #ffffff;
  --side-muted: #C2C8CE;
  --shadow: 0 2px 10px rgba(91, 108, 126, .10);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .22);
}
/* —— haizhe 海喆品牌（默认） —— */
[data-theme="haizhe"] {
  --blue: #0F6E56;          /* 主色：深宝石绿（海喆品牌色） */
  --blue2: #188A6A;         /* 次主色：按钮/链接 */
  --blue-light: #E4F0EB;    /* 主色浅染：表头/悬停底 */
  --accent: #C8862E;        /* 强调：低饱和紫铜金（主操作，呼应紫铜回收） */
  --accent2: #E0A85E;       /* 次强调：图标/圆点 */
  --bg: #EAF0ED;            /* 页面底（极淡绿灰） */
  --surface: #FFFFFF;       /* 卡片/面板/弹窗等表面 */
  --surface-2: #F1F5F2;     /* 次级表面：输入框/斑马/悬停 */
  --line: #D9E3DD;          /* 描边/分割线 */
  --text: #1C2A24;          /* 主文字（深绿灰，禁用纯黑） */
  --muted: #5A6B62;         /* 次文字 */
  --green: #3EAC7A;         /* 成功（哑光，小面积点缀） */
  --red: #E2595A;           /* 危险（哑光朱砂） */
  --warning: #D9A84C;       /* 警告（芥末黄） */
  --info: #0EA5E9;          /* 信息（天空蓝） */
  --side-bg: linear-gradient(180deg, #0F6E56 0%, #0A4A38 100%);  /* 侧栏：宝石绿渐变 */
  --side-text: #ffffff;
  --side-muted: #A9C9BC;
  --shadow: 0 2px 10px rgba(15, 110, 86, .10);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .22);
}

/* —— 深色模式：仅翻转「应用框架」令牌；弹窗/凭证保持浅色纸面以保证可读性 —— */
[data-mode="dark"] {
  --bg: #0F141B;
  --surface: #1A212B;
  --surface-2: #232C38;
  --line: #2C3744;
  --text: #E6ECF2;
  --muted: #93A1B0;
  --blue-light: #1E2A38;
  --shadow: 0 2px 10px rgba(0, 0, 0, .40);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .55);
}
[data-theme="pro"][data-mode="dark"]  { --blue:#4E7CB8; --blue2:#6FA0DC; --accent:#E2A85E; --accent2:#EBC27E; --green:#5BBE91; --red:#E87474; --warning:#E2B45E; }
[data-theme="tech"][data-mode="dark"] { --blue:#5B6BD6; --blue2:#8290EC; --accent:#37B4EF; --accent2:#7FD3F5; --green:#3FC08E; --red:#E87474; --warning:#E2B45E; }
[data-theme="warm"][data-mode="dark"] { --blue:#7E8E9E; --blue2:#9FAEBE; --accent:#E0B083; --accent2:#ECCBA6; --green:#8FBE83; --red:#E89077; --warning:#E2B45E; }
[data-theme="haizhe"][data-mode="dark"] {
  --bg: #0E1A15; --surface: #16221C; --surface-2: #1E2C25; --line: #28372E; --text: #E6F0EB; --muted: #93A89C; --blue-light: #163025;
  --blue: #4FB38C; --blue2: #6FC8A4; --accent: #D9A05A; --accent2: #E8BD7E; --green: #5BBE91; --red: #E87474; --warning: #E2B45E;
  --side-bg: linear-gradient(180deg, #0C5240 0%, #072E22 100%); --side-muted: #9BC3B3;
}

/* 弹窗 / 凭证 / 确认框：始终浅色纸面（不受深色模式翻转影响），故需把令牌重置回浅色 */
.modal, .confirm-box, .vch-card {
  --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #F4F6F9; --line: #DFE5EE;
  --text: #1E2A3A; --muted: #5A6B7E; --blue: #1A3A5C; --blue2: #2C5282; --blue-light: #E8EDF2;
  --accent: #D4965A; --accent2: #E0A93B; --green: #3EAC7A; --red: #E2595A; --warning: #D9A84C; --info: #0EA5E9;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  background: var(--bg); color: var(--text); font-size: 13px;
  transition: background .2s, color .2s;
}
#app { display: flex; height: 100vh; }

/* 侧边栏 */
.sidebar {
  width: 220px; background: var(--side-bg);
  color: var(--side-text); display: flex; flex-direction: column; flex-shrink: 0;
  transition: background .2s, width .2s;
  position: relative; z-index: 5;
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 3px 0 14px -8px rgba(0,0,0,.38);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand-logo { width: 34px; height: 34px; border-radius: 7px; background: #fff; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; gap: 2px; }
.brand-text b { font-size: 15px; font-weight: 700; letter-spacing: 1.5px; color: var(--side-text); font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
.brand-text span { font-size: 10.5px; color: var(--side-muted); letter-spacing: .5px; }
#nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.nav-group-title { color: var(--side-muted); font-size: 12px; font-weight: 600; padding: 13px 18px 5px; letter-spacing: 1px; cursor: pointer; display: flex; align-items: center; gap: 6px; user-select: none; }
.nav-group-title:hover { color: #aebfd4; }
.nav-group-title .chev { display: inline-block; width: 10px; font-size: 9px; transition: transform .15s; }
.nav-group-items.collapsed { display: none; }
.nav-item { padding: 10px 18px 10px 30px; cursor: pointer; display: flex; align-items: center; gap: 10px; color: #d7e0ec; border-left: 3px solid transparent; font-size: 14px; transition: background .15s, color .15s, box-shadow .15s; }
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: rgba(255,255,255,.11); border-left-color: var(--accent); color: #fff; font-weight: 600; }
.nav-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent2); }
.nav-item .nav-ico { width: 18px; height: 18px; flex: 0 0 18px; color: var(--accent2); transition: color .15s; }
.nav-item:hover .nav-ico { color: #fff; }
.nav-item.active .nav-ico { color: #fff; }
.nav-item .nav-label { white-space: nowrap; }
.nav-subhead { font-size: 11px; font-weight: 700; letter-spacing: .8px; color: var(--side-muted); padding: 12px 18px 4px; opacity: .82; }
.nav-item.sub { padding-left: 46px; font-size: 13.5px; color: #c7d3e3; }
.nav-item.sub:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.sub.active { background: rgba(255,255,255,.11); border-left-color: var(--accent); color: #fff; font-weight: 600; }
.sidebar.collapsed .nav-subhead { display: none; }
.sidebar-foot { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.12); display: flex; gap: 8px; align-items: center; }
.badge { background: var(--accent); color: #1a1a1a; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.ver { color: var(--side-muted); font-size: 11px; }

/* 主区 */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 54px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; box-shadow: var(--shadow); z-index: 2; transition: background .2s, border-color .2s; }
.crumb { font-size: 15px; font-weight: 600; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.user-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 3px 8px 3px 14px; margin-left: 12px; background: var(--surface-2); border-left: 1px solid var(--line); border-radius: 6px; transition: background .2s, color .2s; }
.user-badge .ub-name { font-weight: 600; color: var(--text); }
.user-badge .ub-role { color: #1f6feb; background: #e8f1ff; padding: 1px 7px; border-radius: 4px; font-size: 12px; }
.user-badge .ub-org { color: #2c3e8f; background: #eef3f8; padding: 1px 7px; border-radius: 4px; font-size: 12px; margin-right: 4px; }
.u-roles-box { display: flex; flex-wrap: wrap; gap: 3px 10px; max-width: 240px; }
.u-role-cb { font-size: 12px; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }
.u-role-cb input { margin: 0; }
.user-badge .ub-admin { color: #fff; background: #d24b4b; padding: 1px 7px; border-radius: 4px; font-size: 12px; }
.user-badge #logoutBtn { margin-left: 2px; padding: 2px 8px; }
/* 集团总主体切换器 */
.entity-switch { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; padding: 3px 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; }
.entity-switch.hidden { display: none; }
.entity-switch .es-label { font-size: 12px; color: var(--muted); }
.entity-switch .es-select { font-size: 13px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; max-width: 180px; cursor: pointer; }
.entity-switch .es-select:focus { outline: 2px solid var(--accent, #2c3e8f); outline-offset: 1px; }
@media (max-width: 767px) { .entity-switch { margin-left: 6px; padding: 2px 5px; } .entity-switch .es-select { max-width: 120px; } }
.rbac-tbl { font-size: 12px; table-layout: fixed; min-width: 900px; border-collapse: separate; }
.rbac-tbl th, .rbac-tbl td { text-align: left; vertical-align: top; padding: 6px 8px; border: 1px solid var(--line); }
.rbac-tbl thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); }
.rbac-tbl .rbac-role { text-align: left; font-weight: 600; white-space: nowrap; background: var(--surface-2); position: sticky; left: 0; z-index: 1; }
.rbac-tbl thead th.rbac-role { z-index: 3; }
.rbac-cell { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; align-items: center; }
.rbac-cb { font-size: 11px; color: var(--muted); white-space: nowrap; cursor: pointer; display: inline-flex; align-items: center; }
.rbac-cb input { margin-right: 4px; vertical-align: middle; }
.rbac-scroll { max-height: 58vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.rbac-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.rbac-filter { padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; font-size: 12.5px; min-width: 180px; background: var(--surface); color: var(--text); }
.rbac-filter:focus { outline: none; border-color: var(--blue2); }
.rbac-legend { font-size: 11.5px; color: var(--muted); }
.rbac-quick { margin-left: auto; display: flex; gap: 8px; }
.rbac-rowall { margin-left: 6px; font-size: 10.5px; color: var(--blue2); background: none; border: none; cursor: pointer; text-decoration: underline; padding: 0; }
.content { flex: 1; overflow: auto; padding: 18px 20px 40px; }

/* 表格视图：工具栏/提示常驻顶部，表格区占满剩余窗口高度，横向滚动条贴在窗口底部 */
.content.table-view { display: flex; flex-direction: column; overflow: hidden; padding: 16px 18px 6px; }
.content.table-view > .toolbar,
.content.table-view > .hint,
.content.table-view > .hint-inline { flex: 0 0 auto; }
.content.table-view > .table-wrap { flex: 1 1 auto; min-height: 0; overflow: auto; }
.content.table-view > .panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.content.table-view > .panel > h3 { flex: 0 0 auto; margin-bottom: 10px; }
.content.table-view > .panel > .table-wrap { flex: 1 1 auto; min-height: 0; overflow: auto; }

/* 按钮 */
.btn { border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 7px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { border-color: var(--blue2); color: var(--blue2); }
.btn-primary { background: var(--blue2); border-color: var(--blue2); color: #fff; }
.btn-primary:hover { background: var(--blue); color: #fff; }
.btn-danger { background: var(--surface); border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.hidden { display: none !important; }

/* 仪表盘 */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.card { background: var(--surface); border-radius: 10px; padding: 16px 18px; box-shadow: var(--shadow); border-left: 4px solid var(--blue2); transition: background .2s, box-shadow .2s; }
.card .k { color: var(--muted); font-size: 12px; }
.card .v { font-size: 24px; font-weight: 700; margin-top: 6px; color: var(--blue); }
.card .v.small { font-size: 20px; }
.card.warn { border-left-color: var(--accent); }
.card.warn .v { color: var(--accent); }
.panel { background: var(--surface); border-radius: 10px; box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 16px; transition: background .2s, box-shadow .2s; }
.panel h3 { margin: 0 0 12px; font-size: 14px; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }

/* 表格 */
.toolbar { display: flex; gap: 10px; margin-bottom: 12px; align-items: center; }
.toolbar input { padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; width: 220px; background: var(--surface); color: var(--text); }
.table-wrap { background: var(--surface); border-radius: 10px; box-shadow: var(--shadow); overflow: auto; transition: background .2s, box-shadow .2s; }
table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { background: var(--blue-light); color: var(--blue); position: sticky; top: 0; font-weight: 600; }
tbody tr:hover { background: var(--surface-2); }
td.auto { color: var(--muted); }
.tag { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 11px; background: var(--surface-2); color: var(--blue2); }
.row-actions button { border: none; background: none; color: var(--blue2); cursor: pointer; margin-right: 8px; }
.row-actions button.del { color: var(--red); }

/* 冻结首列（物料编码等标识列）与「操作」列：表列过多时横向滚动仍始终可见 */
thead th:first-child, tbody td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
thead th:first-child { background: var(--blue-light); z-index: 5; }
thead th.act-col, tbody td.row-actions { position: sticky; right: 0; z-index: 2; background: var(--surface); }
thead th.act-col { background: var(--blue-light); z-index: 6; }
tbody tr:hover td:first-child, tbody tr:hover td.row-actions { background: var(--surface-2); }
thead th:first-child, tbody td:first-child { box-shadow: 3px 0 6px rgba(26,58,92,.07); }
thead th.act-col, tbody td.row-actions { box-shadow: -3px 0 6px rgba(26,58,92,.07); }

/* 排序上下箭头 */
.btn-move { border: 1px solid var(--line); background: var(--surface); color: var(--blue2); cursor: pointer; border-radius: 5px; width: 22px; height: 22px; line-height: 1; font-size: 13px; margin: 0 0 0 4px; padding: 0; vertical-align: middle; }
.btn-move:hover { background: var(--blue-light); }
.sort-group { display: inline-flex; gap: 0; margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--line); }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(20,30,45,.45); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal { background: var(--surface); width: 720px; max-width: 94vw; max-height: 90vh; border-radius: 10px; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.modal-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 600; letter-spacing: .5px; color: var(--text); }
.modal-head .x { border: none; background: none; font-size: 22px; cursor: pointer; color: var(--muted); }
.modal-body { padding: 16px 18px; overflow: auto; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; color: var(--muted); }
.field label .req { color: var(--red); margin-left: 2px; }
.field label .auto-flag { color: var(--accent); font-size: 11px; margin-left: 6px; }
.field input, .field select, .field textarea { padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; font-family: inherit; background: var(--surface); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue2); }
.field input[readonly] { background: var(--surface-2); color: var(--muted); }

/* 提示 */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(16px); background: #1E2A3A; color: #fff; padding: 11px 20px; border-radius: 9px; z-index: 999; box-shadow: var(--shadow-lg); font-size: 13.5px; opacity: 0; pointer-events: none; transition: transform .22s ease, opacity .22s ease; display: flex; align-items: center; gap: 9px; max-width: 90vw; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.85); flex-shrink: 0; }
.toast-info { background: #1E2A3A; }
.toast-ok { background: var(--green); }
.toast-ok::before { background: #fff; }
.toast-err { background: var(--red); }
.toast-err::before { background: #fff; }
.toast-warn { background: var(--warning); color: #2a1d05; }
.toast-warn::before { background: #2a1d05; }

/* 新增：分类排版 / 操作丰富度 */
.btn-mini { padding: 5px 10px; font-size: 12px; border-radius: 6px; border: 1px dashed var(--blue2); background: var(--surface); color: var(--blue2); cursor: pointer; }
.btn-mini:hover { background: var(--blue-light); }
.field.with-btn { gap: 6px; }
.hint { background: var(--blue-light); border: 1px solid var(--line); color: var(--blue); padding: 8px 12px; border-radius: 8px; font-size: 12.5px; margin-bottom: 12px; }

/* ===== Phase 3 交互增强：动态筛选栏 + 微动效 ===== */
.filter-dims { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.filter-dims select { min-width: 112px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 13px; font-family: inherit; }
.filter-dims select:focus { outline: none; border-color: var(--blue2); }
.toolbar .cnt { margin-left: auto; white-space: nowrap; }
.btn[disabled], .btn:disabled, .btn-primary[disabled] { opacity: .55; cursor: not-allowed; }
/* 卡片/行入场微动效（克制，零依赖） */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dash-card { animation: fadeUp .38s ease both; }
.dash-card:nth-child(2) { animation-delay: .04s; }
.dash-card:nth-child(3) { animation-delay: .08s; }
.dash-card:nth-child(4) { animation-delay: .12s; }
.dash-card:nth-child(5) { animation-delay: .16s; }
.dash-card:nth-child(6) { animation-delay: .20s; }
.kpi-card { animation: fadeUp .32s ease both; }
.kpi-card:nth-child(2) { animation-delay: .05s; }
.kpi-card:nth-child(3) { animation-delay: .10s; }
.kpi-card:nth-child(4) { animation-delay: .15s; }
tbody tr { transition: background .12s ease; }
.tag-wip { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 11px; background: #fff4e6; color: #b9740e; border: 1px solid #f3d9b0; margin-left: 4px; }
.toolbar .cnt { color: var(--muted); font-size: 12px; }
.act-col { width: 210px; }
.row-actions button { border: none; background: none; color: var(--blue2); cursor: pointer; margin-right: 8px; font-size: 12.5px; }
.modal-sm { width: 480px; }
.modal-sm .form-grid { grid-template-columns: 1fr 1fr; }

/* 系统参数 / 设置 */
.settings-form { max-width: 860px; }
.hint-inline { font-size: 11.5px; color: var(--muted); }
.wh-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.wh-row .wh-code { width: 120px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); }
.wh-row .wh-name { flex: 1; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); }
.wh-row .wh-type { width: 240px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); }
.sq-total td { font-weight: 700; background: var(--surface-2); border-top: 2px solid var(--line); }
/* 开关 */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; vertical-align: middle; margin-right: 6px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; cursor: pointer; inset: 0; background: #c9d2dd; border-radius: 24px; transition: .2s; }
.switch .slider::before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: var(--blue2); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.field .switch { margin: 4px 0; }
/* 统计卡通用 */
.cards .card .v { font-size: 22px; }

/* 辅助资料 */
.aux-sec { max-width: 520px; }
.aux-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.aux-row { display: flex; gap: 8px; align-items: center; }
.aux-row label { width: 110px; font-size: 12px; color: var(--muted); flex-shrink: 0; }
.aux-row input { flex: 1; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; font-family: inherit; background: var(--surface); color: var(--text); }
.aux-row input:focus { outline: none; border-color: var(--blue2); }
/* 编码规则段编辑器：窄屏允许横向滚动，避免固定宽度输入框挤成一团 */
.seg-list { overflow-x: auto; padding-bottom: 6px; }
.seg-row { flex-wrap: nowrap; min-width: max-content; }
.aux-empty { color: var(--muted); font-size: 12.5px; padding: 4px 0; }

/* 导航子分组小标题 */
.nav-sub { padding: 9px 18px 3px 30px; margin-top: 6px; font-size: 10.5px; color: #6f86a3; letter-spacing: 1px; border-top: 1px dashed rgba(255,255,255,.10); }
.nav-group-items .nav-sub:first-child { margin-top: 0; border-top: none; }
/* 三级导航：二级分类节点（可折叠，聚合同类模块） */
.nav-cat { display: flex; align-items: center; gap: 9px; user-select: none; cursor: pointer; margin: 6px 12px; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; color: #c7d3e3; letter-spacing: .3px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); transition: background .15s, color .15s, border-color .15s; }
.nav-cat:first-child { margin-top: 8px; }
.nav-cat:hover { background: rgba(255,255,255,.09); color: #fff; }
.nav-cat.open { color: #fff; border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.08); }
.nav-cat.active { color: #fff; border-color: var(--accent); border-left: 3px solid var(--accent); background: rgba(255,255,255,.08); }
.nav-cat .nav-ico { width: 17px; height: 17px; flex: 0 0 17px; color: var(--accent2); }
.nav-cat .nav-label { flex: 1; }
.nav-cat .nav-arrow { font-size: 16px; line-height: 1; color: var(--accent2); transition: transform .18s; }
.nav-cat.open .nav-arrow { transform: rotate(90deg); }
.nav-cat-items .nav-item { padding-left: 46px; }
.nav-cat-items .nav-item.lv3 .nav-ico { width: 15px; height: 15px; flex: 0 0 15px; }

/* 多级导航向右飞出面板 */
.nav-flyout { display: none; position: fixed; z-index: 95; min-width: 212px; max-width: 264px; padding: 8px; color: #fff; border: 1px solid rgba(255,255,255,.12); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--side-bg); box-shadow: 8px 8px 26px -10px rgba(0,0,0,.5); max-height: calc(100vh - 24px); overflow-y: auto; animation: flyIn .14s ease-out; transform-origin: left center; }
.nav-flyout.show { display: block; }
@keyframes flyIn { from { opacity: 0; transform: translateX(-8px) scale(.98); } to { opacity: 1; transform: none; } }
.nav-flyout .fly-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #fff; padding: 6px 10px 9px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.12); letter-spacing: .3px; }
.nav-flyout .fly-ico { width: 17px; height: 17px; flex: 0 0 17px; color: var(--accent2); }
.nav-flyout .fly-list { display: flex; flex-direction: column; gap: 2px; }
.nav-flyout .fly-item { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: #d7e0ec; transition: background .14s, color .14s, box-shadow .14s; }
.nav-flyout .fly-item .nav-ico { width: 17px; height: 17px; flex: 0 0 17px; color: var(--accent2); }
.nav-flyout .fly-item:hover { background: rgba(255,255,255,.09); color: #fff; }
.nav-flyout .fly-item.active { background: rgba(255,255,255,.12); box-shadow: inset 3px 0 0 var(--accent); color: #fff; font-weight: 600; }

/* 系统资料配置表 */
table.kv { background: var(--surface); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; width: 100%; }
table.kv th, table.kv td { padding: 9px 10px; border: 1px solid var(--line); }
table.kv th { background: var(--blue-light); color: var(--blue); font-weight: 600; }
table.kv input, table.kv select { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 12.5px; font-family: inherit; background: var(--surface); color: var(--text); }
table.kv input:focus, table.kv select:focus { outline: none; border-color: var(--blue2); }
table.kv td .btn-mini { margin: 0; }

/* 系统参数 / 辅助资料 / 编码规则 视觉统一美化 */
.settings-form .panel, .aux-sec, .panel.aux-sec { box-shadow: var(--shadow); }
.aux-sec h3 { margin: 0 0 12px; font-size: 14px; color: var(--blue); border-left: 3px solid var(--accent); padding-left: 9px; }
.user-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 760px) { .user-cols { grid-template-columns: 1fr; } }
/* 子页统一头部（用户与权限等拆分页，保证版型一致） */
.page-head { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 16px; }
.page-head-main { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.page-head-title { font-size: 18px; font-weight: 700; color: var(--text); }
.page-head-path { font-size: 12px; color: var(--muted); letter-spacing: .5px; }
.page-head-desc { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.7; }
/* 审批看板：岗位职级定权分数提示 + 审批意见窗口(#267) */
.score-hint { display: inline-block; margin-top: 2px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.score-hint { color: var(--accent); }
.ap-opinion-ov { position: fixed; inset: 0; background: rgba(20, 28, 38, 0.46); display: flex; align-items: center; justify-content: center; z-index: 1200; }
.ap-opinion-box { width: min(440px, 92vw); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 14px; box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.ap-opinion-t { font-weight: 600; margin-bottom: 10px; color: var(--text); }
.ap-opinion-ta { width: 100%; min-height: 88px; resize: vertical; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text); font: inherit; }
.ap-opinion-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }

/* 用户与权限中心：单入口 + 4 页签（D4 #280） */
.uc-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.uc-tab { appearance: none; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); padding: 8px 14px; border-radius: 9px; cursor: pointer; font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: all .15s; }
.uc-tab:hover { border-color: var(--accent); color: var(--accent); }
.uc-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.uc-tab-scope { font-size: 10.5px; font-weight: 500; padding: 1px 6px; border-radius: 20px; background: rgba(0,0,0,.07); color: inherit; opacity: .82; }
.uc-tab-body { min-height: 200px; }
.uc-banner { background: #fff4f4; border: 1px solid #f3c9c9; color: #b03a3a; border-radius: 9px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; line-height: 1.6; }
/* 我的工作台（自选项）/ 常用模块勾选 */
.nav-workbench { border-left-color: var(--accent) !important; background: rgba(255,255,255,.07); }
.nav-workbench .nav-ico { color: var(--accent2); }
.nav-workbench.active .nav-ico { color: #fff; }
.wb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.wb-head h2 { margin: 0; font-size: 20px; }
.wb-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.wb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.wb-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 14px; text-align: center; cursor: pointer; transition: .18s; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wb-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.wb-ico { width: 42px; height: 42px; color: var(--accent); display: flex; align-items: center; justify-content: center; }
.wb-ico .nav-ico { width: 38px; height: 38px; }
.wb-name { font-weight: 600; font-size: 15px; }
.wb-group { font-size: 12px; color: var(--muted); }
.wb-empty { text-align: center; padding: 56px 20px; }
.wb-empty-ico { width: 60px; height: 60px; margin: 0 auto 14px; color: var(--accent); opacity: .55; }
.wb-empty-ico .nav-ico { width: 60px; height: 60px; }
.wb-empty h2 { margin: 0 0 8px; }
.wb-empty p { color: var(--muted); max-width: 400px; margin: 0 auto 18px; line-height: 1.6; }
.fav-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 8px; }
.fav-item { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--surface); transition: .15s; }
.fav-item:hover { border-color: var(--accent); }
.fav-item.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.fav-ico { width: 20px; height: 20px; flex: none; color: var(--accent); display: flex; align-items: center; }
.fav-ico .nav-ico { width: 18px; height: 18px; }
.fav-name { font-weight: 600; font-size: 14px; flex: 1; }
.fav-group { font-size: 11px; color: var(--muted); }
@media (max-width: 640px) { .wb-grid { grid-template-columns: repeat(2, 1fr); } .fav-list { grid-template-columns: repeat(2, 1fr); } }
.two-col .aux-sec { margin-bottom: 0; }


/* ===== 主从明细编辑器 ===== */
.detail-editor { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line); }
.detail-title { font-weight: 600; font-size: 13px; color: var(--blue); margin-bottom: 8px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.detail-title .hint-inline { font-weight: 400; font-size: 11.5px; color: var(--muted); }
.detail-tbl { width: 100%; border-collapse: collapse; font-size: 12px; background: var(--surface); }
.detail-tbl th, .detail-tbl td { border: 1px solid var(--line); padding: 4px 6px; text-align: left; vertical-align: middle; }
.detail-tbl thead th { background: var(--blue-light); color: var(--blue); font-weight: 600; }
.detail-tbl th.auto, .detail-tbl td.auto-cell { background: var(--surface-2); color: var(--blue2); }
.detail-tbl td.auto-cell span { font-variant-numeric: tabular-nums; }
.detail-tbl input, .detail-tbl select { width: 100%; min-width: 90px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; background: var(--surface); color: var(--text); }
.detail-tbl input:focus, .detail-tbl select:focus { outline: none; border-color: var(--blue2); }
.detail-editor .btn-mini { margin-top: 8px; }
.detail-tbl .del { color: var(--red); }

/* ===== 主从单据分区标题 ===== */
.form-sec-title { font-weight: 700; font-size: 13px; color: var(--blue); margin: 14px 0 8px; padding-left: 9px; border-left: 3px solid var(--blue); line-height: 1.3; }

/* ===== 审批流程图 ===== */
.ap-flow { display: flex; align-items: center; gap: 0; padding: 6px 0 14px; flex-wrap: wrap; }
.ap-node { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.ap-dot { width: 18px; height: 18px; border-radius: 50%; background: #d7dde6; border: 2px solid #c2cad6; margin-bottom: 5px; transition: all .2s; }
.ap-label { font-size: 12px; color: var(--muted); }
.ap-node.active .ap-dot { background: #f0a830; border-color: #e0911e; box-shadow: 0 0 0 4px #fdeccd; }
.ap-node.active .ap-label { color: #c97f0a; font-weight: 700; }
.ap-node.done .ap-dot { background: var(--green); border-color: #2f8f5b; }
.ap-node.done .ap-label { color: #2f8f5b; }
.ap-node.done-final .ap-dot { background: #2f8f5b; border-color: #2f8f5b; box-shadow: 0 0 0 4px #d8f0e3; }
.ap-node.done-final .ap-label { color: #1f7a47; font-weight: 700; }
.ap-node.rejected .ap-dot { background: var(--red); border-color: #b53b3b; box-shadow: 0 0 0 4px #f7dcdc; }
.ap-node.rejected .ap-label { color: #b53b3b; font-weight: 700; }
.ap-arrow { color: #b5bfca; font-size: 12px; padding: 0 6px; margin-bottom: 18px; min-width: 34px; text-align: center; }
.ap-arrow.done { color: var(--green); font-weight: 700; }
.badge.ok { background: #d8f0e3; color: #1f7a47; }
.badge.no { background: #f7dcdc; color: #b53b3b; }
.badge.warn { background: #fdeccd; color: #c97f0a; }

/* ===== 审批轨迹 ===== */
.ap-trail { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.ap-trail-title { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.ap-trail-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 3px 0; color: var(--muted); }
.ap-trail-dot { width: 8px; height: 8px; border-radius: 50%; background: #b5bfca; flex: none; }
.ap-trail-dot.ok { background: var(--green); }
.ap-trail-dot.no { background: var(--red); }
.ap-trail-act { font-weight: 600; color: var(--text); min-width: 92px; }
.ap-trail-by { min-width: 64px; }
.ap-trail-time { color: var(--muted); margin-left: auto; }

/* ===== 高危操作二次确认弹窗 ===== */
.confirm-mask { position: fixed; inset: 0; background: rgba(20,28,38,.45); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.confirm-box { background: var(--surface); color: var(--text); border-radius: 10px; width: 420px; max-width: 92vw; box-shadow: var(--shadow-lg); overflow: hidden; animation: cpop .15s ease-out; }
@keyframes cpop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.confirm-head { padding: 14px 18px; font-weight: 700; font-size: 15px; background: #fbeaea; color: #b53b3b; border-bottom: 1px solid #f3d3d3; }
.confirm-head-plain { background: var(--surface-2); color: var(--text); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.confirm-x { background: transparent; border: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.confirm-x:hover { color: var(--text); background: var(--surface-3, #eef2f6); }
.confirm-body { padding: 16px 18px; font-size: 13px; color: var(--text); line-height: 1.7; }
.confirm-body .kv { background: #f7f9fb; border: 1px solid #eef2f6; border-radius: 6px; padding: 8px 10px; margin: 8px 0; font-size: 12.5px; }
.confirm-body .kv b { color: #23303f; }
.confirm-warn { color: #b53b3b; font-size: 12px; margin-top: 4px; }
.confirm-input { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #d7dee7; border-radius: 6px; margin-top: 8px; font-size: 13px; }
.confirm-input:focus { outline: none; border-color: #c97f0a; }
.confirm-actions { display: flex; gap: 10px; padding: 12px 18px; border-top: 1px solid #eef2f6; justify-content: flex-end; }
.confirm-actions button { padding: 8px 18px; border-radius: 6px; border: 1px solid #cfd8e3; background: #fff; cursor: pointer; font-size: 13px; }
.confirm-actions .danger { background: #d24b4b; border-color: #b53b3b; color: #fff; }
.confirm-actions .danger:disabled { background: #e7b6b6; border-color: #e7b6b6; cursor: not-allowed; }
.confirm-actions .primary { background: var(--blue2, #2f6fb0); border-color: var(--blue2, #2f6fb0); color: #fff; }
.confirm-actions .primary:hover { filter: brightness(1.05); }
.confirm-check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.confirm-check input { width: 16px; height: 16px; }

/* ===== 财务凭证 ===== */
.vch-card { background: #fff; border: 1px solid #e6ebf1; border-radius: 10px; margin: 12px 0; overflow: hidden; box-shadow: 0 2px 8px rgba(30,50,80,.05); }
.vch-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 14px; background: #f5f8fc; border-bottom: 1px solid #eef2f6; font-size: 12.5px; }
.vch-no { font-weight: 700; color: #23303f; font-size: 14px; }
.vch-date { color: #5a6b7e; }
.vch-src { color: #6b7b8c; }
.vch-sum { margin-left: auto; color: #2f9e57; font-variant-numeric: tabular-nums; }
.vch-bal { padding: 1px 8px; border-radius: 10px; font-size: 11.5px; }
.vch-bal.ok { background: #e6f6ec; color: #2f9e57; }
.vch-bal.bad { background: #fdeaea; color: #d24b4b; }
.vch-status { padding: 1px 8px; border-radius: 10px; background: #eef2f6; color: #5a6b7e; font-size: 11.5px; }
.vch-summary { padding: 8px 14px; font-size: 12.5px; color: #3a4757; border-bottom: 1px solid #f2f5f9; }
.vch-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.vch-tbl th { text-align: left; padding: 7px 14px; color: #8a98a8; font-weight: 500; background: #fafbfd; border-bottom: 1px solid #eef2f6; }
.vch-tbl td { padding: 7px 14px; border-bottom: 1px solid #f6f8fb; }
.vch-tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.vc-side { font-weight: 600; width: 44px; }
.vc-side.dr { color: #2c5282; }
.vc-side.cr { color: #b53b3b; }
.vch-list:empty::after { content: ''; }

/* ===== P2 财务报表雏形 ===== */
.warn-banner { background: #fff7e6; border: 1px solid #ffe0a3; color: #8a5a00; padding: 10px 14px; border-radius: 8px; font-size: 12.5px; line-height: 1.6; margin: 10px 0; }
.warn-banner.small { font-size: 11.5px; padding: 7px 10px; }
.rpt-switch-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.rpt-tag { padding: 3px 12px; border-radius: 14px; font-size: 12px; font-weight: 600; }
.rpt-tag.on { background: #e6f6ec; color: #2f9e57; border: 1px solid #b7e3c6; }
.rpt-tag.off { background: #f0f2f5; color: #8a98a8; border: 1px solid #dfe4ea; }
.empty-hint { color: #8a98a8; font-size: 13px; padding: 18px 4px; background: var(--surface-2); border: 1px dashed var(--line); border-radius: 8px; margin: 10px 0; }
/* 表格空状态插画 */
.empty-state-cell { text-align: center; padding: 48px 20px; vertical-align: middle; }
.empty-state-cell .es-ico { width: 74px; height: 74px; margin: 0 auto 10px; color: #c2ccd8; display: block; }
.empty-state-cell .es-title { font-size: 15px; font-weight: 600; color: var(--text); }
.empty-state-cell .es-sub { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.rpt-ok { color: #2f9e57; font-weight: 700; }
.rpt-bad { color: #e0533b; font-weight: 700; }
.rpt-summary { margin: 14px 0; padding: 10px 14px; background: var(--surface-2); border-radius: 8px; font-size: 13px; color: var(--text); }
.rpt-summary b { color: var(--text); }
.rpt-sub { margin: 16px 0 8px; font-size: 14px; color: var(--text); border-left: 3px solid var(--info); padding-left: 8px; }
.row-warn { background: #fff5f2; }
.row-warn td { color: #c0392b; }
.muted { color: var(--muted); }
.tbl .strong td { font-weight: 700; background: var(--surface-2); }
#openingList input { padding: 4px 6px; border: 1px solid #cfd8e3; border-radius: 4px; }
.loading { color: var(--muted); padding: 12px 4px; }

/* ===== 主题切换器 ===== */
.theme-switch { position: relative; }
.theme-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 7px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; line-height: 1.2; transition: border-color .15s, background .2s, color .2s; }
.theme-btn:hover { border-color: var(--blue2); color: var(--blue2); }
.theme-btn .sw-ico { width: 16px; height: 16px; color: var(--accent); }
.theme-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 36px rgba(20,30,45,.18); padding: 12px; z-index: 80; }
.theme-panel h4 { margin: 2px 4px 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.theme-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; color: var(--text); transition: background .15s, border-color .15s; }
.theme-opt:hover { background: var(--surface-2); }
.theme-opt.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.theme-opt .to-sw { width: 26px; height: 26px; border-radius: 6px; flex: 0 0 26px; border: 1px solid var(--line); }
.theme-opt .to-name { font-size: 13px; color: var(--text); font-weight: 600; display: block; }
.theme-opt .to-desc { font-size: 11px; color: var(--muted); }
.theme-sep { height: 1px; background: var(--line); margin: 10px 2px; }
.theme-mode { display: flex; gap: 8px; padding: 0 4px; }
.theme-mode button { flex: 1; padding: 7px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; cursor: pointer; font-size: 12.5px; color: var(--text); transition: border-color .15s, background .2s, color .2s; }
.theme-mode button.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--text); font-weight: 600; }

/* ===== Phase 2 仪表盘重构：KPI 英雄行 / 模块化网格 / 回收链路 ===== */
.kpi-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.kpi-card { background: var(--surface); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); border: 1px solid var(--line); border-top: 3px solid var(--blue2); transition: transform .15s, box-shadow .15s, background .2s; }
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.kpi-card.accent { border-top-color: var(--accent); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-label { color: var(--muted); font-size: 12.5px; }
.kpi-num { font-family: ui-monospace, "Roboto Mono", "SFMono-Regular", Menlo, monospace; font-size: 30px; font-weight: 700; margin-top: 8px; color: var(--blue); letter-spacing: .5px; line-height: 1.1; }
.kpi-card.accent .kpi-num { color: var(--accent); }
.kpi-unit { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.kpi-sub { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 3px rgba(0,0,0,.04); }
.status-dot.ok { background: var(--green); }
.status-dot.warn { background: var(--warning); }
.status-dot.accent { background: var(--accent); }
.status-dot.info { background: var(--info); }
.status-dot.danger { background: var(--red); }

.kpi-mini-row { display: flex; flex-wrap: wrap; gap: 10px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; margin-bottom: 16px; }
.kpi-mini { display: flex; flex-direction: column; }
.km-k { font-size: 11px; color: var(--muted); }
.km-v { font-size: 15px; font-weight: 600; color: var(--text); font-family: ui-monospace, "Roboto Mono", Menlo, monospace; }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; align-items: stretch; }
.dash-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; transition: background .2s, box-shadow .2s; }
.dash-card.accent { border-top: 3px solid var(--accent); }
.dash-card-h { display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; user-select: none; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.dash-card-h:hover { background: var(--blue-light); }
.dc-ico { width: 18px; height: 18px; color: var(--blue2); flex-shrink: 0; }
.dc-ico svg { width: 18px; height: 18px; display: block; }
.dc-title { font-size: 14px; font-weight: 600; flex: 1; }
.dc-caret { color: var(--muted); font-size: 12px; transition: transform .15s; }
.dash-card.collapsed .dash-card-b { display: none; }
.dash-card.collapsed .dash-card-h { border-bottom-color: transparent; }
.dash-card-b { padding: 14px 16px; }

/* 回收链路 */
.chain { display: flex; align-items: stretch; gap: 0; flex-wrap: nowrap; overflow-x: auto; }
.chain-stage { flex: 0 0 142px; min-width: 142px; border: 1px solid var(--cc); border-radius: 10px; padding: 10px 12px; cursor: pointer; background: var(--surface); transition: transform .15s, box-shadow .15s; }
.chain-stage:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cs-head { display: flex; align-items: center; gap: 6px; color: var(--cc); font-weight: 600; font-size: 12.5px; }
.cs-ico { width: 18px; height: 18px; flex-shrink: 0; }
.cs-val { font-family: ui-monospace, "Roboto Mono", Menlo, monospace; font-size: 18px; font-weight: 700; color: var(--text); margin-top: 6px; }
.cs-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.cs-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.cs-chip { font-size: 10.5px; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.cs-go { font-size: 11px; color: var(--cc); margin-top: 8px; font-weight: 600; }
.chain-arrow { display: flex; align-items: center; justify-content: center; color: var(--muted); width: 24px; flex-shrink: 0; }
.chain-arrow svg { width: 18px; height: 18px; }

/* 库存结构条 */
.lv-list { display: flex; flex-direction: column; gap: 8px; }
.lv-row { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 10px; font-size: 12px; }
.lv-name { font-weight: 600; white-space: nowrap; }
.lv-bar { background: var(--surface-2); border-radius: 4px; height: 14px; overflow: hidden; }
.lv-fill { height: 100%; border-radius: 4px; transition: width .4s; }
.lv-num { color: var(--muted); white-space: nowrap; font-family: ui-monospace, "Roboto Mono", Menlo, monospace; }

/* 账龄 */
.aging-title { font-weight: 600; margin-bottom: 8px; }
.aging-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.aging-lab { width: 56px; font-size: 11px; color: var(--muted); flex-shrink: 0; }
.aging-track { flex: 1; background: var(--surface-2); border-radius: 4px; height: 12px; overflow: hidden; }
.aging-fill { height: 100%; border-radius: 4px; }
.aging-amt { width: 72px; text-align: right; font-size: 11px; font-family: ui-monospace, "Roboto Mono", Menlo, monospace; color: var(--muted); }
.aging-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

/* 近期业务 / 预警 */
.rb-row { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.rb-date { color: var(--muted); font-size: 11px; }
.rb-text { color: var(--muted); font-size: 12px; margin-top: 2px; }
.empty-inline { color: var(--muted); padding: 10px 0; }
.warn-block { margin-bottom: 10px; }
.warn-row { padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.warn-scroll { max-height: 150px; overflow: auto; }
.ok-line { color: var(--green); padding: 4px 0; font-size: 12.5px; }
.pend-box { padding: 8px 12px; background: var(--blue-light); border-radius: 6px; font-size: 12.5px; margin-top: 6px; }
.c-warn { color: var(--warning); }
.c-danger { color: var(--red); }

/* 响应式 */
@media (max-width: 1100px) {
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .lv-row { grid-template-columns: 92px 1fr; }
  .lv-num { grid-column: 1 / -1; }
  .chain { flex-direction: column; overflow-x: visible; }
  .chain-stage { flex: 1 1 auto; min-width: 0; }
  .chain-arrow { width: 100%; transform: rotate(90deg); }
}

/* ===== Phase 5 响应式：侧栏折叠 / 手机抽屉 / 底部标签栏 / 表格卡片化 ===== */
.btn-nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 34px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 7px; cursor: pointer; font-size: 17px; transition: background .15s, border-color .15s; }
.btn-nav-toggle:hover { border-color: var(--blue2); color: var(--blue2); }
@media (max-width: 1099px) { .btn-nav-toggle { display: inline-flex; } }

/* 桌面手动折叠为图标栏 */
.sidebar.collapsed { width: 64px; }
.sidebar.collapsed .brand { justify-content: center; padding: 16px 0 12px; }
.sidebar.collapsed .brand-logo { margin: 0; }
.sidebar.collapsed .brand-text,
.sidebar.collapsed .nav-group-title,
.sidebar.collapsed .nav-sub,
.sidebar.collapsed .sidebar-foot .ver { display: none; }
.sidebar.collapsed #nav { padding: 8px 0; }
.sidebar.collapsed .nav-item { padding: 11px 0; justify-content: center; }
.sidebar.collapsed .nav-item .nav-label { display: none; }
.sidebar.collapsed .nav-item .nav-ico { margin: 0; width: 20px; height: 20px; }
.sidebar.collapsed .nav-cat { margin: 6px 8px; padding: 10px 0; justify-content: center; font-size: 0; }
.sidebar.collapsed .nav-cat .nav-label,
.sidebar.collapsed .nav-cat .nav-arrow { display: none; }
.sidebar.collapsed .nav-cat .nav-ico { width: 20px; height: 20px; }
.sidebar.collapsed .nav-group-title { font-size: 0; padding: 10px 0 4px; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar.collapsed .nav-group-title .chev { display: none; }

/* 平板（768–1099）自动折叠为图标栏 */
@media (min-width: 768px) and (max-width: 1099px) {
  .sidebar { width: 64px; }
  .sidebar .brand { justify-content: center; padding: 16px 0 12px; }
  .sidebar .brand-logo { margin: 0; }
  .sidebar .brand-text,
  .sidebar .nav-group-title,
  .sidebar .nav-sub,
  .sidebar .sidebar-foot .ver { display: none; }
  .sidebar #nav { padding: 8px 0; }
  .sidebar .nav-item { padding: 11px 0; justify-content: center; }
  .sidebar .nav-item .nav-label { display: none; }
  .sidebar .nav-item .nav-ico { margin: 0; width: 20px; height: 20px; }
  .sidebar .nav-cat { margin: 6px 8px; padding: 10px 0; justify-content: center; font-size: 0; }
  .sidebar .nav-cat .nav-label,
  .sidebar .nav-cat .nav-arrow { display: none; }
  .sidebar .nav-cat .nav-ico { width: 20px; height: 20px; }
  .sidebar .nav-group-title { font-size: 0; padding: 10px 0 4px; border-top: 1px solid rgba(255,255,255,.12); }
  .sidebar .nav-group-title .chev { display: none; }
}

/* 手机抽屉 + 底部标签栏 */
.nav-scrim { display: none; position: fixed; inset: 0; background: rgba(20,30,45,.42); z-index: 79; }
.bottom-tabs { display: none; }
@media (max-width: 767px) {
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: 84%; max-width: 300px; transform: translateX(-100%); transition: transform .25s ease; z-index: 80; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .nav-scrim.show { display: block; }
  .bottom-tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: 56px; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -3px 12px rgba(20,30,45,.08); z-index: 78; padding-bottom: env(safe-area-inset-bottom, 0); }
  .content { padding-bottom: 68px; }
  .topbar { padding: 0 12px; }
  .crumb { font-size: 14px; }
  .sidebar-foot .badge { font-size: 10px; }
}
.bt-item { flex: 1; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; color: var(--muted); font-size: 11px; transition: color .15s; }
.bt-item .bt-ico { width: 22px; height: 22px; color: var(--muted); transition: color .15s; }
.bt-item.active { color: var(--blue2); }
.bt-item.active .bt-ico { color: var(--blue2); }

/* 移动端（≤640）表格卡片化 */
@media (max-width: 640px) {
  .table-wrap { border-radius: 0; box-shadow: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tbody tr { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 4px 2px; box-shadow: var(--shadow); }
  tbody tr:hover { background: var(--surface); }
  tbody td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: none; border-bottom: 1px solid var(--line); padding: 9px 13px; white-space: normal; text-align: right; }
  tbody td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; flex: 0 0 auto; margin-right: 10px; }
  tbody td.auto::before { color: var(--accent); }
  tbody td.row-actions { justify-content: flex-start; flex-wrap: wrap; gap: 6px; }
  tbody td.row-actions::before { display: none; }
  /* 取消冻结列 sticky（卡片化下无意义） */
  thead th:first-child, tbody td:first-child,
  thead th.act-col, tbody td.row-actions { position: static; left: auto; right: auto; box-shadow: none; background: transparent; }
  .toolbar { flex-wrap: wrap; }
  .toolbar input { width: 100%; }
}

/* ============ 导航：无权限模块灰显（替代直接消失） ============ */
.nav-item.locked, .nav-item.sub.locked { color: var(--side-muted); opacity: .55; cursor: not-allowed; }
.nav-item.locked:hover, .nav-item.sub.locked:hover { background: rgba(255,255,255,.03); color: var(--side-muted); }
.nav-item .nav-lock, .fly-item .fly-lock { margin-left: auto; font-size: 11px; opacity: .8; }
.nav-flyout .fly-item.locked { color: #8a99a8; cursor: not-allowed; opacity: .6; }
.nav-flyout .fly-item.locked:hover { background: rgba(255,255,255,.04); color: #8a99a8; }

/* ============ 首页视角条（合并 / 单体）+ 待办内联审批 ============ */
.scope-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.scope-chip { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; color: #fff; background: var(--blue); box-shadow: 0 1px 4px rgba(15,110,86,.18); }
.scope-chip.consolidated { background: linear-gradient(135deg, #0F6E56, #188A6A); }
.scope-chip.entity { background: linear-gradient(135deg, #C8862E, #E0A85E); }
.scope-chip.single { background: linear-gradient(135deg, #5B6C7E, #7C8C9B); }
.scope-hint { font-size: 12.5px; color: var(--muted); }
.todo-inline-head { font-size: 13px; font-weight: 600; color: var(--text); margin: 4px 0 8px; }
.todo-inline-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 7px; background: var(--surface-2); }
.todo-inline-row .ti-no { font-weight: 600; color: var(--text); min-width: 120px; }
.todo-inline-row .ti-type { color: var(--muted); font-size: 12.5px; min-width: 44px; }
.todo-inline-row .ti-by { color: var(--muted); font-size: 12.5px; flex: 1; }
.todo-inline-row .ti-acts { display: inline-flex; gap: 6px; }
.todo-inline-row .ti-acts .btn { padding: 4px 12px; font-size: 12.5px; }
.todo-more { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.todo-more a { color: var(--blue2); cursor: pointer; font-weight: 600; }
/* Phase2 P0：关联单据钻取链接（点单号直达原单） + 打印按钮 */
.rel-link, .rel-jump { color: var(--blue2, #0A6CC4); cursor: pointer; text-decoration: none; border-bottom: 1px dashed transparent; }
.rel-link:hover, .rel-jump:hover { color: var(--blue, #0E7CC4); border-bottom-color: currentColor; }
.rel-jump { font-size: 12px; margin-left: 2px; }

/* Phase3a：全局搜索框 + Ctrl+K 命令面板 */
.global-search { display: flex; align-items: center; gap: 8px; background: var(--surface-2, #eef3f8); border: 1px solid var(--line, #d4dbe6); border-radius: 10px; padding: 0 10px; height: 38px; min-width: 280px; transition: .15s; }
.global-search:focus-within { border-color: var(--accent, #2C6FB5); box-shadow: 0 0 0 3px rgba(44,111,181,.12); background: var(--surface, #fff); }
.global-search .gs-ico { width: 16px; height: 16px; color: var(--muted, #8a98a8); flex: 0 0 auto; }
.global-search input { border: 0; outline: 0; background: transparent; font-size: 13.5px; color: var(--text, #1E2A3A); width: 100%; }
.global-search .kbd { margin-left: auto; }
.kbd { display: inline-block; font: 600 11px/1 ui-monospace, Menlo, Consolas, monospace; color: var(--muted, #8a98a8); background: var(--surface-2, #eef3f8); border: 1px solid var(--line, #d4dbe6); border-radius: 6px; padding: 3px 6px; white-space: nowrap; }
.cmd-palette { width: min(680px, 94vw); max-height: 76vh; display: flex; flex-direction: column; background: var(--surface, #fff); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 60px rgba(10,30,55,.30); animation: cmdIn .14s ease-out; }
@keyframes cmdIn { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.cmd-input-row { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line, #e6ebf2); }
.cmd-input-row .gs-ico { width: 18px; height: 18px; color: var(--muted, #8a98a8); flex: 0 0 auto; }
.cmd-input-row input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--text, #1E2A3A); }
.cmd-results { overflow-y: auto; padding: 8px; }
.cmd-group { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted, #8a98a8); text-transform: uppercase; padding: 10px 10px 4px; }
.cmd-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; cursor: pointer; transition: .12s; }
.cmd-row:hover, .cmd-row.sel { background: var(--surface-2, #eef3f8); }
.cmd-ico { width: 22px; height: 22px; flex: 0 0 auto; color: var(--accent, #2C6FB5); display: inline-flex; }
.cmd-ico svg { width: 18px; height: 18px; }
.cmd-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cmd-title { font-size: 14px; color: var(--text, #1E2A3A); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd-sub { font-size: 12px; color: var(--muted, #8a98a8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd-tag { font-size: 11px; color: var(--muted, #8a98a8); flex: 0 0 auto; }
.cmd-empty { padding: 28px 10px; text-align: center; color: var(--muted, #8a98a8); font-size: 13.5px; }
.cmd-foot { display: flex; gap: 16px; padding: 9px 16px; border-top: 1px solid var(--line, #e6ebf2); font-size: 12px; color: var(--muted, #8a98a8); background: var(--surface-2, #f6f9fc); }
.cmd-foot .kbd { margin: 0 2px; }
@media (max-width: 767px) { .global-search { min-width: 0; flex: 1; } .global-search .kbd { display: none; } }

/* Phase3d：KPI 环比趋势标注 */
.kpi-delta { font-size: 11.5px; font-weight: 700; }
.kpi-delta.up { color: var(--green, #3EAC7A); }
.kpi-delta.down { color: var(--red, #E2595A); }
.kpi-delta-row { margin-top: 5px; line-height: 1.2; }

/* Phase3e：骨架屏（shimmer 占位） */
.sk-wrap { padding: 0; }
.sk-toolbar { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line, #e6ebf2); }
.sk-bar { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2, #eef3f8) 25%, var(--surface-3, #e3e9f1) 37%, var(--surface-2, #eef3f8) 63%); background-size: 400% 100%; animation: skShimmer 1.2s ease-in-out infinite; }
.sk-tbl td .sk-bar { width: 80%; margin: 6px 0; }
@keyframes skShimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .sk-bar { animation: none; } }

/* Phase3e：新手引导横幅 */
.onboard-banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 14px; border: 1px solid var(--accent, #2C6FB5); background: linear-gradient(135deg, var(--surface, #fff), var(--surface-2, #eef3f8)); border-radius: 12px; box-shadow: 0 2px 10px rgba(20,40,70,.06); }
.ob-ico { font-size: 26px; line-height: 1; flex: 0 0 auto; }
.ob-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.ob-body b { font-size: 15px; color: var(--text, #1E2A3A); }
.ob-body span { font-size: 13px; color: var(--muted, #5a6b7e); line-height: 1.5; }

/* Phase3b：通知中心铃铛 + 待办聚合面板 */
.btn-icon.notify-btn { position: relative; width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line, #d4dbe6); background: var(--surface, #fff); color: var(--text, #1E2A3A); cursor: pointer; }
.btn-icon.notify-btn:hover { border-color: var(--accent, #2C6FB5); background: var(--surface-2, #eef3f8); }
.btn-icon.notify-btn svg { width: 19px; height: 19px; }
.badge-dot { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--red, #E2595A); color: #fff; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 1px 3px rgba(226,89,90,.4); }
.badge-dot.hidden { display: none; }
.notify-panel { display: none; position: fixed; top: 60px; right: 16px; z-index: 60; width: min(340px, 92vw); background: var(--surface, #fff); border: 1px solid var(--line, #e6ebf2); border-radius: 12px; box-shadow: 0 16px 48px rgba(10,30,55,.22); overflow: hidden; }
.notify-panel.show { display: block; animation: cmdIn .14s ease-out; }
.nt-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line, #e6ebf2); font-size: 14px; }
.nt-all { color: var(--blue2, #0A6CC4); font-size: 12.5px; cursor: pointer; font-weight: 600; }
.nt-sec { padding: 8px 14px 4px; font-size: 12.5px; color: var(--muted, #8a98a8); }
.nt-sec b { color: var(--text, #1E2A3A); font-size: 14px; }
.nt-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px dashed var(--line, #eef2f6); }
.nt-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.nt-no { font-size: 13.5px; font-weight: 600; color: var(--text, #1E2A3A); }
.nt-meta { font-size: 11.5px; color: var(--muted, #8a98a8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-empty { padding: 18px 14px; text-align: center; color: var(--muted, #8a98a8); font-size: 13px; }
.nt-foot { display: flex; justify-content: space-between; padding: 10px 14px; font-size: 12px; color: var(--muted, #8a98a8); background: var(--surface-2, #f6f9fc); }
.nt-foot b { color: var(--text, #1E2A3A); }

