/* ==========================================================
   宏金医管内部管理系统 — 视觉样式
   ========================================================== */

/* ---------- 设计变量 & Element Plus 主题覆盖 ---------- */
:root {
  --brand: #1d6fd0;
  --brand-dark: #134a8e;
  --brand-deep: #0b2540;
  --bg: #f3f6fa;
  --card: #ffffff;
  --text: #1f2937;
  --text-2: #5b6779;
  --text-3: #94a3b8;
  --line: #e9eff6;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 56, .04);
  --shadow: 0 2px 12px rgba(16, 32, 56, .06);
  --shadow-lg: 0 10px 30px rgba(16, 32, 56, .10);

  --el-color-primary: #1d6fd0;
  --el-color-primary-light-3: #5493e0;
  --el-color-primary-light-5: #8bb6e9;
  --el-color-primary-light-7: #bcd4f2;
  --el-color-primary-light-8: #d6e4f8;
  --el-color-primary-light-9: #eaf2fc;
  --el-color-primary-dark-2: #1759a6;
  --el-color-success: #12a150;
  --el-color-warning: #e08700;
  --el-color-danger: #d64545;
  --el-border-radius-base: 8px;
  --el-font-size-base: 13px;
  --el-text-color-primary: #1f2937;
  --el-text-color-regular: #4b5768;
  --el-border-color-lighter: #eef2f8;
}

* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ---------- 登录页 ---------- */
.login-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(1200px 600px at 20% 10%, #1c5f9e 0%, #0d2b46 45%, #08192a 100%);
  position: relative;
  overflow: hidden;
}
.login-wrap::before,
.login-wrap::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}
.login-wrap::before {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(56, 148, 232, .28) 0%, transparent 70%);
  top: -160px; right: -120px;
}
.login-wrap::after {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(29, 111, 208, .24) 0%, transparent 70%);
  bottom: -140px; left: -100px;
}
.login-card {
  position: relative;
  width: 392px;
  background: #fff;
  border-radius: 18px;
  padding: 44px 40px 36px;
  box-shadow: 0 24px 60px rgba(4, 16, 30, .38);
}
.login-card .brand-mark {
  width: 46px; height: 46px;
  margin: 0 auto 16px;
  border-radius: 13px;
  background: linear-gradient(135deg, #2b86e8, #134a8e);
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(29, 111, 208, .35);
  letter-spacing: -1px;
}
.login-card h1 { font-size: 19px; margin: 0 0 6px; color: #10243a; text-align: center; letter-spacing: .3px; }
.login-card .sub { font-size: 11px; color: var(--text-3); text-align: center; margin-bottom: 30px; letter-spacing: 1.2px; text-transform: uppercase; }
.login-card .el-input { margin-bottom: 14px; }
.login-card .el-input__wrapper { height: 42px; border-radius: 9px; background: #f7f9fc; box-shadow: 0 0 0 1px #e7edf5 inset; }
.login-card .el-input__wrapper.is-focus { background: #fff; box-shadow: 0 0 0 1.5px var(--brand) inset; }
.login-card .el-button { width: 100%; height: 42px; border-radius: 9px; font-size: 14px; letter-spacing: 2px; margin-top: 8px; }
.login-card .foot { text-align: center; font-size: 11px; color: #b6c2d1; margin-top: 22px; }

/* ---------- 布局 ---------- */
.layout { height: 100%; display: flex; }

.sidebar {
  width: 216px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0d2b46 0%, #0a2035 100%);
  display: flex;
  flex-direction: column;
  position: relative;
}
.sidebar .logo {
  padding: 20px 18px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.sidebar .logo .mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2b86e8, #16558f);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar .logo .txt { min-width: 0; }
.sidebar .logo .name { font-size: 13.5px; font-weight: 600; color: #fff; letter-spacing: .3px; white-space: nowrap; }
.sidebar .logo .desc { font-size: 10px; color: rgba(255, 255, 255, .38); letter-spacing: .6px; margin-top: 2px; }

.sidebar .nav-label {
  padding: 18px 20px 8px;
  font-size: 10px;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, .3);
  text-transform: uppercase;
}
.sidebar .el-menu { border-right: none; background: transparent; padding: 0 8px; flex: 1; overflow-y: auto; }
.sidebar .el-menu-item {
  height: 40px;
  line-height: 40px;
  margin-bottom: 2px;
  padding-left: 12px !important;
  border-radius: 9px;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar .el-menu-item .mi { width: 16px; height: 16px; flex-shrink: 0; opacity: .78; display: flex; }
.sidebar .el-menu-item .mi svg { width: 16px; height: 16px; }
.sidebar .el-menu-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar .el-menu-item:hover .mi { opacity: 1; }
.sidebar .el-menu-item.is-active {
  background: linear-gradient(90deg, #1d6fd0 0%, #2a80e2 100%);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(29, 111, 208, .38);
}
.sidebar .el-menu-item.is-active .mi { opacity: 1; }

.sidebar .side-foot {
  padding: 12px 20px 16px;
  font-size: 11px;
  color: rgba(255, 255, 255, .28);
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.header {
  height: 62px;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.header .page-title { font-size: 16px; font-weight: 600; color: #16233a; letter-spacing: .2px; }
.header .page-sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.header .user { display: flex; align-items: center; gap: 10px; }
.header .avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f1fd, #cfe1f8);
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #dbe8f9;
}
.header .user-meta { line-height: 1.35; }
.header .user-name { font-size: 13px; font-weight: 500; color: #22314a; }
.header .user-role { font-size: 11px; color: var(--text-3); }
.header .user-actions { display: flex; align-items: center; gap: 2px; margin-left: 6px; padding-left: 10px; border-left: 1px solid var(--line); }

.content { flex: 1; overflow: auto; padding: 20px 24px 28px; }

/* ---------- 卡片 ---------- */
.panel {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 18px 20px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.panel h3, .panel-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1b2942;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel h3::before, .panel-head h3::before {
  content: "";
  width: 3px; height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, #2b86e8, #134a8e);
}
.panel .panel-note { font-size: 12px; color: var(--text-3); font-weight: 400; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .grow { flex: 1; }

/* ---------- 工作台指标卡 ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow .18s ease, transform .18s ease;
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.stat-card .ico {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-card .ico svg { width: 20px; height: 20px; }
.stat-card .ico.blue { background: #e9f2fd; color: #1d6fd0; }
.stat-card .ico.green { background: #e7f7ee; color: #12a150; }
.stat-card .ico.amber { background: #fdf3e2; color: #d98a00; }
.stat-card .ico.red { background: #fdeceb; color: #d64545; }
.stat-card .num { font-size: 25px; font-weight: 600; color: #14233b; line-height: 1.15; letter-spacing: -.4px; }
.stat-card .num.money { font-size: 20px; font-family: Consolas, "SF Mono", monospace; letter-spacing: -.2px; }
.stat-card .num small { font-size: 12px; font-weight: 400; color: var(--text-3); margin-left: 3px; }
.stat-card .label { font-size: 12px; color: var(--text-2); margin-top: 3px; }

/* ---------- 合同分布 ---------- */
.dist-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.dist-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #fbfdff, #f7fafd);
}
.dist-item .d-name { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.dist-item .d-n { font-size: 21px; font-weight: 600; color: #14233b; margin: 7px 0 3px; letter-spacing: -.3px; }
.dist-item .d-n::after { content: ""; }
.dist-item .d-amt { font-size: 11.5px; color: var(--text-3); font-family: Consolas, "SF Mono", monospace; }

/* ---------- 销售漏斗 ---------- */.funnel-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 1080px) { .funnel-row { grid-template-columns: repeat(2, 1fr); } }
.funnel-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px 12px;
  background: #fcfdff;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.funnel-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); border-color: #dbe6f5; }
.funnel-card .f-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.funnel-card .f-name { font-size: 12px; color: var(--text-2); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.funnel-card .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.funnel-card .f-n { font-size: 12px; color: var(--text-3); }
.funnel-card .f-num { font-size: 23px; font-weight: 600; color: #14233b; margin: 6px 0 2px; letter-spacing: -.4px; }
.funnel-card .f-num small { font-size: 11px; font-weight: 400; color: var(--text-3); margin-left: 2px; }
.funnel-card .f-amount { font-size: 12px; color: var(--text-2); font-family: Consolas, "SF Mono", monospace; }
.funnel-card .f-track { height: 4px; background: #eef3fa; border-radius: 3px; margin-top: 10px; overflow: hidden; }
.funnel-card .f-fill { height: 100%; border-radius: 3px; transition: width .5s ease; }
.funnel-card .f-pct { font-size: 10.5px; color: var(--text-3); margin-top: 6px; }

/* ---------- 表格 ---------- */
.panel .el-table {
  --el-table-border-color: transparent;
  --el-table-header-bg-color: #f8fafd;
  --el-table-row-hover-bg-color: #f6fafe;
  font-size: 13px;
}
.panel .el-table th.el-table__cell {
  background: #f8fafd !important;
  color: #64748b;
  font-weight: 600;
  font-size: 12px;
  padding: 10px 0;
}
.panel .el-table td.el-table__cell { padding: 11px 0; border-bottom: 1px solid #f2f6fb; }
.panel .el-table .cell { line-height: 1.5; }
.panel .el-table .op-col .cell { white-space: nowrap; }
.panel .el-table::before { display: none; }
.panel .el-table__inner-wrapper::before { display: none; }
.panel .el-table .el-table__cell.is-first-column::before,
.panel .el-table .el-table__cell.is-last-column::before { display: none; }
.panel .el-table .el-table-fixed-column--right { background: #fff; }
.cell-strong { font-weight: 500; color: #1b2942; }
.cell-sub { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
.cell-money { font-family: Consolas, "SF Mono", monospace; font-size: 13px; color: #14385f; font-weight: 600; }

/* ---------- 状态胶囊 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: 11px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
}
.chip .cdot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.chip-blue { background: #eaf2fd; color: #1a5fb4; border-color: #dbe8fa; }
.chip-amber { background: #fdf4e5; color: #b26a00; border-color: #f8e8cd; }
.chip-green { background: #e9f8f0; color: #0f8a46; border-color: #d6f0e2; }
.chip-red { background: #fdeeed; color: #bf3b3b; border-color: #f8dcd9; }
.chip-gray { background: #f2f4f8; color: #6b7788; border-color: #e7ebf2; }
.chip-purple { background: #f2edfd; color: #6a44c6; border-color: #e6ddfa; }

/* ---------- 待办列表 ---------- */
.todo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid #f2f6fb;
  font-size: 13px;
}
.todo-item:last-child { border-bottom: none; }
.todo-item .t-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.todo-item .t-text { color: #24324a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-item .t-side { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.empty-tip { color: var(--text-3); font-size: 12.5px; text-align: center; padding: 34px 0; }

/* ---------- 占位页 ---------- */
.placeholder { padding: 64px 20px 72px; text-align: center; }
.placeholder .ph-icon {
  width: 54px; height: 54px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: #eef4fc;
  color: #6f9bd1;
  display: flex; align-items: center; justify-content: center;
}
.placeholder .ph-icon svg { width: 26px; height: 26px; }
.placeholder .ph-title { font-size: 15px; font-weight: 600; color: #2c3d57; }
.placeholder .ph-desc { font-size: 12.5px; color: var(--text-3); margin-top: 8px; line-height: 1.7; }

/* ---------- 抽屉内子卡片 ---------- */
.sub-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; background: #fcfdff; }
.sub-card h4 {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #33425c;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.kv { font-size: 13px; line-height: 1.95; color: #34435c; }
.kv .k { color: var(--text-3); margin-right: 6px; }
.kv .danger { color: #bf3b3b; }

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f8fafd;
  margin-bottom: 6px;
  font-size: 12.5px;
}
.file-row a { color: var(--brand); text-decoration: none; }
.file-row a:hover { text-decoration: underline; }

/* 线索现场照片（手机端拍照） */
.photo-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.photo-thumb {
  width: 78px; height: 78px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: #f2f5fa; cursor: zoom-in;
}
.photo-thumb:hover { border-color: var(--brand); }

.upload-btn {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px dashed #b9cfea;
  background: #f5f9ff;
  color: var(--brand);
  font-size: 12.5px;
  cursor: pointer;
  transition: all .16s ease;
}
.upload-btn:hover { border-color: var(--brand); background: #eaf2fd; }

/* ---------- 组织架构 ---------- */
.dept-count { color: var(--text-3); font-size: 11.5px; margin-left: 6px; font-weight: 400; }
.mono { font-family: Consolas, "SF Mono", monospace; }

/* ---------- 补充：Element 局部微调 ---------- */
.el-button { font-weight: 500; }
.el-button--primary { box-shadow: 0 2px 8px rgba(29, 111, 208, .22); }
.el-tag { border-radius: 6px; }
.el-dialog { border-radius: 16px; overflow: hidden; }
.el-dialog__header { padding: 20px 22px 12px; margin-right: 0; }
.el-dialog__title { font-size: 15px; font-weight: 600; color: #16233a; }
.el-dialog__body { padding: 6px 22px 12px; }
.el-dialog__footer { padding: 12px 22px 20px; }
.el-drawer__header { margin-bottom: 0; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); color: #16233a; font-size: 15px; font-weight: 600; }
.el-drawer__body { padding: 18px 22px; background: var(--bg); }
.el-timeline-item__timestamp { font-size: 11.5px; color: var(--text-3); }
.el-input__wrapper, .el-textarea__inner { border-radius: 8px; }
.el-message { border-radius: 10px; }

/* ---------- 合同清单页补充 ---------- */
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h3 { margin: 0; }
.head-actions { display: flex; gap: 8px; }
.toolbar-sum { margin-left: auto; font-size: 12.5px; color: var(--text-3); }
.pager { display: flex; justify-content: flex-end; margin-top: 14px; }

/* 公司分布卡片 */
.company-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.company-card { background: #f8fafd; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.cc-name { font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.cc-num { font-size: 22px; font-weight: 600; color: #14233b; letter-spacing: -.3px; }
.cc-num small { font-size: 12px; font-weight: 400; color: var(--text-3); margin-left: 3px; }
.cc-amt { font-size: 12.5px; color: #0f8a46; font-family: Consolas, "SF Mono", monospace; margin-top: 2px; }
.cc-bar { height: 4px; background: #e8eef7; border-radius: 3px; margin-top: 10px; overflow: hidden; }
.cc-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #2b86e8, #1d6fd0); }

/* 表单两列 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .fi { display: flex; flex-direction: column; gap: 6px; }
.form-grid .fi.full { grid-column: 1 / -1; }
.form-grid .fi label { font-size: 12.5px; color: var(--text-2); }
.form-grid .fi label.req::after { content: " *"; color: #d64545; }
.dlg-note { margin-top: 12px; font-size: 12px; color: var(--text-3); background: #f7f9fc; border-radius: 8px; padding: 8px 10px; }

/* 上传按钮（原生 label 包裹，避免 ref 失效） */
.upload-label { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500;
  color: #fff; background: var(--brand); border-radius: 7px; padding: 4px 10px; cursor: pointer; margin-left: auto; }
.upload-label:hover { background: #175fb4; }
.upload-label input[type=file] { display: none; }
.file-row .del { color: #bf3b3b; cursor: pointer; margin-left: 10px; }
.file-row .del:hover { text-decoration: underline; }

/* 付款方式 */
.terms { font-size: 13px; line-height: 1.9; color: #33415a; white-space: pre-wrap; }

.chip-teal { background: #e8f7f4; color: #0c7a68; border-color: #d3efe9; }

/* ==================== 项目管理 ==================== */
.link { cursor: pointer; transition: color .15s; }
.link:hover { color: var(--brand); }

/* 详情抽屉 */
.pd { padding: 2px 4px 24px; }
.pd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pd-title { font-size: 17px; font-weight: 600; color: #14233b; letter-spacing: .2px; }
.pd-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.pd-txt { font-size: 12px; color: var(--text-3); }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; padding: 14px 0; }
.pd-grid > div { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; }
.pd-grid span { color: var(--text-3); min-width: 62px; }
.pd-grid b { color: #22314a; font-weight: 500; }
.pd-block { padding: 14px 0; border-top: 1px solid var(--line); }
.pd-block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pd-block-head h4 { margin: 0; font-size: 13px; font-weight: 600; color: #1b2942; position: relative; padding-left: 10px; }
.pd-block-head h4::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px; border-radius: 2px; background: var(--brand); }
.pd-hint { font-size: 11.5px; color: var(--text-3); }
.pd-empty { font-size: 12.5px; color: var(--text-3); padding: 10px 12px; background: #f7f9fc; border-radius: 8px; }
.pd-actions { display: flex; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }

/* 阶段流转 */
.stage-flow { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.sf-item { display: flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; border-radius: 8px;
  font-size: 12.5px; color: var(--text-2); cursor: pointer; background: #f7f9fc; border: 1px solid #eef2f8;
  margin-right: 6px; margin-bottom: 6px; transition: all .15s; }
.sf-item:hover { border-color: #cfdcee; background: #f1f6fd; }
.sf-item .sf-dot { width: 18px; height: 18px; border-radius: 50%; background: #e3eaf5; color: #7a8798;
  display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 600; }
.sf-item.done { color: #0f8a46; background: #f2fbf6; border-color: #dcf2e5; }
.sf-item.done .sf-dot { background: #d7f0e2; color: #0f8a46; }
.sf-item.on { color: #fff; background: var(--brand); border-color: var(--brand); box-shadow: 0 3px 10px rgba(29,111,208,.22); }
.sf-item.on .sf-dot { background: rgba(255,255,255,.24); color: #fff; }

/* 成员 */
.mem-list { display: flex; flex-direction: column; gap: 8px; }
.mem-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #eef2f8; border-radius: 9px; }
.mem-av { width: 28px; height: 28px; border-radius: 50%; background: #e9f2fd; color: #1d6fd0;
  display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600; flex-shrink: 0; }
.mem-info { flex: 1; min-width: 0; }
.mem-name { font-size: 13px; color: #1b2942; font-weight: 500; }
.mem-role { font-size: 11px; color: var(--text-3); margin-top: 1px; }

/* 交接单 */
.ho-card { border: 1px solid #eef2f8; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #fdfefe; }
.ho-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ho-top b { font-size: 13px; color: #1b2942; font-weight: 600; }
.ho-date { font-size: 11.5px; color: var(--text-3); margin-left: 8px; }
.ho-prog { display: flex; align-items: center; gap: 10px; margin: 10px 0 8px; font-size: 11.5px; color: var(--text-3); }
.ho-bar { flex: 1; height: 5px; background: #eef3fa; border-radius: 3px; overflow: hidden; }
.ho-bar i { display: block; height: 100%; background: linear-gradient(90deg, #34a853, #12a150); border-radius: 3px; transition: width .4s; }
.ho-items { display: flex; flex-direction: column; gap: 2px; }
.ho-item { display: flex; align-items: center; justify-content: space-between; padding: 2px 0; }
.ho-item .el-checkbox { height: 26px; }
.ho-item .el-checkbox__label { font-size: 12.5px; color: #33415a; }
.ho-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #eef2f8; }
.ho-foot .el-button:last-child { margin-left: auto; }

/* 附件 */
.att-list { display: flex; flex-direction: column; gap: 6px; }
.att-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid #eef2f8; border-radius: 8px; }
.att-name { font-size: 12.5px; color: #1d6fd0; text-decoration: none; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-name:hover { text-decoration: underline; }
.att-meta { font-size: 11px; color: var(--text-3); flex-shrink: 0; }

/* ==================== 工作记录 ==================== */
.quick-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.qf-item { display: flex; flex-direction: column; gap: 5px; }
.qf-item label { font-size: 11.5px; color: var(--text-3); padding-left: 2px; }
.qf-item.qf-btn { padding-bottom: 1px; }
.qf-item.qf-btn .el-button { height: 32px; padding: 0 20px; }
.qf-hint { margin-top: 10px; font-size: 11.5px; color: var(--text-3); background: #f7f9fc; border-radius: 8px; padding: 7px 10px; }

.sat-list { display: flex; flex-direction: column; gap: 7px; }
.sat-row { display: flex; align-items: center; gap: 12px; }
.sat-name { width: 118px; font-size: 12.5px; color: #22314a; flex-shrink: 0; }
.sat-dept { font-size: 10.5px; color: var(--text-3); margin-left: 6px; }
.sat-bar { flex: 1; height: 7px; background: #eef3fa; border-radius: 4px; overflow: hidden; }
.sat-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #6aa9ef, #1d6fd0); transition: width .45s; }
.sat-num { width: 54px; text-align: right; font-size: 12.5px; font-weight: 600; color: #1b2942; font-family: Consolas, monospace; }
.sat-num.low { color: #c0605c; }
.sat-num.high { color: #0f8a46; }
.sat-sub { width: 118px; font-size: 11px; color: var(--text-3); }

.wl-group { margin-bottom: 14px; }
.wl-day { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-2); font-weight: 500;
  padding: 6px 0 8px; border-bottom: 1px dashed #e9eef6; margin-bottom: 6px; }
.wl-week { font-size: 11px; color: var(--text-3); font-weight: 400; }
.wl-day-hours { margin-left: auto; font-size: 11.5px; color: var(--brand); font-weight: 500; }
.wl-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; transition: background .15s; }
.wl-item:hover { background: #f8fafd; }
.wl-main { flex: 1; min-width: 0; }
.wl-content { font-size: 13px; color: #22314a; line-height: 1.5; }
.wl-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.wl-meta .chip { font-size: 10.5px; padding: 1px 7px; }
.wl-proj { font-size: 11.5px; color: var(--text-3); }
.wl-owner { font-size: 11.5px; color: var(--brand); }
.wl-hours { width: 48px; text-align: right; font-size: 13px; font-weight: 600; color: #1b2942; font-family: Consolas, monospace; }
.wl-w { width: 84px; text-align: right; font-size: 11px; color: var(--text-3); font-family: Consolas, monospace; }
.wl-ops { width: 150px; text-align: right; flex-shrink: 0; }
.dev-src { font-size: 12.5px; color: #33415a; background: #f7f9fc; border-radius: 8px; padding: 8px 10px; line-height: 1.6; }

/* ==================== 项目周报 ==================== */
.wr-sum { display: flex; align-items: center; gap: 26px; padding: 12px 16px; background: linear-gradient(93deg, #f5f9ff, #fbfdff);
  border: 1px solid #e8f0fb; border-radius: 10px; margin-bottom: 14px; }
.wr-sum-item { display: flex; flex-direction: column; gap: 2px; }
.wr-sum-item b { font-size: 19px; color: #14233b; font-weight: 600; letter-spacing: -.3px; }
.wr-sum-item span { font-size: 11px; color: var(--text-3); }
.wr-sum-note { margin-left: auto; font-size: 11.5px; color: var(--text-3); max-width: 300px; line-height: 1.6; text-align: right; }
.wr-alert { font-size: 12.5px; color: #b45309; background: #fef7ec; border: 1px solid #f8e8cd;
  border-radius: 8px; padding: 9px 12px; margin-bottom: 14px; }
.wr-body { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; }
.wr-left { min-width: 0; }
.wr-right { border-left: 1px solid var(--line); padding-left: 22px; }
.wr-proj { margin-bottom: 12px; }
.wr-proj-head { display: flex; align-items: center; justify-content: space-between; padding: 5px 10px;
  background: #f7f9fc; border-radius: 7px; margin-bottom: 4px; }
.wr-proj-name { font-size: 12.5px; font-weight: 500; color: #22314a; }
.wr-proj-hours { font-size: 11.5px; color: var(--brand); font-family: Consolas, monospace; }
.wr-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid #f2f5fa; }
.wr-item:last-child { border-bottom: none; }
.wr-item-main { flex: 1; min-width: 0; display: flex; gap: 8px; align-items: baseline; }
.wr-item-date { font-size: 11px; color: var(--text-3); font-family: Consolas, monospace; flex-shrink: 0; }
.wr-item-content { font-size: 12.5px; color: #33415a; line-height: 1.5; }
.wr-item-hours { font-size: 12px; font-weight: 500; color: #1b2942; font-family: Consolas, monospace; flex-shrink: 0; }
.wr-item-hours small { font-size: 10px; color: var(--text-3); margin-left: 3px; font-weight: 400; }
.wr-actions { display: flex; gap: 8px; margin-top: 16px; }

/* ==================== 工作量统计 ==================== */
.st-bar { height: 8px; background: #eef3fa; border-radius: 4px; overflow: hidden; }
.st-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #6aa9ef, #1d6fd0); transition: width .45s; }
.st-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.st-list { display: flex; flex-direction: column; gap: 9px; }
.st-row { display: flex; align-items: center; gap: 12px; }
.st-name { width: 190px; font-size: 12.5px; color: #22314a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 0; }
.st-num { width: 62px; text-align: right; font-size: 12.5px; font-weight: 600; color: #1b2942; font-family: Consolas, monospace; flex-shrink: 0; }
.st-row .st-bar { flex: 1; min-width: 60px; }

/* ==================== 研发任务管理 ==================== */
.stat-card .ico.purple { background: #f2edfd; color: #6a44c6; }

.dev-brief { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 2px 0; }
.dev-brief-item { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.dev-brief-item svg { width: 15px; height: 15px; opacity: .7; }
.dev-brief-item b { color: #14233b; font-weight: 600; font-family: Consolas, monospace; font-size: 13px; }
.dev-brief-item.warn { color: #b45309; }
.dev-brief-item.warn b { color: #b45309; }

.dev-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.dev-title .link { font-size: 13px; color: #1b2942; font-weight: 500; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.dev-no { font-size: 11px; color: #9aa6b6; font-family: Consolas, monospace; flex-shrink: 0; margin-left: 6px; }
.pd-title .dev-no { margin-left: 8px; }

.dev-due { font-size: 12px; color: #33415a; font-family: Consolas, monospace; }
.dev-due small { display: block; font-size: 10.5px; color: var(--text-3); font-family: inherit; }
.dev-due.over { color: #c0392b; }
.dev-due.over small { color: #c0392b; }
.dev-due.soon { color: #b45309; }
.dev-due.soon small { color: #b45309; }

.dev-desc { font-size: 12.5px; color: #33415a; line-height: 1.75; white-space: pre-wrap;
  background: #f8fafd; border-radius: 8px; padding: 11px 13px; }

/* 流转时间线 */
.dev-timeline { display: flex; flex-direction: column; gap: 0; padding-left: 4px; }
.dtl-item { display: flex; gap: 10px; padding-bottom: 13px; position: relative; }
.dtl-item:not(:last-child)::before { content: ""; position: absolute; left: 4px; top: 13px; bottom: 0;
  width: 1px; background: #e9eef6; }
.dtl-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 4px; flex-shrink: 0;
  background: #cbd6e4; border: 2px solid #fff; box-shadow: 0 0 0 1px #e3eaf5; }
.dtl-dot.chip-blue { background: #1d6fd0; }
.dtl-dot.chip-purple { background: #6a44c6; }
.dtl-dot.chip-green { background: #12a150; }
.dtl-dot.chip-amber { background: #d98a00; }
.dtl-dot.chip-gray { background: #8b98a9; }
.dtl-body { flex: 1; min-width: 0; }
.dtl-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.dtl-line b { font-size: 12.5px; color: #22314a; font-weight: 500; }
.dtl-time { font-size: 11px; color: #9aa6b6; font-family: Consolas, monospace; flex-shrink: 0; }
.dtl-sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; line-height: 1.5; }

/* 版本发布 */
.rel-notes { font-size: 12px; color: #4a5768; line-height: 1.6; white-space: pre-wrap;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rel-pick { display: flex; flex-direction: column; gap: 2px; width: 100%;
  max-height: 190px; overflow-y: auto; padding: 8px 10px; background: #f8fafd; border-radius: 8px; }
.rel-pick .el-checkbox { height: 26px; margin-right: 0; }
.rel-pick .el-checkbox__label { font-size: 12.5px; color: #33415a; }
.rel-task { color: #22314a; }
.rel-tasks { display: flex; flex-direction: column; gap: 4px; }
.rel-task-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 12px; border: 1px solid #eef2f8; border-radius: 8px; }

/* ==================== 工作台 ==================== */
.dash-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; padding: 2px 2px 0; }
.dash-hello { font-size: 19px; font-weight: 600; color: #14233b; letter-spacing: .2px; }
.dash-date { font-size: 12.5px; color: var(--text-3); margin-top: 5px; display: flex; align-items: center; gap: 8px; }
.dash-scope { font-size: 11px; color: #1d6fd0; background: #eaf2fd; border: 1px solid #dbe8fa;
  border-radius: 20px; padding: 1px 9px; }
.dash-quick { display: flex; gap: 8px; }
.dash-q { font-size: 12.5px; color: #33415a; background: #fff; border: 1px solid #e6ecf5;
  border-radius: 8px; padding: 6px 12px; cursor: pointer; transition: all .15s; white-space: nowrap; }
.dash-q:hover { border-color: #1d6fd0; color: #1d6fd0; box-shadow: 0 2px 8px rgba(29,111,208,.1); }

.stat-card.clickable { cursor: pointer; transition: all .16s; }
.stat-card.clickable:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(20,35,59,.07); }
.stat-card .num.sm { font-size: 15px; letter-spacing: 0; }
.stat-card .label { white-space: nowrap; }

.dash-main { display: grid; grid-template-columns: 1.62fr 1fr; gap: 16px; align-items: start; }
.dash-side { display: flex; flex-direction: column; gap: 16px; }

/* 待办列表 */
.dash-todos { display: flex; flex-direction: column; gap: 2px; margin: 0 -6px; }
.dash-todo { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px;
  cursor: pointer; transition: background .15s; border-left: 2px solid transparent; }
.dash-todo:hover { background: #f7f9fc; }
.dash-todo.lv-danger { border-left-color: #e05252; }
.dash-todo.lv-warn { border-left-color: #e0a13a; }
.dash-todo.lv-info { border-left-color: #4b8fe0; }
.dash-todo.lv-normal { border-left-color: #d5dde8; }
.dt-tag { font-size: 11px; padding: 2px 8px; border-radius: 20px; flex-shrink: 0; width: 66px;
  text-align: center; background: #f1f4f9; color: #6b7788; }
.dash-todo.lv-danger .dt-tag { background: #fdeeed; color: #bf3b3b; }
.dash-todo.lv-warn .dt-tag { background: #fdf4e5; color: #b26a00; }
.dash-todo.lv-info .dt-tag { background: #eaf2fd; color: #1a5fb4; }
.dt-main { flex: 1; min-width: 0; }
.dt-title { font-size: 13px; color: #1b2942; font-weight: 500; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.dt-sub { font-size: 11.5px; color: var(--text-3); margin-top: 3px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.dt-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.dt-badge { font-size: 11px; padding: 1px 7px; border-radius: 4px; background: #f1f4f9; color: #6b7788; white-space: nowrap; }
.dt-badge.lv-danger { background: #fdeeed; color: #bf3b3b; }
.dt-badge.lv-warn { background: #fdf4e5; color: #b26a00; }
.dt-badge.lv-info { background: #eaf2fd; color: #1a5fb4; }
.dt-date { font-size: 10.5px; color: #9aa6b6; font-family: Consolas, monospace; }
.dt-arrow { color: #c2cbd8; font-size: 16px; line-height: 1; flex-shrink: 0; }
.dash-todo:hover .dt-arrow { color: #1d6fd0; }
.dash-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 0 26px; }
.dash-empty-ic { width: 34px; height: 34px; color: #b9d5c5; }
.dash-empty-ic svg { width: 34px; height: 34px; }
.dash-empty-t { font-size: 12.5px; color: var(--text-3); }

/* 风险预警 */
.dash-risks { display: flex; flex-direction: column; }
.risk-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 4px;
  border-bottom: 1px dashed #eef2f8; cursor: pointer; transition: background .15s; border-radius: 6px; }
.risk-row:last-child { border-bottom: none; }
.risk-row:hover { background: #f8fafd; }
.rk-name { font-size: 12.5px; color: #4a5768; }
.rk-num { font-size: 13px; font-weight: 600; color: #b7c0cd; font-family: Consolas, monospace; }
.rk-num.hot { color: #c0392b; }
.rk-num.warn { color: #b45309; }

/* 我的工作 */
.dash-me { display: flex; flex-direction: column; gap: 8px; }
.me-row { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: #4a5768; }
.me-row b { color: #14233b; font-weight: 600; font-family: Consolas, monospace; }
.me-row b.warn { color: #b45309; }
.me-projs { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.mp-title { font-size: 11px; color: var(--text-3); margin-bottom: 6px; }
.mp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 5px 6px; border-radius: 6px; cursor: pointer; }
.mp-row:hover { background: #f7f9fc; }
.mp-name { font-size: 12px; color: #33415a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-stage { font-size: 10.5px; color: #1d6fd0; background: #eaf2fd; border-radius: 4px; padding: 1px 6px; flex-shrink: 0; }

/* 底部图表 */
.dash-charts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 16px; }
.fnl { display: flex; flex-direction: column; gap: 9px; padding-top: 2px; }
.fnl-row { display: flex; align-items: center; gap: 10px; }
.fnl-name { width: 58px; font-size: 12px; color: #4a5768; flex-shrink: 0; }
.fnl-bar { flex: 1; height: 8px; background: #f1f5fa; border-radius: 4px; overflow: hidden; }
.fnl-bar i { display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #7fb3ec, #1d6fd0); transition: width .5s; }
.fnl-bar.stage i { background: linear-gradient(90deg, #a8d08a, #4f9c25); }
.fnl-num { width: 24px; text-align: right; font-size: 12px; font-weight: 600; color: #1b2942;
  font-family: Consolas, monospace; flex-shrink: 0; }

.mchart { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px;
  height: 118px; padding-top: 4px; }
.mc-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.mc-val { font-size: 10.5px; color: var(--text-3); font-family: Consolas, monospace; height: 15px; }
.mc-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.mc-bar { width: 60%; max-width: 26px; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #7fb3ec, #1d6fd0); transition: height .5s; min-height: 2px; }
.mc-label { font-size: 10.5px; color: var(--text-3); margin-top: 5px; }

/* ==================== 合同执行状态 ==================== */
.ct-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed #eef2f8; }
.cts { display: flex; align-items: center; gap: 7px; padding: 6px 13px 6px 11px;
  border-radius: 9px; border: 1px solid #eef2f8; background: #fbfcfe;
  cursor: pointer; transition: all .15s; }
.cts::before { content: ""; width: 3px; height: 15px; border-radius: 2px; background: #d5dde8; }
.cts:hover { border-color: #cfdcee; background: #f7faff; }
.cts-name { font-size: 12.5px; color: #4a5768; }
.cts b { font-size: 15px; font-weight: 600; color: #14233b; font-family: Consolas, monospace; letter-spacing: -.2px; }
.cts-unit { font-size: 10.5px; color: var(--text-3); }
.cts-ongoing::before { background: #4b8fe0; }
.cts-accepted::before { background: #12a150; }
.cts-delayed::before { background: #d98a00; }
.cts-terminated::before { background: #c0392b; }
.cts.on { border-color: #1d6fd0; background: #f2f8ff; box-shadow: 0 2px 8px rgba(29,111,208,.1); }
.cts.on .cts-name { color: #1a5fb4; }
.cts.on b { color: #1a5fb4; }
.cts-terminated.on { border-color: #c0392b; background: #fdf4f3; box-shadow: 0 2px 8px rgba(192,57,43,.1); }
.cts-terminated.on .cts-name, .cts-terminated.on b { color: #bf3b3b; }
.cts-hint { margin-left: auto; font-size: 12px; color: var(--text-3); }
.cts-clear { color: #1d6fd0; cursor: pointer; margin-left: 6px; }
.cts-clear:hover { text-decoration: underline; }
.ct-no { color: #9aa6b6; font-size: 11px; }
.ct-date { font-size: 12px; color: #33415a; }

/* ---------- 系统管理 · 字典管理 ---------- */
.dict-layout { display: flex; gap: 18px; align-items: flex-start; }
.dict-side { width: 148px; flex-shrink: 0; border-right: 1px solid var(--line, #e8edf3); padding-right: 12px; }
.dict-cat { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--text-2, #4b5563); margin-bottom: 2px; }
.dict-cat:hover { background: var(--bg-hover, #f3f6fa); }
.dict-cat.active { background: #eaf2fe; color: #2b86e8; font-weight: 600; }
.dict-cnt { font-size: 11px; color: #8b98ab; font-weight: 400; }
.dict-main { flex: 1; min-width: 0; }

/* 项目干系人管理页 */
.st-page { margin-bottom: 0; }
.st-side { width: 264px; flex-shrink: 0; border-right: 1px solid #eef1f6; display: flex; flex-direction: column; padding: 14px; min-height: 0; }
.st-side-head { flex-shrink: 0; }
.st-h-list { flex: 1; overflow-y: auto; margin-top: 10px; }
.st-h-item { padding: 9px 11px; border-radius: 8px; cursor: pointer; margin-bottom: 2px; border: 1px solid transparent; }
.st-h-item:hover { background: #f3f6fa; }
.st-h-item.on { background: #eaf2fe; border-color: #d4e6fb; }
.st-h-name { font-size: 13px; font-weight: 600; color: #2a3648; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-h-item.on .st-h-name { color: #2b86e8; }
.st-h-meta { font-size: 11px; color: #8b98ab; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-main { flex: 1; min-width: 0; padding: 16px 18px; overflow: auto; }

/* 侧边栏子菜单（销售管理分组）适配深色主题 */
.sidebar .el-sub-menu__title {
  height: 40px;
  line-height: 40px;
  margin-bottom: 2px;
  padding-left: 12px !important;
  border-radius: 9px;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
}
.sidebar .el-sub-menu__title .mi { width: 16px; height: 16px; flex-shrink: 0; opacity: .78; display: flex; }
.sidebar .el-sub-menu__title .mi svg { width: 16px; height: 16px; }
.sidebar .el-sub-menu__title:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar .el-sub-menu__title:hover .mi { opacity: 1; }
.sidebar .el-sub-menu.is-opened > .el-sub-menu__title,
.sidebar .el-sub-menu.is-active > .el-sub-menu__title { color: #fff; }
.sidebar .el-sub-menu__title .el-sub-menu__icon-arrow { color: rgba(255, 255, 255, .45); }
.sidebar .el-sub-menu .el-menu { background: transparent; padding: 0 0 2px; }
.sidebar .el-sub-menu .el-menu-item { padding-left: 38px !important; font-size: 13px; }
.sidebar .el-sub-menu .el-menu-item .mi { display: none; }

/* ---------- 系统管理 · 文件存储 ---------- */
.stg-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.stg-label { width: 64px; flex-shrink: 0; font-size: 13px; color: var(--text-2, #4b5768); }
.stg-path {
  font-size: 13px; padding: 6px 12px; border-radius: 8px;
  background: #f1f5fa; border: 1px solid var(--line, #e9eff6);
  color: var(--text, #1f2937); word-break: break-all;
}
.stg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 6px; }
.stg-card { background: #f7f9fc; border: 1px solid var(--line, #e9eff6); border-radius: 10px; padding: 12px 14px; }
.stg-k { font-size: 12px; color: var(--text-3, #94a3b8); margin-bottom: 6px; }
.stg-v { font-size: 18px; font-weight: 600; color: var(--text, #1f2937); }
.stg-v small { font-size: 12px; font-weight: 400; color: var(--text-3, #94a3b8); }
.stg-v-sm { font-size: 11px; font-weight: 400; word-break: break-all; line-height: 1.5; }

/* ==========================================================
   会议记录（公司周会）
   ========================================================== */
.mt { display: flex; flex-direction: column; gap: 12px; }

.mt-top { display: flex; align-items: center; gap: 12px; margin-bottom: 2px; }
.mt-tabs { display: flex; gap: 4px; background: #eef3f9; border-radius: 10px; padding: 3px; }
.mt-tab {
  padding: 6px 16px; border-radius: 8px; font-size: 13px; color: var(--text-2, #4b5768);
  cursor: pointer; transition: all .15s; position: relative; white-space: nowrap;
}
.mt-tab:hover { color: var(--brand, #1d6fd0); }
.mt-tab.on { background: #fff; color: var(--brand, #1d6fd0); font-weight: 600; box-shadow: var(--shadow-sm, 0 1px 2px rgba(16,32,56,.04)); }
.mt-badge {
  display: inline-block; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px;
  margin-left: 4px; border-radius: 8px; background: #e08700; color: #fff;
  font-size: 10.5px; font-weight: 600; text-align: center; vertical-align: 1px;
}
.mt-crumb { font-size: 12.5px; color: var(--text-3, #94a3b8); }

.mt-panel { min-height: 320px; }
.mt-dim { color: var(--text-3, #94a3b8); font-size: 12px; }
.mt-ok { color: #0f8a46; }
.mt-need { color: #b26a00; }
.mt-warn2 { color: #d64545; }
.mt-gap { font-size: 11px; color: #b26a00; margin-left: 4px; }

/* 数据缺口提示 */
.mt-warn {
  background: #fdf8ee; border: 1px solid #f6e7c9; border-radius: 10px;
  padding: 10px 14px; margin-bottom: 14px;
}
.mt-warn-t { font-size: 12.5px; font-weight: 600; color: #8a5b12; margin-bottom: 6px; }
.mt-warn-i { font-size: 12px; color: #7a5a20; line-height: 1.7; }

/* 会议头 */
.mt-mhead {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line, #e9eff6); border-radius: var(--radius, 14px);
  padding: 12px 18px; box-shadow: var(--shadow-sm, 0 1px 2px rgba(16,32,56,.04));
}
.mt-mh-l { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; min-width: 0; }
.mt-mh-l b { font-size: 15.5px; color: #1b2942; }
.mt-mh-r { display: flex; gap: 8px; }

/* 上周遗留条 */
.mt-recall {
  background: #f7fbff; border: 1px solid #d9e8fb; border-radius: 10px; padding: 10px 14px;
}
.mt-recall-h { display: flex; align-items: center; gap: 10px; font-size: 12.5px; flex-wrap: wrap; }
.mt-recall-h b { color: #185fa5; }
.mt-recall-list { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; }
.mt-ri { font-size: 12px; color: #33456b; }
.mt-ri i { font-style: normal; color: var(--text-3, #94a3b8); margin-left: 4px; }

/* 三栏 */
.mt3 {
  display: grid; grid-template-columns: 210px minmax(0, 1fr) 300px; gap: 12px;
  height: calc(100vh - 288px); min-height: 430px; align-items: stretch;
}
.mt3-l, .mt3-c, .mt3-r {
  background: #fff; border: 1px solid var(--line, #e9eff6); border-radius: var(--radius, 14px);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(16,32,56,.04));
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
.mt3-lbl {
  padding: 11px 14px; font-size: 12.5px; font-weight: 600; color: #33456b;
  border-bottom: 1px solid var(--line, #e9eff6); flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
}

/* 左：议程 */
.mt3-l { overflow-y: auto; padding-bottom: 8px; }
.mt-ag { padding: 9px 14px; cursor: pointer; border-left: 3px solid transparent; transition: background .15s; }
.mt-ag:hover { background: #f7fafd; }
.mt-ag.on { background: #eef5fd; border-left-color: var(--brand, #1d6fd0); }
.mt-ag-n { display: flex; align-items: center; gap: 7px; }
.mt-ag-sort {
  width: 17px; height: 17px; border-radius: 5px; background: #eef3f9; color: #6b7788;
  font-size: 10.5px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.mt-ag.on .mt-ag-sort { background: var(--brand, #1d6fd0); color: #fff; }
.mt-ag-name { font-size: 13px; color: #1f2937; flex: 1; }
.mt-ag.on .mt-ag-name { font-weight: 600; color: #134a8e; }
.mt-ag-ct { font-size: 11px; color: var(--text-3, #94a3b8); font-family: Consolas, monospace; }
.mt-ag-sub { display: flex; gap: 8px; font-size: 11px; color: var(--text-3, #94a3b8); margin: 3px 0 0 24px; }

/* 中：当前段 */
.mt3-c { min-width: 0; }
.mt-secbar {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid var(--line, #e9eff6); flex-shrink: 0; flex-wrap: wrap;
}
.mt-sb-l { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mt-sb-l b { font-size: 14px; color: #1b2942; }
.mt-hint { font-size: 11.5px; color: var(--text-3, #94a3b8); line-height: 1.5; }
.mt-sb-r { display: flex; gap: 6px; }

.mt-reps { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.mt-rep { border: 1px solid var(--line, #e9eff6); border-radius: 11px; padding: 11px 13px; background: #fcfdff; }
.mt-rep-h { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; flex-wrap: wrap; }
.mt-who { font-size: 13px; font-weight: 600; color: #1b2942; }
.mt-proj { font-size: 12px; color: var(--text-2, #4b5768); }
.mt-rep .el-textarea__inner { font-size: 13px; line-height: 1.75; }

.mt-sub { margin-top: 9px; border-top: 1px dashed #edf2f8; padding-top: 7px; }
.mt-sub-lbl { font-size: 11px; color: var(--text-3, #94a3b8); margin-bottom: 4px; }
.mt-line { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; color: #33456b; padding: 3px 0; line-height: 1.6; }
.mt-line-t { flex: 1; min-width: 0; }
.mt-line-m { font-size: 11px; color: var(--text-3, #94a3b8); white-space: nowrap; }
.mt-line.mt-none { color: var(--text-3, #94a3b8); font-size: 11.5px; }
.mt-dot { width: 5px; height: 5px; border-radius: 50%; margin-top: 8px; flex-shrink: 0; }
.mt-dot.amber { background: #e08700; }
.mt-dot.blue { background: var(--brand, #1d6fd0); }
.mt-dot.green { background: #12a150; }

/* 右：对照 */
.mt-sw { margin-left: auto; display: flex; gap: 2px; font-weight: 400; }
.mt-sw span {
  padding: 2px 9px; border-radius: 6px; font-size: 11.5px; color: var(--text-3, #94a3b8); cursor: pointer;
}
.mt-sw span.cur { background: #eef3f9; color: var(--brand, #1d6fd0); font-weight: 600; }
.mt-cmp { flex: 1; overflow-y: auto; padding: 10px 12px; }
.mt-cmp-i { border-bottom: 1px dashed #edf2f8; padding: 8px 0; }
.mt-cmp-i:last-child { border-bottom: 0; }
.mt-cmp-h { display: flex; gap: 6px; align-items: baseline; margin-bottom: 3px; }
.mt-cmp-c { font-size: 12px; color: #44546b; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.mt-cmp-a { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.mt-cmp-a .chip { font-size: 10.5px; padding: 1px 6px; }

.mt-empty { text-align: center; color: var(--text-3, #94a3b8); font-size: 12.5px; padding: 28px 16px; line-height: 1.8; }
.mt-empty-big { text-align: center; padding: 70px 20px; }
.mt-eb-t { font-size: 15px; font-weight: 600; color: #33456b; margin-bottom: 6px; }
.mt-eb-d { font-size: 12.5px; color: var(--text-3, #94a3b8); margin-bottom: 16px; }

/* 项目视图 */
.mt-tl { border-left: 2px solid #dbe8fa; padding: 0 0 18px 18px; margin-left: 6px; position: relative; }
.mt-tl::before {
  content: ''; position: absolute; left: -5px; top: 4px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--brand, #1d6fd0); border: 2px solid #fff;
}
.mt-tl-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.mt-tl-w { font-size: 13px; font-weight: 600; color: #1b2942; }
.mt-tl-c { font-size: 12.5px; color: #44546b; line-height: 1.75; white-space: pre-wrap; background: #fafcff; border-radius: 8px; padding: 8px 11px; }
.mt-tl-x { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 12px; }
.mt-tl-lbl { color: var(--text-3, #94a3b8); font-size: 11px; }
.mt-tl-a { color: #33456b; }

/* 我的安排 */
.mt-mine-c { font-size: 13px; color: #1f2937; line-height: 1.6; }
.mt-mine-m { margin-top: 3px; }
.mt-close-c { background: #f7f9fc; border-radius: 8px; padding: 10px 12px; font-size: 13px; color: #33456b; margin-bottom: 14px; line-height: 1.7; }

/* 线索带入 */
.mt-ld-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mt-tip { font-size: 11.5px; color: var(--text-3, #94a3b8); line-height: 1.7; margin-top: 8px; }

@media (max-width: 1400px) {
  .mt3 { grid-template-columns: 180px minmax(0, 1fr) 260px; }
}

/* 回款坏账：项目名过长时省略，不撑破列宽 */
.pd-proj {
  display: inline-block; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle;
}
