/* =====================================================================
   绿康Team 界面设计系统（沿用原 TeamCollab 设计基底）

   改造目标：从"功能堆砌"升级为"能直接给管理层用"的专业后台。
   三条主线：
     1. 建立设计变量（色彩/圆角/阴影/间距），杜绝各处临时取色；
     2. 固定应用外壳：顶栏 + 侧栏 + 内容区三段式，各区独立滚动；
     3. 统一组件外观：面板、表格、表单、按钮、空状态、加载骨架。

   重要约束：本文件只做视觉升级，不动业务类名，
   下方 Part 2/3 保留并优化了各业务模块原有的全部样式规则，
   避免改 CSS 导致某处变裸奔。
   ===================================================================== */

:root {
    /* 品牌与强调 */
    --tc-brand: #2b5c9e;
    --tc-brand-dark: #20497e;
    --tc-brand-soft: #eef4fb;
    --tc-brand-line: #cfe0f2;

    /* 文字层级 */
    --tc-ink: #1f2937;
    --tc-ink-2: #4a5764;
    --tc-ink-3: #8b95a5;

    /* 线条与底色 */
    --tc-line: #e6eaf0;
    --tc-line-2: #eef1f5;
    --tc-bg: #f5f7fa;
    --tc-panel: #fff;

    /* 深色外壳 */
    --tc-side: #1b2a3a;
    --tc-side-grp: #7d8b9c;

    /* 语义色 */
    --tc-danger: #d14343;
    --tc-danger-soft: #fdecec;
    --tc-warn: #c98b1f;
    --tc-warn-soft: #fdf5e6;
    --tc-ok: #2e8b57;
    --tc-ok-soft: #eaf5ee;
    --tc-info: #3b6ba8;

    /* 形状 */
    --tc-radius: 10px;
    --tc-radius-sm: 7px;
    --tc-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
    --tc-shadow-md: 0 4px 16px rgba(16, 24, 40, .09);
    --tc-shadow-lg: 0 12px 40px rgba(16, 24, 40, .16);
}

/* ---------- 基础 ---------- */
body {
    background: var(--tc-bg);
    color: var(--tc-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* 表格/列表里的数字对齐，避免跳动 */
table, .stat-card, .wb-stat, .proj-card, .feed-time { font-variant-numeric: tabular-nums; }

/* 统一 svg 图标笔描绘法（只作用于本文件自带的线性图标） */
.tc-nav-item svg, .tc-search-ico, .tc-input-ico, .tc-usermenu svg, .tc-caret {
    fill: none; stroke: currentColor; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
}

/* 滚动条：细、无锋利边缘 */
* { scrollbar-width: thin; scrollbar-color: #c8d0da transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #c8d0da; border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: #aab4c0; }
*::-webkit-scrollbar-track { background: transparent; }

/* =====================================================================
   Part 1 · 登录
   ===================================================================== */

.tc-login {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    background: radial-gradient(1200px 600px at 15% 20%, #24425f 0%, #16222e 55%, #101a24 100%);
}

.tc-login-card {
    display: flex;
    width: 880px; max-width: 100%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(6, 14, 24, .45);
}

.tc-login-aside {
    flex: 1 1 46%;
    padding: 46px 40px;
    background: linear-gradient(160deg, #23405c 0%, #1b2a3a 100%);
    color: #fff;
    display: flex; flex-direction: column; justify-content: center;
}

.tc-login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.tc-login-brand-txt { font-size: 19px; font-weight: 600; letter-spacing: .02em; }
.tc-login-brand-txt .sub { font-size: 11.5px; color: #93a4b8; font-weight: 400; letter-spacing: .06em; margin-top: 2px; }

.tc-login-lead { font-size: 21px; font-weight: 600; line-height: 1.55; margin-bottom: 26px; }

.tc-login-points { list-style: none; margin: 0; padding: 0; }
.tc-login-points li { display: flex; gap: 10px; font-size: 13px; color: #b9c6d4; line-height: 1.6; margin-bottom: 12px; }
.tc-login-points .p-ico {
    flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%;
    background: rgba(255, 255, 255, .12); color: #dce6f0;
    font-size: 11px; display: inline-flex; align-items: center; justify-content: center; margin-top: 3px;
}

.tc-login-form { flex: 1 1 54%; padding: 46px 44px; }
.tc-login-title { font-size: 20px; font-weight: 600; color: var(--tc-ink); }
.tc-login-sub { font-size: 13px; color: var(--tc-ink-3); margin: 4px 0 26px; }

.tc-field { margin-bottom: 16px; }
.tc-label { display: block; font-size: 12.5px; color: var(--tc-ink-2); margin-bottom: 6px; font-weight: 500; }

.tc-input-wrap { position: relative; }
.tc-input-ico {
    position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; color: #a8b2bf; pointer-events: none;
}
.tc-input {
    width: 100%; height: 42px;
    padding: 0 12px 0 36px;
    border: 1px solid var(--tc-line); border-radius: var(--tc-radius-sm);
    font-size: 14px; color: var(--tc-ink); background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.tc-input::placeholder { color: #b3bcc7; }
.tc-input:focus {
    outline: none; border-color: var(--tc-brand);
    box-shadow: 0 0 0 3px rgba(43, 92, 158, .12);
}

.tc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 34px; padding: 0 16px;
    border: 1px solid transparent; border-radius: var(--tc-radius-sm);
    font-size: 13.5px; font-weight: 500; cursor: pointer;
    transition: background .15s, border-color .15s, box-shadow .15s, color .15s;
}
.tc-btn-primary { height: 42px; font-size: 14.5px; background: var(--tc-brand); border-color: var(--tc-brand); color: #fff; }
.tc-btn-primary:hover { background: var(--tc-brand-dark); border-color: var(--tc-brand-dark); }
.tc-btn-primary:active { transform: translateY(.5px); }
.tc-btn-block { width: 100%; }

.tc-login-tip { min-height: 22px; color: var(--tc-danger); font-size: 12.5px; margin-top: 10px; text-align: center; }
.tc-login-hint { margin-top: 20px; font-size: 12px; color: var(--tc-ink-3); line-height: 1.7; border-top: 1px solid var(--tc-line-2); padding-top: 14px; }

/* 角色权限分配树 */
.perm-mod { border: 1px solid var(--tc-line-2); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.perm-mod-head { font-size: 13px; display: block; margin-bottom: 4px; }
.perm-children { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-left: 22px; }
.perm-item { font-size: 12px; display: flex; align-items: center; gap: 4px; min-width: 180px; }

/* 事项表单里的负责人维度定位器 */
.tc-assign-by { font-weight: 400; float: right; }

/* 初始密码提示：仅试用期的便利措施，后端关闭开关后不再出现 */
.tc-pwd-hint {
    margin-top: 7px; font-size: 12px; color: var(--tc-ink-2);
    background: #fff8e6; border: 1px solid #f2dfae; border-radius: 7px;
    padding: 6px 10px;
}
.tc-pwd-hint b { color: #b26a00; font-size: 13px; letter-spacing: .06em; }
.tc-pwd-hint .tc-pwd-fill { margin-left: 6px; color: var(--tc-brand); text-decoration: none; }

.tc-logo {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; flex: 0 0 34px;
    background: linear-gradient(140deg, #35679e, #20497e);
    color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em;
    border-radius: 9px;
}
.tc-logo.lg { width: 40px; height: 40px; flex-basis: 40px; font-size: 15px; background: rgba(255, 255, 255, .16); }

/* =====================================================================
   Part 2 · 应用外壳：顶栏 / 侧栏 / 内容区
   ===================================================================== */

.tc-app { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

/* ---------- 顶栏 ---------- */
.tc-topbar {
    flex: 0 0 56px; height: 56px;
    display: flex; align-items: center; gap: 16px;
    padding: 0 18px;
    background: #fff; border-bottom: 1px solid var(--tc-line);
    z-index: 20;
}

.tc-brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.tc-brand-name { font-size: 15px; font-weight: 600; color: var(--tc-ink); line-height: 1.2; }
.tc-brand-sub { font-size: 10.5px; color: var(--tc-ink-3); letter-spacing: .06em; text-transform: uppercase; }

.tc-search {
    position: relative; flex: 0 1 380px; margin-left: 12px;
    display: flex; align-items: center;
}
.tc-search-ico {
    position: absolute; left: 11px; width: 15px; height: 15px; color: #9aa4b0; pointer-events: none;
}
.tc-search-input {
    width: 100%; height: 34px;
    padding: 0 62px 0 33px;
    border: 1px solid transparent; border-radius: 17px;
    background: #f1f4f8; font-size: 13px; color: var(--tc-ink);
    transition: background .15s, border-color .15s, box-shadow .15s;
}
.tc-search-input::placeholder { color: #a3adb9; }
.tc-search-input:focus {
    outline: none; background: #fff; border-color: var(--tc-brand-line);
    box-shadow: 0 0 0 3px rgba(43, 92, 158, .1);
}
.tc-search-kbd {
    position: absolute; right: 8px;
    font-size: 10.5px; color: #9aa4b0; background: #fff;
    border: 1px solid var(--tc-line); border-radius: 4px; padding: 1px 6px;
}

.tc-top-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }

.tc-user {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 8px 4px 4px; border-radius: 20px;
    text-decoration: none; color: var(--tc-ink);
    transition: background .15s;
}
.tc-user:hover { background: #f1f4f8; }
.tc-avatar {
    width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%;
    background: linear-gradient(140deg, #4a7fb5, #2b5c9e); color: #fff;
    font-size: 12.5px; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center;
}
.tc-user-txt { display: flex; flex-direction: column; line-height: 1.25; }
.tc-user-name { font-size: 13px; font-weight: 500; }
.tc-user-dept { font-size: 11px; color: var(--tc-ink-3); }
.tc-caret { width: 14px; height: 14px; color: var(--tc-ink-3); }

.tc-usermenu { border: 1px solid var(--tc-line); box-shadow: var(--tc-shadow-md); border-radius: var(--tc-radius-sm); padding: 6px; min-width: 180px; }
.tc-usermenu .dropdown-item { display: flex; align-items: center; gap: 9px; font-size: 13px; padding: 7px 10px; border-radius: 5px; }
.tc-usermenu .dropdown-item svg { width: 15px; height: 15px; color: var(--tc-ink-3); }
.tc-usermenu .dropdown-item:hover { background: var(--tc-brand-soft); color: var(--tc-brand); }
.tc-usermenu .dropdown-item.tc-danger:hover { background: var(--tc-danger-soft); color: var(--tc-danger); }
.tc-usermenu .dropdown-divider { margin: 4px 6px; }

/* ---------- 主体 ---------- */
.tc-body { flex: 1 1 auto; display: flex; min-height: 0; }

.tc-side {
    flex: 0 0 214px; width: 214px;
    background: var(--tc-side);
    overflow-y: auto; overflow-x: hidden;
    padding: 8px 8px 24px;
}

.tc-nav-group {
    font-size: 11px; color: var(--tc-side-grp); letter-spacing: .08em;
    padding: 16px 10px 6px; font-weight: 500;
}

.tc-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; margin-bottom: 2px;
    border-radius: var(--tc-radius-sm);
    color: #bdc9d6; font-size: 13.5px; text-decoration: none;
    cursor: pointer; position: relative;
    transition: background .14s, color .14s;
}
.tc-nav-item svg { width: 16px; height: 16px; flex: 0 0 16px; opacity: .9; }
.tc-nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.tc-nav-item.active {
    background: var(--tc-brand); color: #fff; font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.tc-nav-item.active svg { opacity: 1; }
.tc-nav-item.active::before {
    content: ''; position: absolute; left: -8px; top: 50%; transform: translateY(-50%);
    width: 3px; height: 18px; border-radius: 0 2px 2px 0; background: #6ea8e8;
}
/* AI 入口做一点点强调，提醒这是本平台差异化能力 */
.tc-nav-item.tc-nav-accent span::after {
    content: 'AI'; margin-left: 6px; font-size: 9.5px; font-weight: 700;
    color: #ffd479; border: 1px solid rgba(255, 212, 121, .45);
    border-radius: 3px; padding: 0 3px; vertical-align: 1px; letter-spacing: .04em;
}

.tc-main {
    flex: 1 1 auto; min-width: 0;
    overflow-y: auto;
    padding: 20px 24px 40px;
}

/* =====================================================================
   Part 3 · 内容区通用组件
   ===================================================================== */

.page-title {
    font-size: 19px; font-weight: 600; color: var(--tc-ink);
    margin-bottom: 14px; letter-spacing: -.01em;
    display: flex; align-items: center; gap: 9px;
}
/* 标题左侧竖条，形成统一的视觉锚点 */
.page-title::before {
    content: ''; width: 3px; height: 17px; border-radius: 2px;
    background: var(--tc-brand); flex: 0 0 3px;
}

.toolbar {
    background: var(--tc-panel); border: 1px solid var(--tc-line);
    border-radius: var(--tc-radius); padding: 14px 16px;
    margin-bottom: 14px; box-shadow: var(--tc-shadow);
}

.panel {
    background: var(--tc-panel); border: 1px solid var(--tc-line);
    border-radius: var(--tc-radius); padding: 16px 18px;
    margin-bottom: 14px; box-shadow: var(--tc-shadow);
}

.panel-title {
    font-size: 14px; font-weight: 600; color: var(--tc-ink);
    margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--tc-line-2);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.panel-title .pt-sub { font-size: 12px; color: var(--tc-ink-3); font-weight: 400; }

/* ---------- 表单控件统一为 –sm 尺寸一致的观感 ---------- */
.form-label, .toolbar label.form-label {
    font-size: 12px; color: var(--tc-ink-2); margin-bottom: 4px; font-weight: 500;
}
.form-control, .form-select { border-color: #d8dee7; border-radius: var(--tc-radius-sm); font-size: 13.5px; }
.form-control:focus, .form-select:focus {
    border-color: var(--tc-brand); box-shadow: 0 0 0 3px rgba(43, 92, 158, .12);
}
.form-control-sm, .form-select-sm { border-radius: 6px; }
textarea.form-control { line-height: 1.65; }

.btn { border-radius: var(--tc-radius-sm); font-size: 13.5px; transition: all .15s; }
.btn-sm { border-radius: 6px; }
.btn-primary { background: var(--tc-brand); border-color: var(--tc-brand); }
.btn-primary:hover, .btn-primary:focus { background: var(--tc-brand-dark); border-color: var(--tc-brand-dark); }
.btn-outline-primary { color: var(--tc-brand); border-color: var(--tc-brand-line); }
.btn-outline-primary:hover { background: var(--tc-brand-soft); border-color: var(--tc-brand); color: var(--tc-brand); }
.btn-outline-secondary { color: var(--tc-ink-2); border-color: #d8dee7; }
.btn-outline-secondary:hover { background: #f2f5f9; color: var(--tc-ink); border-color: #c6ced9; }
.btn:disabled { opacity: .55; }

/* ---------- 表格 ---------- */
.table { margin-bottom: 0; }
.table > thead th {
    font-size: 12px; font-weight: 600; color: var(--tc-ink-2);
    background: #f8fafc; border-bottom: 1px solid var(--tc-line);
    padding: 10px 12px; white-space: nowrap; letter-spacing: .01em;
}
.table > tbody td { font-size: 13.5px; color: var(--tc-ink-2); padding: 10px 12px; border-bottom: 1px solid var(--tc-line-2); }
.table > tbody tr:last-child td { border-bottom: none; }
.table-hover > tbody > tr:hover > * { background: #f7fafd; }
.table-sm > tbody td { padding: 8px 12px; }
/* 列表里"没有数据"时不要塌成一团 */
.table > tbody td:empty::after { content: '—'; color: #c3cad3; }

/* ---------- 空状态 / 加载 ---------- */
.empty-tip {
    color: var(--tc-ink-3); font-size: 13px; text-align: center;
    padding: 30px 0; border-radius: var(--tc-radius-sm);
    display: flex; flex-direction: column; align-items: center; gap: 8px; line-height: 1.6;
}
/* 空态前加一枚淡雅的占位标记，比一行灰字有辨识度 */
.empty-tip::before {
    content: ''; width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(135deg, #eef1f5 0%, #e4e9f0 100%);
    border: 1px dashed #ccd4de;
}

/* 骨架屏：数据没到之前先占位，避免"一片空白然后突然蹦出来" */
.tc-skeleton { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.tc-skeleton i {
    display: block; height: 14px; border-radius: 5px;
    background: linear-gradient(90deg, #eef1f5 25%, #e3e8ef 37%, #eef1f5 63%);
    background-size: 400% 100%;
    animation: tc-shimmer 1.3s ease-in-out infinite;
}
.tc-skeleton i.w40 { width: 40%; }
.tc-skeleton i.w60 { width: 60%; }
.tc-skeleton i.w80 { width: 80%; }
.tc-skeleton i.tall { height: 40px; }
@keyframes tc-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- 统计卡 ---------- */
.stat-card {
    background: var(--tc-panel); border: 1px solid var(--tc-line);
    border-radius: var(--tc-radius); padding: 14px 16px; text-align: left;
    box-shadow: var(--tc-shadow); height: 100%;
    transition: box-shadow .15s, transform .15s;
}
.stat-card:hover { box-shadow: var(--tc-shadow-md); }
.stat-card .num { font-size: 25px; font-weight: 600; color: var(--tc-ink); line-height: 1.25; }
.stat-card .lbl { font-size: 12px; color: var(--tc-ink-3); margin-top: 1px; }
.stat-card.danger { border-left: 3px solid var(--tc-danger); }
.stat-card.danger .num { color: var(--tc-danger); }
.stat-card.success { border-left: 3px solid var(--tc-ok); }
.stat-card.success .num { color: var(--tc-ok); }
.stat-card.warning { border-left: 3px solid var(--tc-warn); }
.stat-card.warning .num { color: var(--tc-warn); }
.stat-card.info { border-left: 3px solid var(--tc-info); }
.stat-card.info .num { color: var(--tc-info); }

/* ---------- 状态标签：加实心点，扫一眼就能分辨 ---------- */
.badge-status {
    font-size: 12px; padding: 3px 9px 3px 7px; border-radius: 20px;
    display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.badge-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .75; }
.st-0 { background: #f1f3f6; color: #6b7583; }
.st-1 { background: #e7f1f7; color: #2b6a8c; }
.st-2 { background: #e6eefb; color: #2a5fa8; }
.st-3 { background: #fdf3e0; color: #9a7318; }
.st-4 { background: #e7f4eb; color: #237a4b; }
.st-5 { background: #fdecec; color: #b03a3a; }
.st-6 { background: #f1f3f6; color: #8b95a5; }

/* ---------- 提示条 / 引用 ---------- */
.notice-bar {
    background: var(--tc-warn-soft); border: 1px solid #f5e3bd; color: #8a6414;
    padding: 9px 13px; border-radius: var(--tc-radius-sm); font-size: 12.5px; margin-bottom: 12px;
}
.ref-item {
    background: #f8fafc; border-left: 3px solid var(--tc-info); border-radius: 0 6px 6px 0;
    padding: 8px 11px; margin-bottom: 8px; font-size: 12.5px; color: var(--tc-ink-2);
}
.ref-item .ref-title { font-weight: 600; color: var(--tc-ink); margin-bottom: 3px; }

/* =====================================================================
   Part 4 · 业务模块（对既有类名做视觉升级，保持不变性）
   ===================================================================== */

/* ---------- 工作看板 ---------- */
.board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
.board-col {
    flex: 0 0 288px; background: #eef1f5; border-radius: var(--tc-radius);
    padding: 12px; min-height: 220px; border: 1px solid #e4e9f0;
}
.board-col-head {
    font-size: 13px; font-weight: 600; color: var(--tc-ink-2);
    margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center;
}
.board-col-head .badge {
    background: #d6dce4; color: var(--tc-ink-2); border-radius: 20px;
    font-size: 11px; font-weight: 600; padding: 2px 8px;
}
.matter-card {
    background: #fff; border-radius: var(--tc-radius-sm); padding: 11px 13px;
    margin-bottom: 8px; cursor: pointer; border-left: 3px solid #8b95a5;
    box-shadow: var(--tc-shadow); border-top: 1px solid var(--tc-line);
    border-right: 1px solid var(--tc-line); border-bottom: 1px solid var(--tc-line);
    transition: box-shadow .15s, transform .15s;
}
.matter-card:hover { box-shadow: var(--tc-shadow-md); transform: translateY(-1px); }
.matter-card .mc-title { font-size: 13.5px; color: var(--tc-ink); line-height: 1.55; margin-bottom: 7px; font-weight: 500; }
.matter-card .mc-meta { font-size: 12px; color: var(--tc-ink-3); display: flex; justify-content: space-between; gap: 8px; }
.prio-4 { border-left-color: var(--tc-danger) !important; }
.prio-3 { border-left-color: var(--tc-warn) !important; }
.prio-2 { border-left-color: var(--tc-info) !important; }
.prio-1 { border-left-color: #8b95a5 !important; }
.overdue-flag {
    color: var(--tc-danger); font-size: 11px; background: var(--tc-danger-soft);
    border: 1px solid #f6d5d5; border-radius: 10px; padding: 0 6px; white-space: nowrap;
}

/* ---------- 时间线 ---------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 10px 0 10px 18px; border-left: 2px solid var(--tc-line); position: relative; }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before {
    content: ''; position: absolute; left: -6px; top: 16px; width: 10px; height: 10px;
    border-radius: 50%; background: #fff; border: 2px solid #c3ccd7;
}
.timeline .tl-time { font-size: 11.5px; color: var(--tc-ink-3); }
.timeline .tl-content { font-size: 13.5px; color: var(--tc-ink); line-height: 1.65; }
.ai-draft { background: #fffaf0; border: 1px dashed #f0ad4e; border-radius: var(--tc-radius-sm); padding: 9px 11px; }
.tl-change { background: #fafbfc; }
.tl-remark { margin-top: 5px; font-size: 12.5px; color: var(--tc-ink-2); }
.timeline .tl-key { background: var(--tc-brand-soft); border-left: 2px solid var(--tc-info); border-radius: 5px; padding: 8px 10px; }

/* ---------- AI 流式输出 ---------- */
.ai-answer-body { white-space: pre-wrap; line-height: 1.8; font-size: 13.5px; color: var(--tc-ink); }
.ai-cursor, .tw-cursor {
    display: inline-block; width: 7px; height: 15px; background: var(--tc-brand);
    vertical-align: -2px; border-radius: 1px; animation: tc-blink .9s steps(1) infinite;
}
@keyframes tc-blink { 0%, 49% { opacity: 1 } 50%, 100% { opacity: 0 } }
.ai-status { font-size: 12.5px; color: var(--tc-ink-3); margin-bottom: 8px; display: flex; align-items: center; }
.ai-status .dot {
    display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    background: var(--tc-info); margin-right: 7px; animation: tc-pulse 1.2s ease-in-out infinite;
}
@keyframes tc-pulse { 0%, 100% { opacity: .3 } 50% { opacity: 1 } }
.stream-meta { font-size: 11.5px; color: var(--tc-ink-3); margin-top: 8px; }
.ai-scope { margin-bottom: 8px; }
.scope-tag {
    display: inline-block; font-size: 11.5px; color: var(--tc-info);
    background: var(--tc-brand-soft); border: 1px solid var(--tc-brand-line);
    padding: 2px 9px; border-radius: 11px;
}
.ai-actions { margin-top: 10px; display: flex; gap: 8px; }

/* ---------- 部门标记 ---------- */
.dept-chip {
    display: inline-block; font-size: 11.5px; color: var(--tc-info);
    background: var(--tc-brand-soft); border: 1px solid var(--tc-brand-line);
    padding: 1px 8px; border-radius: 9px; white-space: nowrap;
}
.mc-dept { margin-top: 5px; font-size: 11.5px; color: var(--tc-ink-3); }

/* ---------- 状态流转图 ---------- */
.flow-track {
    margin: 4px 0 12px; padding: 13px 15px; background: #f8fafc;
    border: 1px solid var(--tc-line); border-radius: var(--tc-radius);
}
.flow-main { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.flow-node {
    font-size: 12.5px; padding: 4px 12px; border-radius: 20px; white-space: nowrap;
    border: 1px solid #dde3ea; background: #fff; color: var(--tc-ink-3);
}
.flow-node.passed { background: var(--tc-brand-soft); border-color: var(--tc-brand-line); color: var(--tc-info); }
.flow-node.cur { background: var(--tc-brand); border-color: var(--tc-brand); color: #fff; font-weight: 600; }
.flow-arrow { width: 16px; height: 1px; background: #c2cad4; position: relative; flex: 0 0 16px; }
.flow-arrow::after {
    content: ''; position: absolute; right: 0; top: -2px;
    border-left: 4px solid #c2cad4; border-top: 2.5px solid transparent; border-bottom: 2.5px solid transparent;
}
.flow-side {
    margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e2e7ee;
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.flow-side-label { font-size: 11.5px; color: var(--tc-ink-3); margin-right: 2px; }
.flow-sep { font-size: 12px; color: #c2cad4; }

/* ---------- 跟踪流 ---------- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed-item { display: flex; gap: 12px; padding: 11px 8px; border-bottom: 1px solid #f2f4f7; border-radius: 6px; cursor: pointer; }
.feed-item:last-child { border-bottom: none; }
.feed-item:hover { background: #f7fafd; }
.feed-time { flex: 0 0 92px; font-size: 11.5px; color: var(--tc-ink-3); padding-top: 2px; }
.feed-main { flex: 1 1 auto; min-width: 0; }
.feed-head { font-size: 13px; color: var(--tc-ink); margin-bottom: 3px; }
.feed-matter { font-size: 12.5px; color: var(--tc-ink-2); margin-left: 8px; }
.feed-text { font-size: 13px; color: var(--tc-ink-2); white-space: pre-wrap; line-height: 1.65; }
.feed-change { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 2px 0; }
.feed-status-from { font-size: 12.5px; color: var(--tc-ink-3); text-decoration: line-through; }
.feed-status-to {
    font-size: 12.5px; color: var(--tc-info); font-weight: 600;
    background: var(--tc-brand-soft); border: 1px solid var(--tc-brand-line);
    padding: 1px 10px; border-radius: 12px;
}
.feed-arrow { width: 14px; height: 1px; background: #b8c2ce; position: relative; flex: 0 0 14px; }
.feed-arrow::after {
    content: ''; position: absolute; right: 0; top: -2.5px;
    border-left: 4px solid #b8c2ce; border-top: 3px solid transparent; border-bottom: 3px solid transparent;
}

/* ---------- 组织架构 ---------- */
.org-tree-box { max-height: calc(100vh - 260px); overflow: auto; }
.org-node {
    display: flex; align-items: center; gap: 4px; padding: 6px 9px; cursor: pointer;
    border-radius: var(--tc-radius-sm); font-size: 13.5px; color: var(--tc-ink);
    transition: background .13s;
}
.org-node:hover { background: #eef2f7; }
.org-node.active { background: var(--tc-brand); color: #fff; }
.org-node.active .org-principal, .org-node.active .org-count { color: #cfdced; }
.org-node.active .org-count { background: rgba(255, 255, 255, .16); }
.org-toggle { width: 13px; flex: 0 0 13px; color: var(--tc-ink-3); font-size: 10px; text-align: center; user-select: none; }
.org-node.active .org-toggle { color: #cfdced; }
.org-name { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-principal { font-size: 11.5px; color: var(--tc-ink-2); white-space: nowrap; }
.org-count {
    font-size: 11px; color: var(--tc-ink-2); background: #eef1f5;
    padding: 1px 7px; border-radius: 9px; white-space: nowrap;
}
.org-children.collapsed { display: none; }

.dept-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dept-path { font-size: 12px; color: var(--tc-ink-3); margin-top: 2px; }
.dept-name-lg { font-size: 18px; font-weight: 600; color: var(--tc-ink); }

.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; font-size: 13px; }
.info-grid .ig-label { color: var(--tc-ink-3); font-size: 12px; margin-bottom: 2px; }
.info-grid .ig-value { color: var(--tc-ink); }

.leader-item {
    display: flex; align-items: center; gap: 10px; padding: 9px 11px;
    border-bottom: 1px solid #f2f4f7; font-size: 13px; border-radius: 6px;
}
.leader-item:hover { background: #f8fafc; }
.leader-item:last-child { border-bottom: none; }
.leader-rank {
    width: 24px; height: 24px; border-radius: 50%; background: var(--tc-brand); color: #fff;
    font-size: 11px; display: flex; align-items: center; justify-content: center; flex: 0 0 24px;
}
.leader-name { font-weight: 600; color: var(--tc-ink); }
.leader-title { color: var(--tc-ink-2); font-size: 12.5px; }
.leader-meta { margin-left: auto; color: var(--tc-ink-3); font-size: 12px; }

/* ---------- 离职状态 ---------- */
.depart-flag {
    display: inline-block; font-size: 11.5px; color: var(--tc-ink-3);
    background: #f2f4f7; padding: 2px 8px; border-radius: 10px;
}
.row-depart { opacity: .62; }
.row-depart td { color: var(--tc-ink-3); }
.principal-depart { font-size: 11.5px; color: var(--tc-danger); margin-left: 5px; }

/* ---------- 部门作战室指标 ---------- */
.wb-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.wb-stat {
    font-size: 11.5px; color: var(--tc-ink-2); background: #f4f7fa;
    border: 1px solid var(--tc-line-2); padding: 5px 12px; border-radius: 7px;
}
.wb-stat b { font-size: 14px; color: var(--tc-ink); margin-right: 4px; }
.wb-stat.ok b { color: var(--tc-ok); }
.wb-stat.warn b { color: var(--tc-warn); }
.wb-stat.bad b { color: var(--tc-danger); }

/* ---------- 个人工作台 ---------- */
.wb-hello {
    display: flex; justify-content: space-between; align-items: flex-end;
    padding: 16px 18px; margin-bottom: 14px;
    background: linear-gradient(100deg, #eef4fb 0%, #f7f9fc 55%, #fff 100%);
    border: 1px solid var(--tc-line); border-radius: var(--tc-radius); box-shadow: var(--tc-shadow);
}
.wb-name { font-size: 19px; font-weight: 600; color: var(--tc-ink); }
.wb-sub { font-size: 12.5px; color: var(--tc-ink-3); margin-top: 3px; }
.wb-date { font-size: 12.5px; color: var(--tc-ink-3); }
.wb-badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; margin-left: 6px; vertical-align: 2px; }
.wb-badge.admin { background: var(--tc-brand); color: #fff; }
.wb-badge.principal { background: var(--tc-brand-soft); color: var(--tc-info); border: 1px solid var(--tc-brand-line); }
.wb-matter { cursor: pointer; }

/* ---------- SOP ---------- */
.sop-list { display: flex; flex-direction: column; gap: 7px; }
.sop-item {
    border: 1px solid var(--tc-line); border-radius: var(--tc-radius-sm);
    background: #fff; overflow: hidden; transition: box-shadow .15s, border-color .15s;
}
.sop-item:hover { border-color: var(--tc-brand-line); box-shadow: var(--tc-shadow); }
.sop-head { display: flex; align-items: center; gap: 8px; padding: 10px 13px; cursor: pointer; }
.sop-head:hover { background: #f7fafd; }
.sop-title { font-size: 13.5px; color: var(--tc-ink); flex: 1 1 auto; font-weight: 500; }
.sop-scope {
    font-size: 11.5px; color: var(--tc-info); background: var(--tc-brand-soft);
    border: 1px solid var(--tc-brand-line); padding: 1px 8px; border-radius: 9px;
}
.sop-cat { font-size: 11.5px; color: var(--tc-ink-2); background: #f4f7fa; padding: 1px 8px; border-radius: 9px; }
.sop-steps { font-size: 11.5px; color: var(--tc-ink-3); }
.sop-ver { font-size: 11.5px; color: var(--tc-ink-3); }
.sop-fold { font-size: 11.5px; color: var(--tc-info); flex: 0 0 auto; }
.sop-body { padding: 2px 13px 13px 13px; border-top: 1px dashed var(--tc-line); }
.sop-steps { margin: 8px 0 0; padding-left: 20px; }
.sop-steps li { font-size: 13px; color: var(--tc-ink-2); line-height: 1.85; white-space: pre-wrap; }
.sop-summary { margin-top: 8px; font-size: 12.5px; color: var(--tc-ink-3); }

/* =====================================================================
   Part 5 · 事项全生命周期 / 项目 / 驾驶舱
   ===================================================================== */

/* 责任四件套 */
.duty-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.duty-card {
    flex: 1 1 140px; background: #f8fafc; border: 1px solid var(--tc-line);
    border-radius: var(--tc-radius-sm); padding: 11px 13px; min-width: 130px;
}
.duty-card .dc-label { font-size: 11.5px; color: var(--tc-ink-3); }
.duty-card .dc-name { font-size: 14px; color: var(--tc-ink); font-weight: 600; margin: 2px 0; }
.duty-card .dc-time { font-size: 11.5px; color: var(--tc-ink-2); }
.duty-card .dc-hint { font-size: 11.5px; color: var(--tc-danger); }

/* 五步生命周期条 */
.life-steps { display: flex; gap: 6px; margin-bottom: 14px; }
.life-step {
    flex: 1 1 0; text-align: center; padding: 11px 4px; border-radius: var(--tc-radius-sm);
    background: #f1f3f6; border: 1px solid #e6eaf0; position: relative; min-width: 0;
}
.life-step.done { background: var(--tc-ok-soft); border-color: #c9e5d4; }
.life-step .ls-dot {
    width: 22px; height: 22px; line-height: 22px; border-radius: 50%;
    margin: 0 auto 5px; font-size: 11.5px; background: #cbd2d9; color: #fff;
}
.life-step.done .ls-dot { background: var(--tc-ok); }
.life-step .ls-name { font-size: 12.5px; color: var(--tc-ink); font-weight: 600; }
.life-step .ls-person {
    font-size: 11.5px; color: var(--tc-ink-2); margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.life-step .ls-time { font-size: 11px; color: var(--tc-ink-3); margin-top: 1px; }
.life-step.todo .ls-time { color: var(--tc-danger); }

/* AI 验收建议 */
.check-advice { border: 1px solid var(--tc-line); border-radius: var(--tc-radius-sm); padding: 13px 15px; background: #fff; }
.check-advice .ca-head { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.ck-pass .ca-head { color: var(--tc-ok); }
.ck-reject .ca-head { color: var(--tc-danger); }
.ck-unsure .ca-head { color: var(--tc-warn); }
.ck-pass { border-color: #c9e5d4; background: var(--tc-ok-soft); }
.ck-reject { border-color: #f3cfd1; background: var(--tc-danger-soft); }
.ck-unsure { border-color: #f5e3bd; background: var(--tc-warn-soft); }
.check-advice .ca-block { margin-top: 8px; }
.check-advice .ca-title { font-size: 12px; color: var(--tc-ink-3); margin-bottom: 4px; }
.check-advice .ca-title.ok { color: var(--tc-ok); }
.check-advice .ca-title.no { color: var(--tc-danger); }
.check-advice ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--tc-ink-2); line-height: 1.75; }
.check-advice .ca-foot { margin-top: 10px; font-size: 11.5px; color: var(--tc-ink-3); }

/* 项目卡 */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.proj-card {
    background: #fff; border: 1px solid var(--tc-line); border-radius: var(--tc-radius);
    padding: 15px 17px; cursor: pointer; box-shadow: var(--tc-shadow);
    transition: box-shadow .15s, transform .15s;
}
.proj-card:hover { box-shadow: var(--tc-shadow-md); transform: translateY(-2px); }
.proj-card.risky { border-left: 3px solid var(--tc-danger); }
.proj-card .pc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.proj-card .pc-name { font-size: 14.5px; font-weight: 600; color: var(--tc-ink); }
.proj-card .pc-code { font-size: 11.5px; color: var(--tc-ink-3); }
.proj-card .pc-meta { font-size: 12px; color: var(--tc-ink-3); margin: 4px 0 9px; }
.proj-card .pc-bar { height: 6px; background: #eef1f5; border-radius: 3px; overflow: hidden; }
.proj-card .pc-bar-in { height: 100%; background: linear-gradient(90deg, #4a7fb5, var(--tc-brand)); border-radius: 3px; }
.proj-card .pc-nums { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 9px; font-size: 11.5px; color: var(--tc-ink-2); }
.proj-card .pc-nums b { color: var(--tc-ink); font-size: 13px; }
.proj-card .pc-red, .proj-card .pc-red b { color: var(--tc-danger); }

/* 趋势图 */
.trend-row { display: flex; align-items: flex-end; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.trend-col { flex: 0 0 26px; text-align: center; }
.trend-col .tc-bar { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 62px; }
.trend-col .tc-new, .trend-col .tc-done { width: 9px; background: var(--tc-info); border-radius: 2px 2px 0 0; }
.trend-col .tc-done { background: var(--tc-ok); }
.trend-col .tc-date { font-size: 10px; color: var(--tc-ink-3); margin-top: 3px; }
.tc-legend { display: inline-block; width: 9px; height: 9px; margin-right: 3px; border-radius: 2px; }
.tc-legend-new { background: var(--tc-info); }
.tc-legend-done { background: var(--tc-ok); }

/* ---------- 弹窗 ---------- */
.tc-modal { border: none; border-radius: 12px; box-shadow: var(--tc-shadow-lg); overflow: hidden; }
.tc-modal .modal-header { border-bottom: 1px solid var(--tc-line); padding: 14px 20px; }
.tc-modal .modal-title { font-size: 15.5px; font-weight: 600; }
.tc-modal .modal-body { padding: 18px 20px; }
.tc-modal .modal-footer { border-top: 1px solid var(--tc-line); padding: 12px 20px; }
.modal-backdrop.show { opacity: .32; }

/* =====================================================================
   Part 6 · 响应式
   ===================================================================== */

/* 中等屏：侧栏收成图标条，把宽度让给内容 */
@media (max-width: 1200px) {
    .tc-search { flex-basis: 260px; }
}

@media (max-width: 992px) {
    .tc-side { flex: 0 0 62px; width: 62px; padding: 8px 6px 20px; }
    .tc-side #menu { display: flex; flex-direction: column; }
    .tc-nav-group { padding: 14px 4px 6px; font-size: 9px; text-align: center; letter-spacing: 0; }
    .tc-nav-item { justify-content: center; padding: 9px 0; }
    .tc-nav-item span { display: none; }
    .tc-nav-item svg { width: 18px; height: 18px; flex-basis: 18px; }
    .tc-nav-item.active::before { display: none; }
    .tc-nav-item.tc-nav-accent span::after { display: none; }
    .tc-search { display: none; }
    .tc-user-txt { display: none; }
    .tc-main { padding: 16px; }
    .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .tc-login { padding: 0; }
    .tc-login-card { flex-direction: column; border-radius: 0; min-height: 100vh; width: 100%; }
    .tc-login-aside { padding: 30px 24px; flex: 0 0 auto; }
    .tc-login-lead { font-size: 18px; margin-bottom: 16px; }
    .tc-login-form { padding: 28px 24px; }
    .tc-topbar { padding: 0 12px; gap: 10px; }
    .tc-brand-txt { display: none; }
    .tc-body { flex-direction: column; }
    .tc-side {
        flex: 0 0 auto; width: 100%; max-height: none;
        display: flex; overflow-x: auto; overflow-y: hidden; padding: 6px;
    }
    .tc-side #menu { display: flex; flex-direction: row; gap: 4px; }
    .tc-nav-group { display: none; }
    .tc-nav-item { flex: 0 0 auto; padding: 8px 12px; }
    .tc-nav-item span { display: inline; }
    .tc-main { padding: 14px; }
    .board-col { flex-basis: 250px; }
    .duty-row { flex-direction: column; }
    .life-steps { flex-wrap: wrap; }
    .feed-item { flex-direction: column; gap: 2px; }
    .feed-time { flex: none; }
}

/* =====================================================================
   Part 7 · 数据可视化小组件
   表格里的数字不如图形直观，这几条规则专治"一堆百分比没法比较"
   ===================================================================== */

/* 迷你进度条：表格内的百分比列 */
.mini-bar {
    display: inline-block; width: 58px; height: 5px;
    background: #eef1f5; border-radius: 3px; overflow: hidden;
    vertical-align: middle; margin-right: 7px;
}
.mini-bar i { display: block; height: 100%; border-radius: 3px; background: var(--tc-brand); transition: width .3s; }
.mini-bar i.ok { background: var(--tc-ok); }
.mini-bar i.mid { background: var(--tc-warn); }
.mini-bar i.low { background: var(--tc-danger); }
.mini-bar-txt { font-size: 12px; color: var(--tc-ink-2); font-variant-numeric: tabular-nums; }

/* 优先级色点 */
.prio-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--tc-ink-2); }
.prio-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #8b95a5; flex: 0 0 6px; }
.prio-tag.p1::before { background: #9aa4b0; }
.prio-tag.p2::before { background: var(--tc-info); }
.prio-tag.p3::before { background: var(--tc-warn); }
.prio-tag.p4::before { background: var(--tc-danger); }

/* 清单行可点 */
.mc-row { cursor: pointer; }
.row-matter:active { background: #eef4fb; }

/* 表格单元格长文本截断 */
.table td.text-truncate { max-width: 320px; }

/* Bootstrap 默认 badge 排得太挤，统一调理一下 */
.badge { font-weight: 500; padding: 3px 8px; border-radius: 10px; }

/* =====================================================================
   Part 8 · 遗留分区标题的统一处理

   各页面历史上手写过很多 <div class="mb-2"><b>标题</b></div> 作为分区标题，
   逐个改 JS 成本高、易出错。这里用":only-child 的粗体"精准命中这类标题条
   ——它必定独占一行且没有兄弟元素，不会误伤加粗的正文词。
   ===================================================================== */
#content div.mb-2 > b:only-child {
    display: inline-block;
    font-size: 13.5px; font-weight: 600; color: var(--tc-ink);
    line-height: 1.25; letter-spacing: -.005em;
    padding-left: 9px; border-left: 3px solid var(--tc-brand);
    margin: 4px 0 8px;
}

/* 窄容器（看板列、面板内的小空态）不放大装饰图，避免比例失衡 */
.board-col .empty-tip::before { display: none; }
.panel .empty-tip::before { width: 34px; height: 34px; }
.panel .empty-tip { padding: 22px 0 16px; }

/* =====================================================================
   部门工作台 / 经营看板（workcenter.js）

   与全站同一套语言：白卡 + 浅灰底 + 品牌蓝作强调，
   深色 hero 只在"部门头 / 经营总览"这种一屏只有一个的地方用，
   保证打开页面第一眼落在部门身份上，而不是被一堆数字淹没。
   ===================================================================== */

.wc-tip {
    font-size: 12px; color: var(--tc-ink-3);
    line-height: 1.6; padding: 7px 10px;
    background: var(--tc-brand-soft); border: 1px solid var(--tc-brand-line);
    border-radius: 8px;
}

/* ---------- 部门 / 经营头 ---------- */
.wc-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding: 16px 18px; margin-bottom: 14px; border-radius: 10px;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: #fff;
}
.wc-hero.boss { background: linear-gradient(135deg, #1e3a5f 0%, #2b5c9e 100%); }
.wc-hero-name { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.wc-hero-path { font-size: 12px; opacity: .66; margin-top: 4px; }
.wc-hero-slogan { font-size: 12.5px; opacity: .78; margin-top: 6px; }
.wc-hero-right { display: flex; gap: 22px; flex: 0 0 auto; }
.wc-hero-right > div { text-align: right; }
.wc-hero-right span { display: block; font-size: 11.5px; opacity: .6; margin-bottom: 3px; }
.wc-hero-right b { font-size: 17px; font-weight: 700; }

.wc-tag {
    display: inline-block; font-size: 11px; font-weight: 600;
    padding: 1px 7px; border-radius: 5px; margin-left: 4px;
    background: rgba(255, 255, 255, .18); color: #fff; vertical-align: middle;
}
tr .wc-tag { background: var(--tc-brand-soft); color: var(--tc-brand); }

/* ---------- 部门指标 ---------- */
.wc-kpi-row { display: flex; flex-wrap: wrap; gap: 10px; }
.wc-kpi {
    flex: 1; min-width: 168px; padding: 12px 14px;
    background: #fff; border: 1px solid var(--tc-line); border-radius: 9px;
}
.wc-kpi.warn { border-color: #f3c7c2; background: #fffaf9; }
.wc-kpi-label { font-size: 12px; color: var(--tc-ink-3); margin-bottom: 6px; }
.wc-kpi-value { font-size: 24px; font-weight: 700; color: var(--tc-ink); letter-spacing: -.02em; }
.wc-kpi-value small { font-size: 12px; font-weight: 500; color: var(--tc-ink-3); margin-left: 2px; }
.wc-kpi.warn .wc-kpi-value { color: #c0392b; }
.wc-delta { font-size: 12px; font-weight: 600; margin-left: 6px; }
.wc-delta.up { color: #c0392b; }
.wc-delta.down { color: #1e8e5a; }
.wc-kpi-flag { margin-top: 5px; font-size: 11px; color: #c0392b; }

/* ---------- 部门专属模块 ---------- */
.wc-mod-row { display: flex; flex-wrap: wrap; gap: 10px; }
.wc-mod {
    position: relative; width: 116px; padding: 14px 8px 12px; text-align: center;
    background: #fff; border: 1px solid var(--tc-line); border-radius: 9px; cursor: pointer;
    transition: .15s;
}
.wc-mod:hover { border-color: var(--tc-brand-line); box-shadow: 0 3px 10px rgba(31, 41, 55, .07); transform: translateY(-1px); }
.wc-mod-icon {
    width: 38px; height: 38px; margin: 0 auto 8px; border-radius: 9px;
    background: var(--tc-brand-soft); color: var(--tc-brand);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 600;
}
.wc-mod-name { font-size: 13px; font-weight: 600; color: var(--tc-ink); }
.wc-mod-badge {
    position: absolute; top: 7px; right: 9px; min-width: 17px; height: 17px; line-height: 17px;
    padding: 0 4px; border-radius: 9px; background: #e5484d; color: #fff;
    font-size: 11px; font-weight: 700; text-align: center;
}

/* ---------- 柱状图（外勤 / 趋势） ---------- */
.wc-bar-row { display: flex; gap: 6px; align-items: flex-end; padding: 6px 0 2px; }
.wc-bar-col { flex: 1; text-align: center; }
.wc-bar { height: 46px; display: flex; align-items: flex-end; justify-content: center; }
.wc-bar i { display: block; width: 60%; max-width: 16px; background: var(--tc-brand); border-radius: 3px 3px 0 0; min-height: 2px; }
.wc-bar-x { font-size: 10.5px; color: var(--tc-ink-3); margin-top: 5px; }

/* ---------- 部门动态 ---------- */
.wc-feed { display: flex; flex-direction: column; }
.wc-feed-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--tc-line-2); }
.wc-feed-item:last-child { border-bottom: none; }
.wc-feed-main { flex: 1; min-width: 0; }
.wc-feed-title { font-size: 13.5px; font-weight: 600; color: var(--tc-brand); cursor: pointer; }
.wc-feed-text { font-size: 12.5px; color: var(--tc-ink-2); margin-top: 3px; }
.wc-feed-side { flex: 0 0 auto; text-align: right; font-size: 12.5px; color: var(--tc-ink-2); }

.wc-dept-row { cursor: pointer; }
.wc-dept-row:hover { background: var(--tc-brand-soft); }
