/* ============================================================
   亿点星舆管理中台 · 视觉主题 v2
   对标范式：国网 e基建 / Procore / 广联达 —— 专业工程企业管理控制台
   设计语言：深色导航侧栏 + 浅色数据工作区 + 电力蓝品牌色 + 高信息密度
   全部沿用原有 class 命名，不改动任何 JS 逻辑
   ============================================================ */

:root {
  /* 品牌主色（方案B · 电力蓝 + 青绿辅助） */
  --brand: #1f6fff;
  --brand-d: #175fe0;
  --brand-grad: linear-gradient(135deg, #1f6fff 0%, #3d8bff 100%);
  --accent: #1f6fff;
  --teal: #00b8a9;

  /* 背景层 */
  --bg: #f3f5f9;            /* 内容工作区背景 */
  --bg-nav: #0f2b52;        /* 侧栏深蓝 */
  --bg-nav-2: #0b2244;
  --surface: #ffffff;       /* 卡片 / 面板 */
  --surface-2: #f7f9fc;     /* 次级表面 */
  --surface-3: #fafbfd;     /* 表头 */

  /* 线条与描边 */
  --line: #e8edf3;
  --line-soft: #eef2f7;
  --line-nav: rgba(255,255,255,.08);

  /* 文字 */
  --ink: #1c2b3a;           /* 主文字 */
  --ink-soft: #5a6b80;      /* 次级文字 */
  --ink-mute: #93a1b3;      /* 弱化文字 */
  --ink-nav: #b9c8dd;       /* 侧栏文字 */
  --ink-nav-mute: #61789c;  /* 侧栏弱文字 */

  /* 状态色 */
  --ok: #00a870;
  --ok-bg: #e9f8f2;
  --warn: #d98200;
  --warn-bg: #fef4e2;
  --danger: #e5484d;
  --danger-bg: #fdecec;
  --muted: #8a97a8;
  --muted-bg: #eef1f5;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16,39,74,.04), 0 4px 14px rgba(16,39,74,.05);
  --shadow-lg: 0 8px 32px rgba(16,39,74,.16);
  --font: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }

/* ====================== 登录 ====================== */
.login-view {
  height: 100vh; width: 100vw; position: relative; overflow: hidden;
  background: #dce9f5 url("assets/login-bg.jpg") center center / cover no-repeat;
}
/* 左侧提亮遮罩：让背景图透出，同时保证右侧卡片可读 */
.login-view:before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.05) 45%, rgba(226,238,249,.55) 72%, rgba(232,242,251,.9) 100%),
    linear-gradient(0deg, rgba(255,255,255,.35) 0%, transparent 30%);
}
.login-scene {
  position: relative; z-index: 1; height: 100%; max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 0 6vw;
}
.login-intro { flex: 1 1 auto; max-width: 560px; color: #123b63; text-shadow: 0 1px 16px rgba(255,255,255,.9); }
.intro-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 3px; color: #1f6fff;
  border: 1px solid rgba(31,111,255,.35); background: rgba(255,255,255,.55); border-radius: 20px; padding: 6px 14px; margin-bottom: 18px; }
.intro-title { font-size: clamp(46px, 6vw, 82px); font-weight: 900; letter-spacing: 10px; margin: 0; line-height: 1.1;
  background: linear-gradient(135deg, #0d2e52, #1f6fff 60%, #00a6a0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-desc { font-size: clamp(18px, 2vw, 26px); font-weight: 600; letter-spacing: 4px; margin-top: 12px; color: #1a4c7d; }
.intro-line { width: 72px; height: 4px; border-radius: 4px; margin: 26px 0; background: linear-gradient(90deg, #1f6fff, #00b8a9); box-shadow: 0 0 14px rgba(31,111,255,.5); }
.intro-points { display: flex; flex-direction: column; gap: 10px; font-size: 14px; letter-spacing: 1px; color: #2b5b8a; }
.intro-points span:before { content: "◆"; color: #00b8a9; font-size: 9px; margin-right: 10px; vertical-align: 2px; }

.login-card {
  flex: 0 0 420px; width: 420px; max-width: 94vw; background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border-radius: 20px; padding: 34px 36px 26px; box-shadow: 0 24px 70px rgba(20,64,120,.22);
}
.card-logo-wrap { text-align: center; }
.login-logo { width: 68px; height: 68px; margin: 0 auto 10px; display: block; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(241,64,11,.22)); }
.card-title { font-size: 22px; font-weight: 800; text-align: center; color: var(--ink); letter-spacing: 2px; }
.card-sub { font-size: 12.5px; color: var(--ink-mute); text-align: center; margin: 6px 0 22px; letter-spacing: .5px; }
.fl { display: block; font-size: 12px; font-weight: 600; color: var(--ink-soft); margin: 0 0 -4px 2px; letter-spacing: .5px; }
.brand-foot { margin-top: 18px; font-size: 10.5px; color: var(--ink-mute); text-align: center; letter-spacing: .5px; }
form { display: flex; flex-direction: column; gap: 12px; }
input, select, textarea {
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-family: inherit;
  outline: none; background: #fff; color: var(--ink); transition: .15s;
}
input::placeholder { color: var(--ink-mute); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,115,199,.12); }
.row { display: flex; gap: 10px; }
.row input { flex: 1; }
.btn-primary {
  padding: 12px; border: none; border-radius: 10px; background: var(--brand-grad); color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer; transition: .2s; letter-spacing: 1px;
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 6px 18px rgba(20,86,160,.3); transform: translateY(-1px); }
.btn-ghost {
  padding: 8px 14px; border: 1px solid var(--accent); background: rgba(26,115,199,.06); color: var(--accent);
  border-radius: 9px; cursor: pointer; white-space: nowrap; font-size: 13px; transition: .15s;
}
.btn-ghost:hover { background: rgba(26,115,199,.14); }
.error { color: var(--danger); font-size: 13px; min-height: 16px; margin-top: 2px; }

.demo-sep, .tenant-sep { margin: 20px 0 14px; text-align: center; position: relative; color: var(--ink-mute); font-size: 11.5px; letter-spacing: 1px; }
.demo-sep:before, .tenant-sep:before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.demo-sep span, .tenant-sep span { position: relative; background: #fff; padding: 0 12px; }
/* 多企业入口：开通企业 / 申请加入 */
.tenant-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tenant-actions .btn-ghost { padding: 9px; }
.tenant-tip { font-size: 10.5px; color: var(--ink-mute); line-height: 1.6; margin: 8px 2px 0; }
.demo-depts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.demo-dept {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 11px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  text-align: left; transition: .15s;
}
.demo-dept:hover { background: var(--surface-3); transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 6px 16px rgba(20,86,160,.12); }
.demo-dept b { font-size: 12.5px; color: var(--ink); font-weight: 700; }
.demo-dept span { font-size: 10px; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.demo-tip { margin-top: 12px; font-size: 11px; color: var(--ink-mute); line-height: 1.7; text-align: center; }

/* 待审核 */
.pending-view { height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.pending-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 34px; text-align: center; max-width: 400px; box-shadow: var(--shadow); }
.pending-logo { width: 56px; height: 56px; display: block; margin: 0 auto 12px; object-fit: contain; }
.pending-card h2 { color: var(--warn); margin-top: 0; }

/* ====================== 应用框架 ====================== */
.app-view { display: flex; height: 100vh; }
.sidebar {
  width: 232px; flex-shrink: 0; background: linear-gradient(180deg, var(--bg-nav), var(--bg-nav-2));
  color: var(--ink-nav); display: flex; flex-direction: column; position: relative;
}
.side-brand {
  padding: 16px 16px; border-bottom: 1px solid var(--line-nav); display: flex; align-items: center; gap: 10px;
}
.side-logo { width: 36px; height: 36px; flex-shrink: 0; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(241,64,11,.3)); }
.side-brand-tx { min-width: 0; }
.side-brand-tx b { display: block; font-size: 15px; font-weight: 800; color: #fff; letter-spacing: 1px; white-space: nowrap; }
.side-brand-tx small { display: block; font-size: 9px; color: #61789c; letter-spacing: 1px; white-space: nowrap; }
.side-foot { padding: 12px 16px; border-top: 1px solid var(--line-nav); font-size: 10.5px; color: #61789c; line-height: 1.6; }
.menu { padding: 8px 10px 16px; overflow-y: auto; flex: 1; }
.menu::-webkit-scrollbar { width: 0; }
.menu-group { margin: 1px 0; }
.menu-group-h { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; margin: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink-nav-mute); font-family: inherit; font-size: 11px; letter-spacing: 1.2px; cursor: pointer; text-align: left; transition: .15s; }
.menu-group-h:hover { background: rgba(255,255,255,.06); color: #dfe9f7; }
.menu-group-h .gi { width: 14px; height: 14px; flex: 0 0 auto; opacity: .7; }
.menu-group-h span { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-group-h .chev { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); opacity: .55; transition: transform .18s; margin-right: 3px; }
.menu-group.open .menu-group-h { color: #cfdcee; }
.menu-group.open .menu-group-h .chev { transform: rotate(45deg); }
.menu-sub { display: none; padding: 2px 0 4px; }
.menu-group.open .menu-sub { display: block; }
.menu-sub .menu-item { padding-left: 32px; }
.menu-item {
  display: flex; align-items: center; gap: 9px; padding: 8.5px 11px; margin-bottom: 2px;
  color: var(--ink-nav); text-decoration: none; cursor: pointer;
  border-radius: 8px; transition: .15s; font-size: 13px; white-space: nowrap; overflow: hidden;
}
.menu-item .mi { width: 16px; height: 16px; flex-shrink: 0; }
.menu-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.menu-item.active { background: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(31,111,255,.35); }
.menu-item.active .mi { color: #fff; }

/* ====================== 卡片 / 面板 ====================== */
.cards { display: flex; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; min-width: 150px; flex: 1; transition: .18s; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.card .num { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: .5px; }
.card .lbl { color: var(--ink-soft); margin-top: 6px; font-size: 13px; }
.cards .card { border-top: 3px solid var(--accent); }

.panel { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.panel-head b { font-size: 15px; color: var(--ink); letter-spacing: .5px; }
.panel-sub { flex: 1; font-size: 12px; color: var(--ink-mute); }
.empty { padding: 26px; text-align: center; color: var(--ink-mute); font-size: 13px; }
.muted { color: var(--ink-mute); font-size: 12px; }
.welcome { background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 14px 18px; color: var(--ink-soft); line-height: 1.8; }

/* ====================== 表格 ====================== */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tbl th, .tbl td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.tbl th { background: var(--surface-3); color: var(--ink-soft); font-weight: 700; letter-spacing: .5px; position: sticky; top: 0; }
.tbl tbody tr { transition: .12s; }
.tbl tbody tr:hover { background: #f3f8fe; }
.tbl tr:last-child td { border-bottom: none; }
.placeholder { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 46px; text-align: center; color: var(--ink-mute); }
.thumb { width: 42px; height: 42px; border-radius: 6px; object-fit: cover; background: var(--surface-3); vertical-align: middle; border: 1px solid var(--line); }

/* ====================== 工具条 / 子标题 ====================== */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.sub { margin: 24px 0 10px; font-size: 15px; color: var(--ink); font-weight: 700; letter-spacing: .5px; }
.sub::before { content: "▍"; color: var(--accent); margin-right: 6px; }
.acts { display: flex; gap: 6px; flex-wrap: wrap; }
.acts .btn-ghost { padding: 5px 11px; font-size: 12px; }

/* ====================== 状态徽标 ====================== */
.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; line-height: 1.8; border: 1px solid transparent; }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: #bfe3cd; }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: #ecd3a6; }
.badge.danger { background: var(--danger-bg); color: var(--danger); border-color: #f1bcb6; }
.badge.muted { background: var(--muted-bg); color: var(--ink-soft); border-color: #dde3ea; }
.tag-field { display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; line-height: 1.7; background: #fff0e6; color: #c1460a; border: 1px solid #ffd2b3; white-space: nowrap; }
.mini-sel { padding: 4px 8px; border: 1px solid #dde3ea; border-radius: 6px; font-size: 12px; background: #fff; color: var(--ink); max-width: 140px; }

/* ====================== 弹窗 ====================== */
.modal-mask { position: fixed; inset: 0; background: rgba(15,39,66,.45); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; z-index: 50; padding: 64px 16px; animation: fade .2s ease; overflow-y: auto; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: #fff; width: 480px; max-width: 100%; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); animation: pop .22s ease; display: flex; flex-direction: column; max-height: calc(100vh - 128px); }
/* 宽弹窗：用于新建/编辑项目这类多字段分区表单，双列排布不挤 */
.modal.modal-wide { width: 880px; max-height: calc(100vh - 88px); }
.modal.modal-wide .modal-body { padding: 16px 22px 20px; }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(8px); } to { opacity: 1; transform: none; } }
.modal-head { flex: 0 0 auto; padding: 14px 20px; font-size: 15px; font-weight: 700; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-close { cursor: pointer; color: var(--ink-mute); font-size: 22px; line-height: 1; transition: .2s; }
.modal-close:hover { color: var(--danger); }
.modal-body { flex: 1 1 auto; min-height: 0; padding: 18px 20px; overflow-y: auto; }
.modal-foot { flex: 0 0 auto; padding: 13px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; background: #fff; }
.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 13px; color: var(--ink-soft); }
/* 字段多的表单双列排布（配合宽弹窗），长文本与说明整行占满 */
.fld-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.fld-grid .fld.full { grid-column: 1 / -1; }
@media (max-width: 720px) { .fld-grid { grid-template-columns: 1fr; } }
.fld input, .fld select, .fld textarea { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; color: var(--ink); font-family: inherit; background: #fff; transition: .15s; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,115,199,.12); outline: none; }
.fld textarea { resize: vertical; }

/* ====================== 图表 ====================== */
.charts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.chart h4 { margin: 0 0 14px; font-size: 14px; color: var(--ink); letter-spacing: .5px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.bar-lbl { width: 96px; color: var(--ink-soft); text-align: right; flex-shrink: 0; }
.bar-track { flex: 1; background: var(--surface-3); border-radius: 6px; height: 16px; overflow: hidden; border: 1px solid var(--line-soft); }
.bar-fill { height: 100%; background: var(--brand-grad); transition: width .6s ease; }
.bar-num { width: 30px; text-align: right; color: var(--ink); font-weight: 600; }
@media (max-width: 720px) { .charts { grid-template-columns: 1fr; } }

/* ====================== ECharts 图表卡片 ====================== */
.charts-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 14px; margin-bottom: 18px; }
@media (max-width: 1180px) { .charts-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) { .charts-row { grid-template-columns: 1fr; } }
.chartbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.chartbox-hd { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chartbox-hd b { font-size: 13.5px; color: var(--ink); }
.chartbox-hd .rt { margin-left: auto; font-size: 11px; color: var(--ink-mute); white-space: nowrap; }
.bar4 { width: 4px; height: 14px; border-radius: 2px; background: var(--brand); flex-shrink: 0; }
.chartbox-bd { height: 240px; padding: 6px 8px; }

/* ====================== 驾驶舱 KPI 英雄条 ====================== */
.cockpit-band {
  background: linear-gradient(120deg, #1f6fff 0%, #175fe0 55%, #0090a8 100%); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(31,111,255,.28); position: relative; overflow: hidden;
}
.cockpit-band::after { content: ""; position: absolute; right: -40px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cb-title { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: 1px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cb-sub { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.78); letter-spacing: 1px; }
.cb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 14px; background: rgba(255,255,255,.18); border-radius: 10px; overflow: hidden; }
.cb-cell { background: rgba(13,45,84,.35); padding: 14px 16px; }
.cb-num { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.cb-lbl { margin-top: 4px; font-size: 12px; color: rgba(255,255,255,.82); }
.cb-cell.cb-danger { background: rgba(210,59,46,.34); }
.cb-cell.cb-danger .cb-num { color: #ffd9d4; }
@media (max-width: 860px) { .cb-grid { grid-template-columns: repeat(2, 1fr); } }

/* ====================== 风险预警 ====================== */
.riskbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 13px 18px; margin-bottom: 16px;
  background: var(--danger-bg); border: 1px solid #f1bcb6; border-left: 4px solid var(--danger); border-radius: var(--radius-sm); cursor: pointer; transition: .2s; }
.riskbar:hover { background: #f9ddd8; }
.rb-title { font-weight: 800; color: var(--danger); font-size: 15px; letter-spacing: 1px; }
.rb-tip { color: #9b3a31; font-size: 12.5px; flex: 1; min-width: 200px; }
.rb-more { color: var(--danger); font-size: 13px; font-weight: 700; }
.risk-chip { display: inline-block; padding: 3px 11px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.risk-chip.danger { background: rgba(210,59,46,.16); color: var(--danger); }
.risk-chip.warn { background: var(--warn-bg); color: var(--warn); }
.risk-chip.ok { background: var(--ok-bg); color: var(--ok); }
.risk-summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 13px 18px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13px; }
.ticket-detail p { margin: 8px 0; line-height: 1.8; font-size: 14px; color: var(--ink-soft); }
.ticket-detail b { color: var(--ink); }

/* ====================== 部门门户 ====================== */
.portal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.portal-title { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: 1px; }
.portal-duty { margin-top: 4px; font-size: 13px; color: var(--ink-soft); }
.portal-badge { padding: 7px 16px; border-radius: 20px; color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.quick-row { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }
.tipbox { padding: 11px 15px; margin-bottom: 14px; background: rgba(26,115,199,.06); border: 1px solid rgba(26,115,199,.2); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); font-size: 12.5px; color: #2a5d8f; line-height: 1.8; }
.filterbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13px; color: var(--ink-soft); }
.filterbar select { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; min-width: 190px; }

/* ====================== 跨部门业务链 ====================== */
.chain { display: flex; flex-direction: column; gap: 10px; }
.chain-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chain-label { width: 200px; flex-shrink: 0; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.chain-node { padding: 6px 13px; background: rgba(26,115,199,.07); border: 1px solid rgba(26,115,199,.24); border-radius: 20px; color: var(--accent); font-size: 12px; cursor: pointer; transition: .15s; }
.chain-node:hover { background: var(--brand-grad); color: #fff; border-color: transparent; transform: translateY(-1px); }
.chain-arrow { color: var(--ink-mute); font-size: 12px; }
.dept-load { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--ink-mute); }
.load-chip { padding: 3px 10px; border: 1px solid; border-radius: 20px; background: #fff; font-size: 11px; color: var(--ink-soft); }
.flow-title { margin: 18px 0 10px; font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: .5px; }
.flow-step { padding: 9px 13px; margin-bottom: 7px; background: rgba(26,115,199,.05); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); font-size: 13px; color: var(--ink-soft); }

/* ====================== 经营中枢 ====================== */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.kpi-item { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: .2s; box-shadow: var(--shadow); }
.kpi-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.kpi-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); }
.kpi-val { margin: 10px 0 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.kpi-bar { height: 8px; background: var(--surface-3); border-radius: 6px; overflow: hidden; border: 1px solid var(--line-soft); }
.kpi-bar i { display: block; height: 100%; border-radius: 6px; background: var(--brand-grad); }
.kpi-foot { margin-top: 7px; font-size: 11.5px; color: var(--ink-mute); }
.pnl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; margin-bottom: 18px; }
.pnl-cell { padding: 15px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); cursor: pointer; transition: .2s; box-shadow: var(--shadow); }
.pnl-cell:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--accent); }
.pnl-num { font-size: 16px; font-weight: 700; color: var(--ink); word-break: break-all; }
.pnl-lbl { margin-top: 7px; font-size: 12px; color: var(--ink-mute); }
.pnl-total { background: var(--ok-bg); border-color: #bfe3cd; }
.verdict { font-size: 13px; line-height: 2; color: var(--ink-soft); }
.verdict-line { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ====================== 隐患治理闭环管线 ====================== */
.pipe { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pipe-node { padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; background: var(--muted-bg); color: var(--ink-mute); border: 1px solid #dde3ea; }
.pipe-node.done { background: var(--ok-bg); color: var(--ok); border-color: #bfe3cd; }
.pipe-node.cur { background: var(--brand-grad); color: #fff; border-color: transparent; }
.pipe-arrow { color: var(--ink-mute); font-size: 11px; }

/* ====================== Toast ====================== */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: #0f2742; color: #fff; padding: 12px 22px; border-radius: 10px; font-size: 13px;
  border: 1px solid var(--accent); box-shadow: var(--shadow-lg); z-index: 80; animation: rise .3s ease;
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translateX(-50%); } }

/* ====================== 流程搭建（企业自定义部门工作流） ====================== */
.flow-wf-list{display:flex;flex-direction:column;gap:12px}
.flow-wf{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:15px 18px;box-shadow:var(--shadow);transition:.18s}
.flow-wf:hover{border-color:var(--accent);box-shadow:var(--shadow-lg)}
.flow-wf.off{opacity:.62}
.flow-wf-hd{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.flow-wf-hd b{font-size:15px;color:var(--ink)}
.flow-wf-hd .wf-code{font-size:11px;color:var(--ink-mute);background:var(--surface-3);border:1px solid var(--line);padding:2px 8px;border-radius:6px}
.flow-wf-hd .wf-sp{flex:1}
.flow-wf-meta{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;color:var(--ink-soft);margin-bottom:12px}
.flow-wf-meta i{font-style:normal;color:var(--ink-mute)}
.flow-chain{display:flex;align-items:stretch;gap:0;flex-wrap:wrap;overflow-x:auto;padding:4px 2px 8px}
.flow-node{min-width:132px;max-width:168px;background:linear-gradient(180deg,#fff,var(--surface-2));border:1px solid #d9e4ef;border-top:3px solid var(--accent);border-radius:10px;padding:9px 11px;flex-shrink:0}
.flow-node .fn-step{font-size:10px;color:var(--ink-mute);letter-spacing:.5px}
.flow-node .fn-dept{font-size:13px;font-weight:700;color:var(--ink);margin:2px 0 4px}
.flow-node .fn-act{font-size:11.5px;color:var(--ink-soft);line-height:1.4;min-height:30px}
.flow-node .fn-sla{margin-top:6px;font-size:10.5px;color:var(--warn)}
.flow-node .fn-field{display:inline-block;margin-top:5px;font-size:10px;color:#fff;background:var(--teal);padding:1px 7px;border-radius:8px}
.flow-arrow{display:flex;align-items:center;justify-content:center;width:30px;color:var(--accent);font-size:18px;flex-shrink:0}
.flow-wf-acts{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px;padding-top:10px;border-top:1px dashed var(--line)}
.wf-step-edit{display:flex;gap:8px;align-items:flex-start;padding:10px;margin-bottom:8px;background:var(--surface-2);border:1px solid var(--line);border-radius:9px}
.wf-step-no{width:24px;height:24px;flex-shrink:0;border-radius:50%;background:var(--brand-grad);color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}
.wf-step-fields{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:7px;min-width:0}
.wf-step-fields label{font-size:11px;color:var(--ink-soft);display:flex;flex-direction:column;gap:3px}
.wf-step-fields label.full{grid-column:1/-1}
.wf-step-fields input,.wf-step-fields select{padding:6px 8px;border:1px solid var(--line);border-radius:7px;font-size:12.5px;font-family:inherit;color:var(--ink);background:#fff;width:100%}
.wf-step-del{border:1px solid var(--danger);background:#fff;color:var(--danger);border-radius:7px;cursor:pointer;padding:4px 9px;font-size:12px;flex-shrink:0}
@media(max-width:720px){.wf-step-fields{grid-template-columns:1fr}}

/* ====================== 双端实时协同面板 ====================== */
.livefeed { display: flex; flex-direction: column; gap: 9px; }
.live-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: .15s; }
.live-item:hover { border-color: var(--accent); background: var(--surface-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; box-shadow: 0 0 8px rgba(26,115,199,.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.live-main { flex: 1; min-width: 0; }
.live-title { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.live-sub { font-size: 12px; color: var(--ink-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-tag { font-size: 11px; padding: 2px 9px; border-radius: 12px; background: rgba(26,115,199,.1); color: var(--accent); border: 1px solid rgba(26,115,199,.22); white-space: nowrap; }
.live-head { display: flex; align-items: center; gap: 8px; }
.live-head .live-dot { width: 7px; height: 7px; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.topbar {
  min-height: 58px; height: auto; flex-shrink: 0; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 7px 22px;
  position: sticky; top: 0; z-index: 20;
}
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 auto; }
/* 顶栏标题区：面包屑独占一行，标题与一句话说明并排，避免三行堆叠撑破固定高度导致顶部文字被裁切 */
.page-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "crumb crumb" "title hint";
  align-items: center; column-gap: 12px; row-gap: 1px; min-width: 0;
}
.page-crumb { grid-area: crumb; }
.page-title { grid-area: title; font-size: 16px; font-weight: 700; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; color: var(--ink); white-space: nowrap; }
.page-title::before { content: ""; width: 4px; height: 17px; border-radius: 2px; background: var(--brand-grad); flex-shrink: 0; }
.sync-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--accent); background: rgba(26,115,199,.08); border: 1px solid rgba(26,115,199,.22); padding: 5px 12px; border-radius: 20px; margin-left: 6px; white-space: nowrap; flex-shrink: 0; }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: pulse 1.8s infinite; }
@media (max-width: 900px) { .sync-pill { display: none; } }
.user-box { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 13px; flex-shrink: 0; }
.role-tag, .dept-tag { background: rgba(26,115,199,.1); color: var(--accent); padding: 3px 10px; border-radius: 20px; font-size: 12px; border: 1px solid rgba(26,115,199,.22); white-space: nowrap; }
.dept-switch { margin-left: 4px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 12px; cursor: pointer; max-width: 150px; }
.page-content { padding: 18px 24px 28px; overflow-y: auto; flex: 1; min-height: 0; }
.crumb-back { border: 1px solid var(--line); background: #fff; color: #4a6076; font-family: inherit; font-size: 11.5px; padding: 2px 9px 2px 7px; border-radius: 6px; cursor: pointer; line-height: 1.5; transition: .15s; }
.crumb-back:hover { border-color: var(--brand); color: var(--brand); background: #f4f9ff; }
.crumb-path { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #9aa9bc; }
.crumb-path i { font-style: normal; color: #7b8ea6; }
.crumb-path em { font-style: normal; color: #c3cfdd; }
.crumb-path b { color: #5a6f87; font-weight: 600; }
.page-hint { grid-area: hint; font-size: 11.5px; color: #8496ac; line-height: 1.45; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-mode { margin: 8px 12px 4px; padding: 7px 10px; border-radius: 8px; border: 1px dashed rgba(255, 255, 255, .26); background: transparent; color: rgba(255, 255, 255, .72); font-size: 11.5px; cursor: pointer; font-family: inherit; transition: .15s; }
.menu-mode:hover { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); }
.menu-mode.all { border-style: solid; border-color: rgba(0, 184, 169, .55); color: #7fe0d4; background: rgba(0, 184, 169, .08); }

/* ---------- 五步上手引导 ---------- */
.wizard { background: #fff; border: 1px solid #dfe9f7; border-radius: 10px; padding: 14px 16px 16px; margin-bottom: 14px; box-shadow: 0 2px 12px rgba(16, 39, 74, .05); }
.wz-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.wz-head b { font-size: 15px; color: #0f2b52; letter-spacing: .3px; }
.wz-sub { font-size: 12px; color: #8296ad; margin-left: 10px; }
.wz-close { background: none; border: none; color: #93a4b8; font-size: 12px; cursor: pointer; padding: 2px 4px; font-family: inherit; }
.wz-close:hover { color: #1f6fff; }
.wz-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.wz-step { position: relative; background: #f8fbff; border: 1px solid #e6eef9; border-radius: 8px; padding: 10px 10px 36px; transition: .15s; }
.wz-step.done { background: #f5fbf7; border-color: #cbe9d9; }
.wz-step.cur { background: #f2f7ff; border-color: #1f6fff; box-shadow: 0 0 0 3px rgba(31, 111, 255, .08); }
.wz-dot { width: 22px; height: 22px; border-radius: 50%; background: #dfe8f4; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700; margin-bottom: 7px; }
.wz-step.done .wz-dot { background: #16a34a; }
.wz-step.cur .wz-dot { background: #1f6fff; }
.wz-t { font-size: 12.5px; font-weight: 700; color: #17324f; line-height: 1.3; }
.wz-d { font-size: 11px; color: #7b8ba0; margin-top: 4px; line-height: 1.45; min-height: 30px; }
.wz-btn { position: absolute; left: 10px; bottom: 9px; font-size: 11px; padding: 4px 10px; border-radius: 6px; border: 1px solid #cfe0f5; background: #fff; color: #1f6fff; cursor: pointer; font-family: inherit; }
.wz-btn:hover { background: #f0f6ff; }
.wz-step.cur .wz-btn { background: #1f6fff; color: #fff; border-color: #1f6fff; }
.wz-step.done .wz-btn { color: #5f7f6d; border-color: #cbe9d9; }
.wz-done-bar { display: flex; align-items: center; gap: 10px; background: #f5fbf7; border: 1px solid #cbe9d9; border-radius: 10px; padding: 10px 16px; margin-bottom: 14px; font-size: 12.5px; color: #2f6b4c; }
.wz-mini { background: none; border: none; color: #1f6fff; font-size: 11.5px; cursor: pointer; padding: 0; font-family: inherit; text-decoration: underline; }
.tbl-empty { padding: 26px 12px !important; text-align: center; color: #8b9cb2; font-size: 12.5px; background: #fbfdff !important; line-height: 1.7; }

/* ---------- 行业设置 ---------- */
.ind-mods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.ind-mod { display: flex; gap: 9px; align-items: flex-start; background: #fff; border: 1px solid #e6eef9; border-radius: 9px; padding: 10px 12px; cursor: pointer; }
.ind-mod:hover { border-color: #b9d4f6; }
.ind-mod input { margin-top: 2px; accent-color: #1f6fff; }
.ind-mod span { display: flex; flex-direction: column; gap: 3px; }
.ind-mod b { font-size: 12.5px; color: #17324f; font-weight: 600; }
.ind-mod i { font-style: normal; font-size: 10.5px; color: #93a4b8; line-height: 1.45; }
.ind-actbar { display: flex; align-items: center; gap: 12px; margin: 9px 0 14px; flex-wrap: wrap; }
.ind-th { font-size: 12.5px; color: #3c5470; display: flex; align-items: center; gap: 6px; }
.ind-th input { width: 120px; border: 1px solid #d8e4f2; border-radius: 7px; padding: 6px 9px; font-size: 12.5px; font-family: inherit; color: #17324f; text-align: right; }
@media (max-width: 1400px) { .ind-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 新建项目向导（分区录入 + 合同导入识别） ---------- */
.proj-form { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 16px; }
.proj-form .pf-sec { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: #17324f; margin: 4px 0 -2px; }
.proj-form .pf-sec::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--brand-grad); }
.proj-form .pf-sec span { font-weight: 400; font-size: 11px; color: #93a4b8; }
.pf-fld { display: flex; flex-direction: column; gap: 5px; }
.pf-fld.full { grid-column: 1 / -1; }
.pf-fld > span { font-size: 11.5px; color: #5b7189; }
.pf-fld input, .pf-fld select, .pf-fld textarea { border: 1px solid #d8e4f2; border-radius: 7px; padding: 7px 10px; font-size: 12.5px; font-family: inherit; color: #17324f; background: #fcfdff; width: 100%; box-sizing: border-box; }
.pf-fld input:focus, .pf-fld select:focus, .pf-fld textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(31,111,255,.09); }
.imp-box { grid-column: 1 / -1; border: 1px dashed #b9d4f6; border-radius: 10px; padding: 12px 14px; background: linear-gradient(135deg,#f8fbff,#f2f8ff); }
.imp-head b { font-size: 12.5px; color: #17324f; }
.imp-head span { display: block; font-size: 11.5px; color: #7b8ea6; line-height: 1.6; margin-top: 3px; }
.imp-row { display: flex; align-items: center; gap: 10px; margin: 9px 0 7px; flex-wrap: wrap; }
.imp-row input[type=file] { font-size: 11.5px; color: #5b7189; max-width: 300px; }
.imp-box textarea { width: 100%; box-sizing: border-box; border: 1px solid #d8e4f2; border-radius: 8px; padding: 8px 10px; font-size: 12px; font-family: inherit; color: #17324f; background: #fff; }
.imp-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #0b8f83; background: #eefaf7; border: 1px solid #d3f0ea; border-radius: 999px; padding: 2px 8px; margin: 0 4px 4px 0; }
/* 识别状态：明确区分 处理中 / 成功 / 警告 / 失败，避免"点了没反应"的错觉 */
.imp-state { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; padding: 4px 10px; border-radius: 8px; line-height: 1.5; }
#imp_status.imp-state { background: #f1f5fa; color: #5b7189; border: 1px solid #e2ebf6; }
#imp_status.imp-state.info { background: #eef5ff; color: #1a5fb4; border-color: #cfe2fb; }
#imp_status.imp-state.ok { background: #ecfaf6; color: #0b7f74; border-color: #c8ece5; }
#imp_status.imp-state.warn { background: #fff8e8; color: #9a6b00; border-color: #f6e3b8; }
#imp_status.imp-state.bad { background: #fff1f0; color: #b42318; border-color: #f7d4d1; }
#imp_status.imp-state.info::before { content: ""; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #b9d4f6; border-top-color: #1a5fb4; animation: impspin .8s linear infinite; }
@keyframes impspin { to { transform: rotate(360deg); } }
/* 识别填充后短暂高亮，让人一眼看到哪些字段被写入 */
.imp-hit { animation: imphit 2.4s ease; border-color: #0b8f83 !important; }
@keyframes imphit {
  0%, 60% { background: #e6fbf5; box-shadow: 0 0 0 3px rgba(11,143,131,.14); }
  100% { background: #fcfdff; box-shadow: none; }
}

/* ---------- 生产环境：软删除视图（仅管理员切换） ---------- */
#deleted-toggle.on { background: #fff4e6; border-color: #f0c48a; color: #9a5b00; }
tr.row-deleted > td { opacity: .62; background: #fbfaf8; }
tr.row-deleted > td:first-child { box-shadow: inset 3px 0 0 #d08a2e; }
.del-tag { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 4px; font-size: 10.5px; line-height: 1.6; color: #9a5b00; background: #fdf1e0; border: 1px solid #f2dcbb; vertical-align: 1px; }
body.show-deleted .page-hint::after { content: " ｜ 已包含已删除记录"; color: #9a5b00; }

/* ---------- 登录页响应式：窄屏收起左侧品牌文案 ---------- */
@media (max-width: 960px) {
  .login-view:before { background: linear-gradient(0deg, rgba(255,255,255,.5), rgba(232,242,251,.85)); }
  .login-scene { justify-content: center; padding: 0 20px; }
  .login-intro { display: none; }
  .login-card { flex: 0 1 440px; }
}

/* ---------- 顶栏/侧栏响应式：窄屏不挤压、不裁字 ---------- */
@media (max-width: 1180px) {
  .topbar .page-hint { display: none; }              /* 窄屏隐藏标题旁的一句话说明，标题独占一行不被挤压 */
  .page-head { grid-template-columns: auto; grid-template-areas: "crumb" "title"; }
}
@media (max-width: 900px) {
  .sidebar { width: 64px; }                          /* 侧栏收窄为图标条，文字让位给工作区 */
  .side-brand { justify-content: center; padding: 14px 0; }
  .side-brand-tx, .side-foot, .menu-mode { display: none; }
  .menu-item { justify-content: center; padding: 10px 0; }
  .menu-item span, .menu-group-h span { display: none; }
  .menu-group-h { justify-content: center; }
  .menu-sub .menu-item { padding-left: 0; }
  .user-box #user-name, .user-box .dept-tag { display: none; }
}
@media (max-width: 640px) {
  .topbar { padding: 7px 12px; }
  .topbar .user-box .role-tag { display: none; }
  .page-content { padding: 14px 12px 24px; }
  .charts, .charts-row { grid-template-columns: 1fr; }
  .cards .card { min-width: 46%; }
}
/* 宽弹窗与多字段表单：窄屏自动收成单列，去掉外边距保证可点可填 */
@media (max-width: 960px) {
  .modal-mask { padding: 24px 12px; }
  .modal.modal-wide { width: 100%; max-height: calc(100vh - 48px); }
  .modal.modal-wide .modal-body { padding: 14px 16px 16px; }
}
@media (max-width: 720px) {
  .proj-form { grid-template-columns: 1fr; }
  .modal { max-height: calc(100vh - 40px); }
  .modal-mask { padding: 20px 10px; }
  .modal-head { font-size: 14px; padding: 12px 16px; }
  .modal-body { padding: 14px 16px; }
  .modal-foot { padding: 11px 16px; }
  .modal-foot .btn-primary, .modal-foot .btn-ghost { flex: 1 1 auto; justify-content: center; }
}

/* ====================== 企业品牌（企业名称 + 企业 LOGO） ====================== */
.tenant-chip {
  display: inline-flex; align-items: center; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: linear-gradient(135deg, rgba(241,64,11,.12), rgba(255,145,64,.14)); color: #b3400f;
  padding: 3px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 600;
  border: 1px solid rgba(241,64,11,.25);
}
.side-brand.brand-editable { cursor: pointer; transition: .15s; border-radius: 0; }
.side-brand.brand-editable:hover { background: rgba(255,255,255,.06); }
.side-brand.brand-editable:hover .side-brand-tx b { color: #ffd9c4; }
.tenant-info-card {
  display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 18px; margin: 14px 0 4px;
}
.tenant-info-logo { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #f7fafc; padding: 5px; flex-shrink: 0; }
.tenant-info-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tenant-info-tx b { font-size: 15px; color: var(--ink); }
.tb-logo-row { display: flex; align-items: center; gap: 16px; margin-top: 2px; }
.tb-logo-prev { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #f7fafc; padding: 6px; flex-shrink: 0; }
.tb-logo-acts { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.tb-logo-btns { display: flex; gap: 8px; }
@media (max-width: 720px) {
  .tenant-chip { max-width: 130px; font-size: 11.5px; }
  .tenant-info-card { flex-wrap: wrap; }
}

/* ====================== 项目下发 / 队伍进度汇总 ====================== */
.pa-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pa-form .mini-sel { min-width: 200px; max-width: 320px; }
.pa-weight { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.pa-weight input { width: 76px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; }
.pa-item { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.pa-item:last-child { border-bottom: none; }
.pa-pj { font-weight: 600; color: var(--ink); min-width: 160px; }
.pg-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 14px 0; }
.pg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pg-head b { font-size: 15px; color: var(--ink); }
.pg-bar { height: 9px; border-radius: 6px; background: #edf1f6; overflow: hidden; margin-bottom: 12px; }
.pg-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #38bdf8, #3b82f6); }
