﻿/* ================================================================
   重大项目日管控系统 - 企业简洁风（Corporate Clean）
   参考 shadcn/ui 组件语言：统一圆角 / 阴影 / 焦点环 / 微动效
   规范：rounded-lg|xl · shadow-sm · blue-600 主色 · duration<=200ms
   ================================================================ */
:root {
  --primary: #2563eb;            /* blue-600 */
  --primary-dark: #1d4ed8;       /* blue-700 */
  --primary-light: #3b82f6;      /* blue-500（焦点环） */
  --primary-50: #eff6ff;         /* blue-50 */
  --bg: #f8fafc;                 /* slate-50 */
  --card: #ffffff;
  --text: #111827;               /* gray-900 */
  --text-2: #374151;             /* gray-700 */
  --muted: #6b7280;              /* gray-500 */
  --muted-2: #9ca3af;            /* gray-400 */
  --border: #e5e7eb;             /* gray-200 */
  --border-strong: #d1d5db;      /* gray-300 */
  --danger: #dc2626;             /* red-600 */
  --danger-50: #fef2f2;          /* red-50 */
  --warn: #d97706;               /* amber-600 */
  --warn-50: #fffbeb;            /* amber-50 */
  --ok: #16a34a;                 /* green-600 */
  --ok-50: #f0fdf4;              /* green-50 */
  --ring: rgba(59, 130, 246, .45);
  --sidebar-w: 220px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 4px 12px rgba(15, 23, 42, .08);
  --shadow-md: 0 8px 20px rgba(15, 23, 42, .1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif; background: var(--bg); color: var(--text); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ---------- 焦点环统一规范：ring-2 + ring-offset-2（WCAG AA） ---------- */
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ring); }

/* ---------- 登录 ---------- */
#loginView { display: flex; align-items: center; justify-content: center; height: 100vh;
  background: linear-gradient(135deg, #0a1f4d 0%, #123a8f 40%, #1e5eff 100%);
  position: relative; overflow: hidden; }
#loginView::before, #loginView::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}
#loginView::before { width: 520px; height: 520px; top: -180px; right: -120px; }
#loginView::after { width: 380px; height: 380px; bottom: -140px; left: -100px; background: rgba(255, 255, 255, .04); }
.login-card { background: #fff; border-radius: 12px; padding: 42px 46px 36px; width: 400px; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
.login-card h1 { font-size: 22px; text-align: center; margin-bottom: 6px; }
.login-card .sub { text-align: center; color: var(--muted); margin-bottom: 28px; font-size: 13px; }
.login-card label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-2); }
.login-card input { width: 100%; height: auto; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 8px; font-size: 15px; margin-bottom: 16px; background: #fff; }
.login-card input:focus { border-color: var(--primary-light); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ring); }
.login-card .err { color: var(--danger); font-size: 13px; min-height: 18px; margin-bottom: 8px; text-align: center; }

/* ---------- 布局 ---------- */
#appView { display: none; height: 100vh; }
#appView.show { display: flex; }
.sidebar { width: var(--sidebar-w); background: #0e1c3d; color: #c9d4ee; display: flex; flex-direction: column; flex-shrink: 0; }
.sidebar .brand { padding: 20px 18px; font-size: 16px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); letter-spacing: .3px; }
.sidebar .brand small { display: block; font-weight: 400; font-size: 11px; color: #8fa3cf; margin-top: 4px; }
.sidebar nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; cursor: pointer; margin-bottom: 4px; color: #c9d4ee; font-size: 14px; transition: background .15s ease-out, color .15s ease-out; }
.nav-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-item.active { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.nav-item .badge { margin-left: auto; background: var(--danger); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 11px; }
.sidebar .foot { padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12px; color: #8fa3cf; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 54px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 20px; gap: 12px; flex-shrink: 0; }
.topbar .title { font-size: 16px; font-weight: 700; letter-spacing: .2px; }
.topbar .spacer { flex: 1; }
.content { flex: 1; overflow-y: auto; padding: 18px 20px 40px; }

/* ---------- 项目明细统计条 ---------- */
.list-stats { display: flex; align-items: center; gap: 28px; background: #fff;
  border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); padding: 14px 20px; margin-bottom: 14px; flex-wrap: wrap; }
.ls-item { text-align: left; }
.ls-v { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; color: #1f2937; }
.ls-v.blue { color: var(--primary); } .ls-v.red { color: var(--danger); }
.ls-c { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ls-stage { flex: 1; text-align: right; min-width: 200px; }

/* ---------- 通用组件 ---------- */
.card { background: var(--card); border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); padding: 18px; margin-bottom: 16px;
  transition: box-shadow .2s ease-out, transform .2s ease-out; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { font-size: 15px; margin-bottom: 14px; font-weight: 600; letter-spacing: .2px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid2 > *, .grid3 > * { min-width: 0; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* 按钮：企业简洁风 token */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: #fff; color: var(--text-2);
  padding: 8px 15px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-sm); transition: all .15s ease-out; }
.btn:hover { border-color: var(--primary-light); color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: scale(.98) translateY(0); box-shadow: var(--shadow-sm); }
.btn:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ring); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary:active { transform: scale(.98) translateY(0); box-shadow: var(--shadow-sm); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); background: var(--danger-50); color: var(--danger); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.sm { padding: 5px 11px; font-size: 12px; border-radius: 7px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: var(--shadow-sm) !important; }
/* ---------- 输入控件：shadcn/ui 风格（h-9 / rounded-md / ring-2 + ring-offset-2） ---------- */
input:where(:not([type="checkbox"]), :not([type="radio"]), :not([type="file"])), select, textarea {
  height: 36px; border: 1px solid var(--border-strong); border-radius: 6px;
  padding: 7px 12px; font-size: 13px; font-family: inherit; background: #fff; color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease-out, box-shadow .15s ease-out, background .15s ease-out;
}
textarea { height: auto; line-height: 1.6; }
input:where(:not([type="checkbox"]), :not([type="radio"]), :not([type="file"])):hover, select:hover, textarea:hover { border-color: var(--primary-light); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ring); }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
/* 下拉框：恢复浏览器原生外观（保留统一尺寸与边框） */
select { cursor: pointer; }
select:focus { border-color: var(--primary-light); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ring); }
/* 日期选择：自定义日历图标（shadcn Calendar 触发端视觉） */
input[type="date"] { position: relative; cursor: pointer; }
input[type="date"]::-webkit-calendar-picker-indicator {
  width: 16px; height: 16px; cursor: pointer; opacity: .6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-position: center; background-size: contain; background-repeat: no-repeat;
}
/* 复选框 / 单选框：恢复浏览器原生外观 */
input[type="checkbox"], input[type="radio"] { cursor: pointer; margin: 0 4px 0 0; vertical-align: -2px; width: 13px; height: 13px; appearance: auto; -webkit-appearance: auto; background: transparent; border: none; }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { opacity: .45; cursor: not-allowed; }
/* 项目详情：除基本信息/时间轴外的板块限高 4 行，超出滚动 */
.detail-scroll { max-height: 152px; overflow-y: auto; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar .sep { flex: 1; }
table.tbl { width: 100%; border-collapse: collapse; }
/* 详情页信息表：固定列宽，长文本强制换行，避免撑出横向滚动条 */
.grid2 .card table.tbl { table-layout: fixed; }
.kv-long { display: flex; gap: 12px; padding: 9px 12px; border-bottom: 1px solid #f3f4f6; font-size: 13px; align-items: flex-start; }
.kv-long > span { flex: 0 0 96px; color: var(--muted); }
.kv-long > p { flex: 1; min-width: 0; margin: 0; line-height: 1.65; color: var(--text); word-break: break-word; overflow-wrap: anywhere; }
.kv-long > p.kv-sub { color: #6b7280; font-size: 12.5px; }
/* 四个一批列表：固定列宽，项目名称不被压缩成竖排 */
.card .batch-tbl { table-layout: fixed; min-width: 862px; }
/* 项目明细列表：宽表横向滚动，名称列保持可读 */
.wide-tbl { width: 100%; min-width: 760px; table-layout: fixed; }
.wide-tbl th, .wide-tbl td { overflow: hidden; text-overflow: ellipsis; }
.wide-tbl td { white-space: nowrap; }
.wide-tbl th.sel-cell, .wide-tbl td.sel-cell { width: 44px; max-width: 44px; padding-left: 10px; padding-right: 4px; overflow: visible; text-overflow: clip; white-space: nowrap; }
.wide-tbl th:nth-child(2), .wide-tbl td:nth-child(2) { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
/* 项目名称列改为换行显示，不再用省略号截断；长名称最多占两到三行 */
.wide-tbl td.proj-name-cell { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.5; vertical-align: middle; }
.wide-tbl td.proj-name-cell a, .wide-tbl td.proj-name-cell b { display: block; overflow-wrap: anywhere; }
.wide-tbl td:last-child { overflow: visible; }
/* 操作列常驻：仅在超宽屏启用，窄屏保持普通列，避免遮住中间字段 */
@media (min-width: 1500px) {
  .wide-tbl th:last-child, .wide-tbl td:last-child {
    position: sticky; right: 0; z-index: 2; background: #fff;
    box-shadow: -8px 0 10px -8px rgba(15, 23, 42, .28);
  }
  .wide-tbl thead th:last-child { background: #f9fafb; }
}
.tbl th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; background: #f9fafb; }
.tbl td { padding: 8px 12px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; font-size: 13px; word-break: break-word; overflow-wrap: anywhere; }
.tbl td.tbl-sec { background: #f8fafc; color: #64748b; font-size: 12px; font-weight: 600; letter-spacing: .5px; padding: 6px 12px; border-bottom: 1px solid #eef1f6; }
/* hover 行高亮（企业风：灰底，无斑马纹） */
.tbl tbody tr:hover td { background: #f9fafb !important; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
/* 超期行底色 */
.tbl tbody tr.row-overdue td { background: #fef2f2; }
.tbl tbody tr.row-severe td { background: #fde8e8; }
.tbl tbody tr.row-duesoon td { background: var(--warn-50); }
.tbl tbody tr.row-overdue:hover td, .tbl tbody tr.row-severe:hover td, .tbl tbody tr.row-duesoon:hover td { background: #f9fafb !important; }
/* 编辑模式输入框（表格内紧凑控件） */
.edit-input { width: 100%; min-width: 80px; height: 28px; padding: 3px 8px; border: 1px solid var(--border-strong); border-radius: 6px; font-size: 13px; background: #fff; box-sizing: border-box; }
.edit-input:focus { border-color: var(--primary-light); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ring); }
.edit-num { text-align: right; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.tag.gray { background: #f3f4f6; color: #4b5563; }
.tag.green { background: var(--ok-50); color: #15803d; }
.tag.orange { background: var(--warn-50); color: #b45309; }
.tag.red { background: var(--danger-50); color: #b91c1c; }
.tag.blue { background: var(--primary-50); color: #1d4ed8; }
.tag.yellow { background: #fefce8; color: #a16207; }
.tag.purple { background: #f5f3ff; color: #6d28d9; }
.star { color: #f59e0b; cursor: pointer; font-size: 16px; }
.empty { text-align: center; color: var(--muted); padding: 30px 0; }
/* 分页栏 */
.pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 14px; font-size: 13px; color: var(--muted); padding-top: 10px; border-top: 1px solid #f3f4f6; flex-wrap: wrap; }
.pager span { padding: 0 4px; }
.pager .btn { min-width: 32px; justify-content: center; }
.pager .pg-total { font-weight: 600; color: #334155; }
.pager .pg-pos { font-weight: 600; color: #334155; min-width: 84px; text-align: center; }
.pager .pg-size { padding: 4px 8px; border: 1px solid var(--border); border-radius: 8px; font-size: 12.5px; background: #fff; color: var(--text); cursor: pointer; }
.pager .pg-jump { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.pager .pg-jump-input { width: 56px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 8px; font-size: 12.5px; text-align: center; }
.pager .btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- 看板摘要条 ---------- */
.dash-head { display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.dh-date { font-size: 17px; font-weight: 800; color: #1e293b; letter-spacing: .3px; }
.dh-sub { font-size: 13px; color: var(--muted); margin-top: 5px; }
.dh-sub b { padding: 0 2px; } .dh-sub .rd { color: var(--danger); } .dh-sub .or { color: var(--warn); } .dh-sub .bl { color: var(--primary); }
.dh-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- KPI 概览横条（重点日管控项目） ---------- */
.kpi-hero {
  display: flex; align-items: center; gap: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 28px; margin-bottom: 14px;
  color: var(--text); cursor: pointer;
  transition: box-shadow .2s ease-out, transform .2s ease-out;
  position: relative; box-shadow: var(--shadow-sm);
}
.kpi-hero::before, .kpi-hero::after { display: none; }
.kpi-hero:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kpi-hero:active { transform: scale(.99) translateY(0); }
.kh-left { flex: 1; position: relative; z-index: 1; }
.kh-title { font-size: 17px; font-weight: 700; margin-bottom: 5px; letter-spacing: .5px; color: var(--text); }
.kh-sub { font-size: 12px; color: var(--muted); }
.kh-stats { display: flex; align-items: center; gap: 32px; position: relative; z-index: 1; }
.kh-stat { text-align: center; min-width: 100px; }
.kh-num { font-size: 34px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -0.5px; color: var(--primary); }
.kh-cap { font-size: 12px; color: var(--muted); margin-top: 3px; }
.kh-sep { width: 1px; height: 44px; background: var(--border); }
.kh-arrow { font-size: 12.5px; color: var(--primary); position: relative; z-index: 1; white-space: nowrap; font-weight: 600; }

/* ---------- 看板顶部：重点项目日管控 + 消息动态 左右一行 ---------- */
.dash-top { display: flex; gap: 14px; align-items: stretch; margin-bottom: 14px; }
.dash-top .kpi-hero { flex: 1 1 50%; margin-bottom: 0; min-width: 0; }
/* 数字区允许换行，窄屏不压到右侧消息卡 */
.kh-stats { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 1100px) {
  .dash-top { flex-direction: column; }
  .dash-top .kpi-hero, .dash-top .msg-card { flex: 1 1 auto; }
  .kh-stats { justify-content: flex-start; }
}
.msg-card { flex: 1 1 50%; margin: 0 !important; display: flex; flex-direction: column; padding: 16px 18px; overflow: hidden; }
.msg-card .ann-head { margin-bottom: 6px; }
.msg-card .msg-scroll { max-height: 120px; flex: 1; overflow-y: auto; }

/* ---------- KPI 状态卡片（4列） ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; align-items: stretch; }
.kpi-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 15px 16px; cursor: pointer;
  transition: box-shadow .2s ease-out, transform .2s ease-out;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  min-width: 0;
}
.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 8px; }
.kc-title { font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-badge { font-size: 11px; background: #f3f4f6; color: #6b7280; border-radius: 999px; padding: 2px 9px; white-space: nowrap; flex-shrink: 0; }
.kc-num { font-size: 28px; font-weight: 800; color: #1f2937; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kc-num.blue { color: var(--primary); } .kc-num.green { color: var(--ok); }
.kc-num.red { color: var(--danger); } .kc-num.orange { color: var(--warn); }
.kc-sub { font-size: 12px; color: var(--muted); margin-top: 3px; margin-bottom: 6px; }

/* KPI 明细滚动列表（可视约4条） */
.kpi-card .bid-scroll { margin-top: 6px; border-top: 1px dashed var(--border); padding-top: 6px; }
.bid-scroll { margin-top: 8px; border-top: 1px dashed var(--border); padding-top: 6px;
  max-height: 104px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #d1d5db transparent; flex-shrink: 1; min-height: 52px; }
.bid-scroll::-webkit-scrollbar { width: 5px; }
.bid-scroll::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.bid-item { display: flex; align-items: center; gap: 7px; padding: 3.5px 0; font-size: 12px; }
.bid-date { background: var(--primary-50); color: var(--primary); border-radius: 5px; padding: 1px 6px;
  font-weight: 700; font-variant-numeric: tabular-nums; flex-shrink: 0; min-width: 40px; text-align: center; white-space: nowrap; }
.bid-date.overdue { background: var(--danger-50); color: var(--danger); }
.bid-name { color: #4b5563; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; flex: 1; }
.bid-name:hover { color: var(--primary); text-decoration: underline; }
.bid-amt { color: var(--muted-2); font-variant-numeric: tabular-nums; flex-shrink: 0; font-size: 11px; }
.bid-empty { font-size: 12px; color: var(--muted-2); padding: 10px 8px; text-align: center; }

/* 单位排行进度条 */
.pbar { position: relative; background: #f3f4f6; border-radius: 6px; height: 16px; overflow: hidden; }
.pbar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ok); border-radius: 6px; transition: width .2s ease-out; }
.pbar-fill.o { background: var(--warn); }
.pbar span { position: relative; z-index: 1; display: block; text-align: center; font-size: 11px; line-height: 16px; color: #374151; font-weight: 600; }

/* ---------- 阶段推进图 ---------- */
.flow { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: 6px 0; }
.flow-node { flex: 1; min-width: 118px; text-align: center; position: relative; padding: 12px 6px 10px;
  border: 1px solid var(--border); border-radius: 11px; background: #fff; cursor: pointer; margin-right: 26px;
  transition: box-shadow .2s ease-out, border-color .2s ease-out, transform .2s ease-out; }
.flow-node:last-child { margin-right: 0; }
.flow-node::after { content: ''; position: absolute; right: -20px; top: 50%; width: 14px; height: 2px;
  transform: translateY(-50%); background: var(--border-strong); }
.flow-node:last-child::after { content: none; }
.flow-node:hover { border-color: var(--primary-light); background: var(--primary-50); box-shadow: var(--shadow); transform: translateY(-1px); }
.fn-idx { width: 20px; height: 20px; line-height: 20px; border-radius: 50%; background: var(--primary-50); color: var(--primary);
  font-size: 11px; font-weight: 700; margin: 0 auto 6px; }
.flow-node.start .fn-idx { background: #f3f4f6; color: var(--muted); }
.flow-node .fn-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.flow-node .fn-count { font-size: 22px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.flow-node .fn-amount { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ---------- 时间轴 ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding: 10px 0 16px; }
.tl-item::before { content: ''; position: absolute; left: -24px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: #c6cedb; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--border); }
.tl-item.done::before { background: var(--ok); box-shadow: 0 0 0 2px #bbf7d0; }
.tl-item.overdue::before { background: var(--danger); box-shadow: 0 0 0 2px #fecaca; }
.tl-item.due::before { background: #f59e0b; box-shadow: 0 0 0 2px #fde68a; }
.tl-item.skipped::before { background: var(--muted-2); }
.tl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-head b { font-size: 14px; }
.tl-body { margin-top: 6px; color: var(--text-2); font-size: 13px; line-height: 1.7; }

/* ---------- 模态框 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); display: none; align-items: flex-start; justify-content: center; z-index: 100; overflow-y: auto; padding: 40px 0; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 12px; width: 640px; max-width: 94vw; box-shadow: 0 20px 50px rgba(15, 23, 42, .25); }
.modal.wide { width: 980px; }
.modal .m-head { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal .m-head b { font-size: 16px; flex: 1; font-weight: 600; }
.modal .m-close { cursor: pointer; font-size: 20px; color: var(--muted); transition: color .15s ease-out; }
.modal .m-close:hover { color: var(--danger); }
.modal .m-body { padding: 20px; max-height: 68vh; overflow-y: auto; }
.modal .m-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.form-row { display: grid; grid-template-columns: 130px 1fr; gap: 10px; align-items: center; margin-bottom: 13px; }
.date-field { display: flex; align-items: center; gap: 6px; min-width: 0; width: 100%; }
.date-field .xc-wrap { flex: 1 1 auto; min-width: 0; width: 100%; }
.date-field input[type="date"] { flex: 1 1 auto; min-width: 0; width: 100%; }
.date-clear { flex: 0 0 auto; border: 1px solid #d8e0ec; background: #fff; color: #64748b; border-radius: 6px; padding: 5px 8px; font-size: 12px; line-height: 1.2; cursor: pointer; white-space: nowrap; }
.date-clear:hover { border-color: #2563eb; color: #2563eb; background: #f5f9ff; }
.form-row label { font-size: 13px; color: var(--text-2); text-align: right; }
.form-row .req::after { content: ' *'; color: var(--danger); }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-2col .form-row { grid-template-columns: 96px 1fr; }
.form-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
.form-3col .form-row { grid-template-columns: 96px 1fr; }
/* 日期清除按钮：与输入框同行、统一小按钮样式 */
.form-3col .form-row .dc-wrap { display: flex; align-items: center; gap: 6px; }
.form-3col .form-row input[type="date"] { width: 145px; min-width: 0; }
.date-clear { font-size: 11px; color: var(--danger); flex-shrink: 0; cursor: pointer; padding: 3px 9px; border: 1px solid var(--border); border-radius: 5px; background: #fff; white-space: nowrap; text-decoration: none; margin-left: 6px; vertical-align: middle; }
.date-clear:hover { background: var(--danger-50); border-color: var(--danger); color: var(--danger); }
/* 表单分区 */
.form-section { border: 1px solid var(--border); border-radius: 9px; padding: 14px 16px 6px; margin-bottom: 14px; background: #fcfcfd; }
.form-section .form-row { margin-bottom: 11px; }
.fs-title { font-size: 13.5px; font-weight: 700; color: #1e3a8a; margin-bottom: 12px; display: flex; align-items: baseline; gap: 10px; }
.fs-sub { font-size: 11.5px; font-weight: 400; color: var(--muted-2); }
.hint { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ---------- 弹窗：复选框胶囊 / 关联项目选择 ---------- */
.chk-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.chk-pill {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 18px; padding: 6px 14px;
  font-size: 13px; color: var(--text-2); background: #fff; transition: .15s;
}
.chk-pill input { margin: 0; accent-color: var(--primary); }
.chk-pill:hover { border-color: #bfdbfe; background: #f8fbff; }
.chk-pill:has(input:checked) { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-50); font-weight: 600; }
.vp-chips {
  display: flex; flex-wrap: wrap; gap: 6px; min-height: 34px; align-items: center;
  background: #fff; border: 1px dashed #dbe3ee; border-radius: 8px; padding: 6px 8px; margin-bottom: 8px;
}
.vp-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  background: var(--primary-50); border: 1px solid #bfdbfe; color: var(--primary-dark);
  border-radius: 14px; padding: 3px 10px; font-size: 12.5px; cursor: pointer;
}
.vp-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-chip i { font-style: normal; color: #93a4bf; }
.vp-chip:hover i { color: var(--danger); }
.vp-search { width: 100%; margin-bottom: 8px; }
.vp-list { max-height: 220px; overflow-y: auto; border: 1px solid #eef1f6; border-radius: 8px; padding: 4px 8px; }

/* ---------- 导入校验表 ---------- */
.imp-ok { color: var(--ok); } .imp-err { color: var(--danger); }
.diff-table td { font-size: 12.5px; word-break: break-all; }
.filters-panel { background: #f9fafb; border: 1px solid var(--border); border-radius: 9px; padding: 14px; margin-bottom: 14px; display: none; }
.filters-panel.show { display: block; }

/* 全屏看板 */
body.fullscreen .sidebar, body.fullscreen .topbar { display: none; }
body.fullscreen .content { padding: 10px; }
/* 全屏时“退出全屏”按钮悬浮固定在右上角 */
body.fullscreen #fsBtn {
  position: fixed; top: 14px; right: 16px; z-index: 60;
  box-shadow: var(--shadow-md); background: #fff;
}

/* ---------- 领导汇报 ---------- */
.brief-hero { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin: 16px 0 12px; }
.bh-item { background: #fff; border: 1px solid var(--border); border-radius: 9px; padding: 12px 8px; text-align: center;
  transition: box-shadow .2s ease-out, transform .2s ease-out; }
.bh-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.bh-v { font-size: 25px; font-weight: 900; color: #1f2937; font-variant-numeric: tabular-nums; word-break: break-all; }
.bh-v.blue { color: var(--primary); } .bh-v.red { color: var(--danger); } .bh-v.green { color: var(--ok); } .bh-v.orange { color: var(--warn); }
.bh-v.teal { color: #0d9488; font-size: 21px; }
.bh-c { font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.brief-stagebar { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; background: #f9fafb; border-radius: 8px; margin-bottom: 16px; }
.bs-item { font-size: 12px; color: var(--text-2); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; }
.bs-item b { color: var(--primary); margin-left: 4px; font-size: 13px; }
/* 汇报表：宽行高，2行不溢出 */
.bf-tbl th, .bf-tbl td { padding: 9px 8px; font-size: 13px; line-height: 1.55; vertical-align: middle; }
.bf-tbl .bf-idx { text-align: center; white-space: nowrap; }
.bf-tbl .bf-name { word-break: break-all; }
.bf-tbl .bf-prog { word-break: break-all; color: #4b5563; font-size: 12.5px; }
.bf-sub { font-size: 11px; color: var(--muted-2); margin-top: 2px; }
/* 编辑模式 */
body.bf-editing .bf-tbl td[contenteditable="true"], body.bf-editing #briefingPaper [contenteditable="true"] {
  outline: 1.5px dashed var(--primary); outline-offset: -2px; background: #fffbeb !important; cursor: text; }
body.bf-editing .bf-tbl td[contenteditable="true"]:focus { outline: 2px solid var(--primary); background: #fff !important; }
.bf-grip:hover { background: rgba(37, 99, 235, .3); }

/* ---------- 中标项目每日进展 ---------- */
.prog-item { border: 1px solid var(--border); border-left: 3px solid #14b8a6; border-radius: 8px; padding: 10px 14px; margin-bottom: 10px; background: #fbfdfd; }
.prog-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.prog-date { font-weight: 700; color: #15803d; font-variant-numeric: tabular-nums; background: var(--ok-50); border-radius: 5px; padding: 1px 8px; font-size: 12.5px; }
.prog-by { font-size: 11.5px; color: var(--muted-2); }
.prog-content { font-size: 13px; color: #374151; line-height: 1.7; white-space: pre-wrap; }

/* ---------- 日报 ---------- */
.report-paper { background: #fff; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); padding: 26px 30px; overflow-x: auto; }
.report-title { text-align: center; font-size: 24px; font-weight: 800; letter-spacing: 2px; color: #1e293b; }
.report-sub { text-align: center; font-size: 13px; color: var(--muted); margin: 8px 0 18px; }
.report-sec-title { font-size: 14px; font-weight: 700; color: #1e3a8a; margin: 18px 0 8px; padding-left: 9px; border-left: 3px solid var(--primary); line-height: 1.2; }
.report-tbl { width: 100%; border-collapse: collapse; table-layout: fixed; }
.rep-bf { min-width: 880px; }
.rep-daily { min-width: 970px; }
.rep-daily-report { min-width: 1060px; }
.report-tbl th, .report-tbl td { border: 1px solid var(--border-strong); padding: 5px 4px; font-size: 12.5px; text-align: center; }
.report-tbl thead th { background: var(--primary-50); color: #1e3a8a; font-weight: 700; }
.report-tbl thead tr:first-child th { font-size: 13px; }
.report-tbl tbody tr:nth-child(even) td { background: #f8fafc; }
.report-tbl tbody tr:hover td { background: var(--primary-50); }
.report-tbl .total-row td { background: #dbeafe !important; font-weight: 700; border-top: 2px solid var(--primary); }
.report-summary { margin-top: 18px; border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 6px; background: #f8fafc; padding: 14px 18px; }
.rs-title { font-weight: 700; font-size: 14px; color: #1e3a8a; margin-bottom: 8px; }
.rs-text { font-size: 13.5px; line-height: 2.1; color: #374151; text-align: justify; }
.rs-text p { margin: 0 0 4px; }
.rs-text .rs-em { color: var(--primary); font-weight: 800; padding: 0 1px; }
.rs-text .rs-day, .rs-text .rs-month { color: #1e293b; font-size: 14px; }
.report-foot { margin-top: 14px; font-size: 11.5px; color: var(--muted-2); text-align: right; }
/* 日报表格编辑态 */
body.rpt-editing .report-tbl td[contenteditable="true"] { outline: 1.5px dashed var(--primary); outline-offset: -2px; background: #fffbeb !important; cursor: text; }
body.rpt-editing .report-tbl td[contenteditable="true"]:focus { outline: 2px solid var(--primary); background: #fff !important; }

@media print {
  .sidebar, .topbar, .toolbar, .no-print { display: none !important; }
  .content { padding: 0 !important; overflow: visible !important; }
  body { background: #fff !important; }
  #appView { display: block !important; height: auto !important; }
  .main { display: block !important; }
  .report-paper { box-shadow: none !important; padding: 10px 0 !important; overflow: visible !important; }
  .report-tbl th, .report-tbl td { font-size: 11px !important; padding: 3px 2px !important; }
  .rep-daily-report, .rep-daily, .rep-bf { min-width: 0 !important; }
  .report-title { font-size: 20px !important; }
}
@media (max-width: 900px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .kpi-hero { flex-wrap: wrap; gap: 14px; }
  .kh-stats { gap: 18px; }
  /* 窄屏：侧边栏收窄为图标条，导航文字隐藏 */
  .sidebar { width: 62px; }
  .sidebar .brand { padding: 16px 8px; font-size: 0; }
  .sidebar .brand small { display: none; }
  .sidebar nav { padding: 10px 6px; }
  .sidebar nav .nav-item { justify-content: center; padding: 11px 0; font-size: 0; gap: 0; }
  .sidebar nav .nav-item .badge { display: none; }
  .sidebar nav .nav-icon { font-size: 16px; margin: 0; }
  .sidebar .foot { display: none; }
  .ann-item { grid-template-columns: 38px 84px minmax(0, 2fr) 76px 56px 44px; }
  .ann-item .ann-unit { display: none; }
}
@media (max-width: 720px) {
  .login-wrap { width: 400px; max-width: 94vw; }
  .sidebar { width: 52px; }
  .content { padding: 12px 10px 26px; }
  .topbar { padding: 0 10px; }
  .topbar h2 { font-size: 15px; }
  .ann-item { grid-template-columns: 84px minmax(0, 1fr) 70px 48px 42px; gap: 5px; }
  .ann-item .ann-date, .ann-item .ann-unit { display: none; }
  .ann-filter { flex-wrap: wrap; }
  .toolbar { flex-wrap: wrap; gap: 6px; }
}

/* ================================================================
   动效补充（企业简洁风）
   ================================================================ */

/* ---------- 按钮加载动画 ---------- */
.btn-spinner {
  display: inline-block; width: 13px; height: 13px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: btnSpin .7s linear infinite;
  margin-right: 5px; vertical-align: -2px;
}
.btn.primary .btn-spinner { border-color: rgba(255, 255, 255, .7); border-top-color: transparent; }
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* ---------- 导航 / 按钮 SVG 图标尺寸 ---------- */
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex-shrink: 0; }
.nav-icon svg { width: 18px; height: 18px; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin-right: 4px; vertical-align: -2px; }
.btn-icon svg { width: 15px; height: 15px; }

/* ---------- 登录页（企业简洁风） ---------- */
.login-wrap {
  display: flex; width: 820px; max-width: 94vw; min-height: 480px;
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(10, 31, 77, .35);
  position: relative; z-index: 1;
}
.login-left {
  flex: 1; background: linear-gradient(160deg, #0e2a6b 0%, #1a4fc4 100%);
  color: #fff; padding: 44px 38px; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.login-left::after {
  content: ''; position: absolute; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(255, 255, 255, .07);
  bottom: -80px; right: -60px;
}
.login-left .ll-badge {
  display: inline-block; font-size: 11px; letter-spacing: 2px;
  background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px; padding: 4px 14px; margin-bottom: 28px; width: fit-content;
}
.login-left h2 { font-size: 26px; font-weight: 800; line-height: 1.4; margin-bottom: 12px; letter-spacing: .5px; }
.login-left .ll-sub { font-size: 13.5px; color: rgba(255, 255, 255, .75); line-height: 1.8; margin-bottom: 32px; }
.login-features { list-style: none; margin-top: auto; }
.login-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255, 255, 255, .85); padding: 7px 0;
}
.login-features li .lf-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #5da0ff; flex-shrink: 0;
}
.login-right {
  width: 380px; flex-shrink: 0; padding: 48px 40px; display: flex; flex-direction: column; justify-content: center;
}
.login-right .lr-title { font-size: 20px; font-weight: 800; color: #1e293b; margin-bottom: 4px; letter-spacing: .3px; }
.login-right .lr-subtitle { font-size: 12.5px; color: var(--muted); margin-bottom: 30px; }
.login-right label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.login-right input {
  width: 100%; height: auto; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: 9px;
  font-size: 14px; margin-bottom: 18px; transition: border-color .15s ease-out, box-shadow .15s ease-out;
}
.login-right input:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ring); }
.login-right .err { color: var(--danger); font-size: 12.5px; min-height: 18px; margin-bottom: 10px; text-align: center; }
.login-right .btn.primary {
  width: 100%; justify-content: center; padding: 11px; font-size: 15px; font-weight: 600;
  border-radius: 9px; margin-top: 4px;
}
.login-foot {
  position: absolute; bottom: 16px; left: 0; right: 0; text-align: center;
  font-size: 11.5px; color: rgba(255, 255, 255, .5); z-index: 1;
}

/* 小屏兼容：隐藏左侧介绍 */
@media (max-width: 720px) {
  .login-left { display: none; }
  .login-wrap { width: 400px; max-width: 94vw; }
  .login-right { width: 100%; padding: 40px 32px; }
}

/* ================================================================
   系统设置页
   ================================================================ */
.set-card { padding: 20px; transition: box-shadow .2s ease-out, transform .2s ease-out; display: flex; flex-direction: column; }
.set-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
/* 内容弹性区：撑满卡片高度 */
.set-card .set-body { flex: 1; min-height: 0; }
/* 底部操作区：沉底 */
.set-card .set-actions { margin-top: auto; padding-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* 列表限高滚动：内容多时内部滚动，卡片高度不无限增长 */
.set-card .list-scroll { flex: 1; min-height: 0; max-height: 300px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #d1d5db transparent; }
.set-card .list-scroll::-webkit-scrollbar { width: 6px; }
.set-card .list-scroll::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
/* 左列堆叠容器：预警 + 模板 上下排列 */
.set-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.set-col .set-card { flex: 1; }
.set-col .grow { flex: 1 1 0; min-height: 220px; }
.set-col.compact .set-card { flex: 0 0 auto; }
/* 阶段配置表格紧凑行高（7个阶段全部显示，不滚动） */
.stage-tbl th, .stage-tbl td { padding: 6px 10px !important; }
.stage-tbl td input { padding: 2px 8px; height: 26px; font-size: 13px; }
/* 预警规则行紧凑排列（不撑满卡片） */
.warn-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 9px; margin-bottom: 9px; }
/* 导入模板字段区与提示 */
.tpl-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; margin-bottom: 14px; }
.tpl-tips { font-size: 12px; color: var(--muted); line-height: 1.7; }
.tpl-tips .dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--primary-light); margin-right: 6px; vertical-align: 1px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ch-icon { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform .15s ease-out, background .15s ease-out; }
.ch-icon svg { width: 18px; height: 18px; }
.ch-icon.blue { background: var(--primary-50); color: var(--primary); }
.ch-icon.green { background: var(--ok-50); color: var(--ok); }
.ch-icon.orange { background: var(--warn-50); color: var(--warn); }
.ch-icon.purple { background: #f5f3ff; color: #6d28d9; }
.ch-icon.red { background: var(--danger-50); color: var(--danger); }
.set-card:hover .ch-icon { transform: scale(1.08); }
.ch-title { font-size: 15px; font-weight: 700; color: var(--text); }
.ch-badge { font-size: 11.5px; background: #f3f4f6; color: #6b7280; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.ch-note { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 400; white-space: nowrap; }

/* 预警规则：色块说明行 */
.warn-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 9px; margin-bottom: 10px; }
.warn-row.pill-blue { background: var(--primary-50); border-left: 3px solid var(--primary); }
.warn-row.pill-orange { background: var(--warn-50); border-left: 3px solid var(--warn); }
.warn-row.pill-red { background: var(--danger-50); border-left: 3px solid var(--danger); }
.warn-row .wlabel { font-size: 13px; color: var(--text-2); width: 88px; flex-shrink: 0; }
.warn-row .wtag { font-size: 11px; border-radius: 999px; padding: 1px 9px; font-weight: 600; flex-shrink: 0; }
.wtag.t-blue { background: var(--primary-50); color: var(--primary); }
.wtag.t-orange { background: var(--warn-50); color: #b45309; }
.wtag.t-red { background: var(--danger-50); color: #b91c1c; }
.warn-row input[type=number] { width: 64px; text-align: center; font-weight: 600; padding: 5px 6px; }

/* 阶段序号圆形徽标 */
.stage-idx { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-50); color: var(--primary); font-size: 11.5px; font-weight: 700; align-items: center; justify-content: center; }

/* 模板必填复选框 */
label.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #4b5563; background: #f9fafb; border: 1px solid var(--border); border-radius: 8px; padding: 6px 14px; cursor: pointer; user-select: none; transition: border-color .15s ease-out, background .15s ease-out; }
label.chk:hover { border-color: var(--primary-light); background: var(--primary-50); }
label.chk input { accent-color: var(--primary); }

/* ================================================================
   变更留痕：差异摘要
   ================================================================ */
.diff-sum { font-size: 12.5px; color: #4b5563; line-height: 1.55; display: block; }

/* ================================================================
   响应式适配（不同分辨率 / 窗口大小）
   ================================================================ */
/* KPI 卡片：固定四列，窄屏降为两列/一列 */
@media (max-width: 1400px) {
  .kpi-hero { flex-wrap: wrap; gap: 14px; }
  .kh-stats { gap: 22px; }
  .brief-hero { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
  .content { padding: 14px 14px 32px; }
  .topbar { padding: 0 14px; }
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { overflow-x: auto; }
  .card table.tbl:has(thead) { min-width: 760px; }
  .brief-hero { grid-template-columns: repeat(3, 1fr); }
  .card-head .ch-note { display: none; }
  .warn-row .wlabel { width: 74px; }
}

/* ================================================================
   采购公告板块（看板 + 列表 + 详情）
   ================================================================ */
.ann-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.ann-head h3 { margin: 0; }
.ann-head-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* 来源筛选：下拉菜单改为分段按钮组 */
.ann-src-group { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; padding: 2px; }
.ann-src-btn { border: none; background: transparent; color: var(--muted); font-size: 12px; padding: 4px 12px; border-radius: 6px; cursor: pointer; white-space: nowrap;
  transition: background .15s ease-out, color .15s ease-out; font-weight: 500; }
.ann-src-btn:hover { color: var(--primary); background: var(--primary-50); }
.ann-src-btn.active { background: var(--primary); color: #fff; }
.ann-src-btn:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ring); }
/* 节点推进图统计切换（与来源按钮组一致的 shadcn 风格） */
.flow-opt-group { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; padding: 2px; }
.flow-opt-btn { border: none; background: transparent; color: var(--muted); font-size: 12px; padding: 4px 12px; border-radius: 6px; cursor: pointer; white-space: nowrap; transition: background .15s ease-out, color .15s ease-out; }
.flow-opt-btn:hover { color: var(--primary); background: var(--primary-50); }
.flow-opt-btn.active { background: var(--primary); color: #fff; }
.flow-opt-btn:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ring); outline: none; }
.ann-tabs { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.ann-tab { padding: 5px 14px; border-radius: 8px; background: #f1f5f9; color: var(--text-2); font-size: 12.5px; cursor: pointer; user-select: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; transition: all .15s ease-out; font-weight: 500; }
.ann-tab:hover { background: var(--primary-50); color: var(--primary); }
.ann-tab b { background: #e2e8f0; color: #475569; border-radius: 999px; padding: 0 7px; font-size: 11.5px; font-weight: 600; }
.ann-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.ann-tab.active b { background: rgba(255, 255, 255, .25); color: #fff; }
.ann-lg-tabs { display: flex; gap: 0; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.ann-lg-tab { padding: 10px 22px; font-size: 14.5px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .15s ease-out; font-weight: 500; }
.ann-lg-tab:hover { color: var(--primary); }
.ann-lg-tab.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }
.ann-scroll { max-height: 218px; overflow-y: auto; }
.ann-item { display: grid; grid-template-columns: 42px 88px minmax(0, 2.2fr) 80px minmax(0, 1fr) 70px 52px; gap: 7px; align-items: center; padding: 5px 9px; border-radius: 8px; cursor: pointer; transition: background .15s ease-out; white-space: nowrap; }
.ann-item:hover { background: var(--primary-50); }
.ann-date { color: var(--muted); font-size: 12px; white-space: nowrap; }
/* 公告金额：金额+未公布（整体一个 grid 单元格，不换行） */
.ann-amt-cell { display: inline-flex; align-items: center; gap: 3px; min-width: 0; white-space: nowrap; justify-content: flex-end; }
.ann-amt { font-variant-numeric: tabular-nums; font-weight: 600; color: #b91c1c; font-size: 12.5px; white-space: nowrap; }
.ann-amt.none { color: var(--muted-2); font-weight: 400; }
.ann-cat { color: var(--primary); background: var(--primary-50); border-radius: 6px; padding: 1px 6px; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; justify-content: center; }
.ann-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--text); }
.ann-dist { color: var(--muted-2); font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ann-unit { color: var(--text-2); font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ann-empty { padding: 20px; text-align: center; color: var(--muted-2); font-size: 13px; }
/* 运营商中标标签（企业简洁风：柔和浅底 + 深色文字） */
.telco-tag { display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; padding: 2px 9px; font-size: 11px; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.telco-tag.t-移动 { color: #1d4ed8; background: #eff6ff; }
.telco-tag.t-电信 { color: #047857; background: #ecfdf5; }
.telco-tag.t-联通 { color: #b45309; background: #fffbeb; }
.ann-origin { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; font-size: 11.5px; color: #fff; background: var(--primary); border-radius: 6px; padding: 2px 10px; cursor: pointer; transition: background .15s ease-out; text-decoration: none; min-width: 0; }
.ann-origin:hover { background: var(--primary-700); }
/* 消息动态板块 */
.msg-scroll { max-height: 120px; overflow-y: auto; }
.msg-item { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 8px; font-size: 13px; color: var(--text); transition: background .15s ease-out; }
.msg-item:hover { background: var(--primary-50); }
.msg-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.msg-dot.auto { background: #16a34a; }
.msg-link { color: var(--primary); text-decoration: none; word-break: break-all; }
.msg-link:hover { text-decoration: underline; }
.msg-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-time { flex: none; color: var(--muted-2); font-size: 11.5px; white-space: nowrap; }
.link-search { width: 100%; box-sizing: border-box; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 8px; margin-bottom: 10px; font-size: 13px; }
.link-search:focus { border-color: var(--primary-light); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ring); }
.link-cat { padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: 6px; font-size: 13px; background: #fff; color: var(--text); margin-bottom: 10px; }
.link-cat:focus { border-color: var(--primary-light); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ring); }
.ann-filter { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.ann-filter input[type="text"] { flex: 1; min-width: 220px; }
.ann-filter input[type="date"] { flex: none; width: 132px; min-width: 0; padding: 5px 8px; border-radius: 7px; border: 1px solid var(--border-strong); font-size: 12.5px; color: var(--text-2); background: #fff; }
.ann-filter input[type="date"]:focus { border-color: var(--primary-light); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ring); }
.ann-date-sep { color: var(--muted-2); font-size: 12px; }
.ann-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 20px; background: #f9fafb; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.ann-meta label { display: block; font-size: 12px; color: var(--muted-2); margin-bottom: 3px; }
.ann-meta span { font-size: 14px; color: var(--text); }
.ann-link-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; cursor: pointer; border-bottom: 1px solid #f3f4f6; transition: background .15s ease-out; }
.ann-link-row:hover { background: var(--primary-50); }
.ann-link-row.done { opacity: .5; cursor: default; }
.pagebar { display: flex; align-items: center; justify-content: center; margin-top: 14px; color: var(--muted); font-size: 13px; flex-wrap: wrap; gap: 8px; }
/* ---------- 系统设置页签 ---------- */
.set-tabs { display: flex; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 10px; flex-wrap: wrap; }
.set-tab { padding: 7px 16px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: #475569; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s ease-out; }
.set-tab:hover { border-color: var(--primary); color: var(--primary); }
.set-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

@media (max-width: 900px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-head { flex-wrap: wrap; gap: 10px; }
  .dh-right { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  .list-stats { gap: 18px; padding: 12px 16px; }
  .ls-stage { width: 100%; text-align: left; min-width: 0; }
  .brief-hero { grid-template-columns: repeat(2, 1fr); }
  .kpi-hero { padding: 16px 20px; }
  .kh-num { font-size: 28px; }
}
@media (max-width: 560px) {
  .kpi-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .content { padding: 12px 10px 28px; }
  .topbar .title { font-size: 14px; }
  .dash-head { padding: 12px 14px; }
  .toolbar .btn, .toolbar input, .toolbar select { width: 100% !important; }
  .brief-hero { grid-template-columns: 1fr; }
  .warn-row { flex-wrap: wrap; }
  .warn-row .wlabel { width: 100%; }
  .card-head { flex-wrap: wrap; }
  .ann-head-right { width: 100%; justify-content: flex-start; }
}

/* ---------- 领导汇报打印（A3 横向） ---------- */
@media print {
  @page { size: A3 landscape; margin: 10mm; }
  .brief-hero { grid-template-columns: repeat(7, 1fr); }
  .bh-v { font-size: 22px !important; }
  .bf-tbl th, .bf-tbl td { font-size: 12px !important; padding: 6px 6px !important; }
}

/* ---------- 无障碍：尊重系统"减少动态效果"设置 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ================================================================
   自定义控件（shadcn/ui 风格）—— select / date 触发器 + 浮层
   ================================================================ */
.xc-wrap { display: inline-block; position: relative; vertical-align: middle; }
.xc-wrap > .xc-native {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; border: 0; margin: 0; padding: 0; pointer-events: none;
}
.xc-trigger {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; min-height: 36px; padding: 4px 11px;
  background: #fff; border: 1px solid var(--border-strong); border-radius: 8px;
  font-size: 13px; font-family: inherit; color: var(--text);
  cursor: pointer; box-shadow: var(--shadow-sm); text-align: left;
  transition: border-color .15s ease-out, box-shadow .15s ease-out, background .15s ease-out;
}
.xc-trigger:hover { border-color: var(--primary-light); background: #fff; }
.xc-trigger:focus-visible, .xc-trigger.open {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ring);
}
.xc-trigger .xc-value {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text); font-weight: 500;
}
.xc-trigger .xc-value.ph { color: var(--muted-2); font-weight: 400; }
.xc-trigger .xc-arrow {
  width: 7px; height: 7px; flex-shrink: 0;
  border-right: 1.5px solid var(--muted-2); border-bottom: 1.5px solid var(--muted-2);
  transform: rotate(45deg); margin-top: -4px;
  transition: transform .15s ease-out, border-color .15s ease-out;
}
.xc-trigger.open .xc-arrow { transform: rotate(-135deg); margin-top: 3px; border-color: var(--primary); }
.xc-trigger .xc-cal-icon {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted-2); transition: color .15s ease-out;
}
.xc-trigger:hover .xc-cal-icon, .xc-trigger.open .xc-cal-icon { color: var(--primary); }
.xc-trigger[disabled], .xc-trigger:disabled { opacity: .55; cursor: not-allowed; background: #f9fafb; }

/* 表格内紧凑模式（编辑表格等） */
.xc-wrap.edit .xc-trigger {
  min-height: 28px; padding: 2px 8px; font-size: 12.5px; border-radius: 6px; box-shadow: none;
}
.xc-wrap.edit .xc-trigger .xc-arrow { margin-top: -3px; }
.xc-wrap.edit .xc-trigger.open .xc-arrow { margin-top: 2px; }

/* 浮层（Select 选项列表 / Calendar） */
.xc-popup {
  position: fixed; z-index: 1200; display: none;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
  padding: 5px; max-height: 280px; overflow-y: auto;
  opacity: 0; transform: translateY(-4px) scale(.99);
  transition: opacity .12s ease-out, transform .12s ease-out;
  transform-origin: top center;
}
.xc-popup.show { opacity: 1; transform: translateY(0) scale(1); }
.xc-select-popup { overflow-y: auto; }
.xc-option {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 7px;
  font-size: 13px; color: var(--text-2); cursor: pointer;
  transition: background .12s ease-out, color .12s ease-out;
}
.xc-option:hover { background: var(--primary-50); color: var(--primary); }
.xc-option.sel { background: var(--primary-50); color: var(--primary); font-weight: 600; }
.xc-option.dim { color: var(--muted-2); cursor: not-allowed; opacity: .55; }
.xc-option.dim:hover { background: transparent; color: var(--muted-2); }
.xc-option .xc-opt-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xc-option .xc-check {
  margin-left: auto; width: 15px; height: 15px; flex-shrink: 0; border-radius: 4px;
  border: 1.5px solid var(--border-strong); background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent; transition: all .12s ease-out;
}
.xc-option.sel .xc-check { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Calendar 浮层 */
.xc-cal { width: 260px; max-height: none; padding: 10px; }
.xc-cal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 8px; }
.xc-cal-title { font-size: 13px; font-weight: 600; color: var(--text); }
.xc-cal-nav {
  width: 26px; height: 26px; border-radius: 6px; border: none; background: transparent;
  color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .12s ease-out, color .12s ease-out;
}
.xc-cal-nav:hover { background: var(--primary-50); color: var(--primary); }
.xc-cal-nav:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ring); }
.xc-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.xc-cal-dow { font-size: 11px; color: var(--muted-2); text-align: center; padding: 4px 0 6px; font-weight: 600; }
.xc-cal-day {
  height: 30px; border: none; background: transparent; border-radius: 7px;
  font-size: 12.5px; color: var(--text-2); cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .12s ease-out, color .12s ease-out;
}
.xc-cal-day:hover { background: var(--primary-50); color: var(--primary); }
.xc-cal-day.other { color: var(--muted-2); }
.xc-cal-day.today { box-shadow: inset 0 0 0 1px var(--primary); color: var(--primary); font-weight: 600; }
.xc-cal-day.sel { background: var(--primary); color: #fff; font-weight: 600; box-shadow: none; }
.xc-cal-day.sel:hover { background: var(--primary-dark); color: #fff; }
.xc-cal-day.dim { color: var(--muted-2); opacity: .45; cursor: not-allowed; }
.xc-cal-day.dim:hover { background: transparent; color: var(--muted-2); }
.xc-cal-day:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ring); }
.xc-cal-foot { padding: 8px 2px 2px; text-align: center; border-top: 1px solid var(--border); margin-top: 6px; display: flex; justify-content: center; gap: 18px; }
.xc-cal-clear-btn {
  font-size: 12px; color: var(--muted); background: none; border: none; cursor: pointer;
  font-weight: 500; padding: 4px 10px; border-radius: 6px; font-family: inherit;
  transition: background .12s ease-out, color .12s ease-out;
}
.xc-cal-clear-btn:hover { background: #fef2f2; color: #dc2626; }
.xc-cal-clear-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ring); }
.xc-cal-today-btn {
  font-size: 12px; color: var(--primary); background: none; border: none; cursor: pointer;
  font-weight: 600; padding: 4px 10px; border-radius: 6px; font-family: inherit;
  transition: background .12s ease-out;
}
.xc-cal-today-btn:hover { background: var(--primary-50); }
.xc-cal-today-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ring); }

/* ================= 2.0 新增组件 ================= */
/* 四个一批卡片 */
.kc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kc-badge { font-size: 11px; color: #64748b; background: #f1f5f9; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.kc-sub { font-size: 12px; color: #6b7280; margin-top: 2px; }
.kpi-card.c-gray { border-top: 3px solid #94a3b8; }
.kpi-card.c-blue { border-top: 3px solid #2563eb; }
.kpi-card.c-orange { border-top: 3px solid #f59e0b; }
.kpi-card.c-green { border-top: 3px solid #16a34a; }
.kpi-card.c-red { border-top: 3px solid #dc2626; }

/* 九阶段紧凑步骤条 */
.s9 { display: grid; grid-template-columns: repeat(9, minmax(88px, 1fr)); overflow-x: auto; padding: 8px 0 2px; }
.s9-item { position: relative; text-align: center; padding: 0 2px; cursor: pointer; min-width: 88px; }
.s9-item::before { content: ''; position: absolute; top: 17px; left: 0; right: 0; height: 2px; background: #e5e7eb; z-index: 0; }
.s9-item:first-child::before { left: 50%; }
.s9-item:last-child::before { right: 50%; }
.s9-dot {
  position: relative; z-index: 1; width: 34px; height: 34px; margin: 0 auto 6px;
  border-radius: 50%; background: #fff; border: 2px solid #cbd5e1; color: #64748b;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
  transition: transform .15s ease-out, box-shadow .15s ease-out;
}
.s9-item.done .s9-dot { background: #16a34a; border-color: #16a34a; color: #fff; }
.s9-item.done.skipped .s9-dot { background: #f59e0b; border-color: #f59e0b; }
.s9-item.cur .s9-dot { background: #2563eb; border-color: #2563eb; color: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .16); }
.s9-item.next .s9-dot { background: #eff6ff; border-color: #2563eb; color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .10); }
.s9-item:hover .s9-dot { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(15, 23, 42, .12); }
.s9-name { font-size: 12px; font-weight: 600; color: #334155; white-space: nowrap; }
.s9-date { font-size: 11px; color: #94a3b8; margin-top: 1px; }
.s9-item.done .s9-name { color: #15803d; }
.s9-item.done.skipped .s9-name { color: #b45309; }
.s9-item.cur .s9-name { color: #1d4ed8; }
.s9-item.next .s9-name { color: #1d4ed8; }
@media (max-width: 1100px) {
  .s9 { grid-template-columns: repeat(9, minmax(0, 1fr)); overflow-x: hidden; }
  .s9-item { min-width: 0; }
  .s9-name { font-size: 11px; }
  .s9-date { font-size: 9.5px; letter-spacing: -.2px; }
}

/* 拜访明细行 */
.visit-row td { vertical-align: top; }

/* ================= 2.0 看板：四批流程带 ================= */
.flow4 {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px 18px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.f4-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: nowrap; }
.f4-headl { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.f4-title { font-size: 24px; font-weight: 800; color: #0f172a; letter-spacing: .8px; line-height: 1.25; }
.f4-title::before { content: ''; display: inline-block; width: 4px; height: 22px; border-radius: 3px; background: linear-gradient(180deg, #2563eb 0%, #60a5fa 100%); vertical-align: -3px; margin-right: 9px; }
.f4-sum { font-size: 14.5px; color: #475569; }
.f4-sum b { color: #1d4ed8; font-variant-numeric: tabular-nums; font-size: 15px; }
.f4-all { font-size: 12.5px; color: var(--primary); text-decoration: none; white-space: nowrap; flex-shrink: 0; margin-top: 5px; }
.daily-block { margin-bottom: 14px; }
.daily-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; flex-wrap: nowrap; }
.daily-headl { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.daily-title { font-size: 24px; font-weight: 800; color: #0f172a; letter-spacing: .8px; line-height: 1.25; }
.daily-title::before { content: ''; display: inline-block; width: 4px; height: 22px; border-radius: 3px; background: linear-gradient(180deg, #dc2626 0%, #f87171 100%); vertical-align: -3px; margin-right: 9px; }
.daily-sum { font-size: 14px; color: #475569; }
.daily-sum b { color: #dc2626; font-variant-numeric: tabular-nums; font-size: 15px; }
.daily-all { font-size: 12.5px; color: var(--primary); text-decoration: none; white-space: nowrap; }
.f4-body { display: flex; align-items: stretch; }
.f4-seg {
  flex: 1 1 0; min-width: 0; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fbfcfe 0%, #f6f8fc 100%);
  border: 1px solid #e6ebf3; border-top-width: 3px; border-radius: 10px;
  padding: 12px 14px 13px; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.f4-seg:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(15, 23, 42, .08); border-color: #bfdbfe; }
.f4-seg.s0 { border-top-color: #94a3b8; }
.f4-seg.s1 { border-top-color: #3b82f6; }
.f4-seg.s2 { border-top-color: #f59e0b; }
.f4-seg.s3 { border-top-color: #16a34a; background: linear-gradient(180deg, #f7fdf9 0%, #f0faf3 100%); }
.f4-sname { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #0f172a; }
.f4-week { font-size: 11px; font-weight: 400; color: #16a34a; background: #eafaf0; border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.f4-range { font-size: 11px; color: #94a3b8; margin-top: 3px; line-height: 1.4; min-height: 16px; }
.f4-metrics { margin-top: 8px; }
.f4-num { font-size: 28px; font-weight: 800; line-height: 1; color: #334155; font-variant-numeric: tabular-nums; }
.f4-seg.s1 .f4-num { color: #2563eb; }
.f4-seg.s2 .f4-num { color: #d97706; }
.f4-seg.s3 .f4-num { color: #15803d; }
.f4-num i { font-size: 12px; font-weight: 400; font-style: normal; color: var(--muted); margin-left: 5px; }
.f4-amt { margin-top: 6px; font-size: 12.5px; color: #475569; }
.f4-amt b { color: #0f172a; font-size: 14px; font-variant-numeric: tabular-nums; }
.f4-daily { margin-top: 9px; padding-top: 8px; border-top: 1px dashed #cdebd8; font-size: 12.5px; color: #166534; }
.f4-daily b { font-size: 14px; font-variant-numeric: tabular-nums; }
.f4-arrow { width: 24px; display: flex; align-items: center; justify-content: center; color: #cbd5e1; font-size: 15px; flex: 0 0 24px; }
@media (max-width: 1100px) {
  .f4-body { flex-wrap: wrap; }
  .f4-arrow { display: none; }
  .f4-seg { flex: 1 1 calc(50% - 6px); margin: 0 3px 2px; }
}
/* ================= 2.0 看板：四批卡片 ================= */
.batch4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.batch-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px 12px; box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease; overflow: hidden;
}
.batch-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.batch-card:active { transform: translateY(0) scale(.995); }
.bc0 { border-top: 3px solid #94a3b8; }
.bc1 { border-top: 3px solid #3b82f6; }
.bc2 { border-top: 3px solid #f59e0b; }
.bc3 { border-top: 3px solid #16a34a; }
.bc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bc-name { font-size: 14px; font-weight: 600; color: var(--text); }
.bc-week { font-size: 11px; color: var(--muted); white-space: nowrap; }
.bc-range { font-size: 11px; color: #94a3b8; margin-top: 4px; line-height: 1.4; min-height: 16px; }
.bc-main { margin-top: 6px; display: flex; align-items: baseline; gap: 5px; }
.bc-num { font-size: 30px; font-weight: 700; line-height: 1.1; color: #1e293b; font-variant-numeric: tabular-nums; }
.bc1 .bc-num { color: #2563eb; }
.bc2 .bc-num { color: #d97706; }
.bc3 .bc-num { color: #15803d; }
.bc-unit { font-size: 12px; color: var(--muted); }
.bc-amt { font-size: 12px; color: var(--muted); margin-top: 3px; }
.b9 { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; height: 30px; align-items: end; margin-top: 10px; }
.b9-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 2px; }
.b9-bar { width: 100%; background: rgba(37, 99, 235, .28); border-radius: 3px 3px 0 0; min-height: 3px; }
.bc0 .b9-bar { background: rgba(148, 163, 184, .55); }
.bc1 .b9-bar { background: rgba(59, 130, 246, .42); }
.bc2 .b9-bar { background: rgba(245, 158, 11, .45); }
.bc3 .b9-bar { background: rgba(22, 163, 74, .40); }
.b9-col span { font-size: 9px; color: #cbd5e1; line-height: 1; }
.bc-daily { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); font-size: 12px; color: var(--muted); }
.bc-daily b { color: #15803d; font-size: 13px; }

/* 区块标题条 */
.section-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 2px 0 10px; flex-wrap: wrap; }
.sb-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.sb-dot { width: 3px; height: 15px; border-radius: 2px; background: var(--primary); }
.sb-note { font-size: 12px; color: var(--muted); }
.sb-note b { color: var(--danger); }

/* 标讯 / 运营商中标 双栏 */
.feed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 9px; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.feed-item:last-child { border-bottom: 0; }
.feed-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-top: 7px; flex: 0 0 6px; }
.feed-txt { font-size: 13px; color: var(--text); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.feed-time { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.feed-empty { font-size: 12px; color: #94a3b8; padding: 22px 0; text-align: center; }

.ann-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--border); cursor: pointer; }
.ann-row:last-child { border-bottom: 0; }
.ann-row:hover .ann-title { color: var(--primary); }
.ann-cat { flex: 0 0 auto; font-size: 11px; line-height: 18px; height: 18px; padding: 0 6px; border-radius: 4px; background: var(--primary-50); color: var(--primary-dark); }
.ann-main { min-width: 0; flex: 1; }
.ann-title { font-size: 13px; color: var(--text); font-weight: 500; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; transition: color .15s; }
.ann-meta { font-size: 11px; color: #94a3b8; margin-top: 3px; background: none; border: 0; border-radius: 0; padding: 0; display: block; grid-template-columns: none; }

.chart-card { padding-bottom: 8px; }
.chart-card h3 { margin-bottom: 2px; }

/* ================= 项目详情：阶段推进独立区 ================= */
.stage-card { margin-bottom: 16px; padding: 18px 22px 14px; }
.stage-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.stage-head h3 { margin: 0 0 3px; }
.stage-sub { font-size: 12px; color: #94a3b8; }
.stage-kpis { display: flex; gap: 10px; flex-wrap: wrap; }
.sk { background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; padding: 7px 14px; min-width: 96px; }
.sk span { display: block; font-size: 11px; color: #94a3b8; }
.sk b { font-size: 16px; font-weight: 600; color: #111827; line-height: 1.5; }
.sk em { font-style: normal; font-size: 11px; color: #94a3b8; margin-left: 1px; }
.sk .sk-next { display: block; margin-left: 0; margin-top: 1px; }
.sk .sk-batch { font-size: 13px; }
.stage-bar { height: 4px; background: #eef2f7; border-radius: 3px; margin: 14px 0 6px; overflow: hidden; }
.stage-bar-fill { height: 100%; background: #2563eb; border-radius: 3px; transition: width .25s ease; }
.stage-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; font-size: 12px; color: #94a3b8; flex-wrap: wrap; }
.stage-legend { display: flex; align-items: center; gap: 5px; }
.stage-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 8px; }
.stage-legend .lg-done { background: #16a34a; }
.stage-legend .lg-skip { background: #f59e0b; }
.stage-legend .lg-cur { background: #2563eb; }
.stage-legend .lg-pending { background: #e5e7eb; }

/* 详情金额块 */
.amt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.amt-cell { background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; }
.amt-cell span { font-size: 11px; color: #94a3b8; }
.amt-cell b { display: block; font-size: 19px; font-weight: 600; color: #1d4ed8; line-height: 1.35; font-variant-numeric: tabular-nums; }
.amt-cell em { font-style: normal; font-size: 11px; color: #94a3b8; }
.src-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: 10px; line-height: 1.6; vertical-align: 1px; font-style: normal; }
.src-tag.auto { color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; }
.src-tag.manual { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; }
.src-note { margin-top: 5px; font-size: 11px; line-height: 1.5; }
.src-note.ok { color: #15803d; }
.src-note.warn { color: #b45309; }
.tbl td.k { color: var(--muted); width: 96px; }

/* 看板四批卡片窄屏两列 */
@media (max-width: 1100px) {
  .batch4 { grid-template-columns: repeat(2, 1fr); }
  .feed-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .batch4 { grid-template-columns: 1fr; }
  .stage-kpis { width: 100%; }
  .amt-grid { grid-template-columns: 1fr; }
}

/* ================= 四个一批页 ================= */
.batch-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.tb-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; }
.view-switch { margin-left: auto; display: flex; gap: 6px; }
.batch-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: stretch; min-height: 0; }
.bb-col { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.bb-head { display: block; padding: 12px 14px; background: #fff; border-bottom: 1px solid var(--border); }
.bb-h-row { display: flex; align-items: baseline; gap: 6px; }
.bb-h-name { font-size: 14px; font-weight: 600; color: var(--text); }
.bb-h-count { font-size: 19px; color: var(--primary); font-variant-numeric: tabular-nums; margin-left: 2px; }
.bb-h-unit { font-size: 12px; color: var(--muted); }
.bb-h-sub { margin-top: 4px; font-size: 11.5px; color: #64748b; }
.bb-h-amt { margin-top: 6px; font-size: 12px; color: #475569; }
.bb-h-amt b { color: #1e293b; font-size: 13px; }
.bb-h-daily { margin-top: 4px; font-size: 12px; color: #15803d; border-top: 1px dashed #d1fae5; padding-top: 4px; }
.bb-h-daily b { color: #15803d; font-size: 13px; }
.bb-head.bc0 { border-top: 3px solid #94a3b8; }
.bb-head.bc1 { border-top: 3px solid #3b82f6; }
.bb-head.bc2 { border-top: 3px solid #f59e0b; }
.bb-head.bc3 { border-top: 3px solid #16a34a; }
.bb-body { display: flex; flex-direction: column; gap: 8px; padding: 10px; min-height: 180px; max-height: calc(100vh - 352px); overflow-y: auto; flex: 1 1 auto; scrollbar-width: thin; }
.bb-item { background: #fff; border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; cursor: pointer; transition: .15s ease; }
.bb-item:hover { border-color: #bfdbfe; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.bb-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.45; }
.bb-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 7px; font-size: 11.5px; color: #64748b; }
.bb-amt { color: #1d4ed8; font-weight: 600; }
.bb-stage { background: #f1f5f9; border-radius: 4px; padding: 1px 6px; color: #475569; }
.bb-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; font-size: 11.5px; color: #94a3b8; }
.bb-foot .bb-owner { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-foot .btn { white-space: nowrap; flex-shrink: 0; }
.bb-empty { text-align: center; color: #94a3b8; font-size: 12px; padding: 24px 0; }
@media (max-width: 1180px) { .batch-board { grid-template-columns: repeat(2, 1fr); min-height: 0; } }
@media (max-width: 680px) { .batch-board { grid-template-columns: 1fr; } }
/* 五指标汇报头（日管控项目汇报） */
.brief-hero.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .brief-hero.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .brief-hero.five { grid-template-columns: 1fr; } }

/* 项目明细行操作菜单 */
.row-menu { position: fixed; z-index: 900; min-width: 132px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 26px rgba(15,23,42,.16); padding: 6px; }
.row-menu a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 13px; color: var(--text); text-decoration: none; }
.row-menu a:hover { background: var(--primary-50); color: var(--primary-dark); }
.row-menu a.danger { color: var(--danger); }
.row-menu a.danger:hover { background: #fef2f2; }

/* 四个一批空批提示：说明阶段自动联动关系 */
.f4-tip { margin-top: auto; padding: 8px 10px; border: 1px dashed var(--border); border-radius: 8px; font-size: 12px; color: var(--muted); background: #fbfcfe; }

/* ---------- 汇报与通报：批次选择器 / 汇报表 ---------- */
.rep-batchbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.rep-batchlab { font-size: 12.5px; color: var(--muted); }
.rep-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--border); background: #fff; color: #374151; border-radius: 999px; font-size: 12.5px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.rep-chip:hover { border-color: var(--primary); color: var(--primary); }
.rep-chip.on { background: var(--primary-50); border-color: var(--primary); color: #1d4ed8; font-weight: 700; }
.rep-chip b { font-size: 11.5px; color: #64748b; font-weight: 600; }
.rep-chip.on b { color: #1d4ed8; }
.rep-chip.ghost { color: #64748b; }
.rep-batchhint { font-size: 11.5px; color: var(--muted-2); margin-left: auto; }
.rep-bf th, .rep-bf td { padding: 7px 8px; vertical-align: middle; }
.rep-bf td.bf-name, .rep-bf td.bf-prog { text-align: left; }
.rep-bf .num { text-align: right; font-variant-numeric: tabular-nums; }
.rep-daily td.bf-prog { font-size: 12px; color: #4b5563; line-height: 1.5; }
.rep-toolbar-right { margin-left: auto; display: inline-flex; gap: 8px; }
.rep-bf td.ctr, .rep-bf th { text-align: center; }
.rep-bf td.ctr { font-variant-numeric: tabular-nums; }