/* ============================================================
   经天纬地测绘项目管理系统 —— 视觉系统 v3（多皮肤）
   皮肤通过 <html data-skin="..."> 切换，全部基于 CSS 变量
   ============================================================ */

/* ---------- 默认皮肤：深海蓝 ---------- */
:root, [data-skin="ocean"] {
  --brand: #2080f0; --brand-bright: #4098ff; --brand-deep: #1060c0;
  --brand-light: #7cc0ff; --brand-soft: #e8f1fe; --brand-soft-strong: #d7e8fd;
  --brand-glow: rgba(32, 128, 240, .32); --brand-glow-lg: rgba(32, 128, 240, .5);
  --brand-grad: linear-gradient(135deg, #55a8ff, #2080f0 55%, #1060c0);
  --brand-grad-active: linear-gradient(135deg, #3a8ee8, #1060c0);
  --side-grad: linear-gradient(180deg, #0a1c30 0%, #081524 55%, #06101c 100%);
  --side-glow-a: rgba(64, 152, 255, .15); --side-glow-b: rgba(30, 90, 200, .07);
  --side-text: #8fadc9; --side-sub: #6a8aa9; --side-line: rgba(255, 255, 255, .07); --side-foot: #4c6a86;
  --login-bg:
    radial-gradient(900px 600px at 12% -10%, rgba(64, 152, 255, .26), transparent 55%),
    radial-gradient(700px 500px at 95% 110%, rgba(16, 96, 192, .4), transparent 55%),
    linear-gradient(150deg, #0a1e33, #061019 60%, #040b15);
  --login-ring: rgba(124, 192, 255, .12);
  --canvas: #f3f6fa; --card: #ffffff; --topbar: rgba(255, 255, 255, .92);
  --ink: #182534; --ink-2: #42536b; --ink-3: #7b8aa0; --line: #e6ebf2;
  --thead: #f4f7fb; --hover: #f5f8fc; --track: #ecf1f7; --dim: #9dabbd;
  --quick-a: #f5f9fe; --quick-b: #e9f2fc; --danger: #e0405a;
  --radius: 14px; --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 30, 50, .05), 0 2px 8px rgba(15, 30, 50, .04);
  --shadow-md: 0 4px 14px rgba(15, 30, 50, .08), 0 2px 4px rgba(15, 30, 50, .04);
  --shadow-lg: 0 16px 44px rgba(8, 20, 40, .2);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 翡翠绿 ---------- */
[data-skin="emerald"] {
  --brand: #18a058; --brand-bright: #36ad6a; --brand-deep: #0c7a43;
  --brand-light: #63e2b7; --brand-soft: #e8f6ef; --brand-soft-strong: #d5efe1;
  --brand-glow: rgba(24, 160, 88, .35); --brand-glow-lg: rgba(24, 160, 88, .5);
  --brand-grad: linear-gradient(135deg, #3ecf8e, #18a058 55%, #0c7a43);
  --brand-grad-active: linear-gradient(135deg, #1cae67, #128a4c);
  --side-grad: linear-gradient(180deg, #0d221a 0%, #0a1b14 55%, #08160f 100%);
  --side-glow-a: rgba(54, 173, 106, .16); --side-glow-b: rgba(20, 120, 200, .06);
  --side-text: #93b3a3; --side-sub: #6f9a83; --side-line: rgba(255, 255, 255, .07); --side-foot: #4e6d5c;
  --login-bg:
    radial-gradient(900px 600px at 12% -10%, rgba(54, 173, 106, .28), transparent 55%),
    radial-gradient(700px 500px at 95% 110%, rgba(13, 95, 60, .35), transparent 55%),
    linear-gradient(150deg, #0c2419, #081710 60%, #061009);
  --login-ring: rgba(99, 226, 183, .12);
  --canvas: #f4f6f5; --card: #ffffff; --topbar: rgba(255, 255, 255, .92);
  --ink: #1a2c24; --ink-2: #45564e; --ink-3: #7d8f88; --line: #e7ece9;
  --thead: #f6f9f7; --hover: #f6faf7; --track: #edf2f0; --dim: #a3b1aa;
  --quick-a: #f7fbf9; --quick-b: #eef6f1; --danger: #e0405a;
  --radius: 14px; --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 36, 27, .05), 0 2px 8px rgba(16, 36, 27, .04);
  --shadow-md: 0 4px 14px rgba(16, 36, 27, .08), 0 2px 4px rgba(16, 36, 27, .04);
  --shadow-lg: 0 16px 44px rgba(9, 30, 21, .16);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 靛紫 ---------- */
[data-skin="violet"] {
  --brand: #722ed1; --brand-bright: #9254de; --brand-deep: #5b21b0;
  --brand-light: #c3a5f5; --brand-soft: #f4edfd; --brand-soft-strong: #eadcfb;
  --brand-glow: rgba(114, 46, 209, .3); --brand-glow-lg: rgba(114, 46, 209, .48);
  --brand-grad: linear-gradient(135deg, #a661e8, #722ed1 55%, #5b21b0);
  --brand-grad-active: linear-gradient(135deg, #8b3fe0, #5b21b0);
  --side-grad: linear-gradient(180deg, #191031 0%, #130c25 55%, #0e091d 100%);
  --side-glow-a: rgba(146, 84, 222, .16); --side-glow-b: rgba(90, 40, 170, .08);
  --side-text: #a596c5; --side-sub: #7d6ba3; --side-line: rgba(255, 255, 255, .07); --side-foot: #584a7a;
  --login-bg:
    radial-gradient(900px 600px at 12% -10%, rgba(146, 84, 222, .26), transparent 55%),
    radial-gradient(700px 500px at 95% 110%, rgba(91, 33, 176, .4), transparent 55%),
    linear-gradient(150deg, #181030, #0d0920 60%, #090614);
  --login-ring: rgba(195, 165, 245, .12);
  --canvas: #f6f5fa; --card: #ffffff; --topbar: rgba(255, 255, 255, .92);
  --ink: #211a33; --ink-2: #4d4463; --ink-3: #867c9e; --line: #eae7f2;
  --thead: #f5f3fa; --hover: #f8f6fb; --track: #eeebf5; --dim: #a49bb8;
  --quick-a: #faf8fe; --quick-b: #f0eaf9; --danger: #e0405a;
  --shadow-sm: 0 1px 2px rgba(35, 20, 60, .05), 0 2px 8px rgba(35, 20, 60, .04);
  --shadow-md: 0 4px 14px rgba(35, 20, 60, .09), 0 2px 4px rgba(35, 20, 60, .04);
  --shadow-lg: 0 16px 44px rgba(20, 10, 45, .22);
}

/* ---------- 暖阳橙 ---------- */
[data-skin="amber"] {
  --brand: #e8842a; --brand-bright: #f5a94e; --brand-deep: #c26a15;
  --brand-light: #ffd08a; --brand-soft: #fdf2e5; --brand-soft-strong: #fce7d1;
  --brand-glow: rgba(232, 132, 42, .32); --brand-glow-lg: rgba(232, 132, 42, .5);
  --brand-grad: linear-gradient(135deg, #f7ab5c, #e8842a 55%, #c26a15);
  --brand-grad-active: linear-gradient(135deg, #f0953f, #c26a15);
  --side-grad: linear-gradient(180deg, #2b1c0a 0%, #211608 55%, #1a1106 100%);
  --side-glow-a: rgba(245, 169, 78, .14); --side-glow-b: rgba(194, 106, 21, .08);
  --side-text: #c5a882; --side-sub: #a1855e; --side-line: rgba(255, 255, 255, .07); --side-foot: #7a5f3c;
  --login-bg:
    radial-gradient(900px 600px at 12% -10%, rgba(245, 169, 78, .22), transparent 55%),
    radial-gradient(700px 500px at 95% 110%, rgba(194, 106, 21, .35), transparent 55%),
    linear-gradient(150deg, #2b1c0c, #180f05 60%, #100a03);
  --login-ring: rgba(255, 208, 138, .12);
  --canvas: #f8f6f2; --card: #ffffff; --topbar: rgba(255, 255, 255, .92);
  --ink: #2e2113; --ink-2: #5d4c36; --ink-3: #95836a; --line: #eee7db;
  --thead: #f7f2ea; --hover: #faf7f1; --track: #f0e9dd; --dim: #b0a08a;
  --quick-a: #fbf5ec; --quick-b: #f5e9d6; --danger: #e0405a;
  --shadow-sm: 0 1px 2px rgba(60, 40, 15, .05), 0 2px 8px rgba(60, 40, 15, .04);
  --shadow-md: 0 4px 14px rgba(60, 40, 15, .09), 0 2px 4px rgba(60, 40, 15, .04);
  --shadow-lg: 0 16px 44px rgba(45, 25, 8, .22);
}

/* ---------- 湖光青 ---------- */
[data-skin="cyan"] {
  --brand: #0fbfbc; --brand-bright: #2dd4d1; --brand-deep: #08948f;
  --brand-light: #8ceae8; --brand-soft: #e4f7f6; --brand-soft-strong: #d0f0ee;
  --brand-glow: rgba(15, 191, 188, .3); --brand-glow-lg: rgba(15, 191, 188, .48);
  --brand-grad: linear-gradient(135deg, #4dd9d6, #0fbfbc 55%, #08948f);
  --brand-grad-active: linear-gradient(135deg, #17c2be, #08948f);
  --side-grad: linear-gradient(180deg, #082223 0%, #061a1b 55%, #041314 100%);
  --side-glow-a: rgba(45, 212, 209, .14); --side-glow-b: rgba(8, 148, 143, .08);
  --side-text: #8fb5b5; --side-sub: #6a9494; --side-line: rgba(255, 255, 255, .07); --side-foot: #4c7272;
  --login-bg:
    radial-gradient(900px 600px at 12% -10%, rgba(45, 212, 209, .2), transparent 55%),
    radial-gradient(700px 500px at 95% 110%, rgba(8, 148, 143, .38), transparent 55%),
    linear-gradient(150deg, #082526, #041415 60%, #020c0d);
  --login-ring: rgba(140, 234, 232, .12);
  --canvas: #f2f7f7; --card: #ffffff; --topbar: rgba(255, 255, 255, .92);
  --ink: #122223; --ink-2: #3f5455; --ink-3: #799091; --line: #e2ecec;
  --thead: #eff6f6; --hover: #f2f8f8; --track: #e8f1f1; --dim: #98adad;
  --quick-a: #eef8f7; --quick-b: #dcf0ef; --danger: #e0405a;
  --shadow-sm: 0 1px 2px rgba(10, 40, 40, .05), 0 2px 8px rgba(10, 40, 40, .04);
  --shadow-md: 0 4px 14px rgba(10, 40, 40, .08), 0 2px 4px rgba(10, 40, 40, .04);
  --shadow-lg: 0 16px 44px rgba(4, 25, 25, .2);
}

/* ---------- 暗夜黑（深色模式） ---------- */
[data-skin="dark"] {
  --brand: #4ade80; --brand-bright: #6ee7a0; --brand-deep: #22a355;
  --brand-light: #a7f3c9; --brand-soft: #16241b; --brand-soft-strong: #1c3226;
  --brand-glow: rgba(74, 222, 128, .22); --brand-glow-lg: rgba(74, 222, 128, .4);
  --brand-grad: linear-gradient(135deg, #4ade80, #22a355 55%, #15803d);
  --brand-grad-active: linear-gradient(135deg, #2fbd6b, #178a4a);
  --side-grad: linear-gradient(180deg, #0d1210 0%, #090d0b 55%, #060908 100%);
  --side-glow-a: rgba(74, 222, 128, .1); --side-glow-b: rgba(20, 120, 200, .05);
  --side-text: #7e948a; --side-sub: #5c7268; --side-line: rgba(255, 255, 255, .06); --side-foot: #44504a;
  --login-bg:
    radial-gradient(900px 600px at 12% -10%, rgba(74, 222, 128, .14), transparent 55%),
    radial-gradient(700px 500px at 95% 110%, rgba(34, 163, 85, .18), transparent 55%),
    linear-gradient(150deg, #0b120e, #050806 60%, #030504);
  --login-ring: rgba(167, 243, 201, .1);
  --canvas: #0f1412; --card: #171e1a; --topbar: rgba(20, 27, 23, .95);
  --ink: #e4ede7; --ink-2: #b3c1b9; --ink-3: #7d8d84; --line: #253029;
  --thead: #1c2420; --hover: #1b231f; --track: #232e27; --dim: #66756c;
  --quick-a: #18211b; --quick-b: #1e2b22; --danger: #ff637d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .25), 0 2px 8px rgba(0, 0, 0, .2);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, .35), 0 2px 4px rgba(0, 0, 0, .25);
  --shadow-lg: 0 16px 44px rgba(0, 0, 0, .55);
}

/* ============================================================ 基础 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #app { height: 100%; }

body {
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  font-size: 14px; color: var(--ink); background: var(--canvas);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--dim); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; opacity: .5; }
::-webkit-scrollbar-thumb:hover { opacity: .9; }
::-webkit-scrollbar-track { background: transparent; }
::selection { background: var(--brand-soft-strong); color: var(--ink); }

/* ===== 布局骨架 ===== */
.app-shell { display: flex; height: 100vh; overflow: hidden; }

/* ---------- 侧栏 ---------- */
.sidebar {
  width: 216px; flex-shrink: 0;
  display: flex; flex-direction: column;
  background: var(--side-grad);
  color: var(--side-text);
  position: relative;
}
.sidebar::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 240px at -60px -40px, var(--side-glow-a), transparent 65%),
    radial-gradient(360px 300px at 190px 100%, var(--side-glow-b), transparent 60%);
}
.brand { padding: 20px 18px 16px; border-bottom: 1px solid var(--side-line); position: relative; }
.brand .logo { display: flex; align-items: center; gap: 11px; }
.brand .logo-badge {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--brand-grad);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; letter-spacing: .5px;
  box-shadow: 0 4px 14px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.brand .logo-text { font-size: 15.5px; font-weight: 700; color: #fff; line-height: 1.25; letter-spacing: .3px; }
.brand .slogan { font-size: 10.5px; color: var(--side-sub); margin-top: 8px; letter-spacing: 2.5px; }

.nav-menu { flex: 1; overflow-y: auto; padding: 10px 10px; position: relative; }
.nav-menu::-webkit-scrollbar { width: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; margin-bottom: 3px;
  border-radius: 10px; cursor: pointer;
  color: var(--side-text); font-size: 14px; font-weight: 500;
  transition: all .18s var(--ease); position: relative;
}
.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-item.active {
  background: var(--brand-grad-active);
  color: #fff; font-weight: 600;
  box-shadow: 0 6px 16px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.nav-item .nav-icon { font-size: 17px; width: 22px; text-align: center; }
.nav-item.active .nav-icon { transform: scale(1.06); }
.nav-item .nav-arrow { margin-left: auto; font-size: 13px; color: var(--side-sub); transition: transform .2s var(--ease); flex-shrink: 0; }
.nav-item .nav-arrow.open { transform: rotate(90deg); color: var(--brand-light); }

/* ---------- 二级模块（侧栏手风琴嵌套） ---------- */
.nav-sub { padding: 3px 0 7px 13px; }
.nav-sub-item {
  padding: 8px 12px 8px 15px; margin: 2px 4px 2px 0;
  border-radius: 8px; cursor: pointer; font-size: 13px;
  color: var(--side-sub); position: relative;
  transition: all .16s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-sub-item::before {
  content: ''; position: absolute; left: 3px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 0; border-radius: 3px; background: var(--brand-light); transition: height .18s var(--ease);
}
.nav-sub-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-sub-item.active { background: rgba(255, 255, 255, .09); color: #fff; font-weight: 600; }
.nav-sub-item.active::before { height: 60%; }

.side-footer { padding: 12px 18px; font-size: 10.5px; color: var(--side-foot); border-top: 1px solid var(--side-line); line-height: 1.7; position: relative; letter-spacing: .3px; }

/* ---------- 主区 ---------- */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--canvas); }

.topbar {
  height: 58px; background: var(--topbar);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 24px; gap: 14px;
  flex-shrink: 0; position: relative; z-index: 10;
}
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--brand-glow), transparent); }
.topbar .sys-title { font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: .5px; }
.topbar .sys-title::before { content: ''; display: inline-block; width: 4px; height: 15px; border-radius: 3px; background: var(--brand-grad); margin-right: 10px; vertical-align: -2px; }
.topbar .breadcrumb { color: var(--ink-3); font-size: 12.5px; background: var(--hover); padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); }
.topbar .spacer { flex: 1; }
/* 通用撑开占位：行内 flex 布局里把后续元素推到右侧（详情页头、财资统计条等） */
.spacer { flex: 1; }
.topbar .user-chip { display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 5px 12px 5px 6px; border-radius: 99px; transition: background .15s; }
.topbar .user-chip:hover { background: var(--hover); }
.topbar .user-avatar {
  width: 33px; height: 33px; border-radius: 50%;
  background: var(--brand-grad);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 3px 8px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.topbar .role-chip { font-size: 12px; color: var(--ink-3); }
.topbar .role-chip b { color: var(--ink-2); font-weight: 600; }
.topbar .user-avatar-img { object-fit: cover; border: 1px solid var(--line); }
.topbar .user-chip-name { font-size: 13px; color: var(--ink-2); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .user-chip-caret { font-size: 10px; color: var(--ink-3); }
/* 顶栏用户菜单（个人中心 / 修改密码 / 退出登录） */
.user-menu { min-width: 236px; padding: 4px; }
.user-menu .um-item { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.user-menu .um-item:hover { background: var(--hover); }
.user-menu .um-item b { width: 16px; text-align: center; font-weight: 500; }
.user-menu .um-item .um-tip { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }
.user-menu .um-divider { height: 1px; margin: 4px 6px; background: var(--line); }
.user-menu .um-danger { color: #d03050; }
/* 个人中心弹窗 */
.pf-head { display: flex; gap: 16px; align-items: center; }
.pf-avatar { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: var(--brand-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; box-shadow: 0 4px 12px var(--brand-glow); }
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-head-info { min-width: 0; }
.pf-name { font-size: 16px; font-weight: 600; color: var(--ink-2); margin-bottom: 2px; }
.pf-sec { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; padding-left: 8px; border-left: 3px solid var(--ink-3); }
.pf-src { font-size: 12.5px; line-height: 1.7; color: var(--ink-3); background: var(--hover); border-radius: 8px; padding: 7px 10px; margin-bottom: 10px; }
.pf-src.is-emp { color: var(--ink-2); }
.pf-src .pf-link { color: var(--brand-color, #2080f0); cursor: pointer; margin-left: 6px; white-space: nowrap; }
.pf-src .pf-link:hover { text-decoration: underline; }

.content { flex: 1; overflow-y: auto; padding: 20px 24px 34px; }

/* ---------- 皮肤切换按钮 ---------- */
.skin-btn {
  width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  border: 1px solid var(--line); background: var(--card);
  transition: all .18s var(--ease);
}
.skin-btn:hover { border-color: var(--brand-bright); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.skin-grid { display: grid; grid-template-columns: repeat(2, 148px); gap: 8px; padding: 2px; }
.skin-item {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px;
  border-radius: 9px; cursor: pointer; font-size: 13px; color: var(--ink-2);
  border: 1px solid var(--line); background: var(--card);
  transition: all .15s var(--ease);
}
.skin-item:hover { border-color: var(--brand-bright); transform: translateY(-1px); }
.skin-item.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }
.skin-dot { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 1px 2px rgba(255, 255, 255, .4), 0 1px 3px rgba(0, 0, 0, .2); }
.skin-item .skin-check { margin-left: auto; color: var(--brand); font-weight: 700; }

/* ---------- 二级模块卡 ---------- */
.module-cards { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }
.module-card {
  padding: 8px 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: 99px;
  cursor: pointer; font-size: 13.5px; color: var(--ink-2);
  transition: all .18s var(--ease); font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.module-card:hover { border-color: var(--brand-bright); color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.module-card.active {
  background: var(--brand-grad-active);
  border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 5px 14px var(--brand-glow);
}
.module-card.active .subtle { color: rgba(255, 255, 255, .78); }

/* ---------- 页面与卡片 ---------- */
.page { display: flex; flex-direction: column; gap: 16px; animation: pageIn .28s var(--ease); }
/* 内嵌在「项目详情 › 任务中心」里的横道图：不再做页面级动画，间距收窄，避免与详情卡片叠加 */
.page.gantt-embedded { gap: 12px; animation: none; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.card {
  background: var(--card); border-radius: var(--radius);
  padding: 18px 20px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-title {
  font-size: 15px; font-weight: 700; color: var(--ink);
  margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.card-title .subtle { font-weight: 400; }

/* ---------- 统计条 ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; }
.stat-card {
  position: relative; overflow: hidden;
  background: var(--card); border-radius: var(--radius);
  padding: 16px 18px 14px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all .2s var(--ease);
}
.stat-card::after {
  content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
  border-radius: 3px; background: var(--brand-grad);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card .s-label { font-size: 12px; color: var(--ink-3); letter-spacing: .5px; }
.stat-card .s-value { font-size: 24px; font-weight: 800; color: var(--ink); margin-top: 5px; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.stat-card .s-value.green { color: var(--brand); }
.stat-card .s-value.red { color: var(--danger); }
.stat-card .s-foot { font-size: 11px; color: var(--dim); margin-top: 5px; }

/* ---------- 网格块 ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1100px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- 列表行 ---------- */
.list-row { display: flex; gap: 10px; padding: 9px 8px; border-bottom: 1px dashed var(--line); font-size: 13px; align-items: baseline; transition: background .12s; border-radius: 6px; }
.list-row:hover { background: var(--hover); }
.list-row:last-child { border-bottom: none; }
.list-row .lr-time { color: var(--ink-3); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.list-row .lr-main { flex: 1; line-height: 1.55; }

.pulse-bar { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 5px 0; }
.pulse-bar .pb-name { width: 46px; color: var(--ink-2); flex-shrink: 0; }
.pulse-bar .pb-track { flex: 1; height: 8px; background: var(--track); border-radius: 99px; overflow: hidden; }
.pulse-bar .pb-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-light)); border-radius: 99px; transition: width .4s var(--ease); }
.pulse-bar .pb-num { width: 32px; text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- 快捷入口 ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.quick-btn {
  padding: 11px 4px; text-align: center;
  background: linear-gradient(180deg, var(--quick-a), var(--quick-b));
  border: 1px solid var(--brand-soft-strong); border-radius: var(--radius-sm);
  cursor: pointer; font-size: 13px; color: var(--brand-deep); font-weight: 500;
  transition: all .18s var(--ease);
}
.quick-btn:hover { background: linear-gradient(180deg, var(--brand-soft-strong), var(--brand-soft)); border-color: var(--brand-bright); transform: translateY(-2px); box-shadow: 0 6px 14px var(--brand-glow); }

/* ---------- 附件缩略图（图片出真缩略图，PDF 出文件徽标） ---------- */
.att-thumb {
  width: 32px; height: 32px; border-radius: 6px; object-fit: cover;
  border: 1px solid var(--brand-soft-strong); background: #fff; cursor: pointer;
  display: block; transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.att-thumb:hover { transform: scale(1.06); box-shadow: 0 4px 12px var(--brand-glow); }
.att-badge {
  width: 32px; height: 32px; border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; letter-spacing: .3px;
  background: #fff1f0; color: #cf1322; border: 1px solid #ffa39e;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.att-badge:hover { transform: scale(1.06); box-shadow: 0 4px 12px rgba(207, 19, 34, .18); }
.att-thumb-lg { width: 56px; height: 56px; border-radius: 8px; }
.att-badge-lg { width: 56px; height: 56px; font-size: 13px; border-radius: 8px; }
.att-name { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }
.att-cell { display: flex; align-items: center; gap: 6px; }

/* 多媒体附件字段（跟进附件：截图 / 录音 / 视频） */
.af-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.af-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 4px;
  border: 1px solid var(--brand-soft-strong); border-radius: 10px; background: var(--brand-soft);
}
.af-chip .aftumb { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; cursor: zoom-in; }
.af-chip .afbadge {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; background: var(--brand-soft-strong); font-size: 15px; cursor: pointer;
}
.af-chip .af-cname { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; font-size: 12px; }
.af-chip .af-kind { font-size: 11px; color: var(--text-3, #888); }
.af-view-body { display: flex; flex-direction: column; gap: 10px; }
.af-rec-on { animation: af-pulse 1.2s ease-in-out infinite; }
@keyframes af-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- 项目卡 ---------- */
.proj-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 9px; transition: all .18s var(--ease); background: var(--card); }
.proj-card:hover { border-color: var(--brand-bright); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.proj-card .pc-name { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.proj-card .pc-meta { font-size: 12px; color: var(--ink-3); margin-top: 5px; display: flex; justify-content: space-between; }

/* ---------- 登录页 ---------- */
.login-wrap { height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--login-bg); position: relative; overflow: hidden; padding: 24px; }
.login-wrap::before {
  content: ''; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  border: 1px solid var(--login-ring); left: -160px; top: -160px; animation: ringDrift 14s ease-in-out infinite;
}
.login-wrap::after {
  content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  border: 1px dashed var(--login-ring); right: -100px; bottom: -120px; animation: ringDrift 18s ease-in-out infinite reverse;
}
@keyframes ringDrift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(24px, 18px) scale(1.05); } }

.login-grid { display: flex; align-items: center; gap: 72px; z-index: 1; }
.login-hero { max-width: 460px; color: var(--side-text); }
.login-hero .lh-badge { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.login-hero .lh-badge .b {
  width: 52px; height: 52px; border-radius: 15px;
  background: var(--brand-grad);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 21px; letter-spacing: 1px;
  box-shadow: 0 10px 30px var(--brand-glow-lg), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.login-hero .lh-badge .t { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: 1px; }
.login-hero h1 { font-size: 30px; font-weight: 800; color: #fff; line-height: 1.4; letter-spacing: 1px; }
.login-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand-light), var(--brand-bright)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.login-hero p { margin-top: 14px; font-size: 13.5px; color: var(--side-sub); line-height: 2; letter-spacing: .5px; }
.login-hero .lh-feats { display: flex; gap: 26px; margin-top: 30px; }
.login-hero .lh-feats .f { font-size: 12px; color: var(--side-text); letter-spacing: 1px; }
.login-hero .lh-feats .f b { display: block; font-size: 21px; color: var(--brand-light); font-weight: 800; margin-bottom: 3px; font-variant-numeric: tabular-nums; }

.login-box {
  width: 408px; background: var(--card);
  border-radius: 20px; padding: 40px 40px 30px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .06);
  animation: loginIn .45s var(--ease);
}
[data-skin="dark"] .login-box { background: #171e1a; }
@keyframes loginIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.login-box .lg-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.login-box .lg-badge {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--brand-grad);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 19px;
  box-shadow: 0 6px 16px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.login-box .lg-title { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: .3px; }
.login-box .lg-sub { color: var(--ink-3); font-size: 12.5px; margin: 4px 0 26px; letter-spacing: 1px; }
.login-box .n-button--primary-type { box-shadow: 0 6px 18px var(--brand-glow-lg); }
.login-error { color: var(--danger); font-size: 12px; margin-top: 10px; text-align: center; }
.login-tip { margin-top: 22px; text-align: center; font-size: 11.5px; color: var(--dim); }

@media (max-width: 920px) { .login-grid { flex-direction: column; gap: 34px; } .login-hero { display: none; } }

/* ---------- 手动考勤表格 ---------- */
.att-manual-wrap { overflow-x: auto; }
.att-manual-table { width: 100%; min-width: 1180px; border-collapse: separate; border-spacing: 0; font-size: 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.att-manual-table th, .att-manual-table td { border-bottom: 1px solid var(--line); padding: 7px 10px; text-align: center; }
.att-manual-table th { background: var(--thead); font-weight: 600; color: var(--ink-2); font-size: 12.5px; }
.att-manual-table tr:last-child td { border-bottom: none; }
/* 新补录行：进入时高亮闪一下，明确「补录一行」已经加出来了 */
.att-manual-table tr.att-new-row { background: color-mix(in srgb, var(--brand) 10%, transparent); animation: attRowFlash 1.1s ease-out; }
.att-manual-table tr.att-new-row td { border-bottom: 1px dashed var(--line); }
@keyframes attRowFlash {
  0% { background: color-mix(in srgb, var(--brand) 34%, transparent); }
  100% { background: color-mix(in srgb, var(--brand) 10%, transparent); }
}

/* ---------- 云盘 ---------- */
.disk-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.disk-path { font-size: 13px; color: var(--brand-deep); background: var(--brand-soft); padding: 4px 12px; border-radius: 99px; font-family: ui-monospace, Consolas, monospace; }
.disk-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 13px; border-radius: 8px; transition: background .12s; }
.disk-row:hover { background: var(--hover); }
.disk-row .dr-name { flex: 1; cursor: pointer; }
.disk-row .dr-name:hover { color: var(--brand); }
.disk-row .dr-size { width: 90px; text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.disk-row .dr-time { width: 150px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.disk-row .dr-actions { width: 130px; text-align: right; }
.disk-row.is-dir .dr-name { font-weight: 600; }

/* ---------- toast ---------- */
.toast-layer { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.toast-item {
  background: rgba(23, 38, 31, .94); color: #eaf5ef;
  border-radius: 99px; padding: 10px 22px 10px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  font-size: 13.5px; backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 9px;
  animation: toastIn .3s var(--ease);
}
[data-skin="dark"] .toast-item { background: rgba(46, 62, 53, .96); }
.toast-item::before { content: '✓'; width: 19px; height: 19px; border-radius: 50%; background: rgba(99, 226, 183, .22); color: #63e2b7; display: flex; align-items: center; justify-content: center; font-size: 11.5px; flex-shrink: 0; }
.toast-item.error::before { background: rgba(255, 99, 125, .22); color: #ff637d; }
.toast-item.info::before { background: rgba(103, 173, 255, .22); color: #6eb8ff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- 权限矩阵 ---------- */
.perm-matrix { border-collapse: separate; border-spacing: 0; font-size: 12.5px; width: 100%; table-layout: fixed; }
.perm-matrix th, .perm-matrix td { border-bottom: 1px solid var(--line); padding: 6px 12px; }
.perm-matrix th { background: var(--thead); font-weight: 600; color: var(--ink-2); }
.perm-matrix tr:last-child th, .perm-matrix tr:last-child td { border-bottom: none; }
/* 名称列占满剩余宽度，三个操作列固定宽；表头吸顶 */
.perm-matrix th:first-child, .perm-matrix td:first-child { width: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.perm-matrix th:nth-child(n+2), .perm-matrix td:nth-child(n+2) { width: 132px; }
.perm-matrix thead th { position: sticky; top: 0; z-index: 2; box-shadow: 0 1px 0 var(--line); }
.perm-matrix td.ck { text-align: center; cursor: pointer; transition: background .12s; }
.perm-matrix td.ck:hover { background: var(--brand-soft); }
/* 三级页面（Tab）权限：按二级模块分组的子行 */
.perm-matrix tr.mod-row td { background: #f2f7f4; font-weight: 600; }
.perm-matrix tr.tab-row td.tab-name { padding-left: 26px; color: var(--ink-2); }
.perm-matrix tr:hover td { background: var(--brand-soft); }
.perm-matrix tr.mod-row:hover td { background: #e8f2ec; }
/* 四级权限项（三级页面里的页内子页签）：缩进更深、字号略小，与三级页面区分 */
.perm-matrix tr.sub-row td.tab-name { padding-left: 44px; font-size: 12px; color: var(--ink-3, #6b7280); }
.perm-matrix tr.sub-row td { background: #fbfdfb; }
.perm-matrix tr.sub-row:hover td { background: var(--brand-soft); }
/* 三级页面行上的「＋N 子页签」小标记 */
.perm-matrix .sub-count { margin-left: 8px; padding: 1px 6px; border-radius: 8px; font-size: 11px; font-weight: 500; color: var(--ink-3, #6b7280); background: rgba(0, 0, 0, .05); cursor: help; }
.perm-matrix td.ck.inherit { opacity: .45; }
.perm-scroll { max-height: 620px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
/* 图例说明：置顶显示（✅ 已授权 / ✓ 继承） */
.perm-legend { margin-bottom: 8px; line-height: 1.8; padding: 7px 12px; background: var(--brand-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.perm-legend .ck { font-weight: 600; color: var(--ink); }
.perm-legend .lg-inherit { font-weight: 600; opacity: .55; }
/* 页签「只读」标记 */
.ro-chip { margin-left: 6px; font-size: 10.5px; padding: 1px 5px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); border: 1px solid var(--line); }
.ro-note { margin-top: 10px; padding: 7px 12px; font-size: 12.5px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--ink-2); border: 1px solid var(--line); }

/* ---------- 企业云盘（百度网盘接入） ---------- */
.pan-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 12px; background: var(--brand-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; font-size: 13px; }
.pan-badge { padding: 1px 9px; border-radius: 10px; font-size: 12.5px; border: 1px solid var(--line); background: var(--card); }
.pan-badge.ok { color: #17803d; border-color: #9fd6b3; background: #eefaf2; }
.pan-badge.warn { color: #a8620a; border-color: #f0cfa0; background: #fdf6e9; }
.pan-badge.off { color: var(--ink-2); }
.pan-quota { display: inline-block; width: 180px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.pan-quota > i { display: block; height: 100%; background: var(--brand); }
.pan-guide { padding: 14px 16px; border: 1px dashed var(--line); border-radius: var(--radius-sm); text-align: center; margin-bottom: 10px; background: var(--card); }
.pan-crumbs { font-size: 13px; color: var(--ink-2); }
.pan-crumbs a { cursor: pointer; color: var(--brand); }
.pan-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.pan-table th, .pan-table td { border-bottom: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: middle; }
.pan-table th { background: var(--thead); font-weight: 600; color: var(--ink-2); }
.pan-table tbody tr:hover td { background: var(--brand-soft); }
.pan-table .pan-name { cursor: pointer; }
.pan-table .pan-name:hover { color: var(--brand); text-decoration: underline; }
.pan-table .pan-dir { font-weight: 600; }
.pan-table .pan-actions { white-space: nowrap; display: flex; gap: 5px; }

/* ---------- 菜单管理块 ---------- */
.menu-block { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 11px; background: var(--card); transition: box-shadow .15s; }
.menu-block:hover { box-shadow: var(--shadow-sm); }
.menu-block .mb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; gap: 10px; flex-wrap: wrap; }
.menu-block .mb-title { font-weight: 700; font-size: 14px; }

.chart-box { width: 100%; height: 300px; }
.chart-box.sm { height: 240px; }

/* ---------- 进度中心（横道图） ---------- */
.gantt-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gantt-wrap { overflow: auto; max-height: 62vh; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.gantt-inner { display: inline-block; min-width: 100%; }
.gantt-head { display: flex; position: sticky; top: 0; z-index: 3; background: var(--thead); border-bottom: 1px solid var(--line); }
.gantt-row { display: flex; border-bottom: 1px solid var(--line); }
.gantt-row:hover { background: var(--hover); }
.gantt-row.is-stage { background: var(--brand-soft); font-weight: 600; }
.gantt-left { position: sticky; left: 0; z-index: 2; display: flex; align-items: center; gap: 6px; width: 430px; flex: 0 0 430px; padding: 0 8px; height: 32px; background: var(--card); border-right: 1px solid var(--line); }
.gantt-head .gantt-left { height: 46px; background: var(--thead); font-size: 12px; color: var(--ink-3); z-index: 4; }
.gantt-row.is-stage .gantt-left { background: var(--brand-soft); }
.gantt-row:hover .gantt-left { background: var(--hover); }
.gantt-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.gantt-indent { padding-left: 14px; color: var(--ink-2); font-weight: 400; }
.gantt-days { flex: 0 0 56px; text-align: right; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.gantt-status { flex: 0 0 66px; text-align: center; }
.gantt-act { flex: 0 0 118px; display: flex; gap: 2px; justify-content: flex-end; }
/* 任务中心的横道图＝纯可视化（操作移到上边「本项目任务清单」表里），左侧只留 名称/天数/状态 */
.gantt-left.is-min { width: 258px; flex: 0 0 258px; }
/* 任务清单表（📋 本项目任务清单）：阶段/任务逐行列出，横道图按它自动生成 */
.gantt-list-wrap { overflow: auto; max-height: 42vh; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.gantt-list { width: 100%; border-collapse: collapse; font-size: 13px; }
.gantt-list th { position: sticky; top: 0; z-index: 2; background: var(--thead); color: var(--ink-3); font-size: 12px; font-weight: 500; text-align: left; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.gantt-list td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.gantt-list tbody tr:hover { background: var(--hover); }
.gantt-list tr.is-stage { background: var(--brand-soft); font-weight: 600; }
.gantt-list tr.is-stage:hover { background: var(--brand-soft); }
.gantt-list .gl-name { max-width: 0; width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt-list .gl-indent { padding-left: 22px; color: var(--ink-2); font-weight: 400; }
.gantt-list .gl-w { width: 76px; }
.gantt-list .gl-w2 { width: 104px; }
.gantt-list .gl-w3 { width: 96px; }
.gantt-list .gl-num { font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.gantt-list .gl-act { width: 132px; white-space: nowrap; text-align: right; }
.gantt-track { position: relative; flex: 0 0 auto; height: 32px; }
.gantt-head .gantt-track { height: 46px; }
.gantt-months, .gantt-ticks { display: flex; height: 23px; }
.gantt-month { flex: 0 0 auto; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-left: 6px; font-size: 11px; color: var(--ink-2); line-height: 22px; overflow: hidden; white-space: nowrap; }
.gantt-tick { flex: 0 0 auto; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 10px; color: var(--ink-3); text-align: center; line-height: 22px; overflow: hidden; }
.gantt-bar { position: absolute; top: 5px; height: 22px; border-radius: 5px; padding: 0 8px; font-size: 12px; line-height: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; box-shadow: var(--shadow-sm); }
.gantt-row.is-stage .gantt-bar { top: 7px; height: 18px; line-height: 18px; font-size: 11.5px; }
.gantt-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--danger); opacity: .6; }
.gantt-legend { display: inline-flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); font-weight: 400; }
.gantt-legend b { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

/* ---------- 工具类 ---------- */
.table-empty { text-align: center; color: var(--dim); padding: 34px 0; font-size: 13px; letter-spacing: 1px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .spacer { flex: 1; }
/* 我的申请：单工具条（类型切换 + 搜索 + 状态 + 刷新 + 发起申请），无卡片包裹时自带底板 */
.apply-bar { padding: 10px 12px; border-radius: var(--radius); background: var(--card, transparent); border: 1px solid var(--line); }
.money-cell { font-variant-numeric: tabular-nums; font-weight: 600; }
.subtle { color: var(--ink-3); font-size: 12px; }
/* 通用列表页顶部提示条（如：审批入口说明） */
.crud-hint { margin: 2px 0 8px; padding: 6px 11px; font-size: 12.5px; line-height: 1.6; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--ink-2); border: 1px solid var(--line); }
/* 审批页汇总卡 */
.appr-stats { display: flex; gap: 22px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 10px; border-radius: var(--radius-sm); background: var(--brand-soft); border: 1px solid var(--line); }
.appr-stats b { font-size: 17px; color: var(--brand); }
.appr-stats span { font-size: 12.5px; color: var(--ink-2); }
.danger-text { color: var(--danger); }
.green { color: var(--brand); }
.link-text { color: var(--brand); cursor: pointer; }

/* ---------- Naive UI 微调（浅色皮肤） ---------- */
html:not([data-skin="dark"]) .n-tabs .n-tabs-tab { font-weight: 500; transition: color .15s; }
html:not([data-skin="dark"]) .n-tabs .n-tabs-tab--active { font-weight: 600; }
html:not([data-skin="dark"]) .n-data-table .n-data-table-th { background: var(--thead) !important; font-weight: 600; color: var(--ink-2) !important; }
html:not([data-skin="dark"]) .n-data-table .n-data-table-tr:hover .n-data-table-td { background: var(--hover) !important; }
html:not([data-skin="dark"]) .n-data-table .n-data-table-td { color: var(--ink-2); }
.n-card { border-radius: var(--radius) !important; }
.n-modal .n-card { box-shadow: var(--shadow-lg) !important; }
.n-button { font-weight: 500; }

/* ---------- 悬浮球（手动考勤） ---------- */
.float-ball {
  position: fixed; right: 30px; bottom: 30px; width: 54px; height: 54px; border-radius: 50%;
  background: var(--brand-grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 25px; cursor: pointer;
  box-shadow: 0 10px 26px var(--brand-glow-lg), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: all .2s var(--ease); z-index: 100;
}
.float-ball:hover { transform: translateY(-3px) scale(1.06); }
.float-ball::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--brand-glow); animation: ballPulse 2.4s ease-out infinite; }
@keyframes ballPulse { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }

/* ---------- 表单分组标题（员工登记表口径：基本信息 / 户籍与联系方式 / 教育与技能 / 薪资与备注 / 登录账号） ---------- */
.form-sec {
  grid-column: 1 / -1;
  margin: 10px 0 2px;
  padding: 4px 0 4px 9px;
  border-left: 3px solid var(--brand);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(90deg, var(--brand-soft, rgba(22,119,255,.07)), transparent 70%);
  border-radius: 3px;
}
.form-sec:first-child { margin-top: 0; }

/* ---------- 必填提示：表单顶部一行说明，配合 naive-ui 标签右侧的红星（n-form-item :required） ---------- */
.form-req-hint {
  margin: 0 0 8px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--text-2, #6b7280);
  background: var(--bg-soft, rgba(0, 0, 0, .03));
  border-radius: 4px;
}
.form-req-hint b { color: var(--n-asterisk-color, #d03050); font-weight: 700; }

/* ---------- 报告弹窗（关联数据同步报告等只读多行文本） ---------- */
.report-text {
  margin: 0;
  max-height: 56vh;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}

/* ---------- 考勤展板：左右双栏（左＝月视图，右＝日视图）；窄屏自动上下堆叠 ---------- */
.att-dual { display: flex; gap: 14px; align-items: flex-start; }
.att-dual > .card { flex: 1 1 0; min-width: 0; margin: 0; }
.att-dual .card-title { flex-wrap: wrap; row-gap: 6px; }
/* 表格在窄栏内横向滚动，避免列被挤压 */
.att-dual .n-data-table .n-data-table-base-table { overflow-x: auto; }
.att-dual .n-data-table { --n-th-font-weight: 600; }
.att-dual .stat-row { flex-wrap: wrap; }
@media (max-width: 1280px) { .att-dual { flex-direction: column; } }

/* ---------- 数据字典：未被页面引用时左侧标灰条 ---------- */
.dict-unused { border-left: 3px solid var(--dim); }

/* 薪资参数：学历基本工资网格（小输入框，一行三档，不再一行一个） */
.cfg-sub { font-size: 12px; color: var(--sub); margin: 2px 0 8px; }
.edu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; }
.edu-cell { display: flex; align-items: center; gap: 8px; }
.edu-cell .edu-lv { flex: 0 0 74px; font-size: 12px; color: var(--text); text-align: right; }
@media (max-width: 900px) { .edu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 列表 / 卡片 双视图（通用 CRUD 卡片模式，spec.card） ---------- */
.crud-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 12px; margin-top: 10px; }
.crud-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card-bg, #fff);
  display: flex; flex-direction: column; gap: 8px; transition: all .16s var(--ease);
}
.crud-card.is-clickable { cursor: pointer; }
.crud-card.is-clickable:hover { border-color: var(--brand); box-shadow: 0 8px 20px var(--brand-glow); transform: translateY(-2px); }
.cc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cc-title { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-sub { font-size: 12px; color: var(--sub); }
.cc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
.cc-field { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.cc-label { flex: 0 0 auto; font-size: 12px; color: var(--sub); }
.cc-value { font-size: 12.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-progress { margin-top: 2px; }
.cc-actions { display: flex; gap: 6px; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 8px; }
.list-pager { display: flex; justify-content: flex-end; margin-top: 12px; }

/* ---------- 项目工作台：项目详情（任务/技术设计/成果/合同 收进项目内部） ---------- */
.proj-detail-head { display: flex; flex-direction: column; gap: 10px; }
.proj-detail-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.proj-detail-name { font-size: 16px; font-weight: 700; }
.proj-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 16px; }
.proj-fact { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.proj-fact .pf-label { flex: 0 0 auto; font-size: 12px; color: var(--sub); }
.proj-fact .pf-value { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-metrics { display: flex; gap: 10px; flex-wrap: wrap; }
.proj-metric {
  border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; min-width: 92px;
  display: flex; flex-direction: column; gap: 2px; background: var(--card-bg, #fff);
}
.proj-metric b { font-size: 17px; }
.proj-metric span { font-size: 12px; color: var(--sub); }
.proj-sub { margin-top: 12px; }

/* ---------- 报销多级审批（第一/第二审批人） ---------- */
.approver-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: 12.5px; }
.appr-chip { padding: 3px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); }
.appr-chip b { color: var(--brand); }
.stage-mine { color: var(--brand); font-weight: 600; }
.set-note { font-size: 12.5px; line-height: 1.9; color: var(--ink-2); background: var(--brand-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; margin-bottom: 12px; }
.set-form { display: flex; flex-direction: column; gap: 14px; }
.set-row { display: flex; flex-direction: column; gap: 6px; }
.set-label { font-size: 13px; font-weight: 600; color: var(--ink); }

