/* 业务拓展项目管理系统 DEMO — 浅色主题，表格样式还原源 Excel */
:root {
  --primary: #2f5597;
  --primary-dark: #1f3864;
  --navy: #44546a;
  --ink: #262626;
  --muted: #6b7280;
  --line: #d9e0ea;
  --line-soft: #e8edf4;
  --bg: #f4f6f9;
  --panel: #ffffff;
  --blue-soft: #ddebf7;
  --ok: #2e7d32;
  --warn: #b8860b;
  --err: #c0392b;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 13px/1.5 "微软雅黑", "Microsoft YaHei", -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink); background: var(--bg); overflow: hidden;
}
button, input, select, textarea { font-family: inherit; font-size: 13px; color: var(--ink); }
a { color: var(--primary); text-decoration: none; }

/* ---------- 框架 ---------- */
.app { display: flex; height: 100vh; }
.sidebar {
  width: 210px; flex: 0 0 210px; background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border-right: 1px solid var(--line); display: flex; flex-direction: column;
  box-shadow: 2px 0 12px rgba(31, 56, 100, .04);
}
.brand { padding: 18px 18px 15px; border-bottom: 1px solid var(--line-soft); }
.brand h1 { font-size: 15px; margin: 0; color: var(--primary-dark); letter-spacing: .3px; font-weight: 700; }
.brand p { margin: 5px 0 0; font-size: 11px; color: var(--muted); }
.brand .logo {
  display: inline-flex; width: 32px; height: 32px; border-radius: 9px; align-items: center;
  justify-content: center; background: linear-gradient(135deg, #3b6cc0 0%, #1f3864 100%); color: #fff;
  font-weight: 700; font-size: 15px; margin-bottom: 9px; box-shadow: 0 3px 8px rgba(47, 85, 151, .22);
}
.nav { padding: 13px 10px; flex: 1; }
/* 左侧功能栏：图标方块化 + 选中态竖条 + 分组引导线，不再显示小字描述 */
.nav-item {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; margin-bottom: 5px; border-radius: 9px; cursor: pointer;
  color: #4a5670; font-size: 13.5px; user-select: none;
  transition: background .16s, color .16s, box-shadow .16s;
}
.nav-item .ico {
  width: 27px; height: 27px; flex: 0 0 27px; line-height: 27px; text-align: center;
  font-size: 12px; font-weight: 700; border-radius: 8px; background: #eaf1fb; color: #2f5597;
}
.nav-item .nm { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item:hover { background: #eef4fd; color: var(--primary-dark); }
.nav-item:hover .ico { background: #dce9fb; }
.nav-item.active {
  background: linear-gradient(90deg, #dcebfb 0%, #eaf3ff 100%);
  color: var(--primary-dark); font-weight: 700; box-shadow: inset 3px 0 0 var(--primary);
}
.nav-item.active .ico { background: var(--primary); color: #fff; }

/* 可展开主项：右侧折叠箭头 */
.nav-item.has-sub .car {
  margin-left: auto; width: 16px; text-align: center; font-size: 11px; color: #8290a8;
  transition: transform .15s;
}
.nav-item.has-sub.active .car { color: var(--primary-dark); }
.nav-subs { margin: 0 0 9px 23px; padding: 2px 0 2px 15px; border-left: 1px solid #dce6f5; }
.nav-sub {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; margin: 2px 4px 2px 0;
  border-radius: 7px; cursor: pointer; color: #5d6880; font-size: 12.5px; user-select: none;
  border-left: 2px solid transparent; transition: background .12s, color .12s;
}
.nav-sub:hover { background: #eef4fd; color: var(--primary-dark); }
.nav-sub.on {
  background: #e3eefc; color: var(--primary-dark); font-weight: 700;
  border-left-color: var(--primary);
}
.nav-sub .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .45; flex: 0 0 auto; }
.nav-sub.on .dot { opacity: 1; }
.nav-sub .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot { padding: 12px 14px; border-top: 1px solid var(--line-soft); font-size: 11px; color: var(--muted); }
.side-foot .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3aa76d; margin-right: 5px; }
.side-foot button { margin-top: 8px; width: 100%; }

.main-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 54px; flex: 0 0 54px; background: var(--panel); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 22px; gap: 12px;
}
.topbar h2 { font-size: 15px; margin: 0; font-weight: 700; }
.topbar .crumb { color: var(--muted); font-size: 12px; }
.topbar .spacer { flex: 1; }
.topbar .today { font-size: 12px; color: var(--muted); }
.main { flex: 1; overflow: auto; padding: 18px 22px 40px; }
.page { max-width: 100%; }

/* ---------- 通用组件 ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 16px 18px; margin-bottom: 16px; }
.card-title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 14px; font-weight: 700; color: var(--primary-dark); }
.card-title .bar { width: 3px; height: 15px; border-radius: 2px; background: var(--primary); }
.card-title .sub { font-weight: 400; font-size: 11px; color: var(--muted); margin-left: 4px; }
.card-title .right { margin-left: auto; font-weight: 400; font-size: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border: 1px solid var(--line);
  background: #fff; border-radius: 6px; cursor: pointer; white-space: nowrap; color: #3c4658;
}
.btn:hover { border-color: var(--primary); color: var(--primary); background: #f8fbff; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-danger { color: var(--err); }
.btn-danger:hover { border-color: var(--err); color: var(--err); background: #fff7f6; }
.btn-sm { padding: 3px 8px; font-size: 11px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label { font-size: 11px; color: var(--muted); }
.field input, .field select, .field textarea, .inp {
  height: 31px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; outline: none;
}
.field textarea { height: auto; padding: 7px 9px; resize: vertical; min-height: 62px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .inp:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(47,85,151,.12); }
.field.w-sm { width: 120px; } .field.w-md { width: 165px; } .field.w-lg { width: 220px; }
.toolbar .grow { flex: 1; }

.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.grid-form .full { grid-column: 1 / -1; }

/* ---------- 表格 ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th { background: #f3f6fb; color: #44506a; font-weight: 700; text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tbody tr:hover { background: #f8fbff; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .ctr { text-align: center; }
.tbl .link { color: var(--primary); cursor: pointer; font-weight: 600; }
.tbl .link:hover { text-decoration: underline; }
.tbl .muted { color: var(--muted); }
.empty-row td { text-align: center; color: var(--muted); padding: 26px; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; line-height: 1.5; background: #eef2f8; color: #4b5870; white-space: nowrap; }
.badge.b-blue { background: #e5efff; color: #2f5597; }
.badge.b-green { background: #e5f4e8; color: #2e7d32; }
.badge.b-amber { background: #fff3d9; color: #a9740a; }
.badge.b-red { background: #fdeaea; color: #c0392b; }
.badge.b-gray { background: #f0f2f5; color: #6b7280; }

.progress { height: 7px; border-radius: 6px; background: #e9eef6; overflow: hidden; min-width: 90px; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, #4472c4, #2f5597); border-radius: 6px; }
.progress.full > i { background: linear-gradient(90deg, #5cb87a, #2e7d32); }

/* ---------- 首页 KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 14px 16px; position: relative; overflow: hidden; }
.kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--primary); }
.kpi.k-ok::before { background: #2e7d32; } .kpi.k-warn::before { background: #d9a441; }
.kpi.k-err::before { background: #c0392b; } .kpi.k-info::before { background: #4472c4; }
.kpi .label { font-size: 11px; color: var(--muted); }
.kpi .value { font-size: 25px; font-weight: 700; color: var(--primary-dark); line-height: 1.35; font-variant-numeric: tabular-nums; }
.kpi .value small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.kpi .foot { font-size: 11px; color: var(--muted); }

.blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; }
.block { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.block-head { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: 8px; }
.block-head b { font-size: 13px; color: var(--primary-dark); }
.block-head .cnt { font-size: 11px; color: var(--muted); }
.block-head .right { margin-left: auto; }
.block-body { max-height: 265px; overflow: auto; }
.block-body .tbl td { padding: 7px 12px; }

/* ==================== 首页类目浅色区分（每个类目一种浅色，浅色为主） ==================== */
/* 卡片类目：浅色底 + 同色系左边条 + 标题色条 */
.card.cat-blue   { background: #e6f0ff; border-color: #cfdefb; border-left: 3px solid #2f5597; }
.card.cat-violet { background: #f0eafc; border-color: #ddd2f5; border-left: 3px solid #6a58bb; }
.card.cat-cyan   { background: #e2f5fa; border-color: #c2e6f0; border-left: 3px solid #1f7f92; }
.card.cat-amber  { background: #fff3d8; border-color: #f5dca8; border-left: 3px solid #c08a1e; }
.card.cat-green  { background: #e5f7ec; border-color: #c6e8d4; border-left: 3px solid #2e8b57; }
.card.cat-rose   { background: #fde8ef; border-color: #f4cddb; border-left: 3px solid #b04a6e; }
.card.cat-indigo { background: #e8ebfc; border-color: #cfd5f6; border-left: 3px solid #4d5fbf; }
.card.cat-slate  { background: #eef2f8; border-color: #dbe3ee; border-left: 3px solid #5b7391; }

/* KPI 行：整行统一浅灰蓝，指标图标仍各自配色 */
.kpis.cat-slate .kpi { background: #e7edf6; border-color: #d2dceb; }

.card.cat-blue   .card-title .bar { background: #2f5597; }
.card.cat-violet .card-title .bar { background: #6a58bb; }
.card.cat-cyan   .card-title .bar { background: #1f7f92; }
.card.cat-amber  .card-title .bar { background: #c08a1e; }
.card.cat-green  .card-title .bar { background: #2e8b57; }
.card.cat-rose   .card-title .bar { background: #b04a6e; }
.card.cat-indigo .card-title .bar { background: #4d5fbf; }

/* 五大业务板块内的每个小卡：更浅一档的同色系 + 顶部色条 */
.block.cat-blue   { background: #eef4ff; border-color: #d6e4fc; border-top: 3px solid #2f5597; }
.block.cat-green  { background: #ecf8f0; border-color: #cfeada; border-top: 3px solid #2e8b57; }
.block.cat-amber  { background: #fff7e6; border-color: #f6e5c0; border-top: 3px solid #c08a1e; }
.block.cat-indigo { background: #eff1fd; border-color: #d9ddf9; border-top: 3px solid #4d5fbf; }
.block.cat-violet { background: #f4f0fd; border-color: #e3dcf9; border-top: 3px solid #6a58bb; }
.block.cat-rose   { background: #fcf0f4; border-color: #f6dbe5; border-top: 3px solid #b04a6e; }
.block.cat-blue .block-head, .block.cat-green .block-head, .block.cat-amber .block-head,
.block.cat-indigo .block-head, .block.cat-violet .block-head, .block.cat-rose .block-head { border-bottom-color: rgba(31, 56, 100, .10); }
.mini-row { padding: 9px 14px; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.mini-row:last-child { border-bottom: 0; }
.mini-row .l1 { display: flex; gap: 8px; align-items: center; }
.mini-row .l1 .nm { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-row .l2 { color: var(--muted); font-size: 11px; margin-top: 3px; }

/* ---------- Excel 风格宽表 ---------- */
.sheet-card { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 0; overflow: hidden; }
.sheet-scroll { overflow: auto; max-height: calc(100vh - 250px); position: relative; }
.sheet { border-collapse: separate; border-spacing: 0; font-size: 11px; table-layout: fixed; }
.sheet th, .sheet td { border-right: 1px solid #c9d3e3; border-bottom: 1px solid #c9d3e3; padding: 3px 5px; height: 32px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet thead th { text-align: center; }
.sheet .r-stage th { height: 28px; }
.sheet .r-step th { height: 62px; white-space: normal; line-height: 1.3; vertical-align: middle; }
.sheet .r-owner th { height: 46px; white-space: normal; line-height: 1.3; vertical-align: middle; font-size: 9px; }
.sheet .h-stage { background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; }
.sheet .h-stage.alt { background: var(--primary); }
.sheet .h-step { background: var(--blue-soft); color: var(--primary-dark); font-weight: 700; font-size: 10px; }
.sheet .h-owner { background: #f2f2f2; color: #6b7280; font-weight: 400; }
.sheet .h-fixed { background: var(--navy); color: #fff; font-weight: 700; }
.sheet .sep { width: 8px; min-width: 8px; background: #f4f6f9 !important; border-right: 0 !important; border-left: 1px solid #e3e9f2 !important; padding: 0 !important; }
.sheet .fx { position: sticky; z-index: 3; background: #fff; }
.sheet thead .fx { z-index: 7; }
.sheet thead th { position: sticky; }
.sheet thead tr:nth-child(1) th { top: 0; }
.sheet thead tr:nth-child(2) th { top: 28px; }
.sheet thead tr:nth-child(3) th { top: 90px; }
.sheet .c0 { left: 0; width: 76px; min-width: 76px; }
.sheet .c1 { left: 76px; width: 178px; min-width: 178px; }
.sheet .c2 { left: 254px; width: 158px; min-width: 158px; }
.sheet .c3 { left: 412px; width: 112px; min-width: 112px; }
.sheet .c4 { left: 508px; width: 96px; min-width: 96px; }
.sheet .c5 { left: 604px; width: 96px; min-width: 96px; }
.sheet .c6 { left: 700px; width: 104px; min-width: 104px; }
.sheet tbody tr.focus-row td { box-shadow: inset 0 0 0 9999px rgba(255, 226, 122, .18); }
.sheet .step-col { width: 108px; min-width: 108px; }
.sheet .progress-col { width: 190px; min-width: 190px; }
.sheet .material-col { width: 156px; min-width: 156px; }
.sheet .stat-col { width: 84px; min-width: 84px; }
.sheet .remark-col { width: 220px; min-width: 220px; }
/* 每个阶段追加的两列：跟进情况 / 资料上传 */
.sheet .follow-col { width: 190px; min-width: 190px; }
.sheet .file-col { width: 132px; min-width: 132px; }
.sheet .h-extra { background: #dce6f1; color: #1f3864; font-weight: 700; font-size: 10px; }
.sheet td.follow-cell { background: #fbfdff; padding: 2px 3px; }
.sheet tbody tr:nth-child(even) td.follow-cell { background: #f7faff; }
.sheet .follow-inp { font-size: 10.5px; }
.sheet td.file-cell { text-align: center; cursor: pointer; background: #f4f8ff; color: #2f5597; font-size: 10.5px; }
.sheet tbody tr:nth-child(even) td.file-cell { background: #eff5ff; }
.sheet td.file-cell:hover { outline: 2px solid var(--primary); outline-offset: -2px; }
.file-badge { display: inline-block; padding: 1px 8px; border-radius: 12px; background: #dce6f1; color: #1f3864; font-size: 10px; }
.file-add { color: #8492a8; }
.file-panel {
  position: fixed; z-index: 210; width: 330px; background: #fff; border: 1px solid var(--line);
  border-radius: 9px; box-shadow: 0 12px 36px rgba(31,56,100,.22); padding: 12px;
}
.fp-head { display: flex; align-items: center; font-size: 13px; color: var(--primary-dark); }
.fp-x { margin-left: auto; border: 0; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); }
.fp-sub { font-size: 10px; color: var(--muted); margin: 5px 0 10px; line-height: 1.5; }
.fp-list { max-height: 190px; overflow: auto; border: 1px solid var(--line-soft); border-radius: 6px; margin-bottom: 10px; }
.fp-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 11px; }
.fp-item { display: grid; grid-template-columns: 1fr auto auto; gap: 3px 6px; align-items: center; padding: 7px 9px; border-bottom: 1px solid var(--line-soft); }
.fp-item:last-child { border-bottom: 0; }
.fp-nm { grid-column: 1 / -1; font-size: 11.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-meta { grid-column: 1 / -1; font-size: 10px; color: var(--muted); }
.fp-item .btn { padding: 2px 7px; font-size: 10px; }
.fp-upload { display: flex; width: 100%; justify-content: center; cursor: pointer; }
.fp-tip { font-size: 10px; color: var(--err); margin-top: 6px; }
.sheet thead .c0, .sheet thead .c1, .sheet thead .c2, .sheet thead .c3, .sheet thead .c4, .sheet thead .c5, .sheet thead .c6, .sheet thead .c7 { z-index: 9; }
.sheet thead .h-stage, .sheet thead .h-fixed, .sheet thead .h-stat { z-index: 6; }
.sheet .h-stat { background: var(--navy); color: #fff; font-weight: 700; }
.sheet .ops-cell { text-align: center; white-space: nowrap; }
.sheet .ops-cell .btn { padding: 1px 5px; font-size: 10px; }
.sheet thead .fx.h-fixed { background: var(--navy); color: #fff; }
.sheet tbody tr:nth-child(even) .fx { background: #fbfcfe; }
.sheet tbody tr:hover .fx { background: #f2f7ff; }
.sheet .cell-inp { width: 100%; height: 24px; border: 1px solid transparent; background: transparent; border-radius: 3px; padding: 0 3px; outline: none; font-size: 11px; }
.sheet .cell-inp:hover { border-color: #c9d6ea; background: #fff; }
.sheet .cell-inp:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 2px rgba(47,85,151,.12); }
.sheet select.cell-inp { padding: 0 1px; }
.sheet .num { text-align: right; }
.sheet .ctr { text-align: center; }
.sheet td.step-cell { text-align: center; font-size: 10.5px; padding: 2px 3px; }
.sheet td.step-cell:hover { box-shadow: inset 0 0 0 1px rgba(47,85,151,.38); }
.sheet td.step-cell:focus-within { outline: 2px solid var(--primary); outline-offset: -2px; }
.sheet td.step-cell .step-inp {
  display: block; width: 100%; height: 24px; padding: 0 1px; text-align: center;
  border: 1px solid transparent; border-radius: 3px; background: transparent;
  color: inherit; font-size: 10px; outline: none; -webkit-appearance: none;
}
.sheet td.step-cell .step-inp:hover { border-color: rgba(47,85,151,.35); background: rgba(255,255,255,.7); }
.sheet td.step-cell .step-inp:focus { border-color: var(--primary); background: #fff; color: var(--ink); box-shadow: 0 0 0 2px rgba(47,85,151,.12); }
.sheet td.step-cell .step-inp::placeholder { color: #aab5c6; }
.sheet td.s-done { background: #e2f0d9; color: #375623; }
.sheet td.s-doing { background: #fff2cc; color: #7f6000; }
.sheet td.s-delay { background: #fce4e4; color: #c00000; font-weight: 700; }
.sheet td.s-other { background: #f3f6fb; }
.sheet td.s-empty { background: #fff; }
.sheet tbody tr:nth-child(even) td.s-empty { background: #fbfcfe; }
.sheet .stat-done { background: #eef4ff; color: var(--primary-dark); font-weight: 700; text-align: center; }
.sheet .row-ops { display: flex; gap: 4px; }
.sheet .legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 14px; background: #fbfcfe; border-top: 1px solid var(--line-soft); font-size: 11px; color: var(--muted); }
.sheet .legend i { display: inline-block; width: 12px; height: 12px; border: 1px solid #c9d3e3; vertical-align: -2px; margin-right: 4px; border-radius: 2px; }
.notes { margin-top: 12px; font-size: 11px; color: var(--muted); line-height: 1.8; }
.notes h4 { margin: 0 0 6px; font-size: 12px; color: var(--primary-dark); }

/* ---------- 步骤编辑器 ---------- */
.step-editor {
  position: fixed; z-index: 200; width: 250px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 10px 32px rgba(31,56,100,.2); padding: 12px;
}
.step-editor h5 { margin: 0 0 3px; font-size: 12px; color: var(--primary-dark); }
.step-editor .own { font-size: 10px; color: var(--muted); margin-bottom: 10px; line-height: 1.4; }
.step-editor input[type=date] { width: 100%; height: 30px; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; }
.step-editor .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 9px; }
.step-editor .btns .btn { justify-content: center; padding: 5px 4px; font-size: 11px; }

/* ---------- 弹窗 / 提示 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(28,40,62,.36); z-index: 150; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: #fff; border-radius: 10px; max-width: 96vw; max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 18px 55px rgba(20,35,60,.24); }
.modal-head { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; font-size: 14px; color: var(--primary-dark); }
.modal-x { margin-left: auto; border: 0; background: transparent; font-size: 21px; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-body { padding: 18px; overflow: auto; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; gap: 8px; }
.modal-tip { flex: 1; font-size: 11px; }
#toastBox { position: fixed; right: 22px; top: 68px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #26364f; color: #fff; padding: 9px 15px; border-radius: 7px; font-size: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.16); transition: opacity .25s, transform .25s; }
.toast.out { opacity: 0; transform: translateX(18px); }
.toast-err { background: #b0392b; }

/* 下载菜单 */
.dropdown { position: relative; display: inline-flex; }
.dropdown-menu { display: none; position: absolute; right: 0; top: 34px; min-width: 168px; background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 8px 24px rgba(31,56,100,.16); z-index: 60; padding: 5px; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 5px; cursor: pointer; font-size: 12px; }
.dropdown-menu button:hover { background: #f2f6fc; color: var(--primary); }

.hint-line { font-size: 11px; color: var(--muted); margin-top: 8px; }
.divider { height: 1px; background: var(--line-soft); margin: 12px 0; }
.section-sub { font-size: 12px; color: var(--muted); margin: -6px 0 12px; }

/* ---------- 按日期查看项目进展 ---------- */
.pg-wrap { display: grid; grid-template-columns: minmax(390px, 1fr) minmax(420px, 1.12fr); gap: 16px; }
.pg-left, .pg-right { min-width: 0; }
.pg-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; min-height: 28px; }
.pg-bar b { color: var(--primary-dark); font-size: 13px; }
.pg-bar .pg-month { font-size: 14px; margin: 0 4px; }
.pg-bar .btn { padding: 3px 8px; font-size: 11px; }
.pg-sum { font-size: 11px; color: var(--muted); margin-left: auto; }
.pg-week, .pg-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pg-week span { text-align: center; font-size: 11px; color: var(--muted); padding: 5px 0; font-weight: 700; }
.pg-week span:nth-child(6), .pg-week span:nth-child(7) { color: #b07a2a; }
.pg-grid { border-left: 1px solid var(--line-soft); border-top: 1px solid var(--line-soft); }
.pg-day {
  min-height: 50px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: 4px 5px; cursor: pointer; display: flex; flex-direction: column; gap: 2px;
  background: #fff; transition: background .12s;
}
.pg-day:hover { background: #f2f7ff; }
.pg-day.out { background: #fafbfd; color: #b6bfcd; }
.pg-day .d { font-size: 12px; font-weight: 700; line-height: 1.2; }
.pg-day .n { font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-day.has { background: #edf7ee; }
.pg-day.has .d, .pg-day.has .n { color: #2e7d32; }
.pg-day.has .n { font-weight: 700; }
.pg-day.sel { outline: 2px solid var(--primary); outline-offset: -2px; background: #e4edfb; }
.pg-day.sel .n { color: var(--primary-dark); }
.pg-day.today .d { align-self: flex-start; min-width: 20px; text-align: center; border-radius: 10px; background: var(--primary); color: #fff; padding: 0 4px; }
.pg-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 9px; font-size: 10.5px; color: var(--muted); align-items: center; }
.pg-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 2px; vertical-align: -1px; margin-right: 4px; border: 1px solid #c9d3e3; }
.pg-legend i.has { background: #edf7ee; border-color: #a8d3ae; }
.pg-legend i.sel { background: #e4edfb; border-color: var(--primary); }
.pg-legend i.today { background: var(--primary); border-color: var(--primary); }
.pg-legend .pg-tip { margin-left: auto; color: #98a3b4; }
.pg-list { max-height: 400px; overflow: auto; border: 1px solid var(--line-soft); border-radius: 7px; }
.pg-scope { padding: 8px 12px; background: #f3f7fd; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line-soft); }
.pg-scope b { color: var(--primary-dark); }
.pg-date { display: flex; align-items: center; gap: 9px; padding: 7px 12px; background: #eef2f8; border-bottom: 1px solid var(--line-soft); font-size: 11px; color: var(--muted); position: sticky; top: 0; z-index: 1; }
.pg-date b { color: var(--primary-dark); font-size: 12px; }
.pg-date span:last-child { margin-left: auto; }
.pg-item { display: grid; grid-template-columns: 76px minmax(100px, 1fr) minmax(120px, 1.2fr) minmax(130px, 1.3fr); gap: 8px; align-items: center; padding: 7px 12px; border-bottom: 1px solid var(--line-soft); font-size: 11px; }
.pg-item:last-child { border-bottom: 0; }
.pg-item > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-tag { font-size: 9.5px; padding: 2px 6px; border-radius: 4px; text-align: center; }
.pg-tag.t-step { background: #e5efff; color: #2f5597; }
.pg-tag.t-mile { background: #fff3d9; color: #a9740a; }
.pg-p { color: var(--primary); cursor: pointer; font-weight: 600; }
.pg-p:hover { text-decoration: underline; }
.pg-star { color: #c0392b; font-style: normal; margin-right: 3px; }
.pg-m { color: var(--muted); font-size: 10px; }
.pg-empty { padding: 34px 18px; text-align: center; color: var(--muted); font-size: 11.5px; line-height: 2; }
@media (max-width: 1180px) { .pg-wrap { grid-template-columns: 1fr; } }

/* ---------- 打印 ---------- */
/* ---------- 全流程总览（沿用源表阶段配色：44546A / 2F5597 / DDEBF7 / F2F2F2） ---------- */
.flow-card { padding: 14px 16px; }
.flow-card .card-title { flex-wrap: wrap; }
.flow-card .card-title .right { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.fl-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 11.5px; color: #3c4658; margin: -4px 0 10px; }
.fl-summary b { color: var(--primary-dark); font-size: 13px; margin: 0 2px; }
.fl-summary b.fl-bad { color: #c0392b; }
.fl-summary .fl-tip { margin-left: auto; color: var(--muted); font-size: 10.5px; }
.fl-bar { display: flex; align-items: stretch; overflow-x: auto; padding: 2px 0 8px; margin-bottom: 10px; }
.fl-node { flex: 1 0 116px; min-width: 116px; border: 1px solid #cfd8e6; border-top: 3px solid var(--flc); border-radius: 6px; padding: 7px 9px 8px; background: #fff; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.fl-node:hover { box-shadow: 0 4px 12px rgba(31,56,100,.16); transform: translateY(-2px); }
.fl-node.has-stay { box-shadow: inset 0 -3px 0 var(--flc); }
.fl-node.has-stay:hover { box-shadow: 0 4px 12px rgba(31,56,100,.16), inset 0 -3px 0 var(--flc); }
.fl-arrow { flex: 0 0 16px; display: flex; align-items: center; justify-content: center; color: #a9b6c9; font-size: 24px; }
.fl-top { display: flex; justify-content: space-between; align-items: center; }
.fl-no { width: 20px; height: 20px; border-radius: 50%; background: var(--flc); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.fl-steps { font-size: 10px; color: var(--muted); }
.fl-name { font-size: 13px; font-weight: 700; color: var(--primary-dark); margin-top: 5px; }
.fl-dept { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-count { margin-top: 6px; font-size: 10.5px; color: #3c4658; }
.fl-count b { font-size: 15px; color: var(--flc); margin-right: 1px; }
.fl-pass { font-size: 10px; color: #2e7d32; margin-top: 1px; }
.fl-steps-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 12px; }
.fl-step-group { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.fl-step-head { color: #fff; font-size: 11px; font-weight: 700; padding: 5px 8px; display: flex; justify-content: space-between; gap: 6px; }
.fl-step-head span { font-weight: 400; opacity: .85; font-size: 10px; white-space: nowrap; }
.fl-step-row { display: flex; gap: 6px; align-items: center; padding: 3px 8px; font-size: 10px; border-bottom: 1px solid var(--line-soft); }
.fl-step-row:nth-child(odd) { background: #f7fbff; }
.fl-step-row:last-child { border-bottom: 0; }
.fl-step-id { flex: 0 0 26px; color: var(--primary); font-weight: 700; }
.fl-step-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #262626; }
.fl-step-owner { flex: 0 0 44%; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); background: #f2f2f2; padding: 1px 4px; border-radius: 3px; }
.fl-star { color: #c0392b; font-style: normal; }
.fm-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.fm { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 1180px; font-size: 11px; table-layout: fixed; }
.fm th, .fm td { border-right: 1px solid #cfd8e6; border-bottom: 1px solid #cfd8e6; padding: 5px 6px; text-align: center; }
.fm thead th { color: #fff; font-weight: 700; height: 34px; }
.fm .fm-fx { background: #edf2f8; color: var(--primary-dark); font-weight: 700; }
.fm .fm-s { cursor: pointer; }
.fm .fm-s:hover { filter: brightness(1.15); }
.fm .fm-s small { display: block; font-weight: 400; opacity: .85; font-size: 9.5px; }
.fm .fm-c-name { width: 170px; } .fm .fm-c-cus { width: 130px; } .fm .fm-c-mgr { width: 80px; }
.fm .fm-c-cur { width: 100px; } .fm .fm-c-rate { width: 100px; }
.fm tbody td.fm-fx { background: #fafbfd; }
.fm tbody tr:hover td.fm-fx { background: #f0f6ff; }
.fm .fm-name { text-align: left !important; }
.fm .fm-name a { color: var(--primary); text-decoration: none; }
.fm .fm-name a:hover { text-decoration: underline; }
.fm .fm-txt { font-weight: 400 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #3c4658; }
.fm-tag { display: inline-block; color: #fff; border-radius: 3px; padding: 1px 6px; font-size: 10px; white-space: nowrap; }
.fm-cell { position: relative; cursor: pointer; background: #fff; height: 38px; }
.fm-cell.f-done { background: #e2f0d9; color: #2e7d32; }
.fm-cell.f-part { background: #fff6dd; color: #8a6100; }
.fm-cell.f-delay { background: #fce4e4; color: #c0392b; }
.fm-cell.f-none { color: #9aa4b2; }
.fm-cell.f-cur { outline: 2px solid var(--primary); outline-offset: -2px; }
.fm-cur-flag { position: absolute; top: 0; right: 0; background: var(--primary); color: #fff; font-size: 8px; padding: 0 3px; border-radius: 0 0 0 3px; }
.fm-num { display: block; font-weight: 700; font-size: 11px; line-height: 1.35; }
.fm-bar { display: block; height: 4px; background: rgba(0,0,0,.08); border-radius: 2px; overflow: hidden; margin-top: 2px; }
.fm-bar i { display: block; height: 100%; background: #2f5597; }
.f-done .fm-bar i { background: #2e7d32; } .f-part .fm-bar i { background: #d9a406; } .f-delay .fm-bar i { background: #c0392b; }
.fm .fm-rate .fm-bar.big { width: 54px; display: inline-block; vertical-align: middle; height: 6px; }
.fm-rate-txt { margin-left: 5px; font-size: 10px; color: var(--muted); }
.fm .fm-empty { padding: 20px; color: var(--muted); }
.fl-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 10.5px; color: var(--muted); margin-top: 10px; align-items: center; }
.fl-legend .lg { display: inline-block; width: 13px; height: 13px; border: 1px solid #cfd8e6; vertical-align: middle; margin-right: 4px; border-radius: 2px; background: #fff; }
.fl-legend .lg.f-done { background: #e2f0d9; } .fl-legend .lg.f-part { background: #fff6dd; }
.fl-legend .lg.f-delay { background: #fce4e4; } .fl-legend .lg.f-cur { border: 2px solid var(--primary); }
.sheet-caption { padding: 9px 14px; font-size: 12.5px; font-weight: 700; color: var(--primary-dark); border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: baseline; }
.sheet-caption span { font-weight: 400; font-size: 10.5px; color: var(--muted); }

/* ---------- 总览 + 明细合一：固定列流程条 / 每步负责人 / 阶段小结 ---------- */
.sheet .c7 { left: 804px; width: 188px; min-width: 188px; }
.sheet .step-pair { width: 592px; min-width: 592px; }
.sheet .owner-col { width: 138px; min-width: 138px; }
.sheet .sum-col { width: 92px; min-width: 92px; }
.sheet .h-sum { background: #dce6f1; color: #1f3864; font-weight: 700; font-size: 10px; }

/* 固定列：9 段迷你流程条 */
.sheet td.overview-cell { padding: 2px 5px; height: 36px; background: #f7faff; }
.sheet tbody tr:nth-child(even) td.overview-cell { background: #f2f7ff; }
.sheet tbody tr:hover td.overview-cell { background: #edf5ff; }
.ov-bar { display: flex; align-items: stretch; height: 19px; }
.ov-seg { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 700; border-top: 3px solid #44546A; border-right: 1px solid #fff;
  cursor: pointer; color: #6b7280; background: #f0f2f5; }
.ov-seg:hover { filter: brightness(.94); box-shadow: inset 0 0 0 1px #2f5597; }
.ov-arrow { flex: 0 0 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; color: #a9b6c9; background: #fff; }
.ov-seg.f-done { background: #e2f0d9; color: #2e7d32; }
.ov-seg.f-part { background: #fff2cc; color: #8a6100; }
.ov-seg.f-delay { background: #fce4e4; color: #c0392b; }
.ov-seg.f-none { background: #f0f2f5; color: #9aa4b2; }
.ov-seg.f-cur { outline: 2px solid #2f5597; outline-offset: -2px; color: #1f3864; }
.ov-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; font-size: 9px; color: #6b7280; line-height: 1.2; white-space: nowrap; }
.ov-cur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 112px; }
.ov-foot b { color: #1f3864; font-size: 10px; margin-left: 4px; white-space: nowrap; }

/* 每个步骤右侧的负责人下拉 */
.sheet td.owner-cell { background: #f4f8ff; padding: 2px 3px; }
.sheet tbody tr:nth-child(even) td.owner-cell { background: #eef5ff; }
.sheet .owner-inp { font-size: 10px; height: 24px; padding: 0 2px; }

/* 每个阶段末尾的阶段小结格 */
.sheet td.stage-sum-cell { position: relative; text-align: center; cursor: pointer; background: #fff; padding: 2px 3px; }
.sheet td.stage-sum-cell.f-done { background: #e2f0d9; color: #2e7d32; }
.sheet td.stage-sum-cell.f-part { background: #fff6dd; color: #8a6100; }
.sheet td.stage-sum-cell.f-delay { background: #fce4e4; color: #c0392b; }
.sheet td.stage-sum-cell.f-none { color: #9aa4b2; }
.sheet td.stage-sum-cell.f-cur { outline: 2px solid #2f5597; outline-offset: -2px; }
.ss-cur { position: absolute; top: 0; right: 0; background: #2f5597; color: #fff; font-size: 8px; padding: 0 3px; border-radius: 0 0 0 3px; }
.ss-num { display: block; font-weight: 700; font-size: 10.5px; line-height: 1.3; }
.ss-bar { display: block; height: 4px; background: rgba(0,0,0,.09); border-radius: 2px; overflow: hidden; margin-top: 2px; }
.ss-bar i { display: block; height: 100%; background: #2f5597; }
.f-done .ss-bar i { background: #2e7d32; } .f-part .ss-bar i { background: #d9a406; } .f-delay .ss-bar i { background: #c0392b; }

.hint-line .fl-tip { margin-left: 10px; color: var(--muted); font-size: 10.5px; }
.fl-bad { color: #c0392b; }
.sl-in-modal { margin: 0; max-height: 62vh; overflow: auto; }

@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body, .app, .main-wrap, .main { overflow: visible !important; height: auto !important; background: #fff !important; }
  .sidebar, .topbar, .no-print, .step-editor, .file-panel, .prg-panel, .modal-mask, #toastBox, .dropdown-menu { display: none !important; }
  .sheet .follow-col, .sheet .file-col { width: 92px !important; min-width: 92px !important; }
  .sheet .step-col, .sheet .material-col { width: 50px !important; min-width: 50px !important; }
  .sheet .owner-col, .sheet .sum-col { width: 50px !important; min-width: 50px !important; }
  .sheet .progress-col { width: 70px !important; min-width: 70px !important; }
  .sheet .step-pair { width: 220px !important; min-width: 220px !important; }
  .sheet .c7 { width: 128px !important; min-width: 128px !important; }
  .main { padding: 0 !important; }
  .card, .block, .kpi, .sheet-card { border: 1px solid #bbb !important; box-shadow: none; break-inside: avoid; margin-bottom: 10px; }
  /* 打印不铺底色，避免费墨；类目色条保留 */
  .card[class*="cat-"], .block[class*="cat-"], .kpis.cat-slate .kpi { background: #fff !important; border-color: #bbb !important; }
  .block-body, .pg-list { max-height: none !important; overflow: visible !important; }
  .sheet-scroll { overflow: visible !important; max-height: none !important; }
  .sheet { font-size: 8px !important; }
  .sheet th, .sheet td { height: auto !important; padding: 2px !important; }
  .sheet td.step-cell .step-inp { border: 0 !important; background: transparent !important; box-shadow: none !important; -webkit-appearance: none; color: inherit !important; }
  .fl-bar, .fm-wrap { overflow: visible !important; }
  .fm { min-width: 0 !important; font-size: 8px !important; }
  .fm th, .fm td { height: auto !important; padding: 2px !important; }
  .fl-node { min-width: 0 !important; flex: 1 1 0 !important; }
  .fl-steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .print-title { display: block !important; font-size: 16pt; font-weight: bold; margin-bottom: 8px; }
  .print-meta { display: block !important; font-size: 9pt; color: #555; margin-bottom: 10px; }
  a { text-decoration: none; color: inherit; }
}
.print-title, .print-meta { display: none; }

@media (max-width: 900px) {
  .sidebar { width: 62px; flex-basis: 62px; }
  .brand h1, .brand p, .nav-item span.nm, .nav-item .tag, .side-foot, .nav-subs { display: none; }
  .brand { text-align: center; padding: 14px 6px; }
  .nav-item { justify-content: center; }
  .nav-item.has-sub .car { display: none; }
  .main { padding: 14px; }
}

/* ---------- 工作汇报：日历报表 + 统计 ---------- */
.rp-tabs { margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.rp-tabs button {
  border: 1px solid transparent; border-bottom: 0; background: transparent; color: #56627a;
  padding: 7px 20px; cursor: pointer; font-size: 13px; border-radius: 6px 6px 0 0; margin-right: 2px;
}
.rp-tabs button:hover { color: var(--primary); background: #f5f9ff; }
.rp-tabs button.on { background: var(--blue-soft); color: var(--primary-dark); font-weight: 700; border-color: var(--line); }
.rp-check { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #56627a; height: 31px; padding: 0 4px; white-space: nowrap; }
.rp-check input { width: 14px; height: 14px; margin: 0; }
.rp-cal-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.rp-cal-head b { font-size: 14px; color: var(--primary-dark); margin: 0 6px; }
.rp-head-note { margin-left: auto; font-size: 11px; color: var(--muted); }
.rp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; font-size: 10.5px; color: var(--muted); margin-bottom: 9px; }
.rp-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 2px; border: 1px solid #c9d3e3; margin-left: 9px; vertical-align: -1px; }
.rp-legend i.g-full { background: #edf7ee; border-color: #a8d3ae; }
.rp-legend i.g-part { background: #fff5dd; border-color: #e4c66a; }
.rp-legend i.g-none { background: #fdeaea; border-color: #e6a5a0; }
.rp-legend i.g-rest { background: #f7f8fa; border-color: #d9e0ea; }
.rp-legend i.g-idle { background: #eef1f5; border-color: #cfd7e2; }
.rp-legend i.g-future { background: #f4f8ff; border-color: #b7c9e8; }
.rp-legend i.g-today { background: #fff; border: 2px solid var(--primary); }
.rp-legend .rp-tip { margin-left: auto; color: #98a3b4; }

.rp-week, .rp-grid { overflow: hidden; border-left: 1px solid var(--line-soft); border-top: 1px solid var(--line-soft); }
.rp-week:after, .rp-grid:after { content: ''; display: block; clear: both; }
.rp-week span { float: left; width: 14.28%; box-sizing: border-box; text-align: center; font-size: 11px; font-weight: 700; color: #56627a; padding: 5px 0; background: #f3f6fb; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.rp-week span:nth-child(6), .rp-week span:nth-child(7) { color: #b07a2a; }
.rp-cell {
  float: left; box-sizing: border-box; min-height: 70px; padding: 5px 7px; cursor: pointer;
  border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); position: relative;
}
.rp-grid.cols-7 > .rp-cell { width: 14.28%; }
.rp-grid.cols-4 > .rp-cell { width: 25%; min-height: 100px; }
.rp-cell .d { display: block; font-size: 13px; font-weight: 700; line-height: 1.25; }
.rp-cell .s { display: block; font-size: 10px; opacity: .8; line-height: 1.3; }
.rp-cell .n { display: block; font-size: 13px; font-weight: 700; margin-top: 4px; line-height: 1.25; }
.rp-cell .m { display: block; font-size: 10px; line-height: 1.35; }
.rp-cell.s-full { background: #edf7ee; color: #2e7d32; }
.rp-cell.s-part { background: #fff5dd; color: #8a6100; }
.rp-cell.s-none { background: #fdeaea; color: #c0392b; }
.rp-cell.s-rest { background: #f7f8fa; color: #9aa4b2; }
.rp-cell.s-idle { background: #f4f6f9; color: #a6b0bf; }
.rp-cell.s-future { background: #f4f8ff; color: #6b7a99; }
.rp-cell.s-none .m, .rp-cell.s-part .m { font-weight: 700; }
.rp-cell.out { opacity: .52; }
.rp-cell.today { outline: 2px solid var(--primary); outline-offset: -2px; }
.rp-cell:hover { box-shadow: inset 0 0 0 2px rgba(47,85,151,.28); }

.rp-stats { margin-top: 2px; }
/* 周期明细弹窗：整行可点进入填写 / 编辑 */
.tbl tr.rp-click { cursor: pointer; }
.tbl tr.rp-click:hover { background: #eef4fc; }
.tbl tr.rp-click:hover td:first-child b { color: #2F5597; }
.rp-col { display: inline-block; width: 49.3%; vertical-align: top; margin-right: 1%; }
.rp-col:nth-child(2n) { margin-right: 0; }
.rp-clear { clear: both; }
.rp-scroll { max-height: 310px; overflow: auto; border: 1px solid var(--line-soft); }
.rp-scroll .tbl th { position: static; }
.rp-bars { height: 160px; padding-top: 4px; }
.rp-bar { display: inline-block; width: 16.6%; text-align: center; vertical-align: top; }
.rp-bar-val { display: block; font-size: 10px; font-weight: 700; color: #56627a; }
.rp-bar-track { position: relative; height: 108px; width: 100%; border-bottom: 1px solid var(--line); }
.rp-bar-track i { position: absolute; bottom: 0; left: 27%; width: 46%; display: block; border-radius: 3px 3px 0 0; }
.rp-bar-lbl { display: block; font-size: 10px; color: var(--muted); margin-top: 6px; white-space: nowrap; }
.rp-form-foot { margin-top: 12px; text-align: right; }

@media print {
  .rp-cell, .rp-bar-track i, .rp-tabs button.on { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rp-scroll { max-height: none !important; overflow: visible !important; }
  .rp-col { width: 48% !important; display: inline-block !important; }
  .rp-grid.cols-7 > .rp-cell { width: 14.28% !important; }
  .rp-grid.cols-4 > .rp-cell { width: 25% !important; min-height: 70px !important; }
  .rp-cell { min-height: 58px !important; }
  .rp-cal-head, .rp-tabs { display: none !important; }
}

/* ---------- 表格设置（列宽 / 冻结列 / 自定义列） ---------- */
.tp-sec { border: 1px solid #e3e9f2; border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; background: #fbfcfe; }
.tp-sec:last-child { margin-bottom: 0; }
.tp-h { font-size: 12.5px; font-weight: 700; color: #1f3864; margin-bottom: 9px; }
.tp-note { font-weight: 400; font-size: 10.5px; color: #6b7280; margin-left: 8px; }
.tp-freeze { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 9px; }
.tp-cb { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #33415c; cursor: pointer; }
.tp-cb input { width: auto; height: auto; }
.tp-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-grid { display: flex; flex-wrap: wrap; gap: 9px 14px; margin-bottom: 10px; }
.tp-w { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #4b5563; }
.tp-w span { min-width: 96px; }
.tp-w input { width: 74px; height: 26px; padding: 0 6px; border: 1px solid #cbd5e3; border-radius: 4px; font-size: 11.5px; background: #fff; }
.tp-col-row { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border: 1px solid #e3e9f2; border-radius: 6px; background: #fff; margin-bottom: 6px; font-size: 12px; }
.tp-col-row .tp-grow { flex: 1; }
.tp-tag { font-size: 10px; color: #2f5597; background: #eaf1fb; border: 1px solid #d6e4f7; border-radius: 9px; padding: 1px 7px; }
.tp-empty { font-size: 11.5px; color: #9aa4b2; padding: 8px 4px; }
.tp-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.tp-add input#tpNewName { width: 190px; height: 29px; padding: 0 8px; border: 1px solid #cbd5e3; border-radius: 4px; font-size: 12px; }
.tp-add select { width: 92px; height: 29px; border: 1px solid #cbd5e3; border-radius: 4px; font-size: 12px; background: #fff; }
.tp-add select#tpNewAt { width: 178px; }
/* 显示列分组 */
.tp-vg { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.tp-vg-t { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #2f5597; margin: 6px 0 3px; }
.tp-vg-t:first-child { margin-top: 0; }
.tp-vg .tp-freeze { margin-bottom: 0; padding-left: 2px; }
.sheet-hid { margin-left: 10px; font-size: 11px; font-weight: 600; color: #c07a10; background: #fff6e5;
  border: 1px solid #f0dcb4; border-radius: 9px; padding: 1px 7px; }
.sheet-caption .link { margin-left: 8px; font-weight: 600; }
.tp-presets + .tp-note { margin-top: 8px; }
.tp-add input#tpNewW { width: 78px; height: 29px; padding: 0 8px; border: 1px solid #cbd5e3; border-radius: 4px; font-size: 12px; }

/* 自定义列 */
.sheet .custom-head { background: #e8eef9; color: #1f3864; font-weight: 700; font-size: 10.5px; }
.sheet td.custom-cell { padding: 2px 3px; background: #fcfdff; }
.sheet .custom-inp { font-size: 11px; }

/* 表头可调宽的可视提示（不要改 position，表头靠 sticky 吸顶） */
.sheet thead th[data-wkey]:hover { box-shadow: inset -3px 0 0 -1px #2f5597; }

/* ---------- 软件更新（桌面版） ---------- */
.side-upd { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.side-upd .side-ver { font-size: 10px; color: var(--muted); white-space: nowrap; }
.side-upd button { margin-top: 0; width: auto; flex: 1; white-space: nowrap; }
.btn-ghost { background: #f7f9fc; color: #44546a; border-color: #d7dfeb; }
.btn-ghost:hover { background: #eef4fd; color: var(--primary); border-color: var(--primary); }
.side-upd button.has-new { background: #fff4e5; border-color: #e8a33d; color: #a15c00; font-weight: 700; }
.side-upd button.has-new::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #e8590c; margin-right: 4px; vertical-align: 1px;
}

.upd-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #5b6572; margin-bottom: 12px; flex-wrap: wrap; }
.upd-row b { color: #1f3864; font-size: 13px; }
.upd-k { margin-left: 10px; color: #8792a2; }
.upd-src { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #44546a; }
.upd-badge { display: inline-block; padding: 4px 12px; border-radius: 14px; font-size: 12.5px; font-weight: 700; margin-bottom: 10px; }
.upd-badge.ok { background: #e8f5ec; color: #2e7d32; border: 1px solid #c8e6cf; }
.upd-badge.new { background: #fff4e5; color: #a15c00; border: 1px solid #f3d3a6; }
.upd-badge.err { background: #fdecea; color: #c0392b; border: 1px solid #f5c6c2; }
.upd-meta { font-size: 11.5px; color: #8792a2; margin-bottom: 8px; }
.upd-notes { background: #f7f9fc; border: 1px solid #e6ecf5; border-radius: 7px; padding: 10px 12px; font-size: 12px; line-height: 1.75; color: #33415c; margin-bottom: 12px; max-height: 170px; overflow: auto; }
.upd-progress { height: 8px; background: #e9eef6; border-radius: 5px; overflow: hidden; margin: 6px 0 8px; }
.upd-bar { height: 100%; width: 0; background: linear-gradient(90deg, #2f5597, #4a7ac7); transition: width .2s ease; }

/* ---------- 每个步骤四列：计划完成时间（日历）/ 选择负责人（含部门）/ 工作进展 / 所需材料 ---------- */
/* 单元格设 relative 只为放右下角日历按钮，不影响表头 sticky（th 不动） */
.sheet td.step-cell { position: relative; }
.sheet td.step-cell .cal-btn {
  position: absolute; right: 1px; top: 50%; transform: translateY(-50%);
  width: 13px; height: 18px; padding: 0; border: 0; border-radius: 3px;
  background: transparent; color: #8a97ad; font-size: 9px; line-height: 1;
  cursor: pointer; opacity: 0; transition: opacity .12s;
}
.sheet td.step-cell:hover .cal-btn,
.sheet td.step-cell:focus-within .cal-btn { opacity: 1; }
.sheet td.step-cell .cal-btn:hover { background: #e3edfa; color: #2f5597; }
.sheet td.material-cell { background: #fcfdff; padding: 2px 3px; }
.sheet tbody tr:nth-child(even) td.material-cell { background: #f8fafd; }
.sheet tbody tr:hover td.material-cell { background: #f5f9ff; }
.sheet .material-inp { font-size: 10.5px; height: 24px; }
/* 工作进展列：浅暖底色；格内输入追加一条，右侧「N 条」徽标打开全部历史 */
.sheet td.progress-cell { position: relative; background: #fffaf0; padding: 2px 3px; }
.sheet tbody tr:nth-child(even) td.progress-cell { background: #fef6e7; }
.sheet tbody tr:hover td.progress-cell { background: #fff3dc; }
.sheet .prg-inp { font-size: 10.5px; height: 24px; padding-right: 38px; }
/* 已有进展记录：格内文字加深，明确「这里看得到内容、也能直接改写」 */
.sheet .prg-inp.has-val { color: #7a4d00; font-weight: 600; }
.sheet .prg-hist {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  min-width: 28px; height: 18px; padding: 0 5px;
  border: 1px solid #e3c98e; border-radius: 9px;
  background: #fff3d6; color: #8a6218; font-size: 9px; line-height: 16px;
  cursor: pointer; white-space: nowrap;
}
.sheet .prg-hist:hover { background: #ffe4a8; border-color: #c98a2b; }
.sheet .prg-hist.is-empty { background: transparent; border-color: #d7dfea; color: #8a97ad; }
.sheet .prg-print { display: none; }

/* 工作进展历史面板：逐条列出「何时 + 进展情况」 */
.prg-panel {
  position: fixed; z-index: 9999; width: 430px; padding: 12px 14px;
  background: #fff; border: 1px solid #cfd9e8; border-radius: 8px;
  box-shadow: 0 12px 36px rgba(22, 42, 78, .22); font-size: 12px;
}
.prg-panel .prg-list { max-height: 260px; }
.prg-row { position: relative; padding: 8px 62px 8px 10px; border-bottom: 1px solid var(--line-soft); }
.prg-row:last-child { border-bottom: 0; }
.prg-at { font-size: 10px; color: #8a6218; font-weight: 600; }
.prg-at em { font-style: normal; color: var(--muted); font-weight: 400; }
.prg-txt { margin-top: 2px; color: var(--ink); line-height: 1.5; word-break: break-all; }
.prg-row .btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.prg-add { display: flex; gap: 6px; }
.prg-new { flex: 1; height: 30px; padding: 0 8px; border: 1px solid var(--line-soft); border-radius: 5px; font-size: 12px; }
.prg-add .btn { flex: 0 0 auto; }

@media print {
  .prg-panel, .sheet td.step-cell .cal-btn, .sheet .prg-hist, .sheet .prg-inp { display: none !important; }
  .sheet .material-inp {
    border: 0 !important; background: transparent !important; box-shadow: none !important;
    -webkit-appearance: none; color: inherit !important;
  }
  .sheet .prg-print { display: block; font-size: 8px; line-height: 1.3; white-space: normal; word-break: break-all; }
}

/* ==================== v1.3.0 首页圆形视觉 / 项目状态 / 工作进展台账 ==================== */
/* ---------- 首页主视觉：渐变面板 + 装饰圆 + 环形完成率 + 圆形状态印章 ---------- */
.hero {
  position: relative; display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
  padding: 20px 26px; margin-bottom: 16px; overflow: hidden;
  background: linear-gradient(120deg, #f9fbff 0%, #eef4ff 55%, #e6f0ff 100%);
  border: 1px solid #d7e4f8; border-radius: 16px;
  box-shadow: 0 6px 22px rgba(31, 56, 100, .06);
}
.hero-deco { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-deco.d1 { width: 300px; height: 300px; right: -110px; top: -190px;
  background: radial-gradient(circle, rgba(160, 195, 255, .35) 0%, rgba(160, 195, 255, 0) 70%); }
.hero-deco.d2 { width: 170px; height: 170px; left: 38%; bottom: -140px; border: 30px solid rgba(196, 218, 255, .22); }
.hero-l, .hero-r { position: relative; z-index: 1; }
.hero-l { flex: 1 1 420px; min-width: 300px; }
.hero-hi { font-size: 21px; font-weight: 700; color: #1f3864; letter-spacing: .3px; }
.hero-date { font-size: 11px; color: #7a879c; margin-top: 5px; }
.hero-lines { margin-top: 14px; font-size: 12px; color: #4b5870; line-height: 2; }
.hero-lines b { color: #2f5597; font-size: 14px; }
.hero-seals { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.hero-seal { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hs-circle {
  width: 52px; height: 52px; border-radius: 50%; border: 3px solid; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(31, 56, 100, .1); transition: transform .16s, box-shadow .16s;
}
.hero-seal:hover .hs-circle { transform: translateY(-3px) scale(1.06); box-shadow: 0 8px 18px rgba(31, 56, 100, .16); }
.hs-circle b { font-size: 19px; font-weight: 700; }
.hs-l { font-size: 11px; color: #5b6572; white-space: nowrap; }
.hero-seal-tip { font-size: 10px; color: #9aa5b5; line-height: 1.45; margin-left: 2px; }
.hero-r { flex: 0 0 210px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-left: 24px; border-left: 1px dashed #cbdcf5; }
.hr-svg .hr-n { font-size: 30px; font-weight: 700; fill: #1f3864; }
.hr-svg .hr-t { font-size: 11px; fill: #7a879c; }
.hero-r-cap { text-align: center; font-size: 11px; color: #5b6572; margin-top: 4px; line-height: 1.6; }
.hero-r-cap span { font-size: 10px; color: #9aa5b5; }

/* KPI 卡片：圆形图标 + 圆角渐变 */
.kpi.kpi-new { padding: 14px 16px 14px 64px; border-radius: 12px;
  background: linear-gradient(145deg, #ffffff 40%, #f7faff 100%); box-shadow: 0 3px 12px rgba(31, 56, 100, .05); }
.kpi.kpi-new::before { display: none; }
.kpi-ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #2f5597; box-shadow: inset 0 0 0 1px rgba(31, 56, 100, .07); }
.kpi-new .value { font-size: 26px; }
.blk-no { width: 22px; height: 22px; border-radius: 50%; color: #fff; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }

/* 冻结列里的项目状态圆点：不占操作列宽度，不影响 sticky */
.sheet td.pname-cell { white-space: nowrap; }
.sheet td.pname-cell .pname-inp { width: calc(100% - 25px); vertical-align: middle; }
.st-btn { display: inline-flex; width: 18px; height: 18px; padding: 0; margin-right: 4px;
  border: 1px solid; border-radius: 50%; background: #fff; font-size: 9px; line-height: 1;
  align-items: center; justify-content: center; cursor: pointer; vertical-align: middle; }
.st-btn:hover { background: #f2f6fc; transform: scale(1.12); }

/* ---------- 项目状态 / 历史项目组件 ---------- */
.lc-top { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px dashed #e3e9f2; }
.lc-ring { flex: 0 0 148px; display: flex; justify-content: center; }
.lc-donut-n { font-size: 26px; font-weight: 700; fill: #1f3864; }
.lc-donut-t { font-size: 10px; fill: #7a879c; }
.lc-sum { flex: 1 1 320px; min-width: 280px; }
.lc-sum-t { font-size: 13px; font-weight: 700; color: #1f3864; margin-bottom: 10px; }
.lc-sum-t span { font-weight: 400; font-size: 11px; color: #7a879c; margin-left: 8px; }
.lc-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.lc-chip { display: flex; align-items: center; gap: 7px; padding: 6px 12px 6px 7px;
  border: 1px solid #e0e7f2; border-radius: 24px; background: #fff; cursor: pointer;
  font-size: 11px; color: #5b6572; transition: border-color .15s, box-shadow .15s; }
.lc-chip:hover { border-color: #9fb8e8; }
.lc-chip.on { border-color: #2f5597; box-shadow: 0 0 0 2px rgba(47, 85, 151, .12); font-weight: 600; }
.lc-chip-ic { width: 22px; height: 22px; border-radius: 50%; background: #2f5597; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 10px; }
.lc-chip.st-done .lc-chip-ic { background: #2e9e6b; }
.lc-chip.st-term .lc-chip-ic { background: #e0785c; }
.lc-chip b { font-size: 15px; color: #1f3864; }
.lc-note { margin-top: 11px; font-size: 11px; }
.lc-ready { color: #c07a10; font-weight: 600; font-size: 11px; margin-right: 4px; }
.lc-tools, .wl-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 12px 0; }
.lc-tools .grow, .wl-tools .grow { flex: 1; }
.lc-list-head, .wl-list-head { padding: 8px 2px; font-size: 12px; color: #5b6572; border-bottom: 1px solid #e8edf4; }
.lc-list-head b, .wl-list-head b { color: #c07a10; font-size: 14px; }
.lc-row { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid #eef2f7; }
.lc-row:hover { background: #f8fbff; }
.lc-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 0 3px rgba(31, 56, 100, .05); }
.lc-main { flex: 1; min-width: 0; }
.lc-nm { display: block; font-weight: 600; font-size: 12px; color: #1f3864; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-nm:hover { text-decoration: underline; }
.lc-meta { font-size: 11px; color: #7a879c; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-ops { display: flex; gap: 6px; flex: 0 0 auto; align-items: center; flex-wrap: wrap;
  justify-content: flex-end; max-width: 340px; }
.lc-empty, .wl-empty { padding: 26px; text-align: center; color: #9aa5b5; font-size: 12px; }
.lc-more, .wl-more { padding: 10px; text-align: center; font-size: 11px; color: #7a879c; border-top: 1px dashed #e8edf4; }
.lc-pager { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 12px; font-size: 11px; color: #7a879c; }
.lc-chooser { display: flex; gap: 10px; margin-top: 12px; }
.lc-opt { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 8px;
  border: 1px solid #e0e7f2; border-radius: 12px; cursor: pointer; text-align: center; }
.lc-opt input { display: none; }
.lc-opt.on { border-color: #2f5597; background: #f5f9ff; box-shadow: 0 0 0 2px rgba(47, 85, 151, .1); }
.lc-opt-ic { width: 34px; height: 34px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; }
.lc-opt b { font-size: 12px; color: #1f3864; }
.lc-opt small { font-size: 10px; color: #9aa5b5; }

/* ---------- 工作进展台账组件 ---------- */
.wl-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px dashed #e3e9f2; }
.wl-orbs { display: flex; gap: 14px; flex-wrap: wrap; }
.wl-orb { text-align: center; }
.wl-orb-c { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 5px solid #fff; box-shadow: 0 0 0 2px #e3e9f2, 0 4px 12px rgba(31, 56, 100, .08); }
.wl-orb-c b { font-size: 21px; color: #1f3864; }
.wl-orb.o-blue .wl-orb-c { background: radial-gradient(circle at 30% 25%, #ffffff, #d6e6ff); }
.wl-orb.o-teal .wl-orb-c { background: radial-gradient(circle at 30% 25%, #ffffff, #d3f0e2); }
.wl-orb.o-amber .wl-orb-c { background: radial-gradient(circle at 30% 25%, #ffffff, #ffe9bd); }
.wl-orb.o-rose .wl-orb-c { background: radial-gradient(circle at 30% 25%, #ffffff, #ffdcd2); }
.wl-orb-l { font-size: 11px; color: #5b6572; margin-top: 6px; white-space: nowrap; }
.wl-orb-f { font-size: 10px; color: #9aa5b5; }
.wl-chart { flex: 1 1 320px; min-width: 280px; padding-left: 18px; border-left: 1px dashed #e3e9f2; }
.wl-chart-t { font-size: 12px; font-weight: 700; color: #1f3864; }
.wl-chart-t span { font-weight: 400; font-size: 10px; color: #9aa5b5; margin-left: 8px; }
.wl-trend { display: flex; align-items: flex-end; gap: 8px; height: 76px; padding-top: 8px; }
.wl-td { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; height: 100%; }
.wl-td-dot { border-radius: 50%; background: linear-gradient(135deg, #7db0ff, #2f5597); display: block;
  min-width: 8px; min-height: 8px; box-shadow: 0 2px 6px rgba(47, 85, 151, .2); }
.wl-td-n { font-size: 10px; color: #2f5597; font-weight: 700; }
.wl-td-l { font-size: 9px; color: #9aa5b5; }
.wl-statusbar { display: flex; height: 8px; border-radius: 6px; overflow: hidden; background: #eef2f8; margin: 12px 0 6px; }
.wl-statusbar span { display: block; height: 100%; }
.wl-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 10px; color: #7a879c; margin-bottom: 4px; }
.wl-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.wl-tools { border-top: 1px dashed #e3e9f2; }
.wl-item { display: flex; gap: 10px; padding: 10px 4px; border-bottom: 1px solid #eef2f7; }
.wl-item:hover { background: #f8fbff; }
.wl-time { flex: 0 0 88px; text-align: right; padding-top: 2px; }
.wl-time b { display: block; font-size: 12px; color: #8a6218; }
.wl-time span { font-size: 10px; color: #9aa5b5; }
.wl-node { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid;
  background: #fff; margin-top: 5px; }
.wl-body { flex: 1; min-width: 0; }
.wl-l1 { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.wl-p { color: #2f5597; font-weight: 600; font-size: 12px; cursor: pointer; }
.wl-p:hover { text-decoration: underline; }
.wl-st { font-size: 10px; }
.wl-star { color: #c0392b; font-size: 11px; }
.wl-txt { font-size: 12px; color: #262626; margin-top: 3px; word-break: break-all; }
.wl-meta { font-size: 10px; color: #9aa5b5; margin-top: 3px; }
.wl-rank { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
  padding-top: 14px; border-top: 1px dashed #e3e9f2; }
.wl-rank > div > b { display: block; font-size: 12px; color: #1f3864; margin-bottom: 8px; }
.wl-rank-r { display: flex; justify-content: space-between; font-size: 11px; padding: 4px 0; border-bottom: 1px dashed #f0f3f8; }
.wl-rank-r span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-rank-r b { color: #2f5597; }
.wl-bar-r { display: flex; align-items: center; gap: 6px; font-size: 10px; padding: 3px 0; }
.wl-bar-r span { width: 66px; color: #5b6572; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-bar-r i { flex: 1; height: 7px; border-radius: 5px; background: #eef2f8; overflow: hidden; }
.wl-bar-r em { display: block; height: 100%; background: linear-gradient(90deg, #7db0ff, #2f5597); }
.wl-bar-r b { width: 24px; text-align: right; color: #2f5597; }

/* ---------- 进展台账：视图切换 + 日历热力视图 ---------- */
.wl-sec { display: flex; align-items: center; gap: 12px; padding: 11px 2px 9px; border-top: 1px dashed #e3e9f2; }
.wl-sec-t { font-size: 12px; font-weight: 700; color: #1f3864; }
.wl-sec-t span { font-weight: 400; font-size: 10px; color: #9aa5b5; margin-left: 8px; }
.wl-seg { margin-left: auto; display: inline-flex; padding: 2px; background: #eef2f8; border-radius: 9px; flex: 0 0 auto; }
.wl-seg button { border: 0; background: transparent; font-size: 11px; color: #5b6572; padding: 5px 15px;
  border-radius: 7px; cursor: pointer; font-family: inherit; line-height: 1.5; }
.wl-seg button:hover { color: #2f5597; }
.wl-seg button.on { background: #fff; color: #1f3864; font-weight: 700; box-shadow: 0 1px 3px rgba(31, 56, 100, .16); }

.wl-cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 14px; align-items: stretch; }
.wl-cal { border: 1px solid #e3e9f2; border-radius: 14px; padding: 13px 15px 11px;
  background: linear-gradient(180deg, #fbfdff, #ffffff 110px); }
.wl-cal-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wl-cal-title { font-size: 12px; font-weight: 700; color: #1f3864; }
.wl-cal-title span { font-weight: 400; font-size: 10px; color: #9aa5b5; margin-left: 8px; }
.wl-cal-nav { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.wl-cal-m { font-size: 12px; font-weight: 700; color: #1f3864; min-width: 88px; text-align: center; letter-spacing: .3px; }
.wl-cal-btn { width: 24px; height: 24px; padding: 0; border-radius: 7px; border: 1px solid #dbe3ee;
  background: #fff; color: #55627a; font-size: 13px; line-height: 1; cursor: pointer; font-family: inherit; }
.wl-cal-btn:hover { border-color: #2f5597; color: #2f5597; background: #f3f7ff; }
.wl-cal-today { margin-left: 5px; padding: 4px 10px; border: 1px solid #dbe3ee; border-radius: 7px;
  background: #fff; color: #5b6572; font-size: 11px; cursor: pointer; font-family: inherit; line-height: 1.6; }
.wl-cal-today:hover { border-color: #2f5597; color: #2f5597; background: #f3f7ff; }
.wl-cal-sum { display: flex; gap: 14px; flex-wrap: wrap; padding: 8px 0 11px; font-size: 11px; color: #7a879c; }
.wl-cal-sum b { color: #2f5597; font-size: 13px; margin: 0 2px; }
.wl-cal-wd { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding-bottom: 6px; }
.wl-cal-wd span { text-align: center; font-size: 10px; color: #9aa5b5; letter-spacing: .5px; }
.wl-cal-wd span.wk { color: #c08a1e; }
.wl-cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wl-cd { position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 96px; padding: 10px 12px 9px; border-radius: 11px; border: 1px solid #eef2f8;
  background: #fff; cursor: pointer; text-align: left; font-family: inherit; overflow: hidden;
  transition: transform .12s, box-shadow .12s, border-color .12s; }
.wl-cd:hover { transform: translateY(-1px); border-color: #9fb8e8; box-shadow: 0 4px 12px rgba(31, 56, 100, .10); }
.wl-cd-n { font-size: 13px; font-weight: 600; color: #5b6572; line-height: 1; }
.wl-cd-n.is-today { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  margin: -3px 0 0 -5px; border-radius: 50%; background: #2f5597; color: #fff; }
.wl-cd-c { align-self: flex-end; font-size: 11px; font-weight: 700; line-height: 1; color: #b6c0cd; min-height: 21px; }
.wl-cd-c.on { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px;
  padding: 0 6px; border-radius: 11px; background: #2f5597; color: #fff; box-shadow: 0 1px 3px rgba(47, 85, 151, .28); }
.wl-cd.today { background: #f5faff; box-shadow: inset 0 0 0 1.5px rgba(47, 85, 151, .45); }
.wl-cd.lv1 { background: #dcebfd; border-color: #cde1fb; }
.wl-cd.lv2 { background: #c2d9fa; border-color: #aecbf8; }
.wl-cd.lv3 { background: #a1c5f5; border-color: #8bb5f1; }
.wl-cd.lv4 { background: #7fadf0; border-color: #6ba0eb; }
.wl-cd.lv3 .wl-cd-n, .wl-cd.lv4 .wl-cd-n { color: #17335f; }
.wl-cd.lv4 .wl-cd-c.on { background: #17335f; }
.wl-cd.on { border-color: #2f5597; box-shadow: 0 0 0 2px rgba(47, 85, 151, .20), 0 6px 14px rgba(31, 56, 100, .14); z-index: 1; }
.wl-cd.out { background: #fbfcfe; border-color: transparent; cursor: default; }
.wl-cd.out .wl-cd-n { color: #cbd4e0; }
.wl-cd.out:hover { transform: none; box-shadow: none; border-color: transparent; }
.wl-cal-lg { display: flex; align-items: center; gap: 5px; padding-top: 11px; font-size: 10px; color: #9aa5b5; }
.wl-cal-lg i { display: block; width: 13px; height: 13px; border-radius: 4px; border: 1px solid #e6ecf5; }
.wl-cal-lg i.lv0 { background: #fff; }
.wl-cal-lg i.lv1 { background: #dcebfd; }
.wl-cal-lg i.lv2 { background: #c2d9fa; }
.wl-cal-lg i.lv3 { background: #a1c5f5; }
.wl-cal-lg i.lv4 { background: #7fadf0; }
.wl-cal-lg em { margin-left: auto; font-style: normal; display: flex; align-items: center; gap: 5px; color: #9aa5b5; }
.wl-cal-lg span { margin: 0 1px; }

.wl-cal-d { border: 1px solid #e3e9f2; border-radius: 14px; background: #fff; display: flex;
  flex-direction: column; overflow: hidden; }
.wl-cd-h { display: flex; align-items: baseline; gap: 7px; padding: 10px 13px; border-radius: 14px 14px 0 0;
  border-bottom: 1px solid #eef1f6; background: linear-gradient(180deg, #fbfdff, #f5f9ff); }
.wl-cd-h b { font-size: 13px; color: #1f3864; }
.wl-cd-h span { font-size: 10px; color: #9aa5b5; }
.wl-cd-h em { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 700; color: #2f5597;
  background: #eaf2ff; border-radius: 8px; padding: 2px 8px; }
.wl-cd-b { overflow: auto; padding: 5px 5px 8px; flex: 1; min-height: 0; }
.wl-ce { display: flex; gap: 9px; padding: 9px 10px; border-radius: 9px; border-bottom: 1px dashed #f2f6fb; }
.wl-ce:last-child { border-bottom: 0; }
.wl-ce:hover { background: #f7faff; }
.wl-ce-d { width: 6px; height: 6px; border-radius: 50%; margin-top: 6px; flex: 0 0 6px; }
.wl-ce-t { flex: 1; min-width: 0; }
.wl-ce-l1 { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.wl-ce-tm { font-size: 10px; color: #8a6218; font-weight: 700; flex: 0 0 auto; }
.wl-ce-pn { font-size: 11px; color: #2f5597; font-weight: 600; cursor: pointer; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-ce-pn:hover { text-decoration: underline; }
.wl-ce-x { font-size: 11px; color: #3c4658; line-height: 1.55; margin-top: 3px; word-break: break-all;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wl-ce-m { font-size: 10px; color: #9aa5b5; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-cd-e { padding: 40px 12px; text-align: center; color: #9aa5b5; font-size: 11px; line-height: 1.9; }
@media (max-width: 1180px) {
  .wl-cal-wrap { grid-template-columns: 1fr; }
  .wl-cal-d { max-height: none; }
}
@media (max-width: 720px) {
  .wl-cd { min-height: 62px; padding: 6px 7px 5px; }
  .wl-cal-g, .wl-cal-wd { gap: 4px; }
}

@keyframes wlCalIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.wl-cal { animation: wlCalIn .22s ease-out; }

@media print {
  .hero, .lc-chips, .lc-ring, .wl-orbs, .wl-chart, .wl-statusbar, .wl-legend, .lc-ops, .wl-seg, .wl-cal-nav { display: none !important; }
}

/* ==================== 首页右上角预警提醒铃铛 ==================== */
.alert-box { position: relative; margin-left: 2px; display: inline-flex; align-items: center; }
.alert-bell {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px; border: 1px solid #dbe3ee;
  background: #fff; color: #55627a; cursor: pointer; padding: 0; transition: all .15s;
}
.alert-bell:hover { border-color: #2f5597; color: #2f5597; background: #f3f7ff; }
.alert-bell.has-new { color: #c0392b; border-color: #f4d3cd; background: #fef6f4; }
.alert-bell.has-new .ab-svg { animation: abSwing 2.6s ease-in-out infinite; transform-origin: 50% 12%; }
@keyframes abSwing {
  0%, 70%, 100% { transform: rotate(0deg); }
  76% { transform: rotate(10deg); }
  82% { transform: rotate(-8deg); }
  88% { transform: rotate(5deg); }
  94% { transform: rotate(-3deg); }
}
.ab-badge {
  position: absolute; top: -5px; right: -7px; min-width: 17px; height: 17px; padding: 0 5px;
  border-radius: 9px; background: #e0503c; color: #fff; font-size: 10px; font-weight: 700;
  line-height: 17px; text-align: center; box-shadow: 0 2px 6px rgba(224, 80, 60, .35);
  box-sizing: border-box;
}

/* 浮层：固定在顶栏下方，右侧对齐 */
.alert-pop {
  position: fixed; top: 52px; right: 18px; width: 400px; max-width: calc(100vw - 28px);
  background: #fff; border: 1px solid #d9e2ef; border-radius: 12px;
  box-shadow: 0 18px 46px rgba(31, 56, 100, .20), 0 2px 6px rgba(31, 56, 100, .06);
  z-index: 900; display: flex; flex-direction: column; max-height: calc(100vh - 88px);
  overflow: hidden;
}
.ap-head {
  display: flex; align-items: center; gap: 8px; padding: 11px 14px;
  border-bottom: 1px solid #eef1f6; background: linear-gradient(180deg, #fbfdff, #f5f9ff);
}
.ap-head b { font-size: 13px; color: #1f3864; }
.ap-cnt { font-size: 11px; color: #7a879c; }
.ap-cnt em { color: #c0392b; font-style: normal; font-weight: 700; }
.ap-readall {
  margin-left: auto; border: 1px solid #dbe3ee; background: #fff; color: #3c4658;
  font-size: 11px; padding: 4px 10px; border-radius: 6px; cursor: pointer; white-space: nowrap;
}
.ap-readall:hover { border-color: #2f5597; color: #2f5597; }

.ap-body { overflow: auto; padding: 4px 0 6px; }
.ap-group { border-left: 3px solid transparent; }
.ap-group.g-danger { border-left-color: #f0c4bb; }
.ap-group.g-warn { border-left-color: #f2e0b4; }
.ap-group.g-info { border-left-color: #cbdaf3; }
.ap-group.g-service { border-left-color: #b9c9e8; }
.ap-gt {
  display: flex; align-items: center; gap: 6px; padding: 8px 14px 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .4px; color: #55627a;
}
.ap-group.g-danger .ap-gt { color: #b8442f; }
.ap-group.g-warn .ap-gt { color: #a9740a; }
.ap-group.g-info .ap-gt { color: #2f5597; }
.ap-group.g-service .ap-gt { color: #2f5597; }
.ap-gn { background: #eef2f8; color: #55627a; border-radius: 9px; padding: 0 6px; font-size: 10px; font-weight: 700; }

.ap-item {
  display: flex; gap: 8px; padding: 7px 14px 8px; cursor: pointer;
  border-left: 0; transition: background .12s;
}
.ap-item:hover { background: #f4f8ff; }
.ap-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; flex: 0 0 7px; background: #d9a441; }
.ap-item.lv-danger .ap-dot { background: #e0503c; }
.ap-item.lv-warn .ap-dot { background: #d9a441; }
.ap-item.lv-info .ap-dot { background: #2f5597; }
.ap-txt { min-width: 0; flex: 1; }
.ap-t { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #25314b; }
.ap-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-d { font-size: 11px; color: #7a879c; margin-top: 2px; line-height: 1.65; word-break: break-all; }
.ap-item.is-read { opacity: .58; }
.ap-item.is-read .ap-nm { font-weight: 500; }
.ap-item.is-read .ap-dot { background: #c8d0dc; }

.ap-empty { padding: 30px 14px 26px; text-align: center; color: #55627a; font-size: 12px; }
.ap-ok { display: block; width: 38px; height: 38px; margin: 0 auto 10px; border-radius: 50%;
  background: #e9f7ee; color: #2e9e6b; font-size: 19px; line-height: 38px; font-weight: 700; }
.ap-empty-tip { font-size: 11px; color: #9aa5b8; margin-top: 5px; }

.ap-foot {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  border-top: 1px solid #eef1f6; background: #fafcff; font-size: 11px; color: #7a879c;
}
.ap-more { border: 0; background: transparent; color: #2f5597; font-size: 11px; cursor: pointer; padding: 0; }
.ap-more:hover { text-decoration: underline; }
.ap-saved { margin-left: auto; color: #9aa5b8; }

@media (max-width: 900px) {
  .alert-box { display: none !important; }
}
