:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --line: #e5e9f0;
  --text: #1f2937;
  --text-2: #6b7280;
  --text-3: #9ca3af;
  --brand: #1e5eff;
  --brand-2: #3b82f6;
  --brand-soft: #eef3ff;
  --green: #16a34a;
  --green-soft: #eaf7ee;
  --orange: #ea8a00;
  --orange-soft: #fff6e6;
  --red: #dc2626;
  --red-soft: #fdeeee;
  --sidebar: #131b2c;
  --sidebar-hover: #1e2a42;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 12px rgba(16, 24, 40, .06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  background: var(--bg); color: var(--text); font-size: 13.5px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 13.5px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cfd6e2; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 登录 ---------- */
.login-wrap {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0d1a33 0%, #13305c 45%, #1e5eff 130%);
  z-index: 100;
}
.login-card {
  width: 380px; background: #fff; border-radius: 16px; padding: 34px 32px 28px;
  box-shadow: 0 24px 60px rgba(4, 15, 40, .35);
}
.login-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.login-logo .mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, #1e5eff, #4f8bff); color: #fff; font-weight: 700; font-size: 15px;
}
.login-logo h1 { font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.login-sub { color: var(--text-3); font-size: 12.5px; margin: 6px 0 22px 44px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; outline: none; transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
/* 数字输入：隐藏上下微调按钮，金额一律手敲 */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* ---------- 布局 ---------- */
.app { display: none; height: 100%; }
.app.on { display: flex; }
.sidebar {
  width: 208px; flex: 0 0 208px; background: var(--sidebar); color: #c7d0e0;
  display: flex; flex-direction: column; padding: 16px 0 10px;
}
.sb-brand { display: flex; align-items: center; gap: 9px; padding: 0 18px 18px; }
.brand-img { width: 32px; height: 32px; border-radius: 50%; background: #fff; object-fit: cover; flex: none; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.sb-brand .mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg,#1e5eff,#4f8bff); color:#fff; font-weight:700; font-size:13px; }
.sb-brand span { color: #fff; font-weight: 650; font-size: 14.5px; letter-spacing: .2px; }
.sb-nav { flex: 1; overflow-y: auto; }
.sb-group { font-size: 11px; color: #5d6b83; padding: 12px 18px 6px; letter-spacing: .6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 18px; font-size: 13.5px;
  color: #c7d0e0; cursor: pointer; border-left: 3px solid transparent; transition: .14s;
}
.nav-item:hover { background: var(--sidebar-hover); color: #fff; }
.nav-item.on { background: var(--sidebar-hover); color: #fff; border-left-color: var(--brand-2); font-weight: 600; }
.nav-item .ico { width: 16px; text-align: center; opacity: .85; font-size: 13px; }
.sb-foot { padding: 12px 16px 0; border-top: 1px solid #1e2a42; font-size: 12px; color: #7f8ca3; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 54px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 20px; gap: 14px; flex: 0 0 54px;
}
.topbar h2 { font-size: 15.5px; font-weight: 650; }
.topbar .crumb { color: var(--text-3); font-size: 12.5px; }
.spacer { flex: 1; }
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.content { flex: 1; overflow: auto; padding: 18px 20px 40px; }
.view { display: none; }
.view.on { display: block; }

/* ---------- 卡片 / 表格 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-hd { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.card-hd h3 { font-size: 14px; font-weight: 650; }
.card-hd .sub { color: var(--text-3); font-size: 12px; }
.card-bd { padding: 14px 16px; }

.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar input[type=text], .toolbar select {
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; outline: none; min-width: 130px;
}
.toolbar input[type=text]:focus, .toolbar select:focus { border-color: var(--brand-2); }

.btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 13px; transition: .14s; white-space: nowrap;
}
.btn:hover { border-color: #c8d2e2; background: #fafbfd; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: #1a52e0; }
.btn.ghost { border-color: transparent; color: var(--brand); background: transparent; }
.btn.sm { padding: 4px 9px; font-size: 12.5px; border-radius: 7px; }
.btn.danger { color: var(--red); border-color: #f2c9c9; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.tbl-scroll { overflow: auto; max-height: calc(100vh - 250px); border-radius: var(--radius); }
table.tbl { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; white-space: nowrap; }
table.tbl th {
  position: sticky; top: 0; z-index: 3; background: #f7f9fc; color: var(--text-2);
  font-weight: 600; font-size: 12.5px; text-align: left; padding: 9px 11px;
  border-bottom: 1px solid var(--line); border-top: 1px solid var(--line);
}
table.tbl th.grp { text-align: center; border-left: 1px solid var(--line); }
table.tbl td { padding: 9px 11px; border-bottom: 1px solid #f0f3f8; background: #fff; }
table.tbl tbody tr:hover td { background: #f8fbff; }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl td.sticky, table.tbl th.sticky { position: sticky; left: 0; z-index: 2; background: #fff; box-shadow: 1px 0 0 var(--line); }
table.tbl th.sticky { z-index: 4; background: #f7f9fc; }
table.tbl tbody tr:hover td.sticky { background: #f8fbff; }
table.tbl td.muted { color: var(--text-3); }
/* 紧凑表格：单元格可换行，整表不出现横向滚动条 */
table.tbl.wrap { white-space: normal; table-layout: auto; }
table.tbl.wrap th, table.tbl.wrap td { padding: 8px 9px; }
table.tbl.wrap td { word-break: break-word; }
table.tbl.wrap .sub { color: var(--text-3); font-size: 11.5px; line-height: 1.5; }
table.tbl .nowrap { white-space: nowrap; }
/* 订单列表操作列：右侧固定，无需横向拖动也能编辑/删除 */
table.tbl th.ops-col, table.tbl td.ops-col { position: sticky; right: 0; z-index: 3; background: #fff; box-shadow: -1px 0 0 var(--line); }
table.tbl th.ops-col { z-index: 5; background: #f7f9fc; }
table.tbl th.grp.ops-grp { position: sticky; right: 0; z-index: 6; background: #f7f9fc; }
table.tbl tbody tr:hover td.ops-col { background: #f8fbff; }
table.tbl tr.sub-row td.ops-col { background: #f8fafc; }
table.tbl tr.total-row td.ops-col { background: #eef7f0; }
table.tbl td.ops-col .btn { margin-left: 2px; }
table.tbl.wrap td.nowrap { padding-left: 6px; padding-right: 6px; }
table.tbl.wrap td.nowrap .btn.sm { padding: 2px 6px; margin-left: 2px; }
.empty { text-align: center; color: var(--text-3); padding: 42px 0; font-size: 13px; }

.tag { display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: 11.5px; line-height: 18px; background: var(--brand-soft); color: var(--brand); }
.tag.g { background: var(--green-soft); color: var(--green); }
.tag.o { background: var(--orange-soft); color: var(--orange); }
.tag.r { background: var(--red-soft); color: var(--red); }
.tag.n { background: #f1f3f7; color: var(--text-2); }
.money { font-variant-numeric: tabular-nums; }
.neg { color: var(--red); }
.pos { color: var(--green); }

/* ---------- KPI ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
@media (max-width: 1280px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .kpi-grid { grid-template-columns: 1fr; } }
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 15px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.kpi::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); opacity: .9; }
.kpi.g::after { background: var(--green); }
.kpi.o::after { background: var(--orange); }
.kpi.r::after { background: var(--red); }
.kpi .k { font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.kpi .v { font-size: 21px; font-weight: 680; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 12px; font-weight: 500; color: var(--text-3); margin-left: 3px; }
.kpi .d { font-size: 11.5px; color: var(--text-3); margin-top: 5px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 1100px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* ---------- 条形图 ---------- */
.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 96px 1fr 78px; align-items: center; gap: 10px; font-size: 12.5px; }
.bar-row .name { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { background: #f1f4f9; border-radius: 5px; height: 8px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #4f8bff, #1e5eff); transition: width .4s; }
.bar-row .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }

/* ---------- 进度 ---------- */
.prog { display: flex; align-items: center; gap: 7px; }
.prog-track { flex: 1; min-width: 54px; height: 6px; background: #eef1f6; border-radius: 4px; overflow: hidden; }
.prog-fill { height: 100%; background: var(--brand-2); border-radius: 4px; }
.prog-fill.g { background: var(--green); }
.prog-fill.o { background: var(--orange); }
.prog span { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; width: 34px; text-align: right; }

/* ---------- 弹窗 ---------- */
.mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .42); z-index: 60;
  display: none; align-items: flex-start; justify-content: center; padding: 42px 16px; overflow: auto;
  backdrop-filter: blur(2px);
}
.mask.on { display: flex; }
.modal { width: 900px; max-width: 100%; background: #fff; border-radius: 14px; box-shadow: 0 24px 64px rgba(4,15,40,.28); }
.modal.narrow { width: 520px; }
.modal.wide { width: 1080px; }
.modal-hd { display: flex; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.modal-hd h3 { font-size: 15px; font-weight: 650; }
.modal-bd { padding: 18px 20px; max-height: calc(100vh - 220px); overflow: auto; }
.modal-ft { display: flex; justify-content: flex-end; gap: 9px; padding: 13px 20px; border-top: 1px solid var(--line); background: #fafbfd; border-radius: 0 0 14px 14px; }

.sec-title {
  font-size: 12.5px; font-weight: 650; color: var(--brand); letter-spacing: .3px;
  margin: 4px 0 10px; padding-left: 8px; border-left: 3px solid var(--brand-2);
}
.sec-title:not(:first-child) { margin-top: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 14px; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
.form-grid .span2 { grid-column: span 2; }
.form-grid .span3 { grid-column: span 3; }
.hint { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.calc-box {
  background: var(--brand-soft); border: 1px dashed #c8d8ff; border-radius: 9px;
  padding: 10px 13px; font-size: 12.5px; color: #2c4a8a; line-height: 1.9;
}
.calc-box b { font-variant-numeric: tabular-nums; }

/* ---------- 导入 ---------- */
.drop {
  border: 2px dashed #cfd9ea; border-radius: 12px; padding: 34px; text-align: center;
  color: var(--text-2); background: #fbfcfe; transition: .18s; cursor: pointer;
}
.drop:hover, .drop.hover { border-color: var(--brand-2); background: var(--brand-soft); }
.drop .big { font-size: 26px; margin-bottom: 6px; }
.map-tbl td { padding: 7px 10px; border-bottom: 1px solid #f0f3f8; font-size: 12.5px; }
.map-tbl th { font-size: 12px; color: var(--text-2); text-align: left; padding: 7px 10px; background: #f7f9fc; }
.ok-line { color: var(--green); }

/* ---------- 提示条 ---------- */
.toast {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%) translateY(-16px);
  background: #1f2937; color: #fff; padding: 9px 18px; border-radius: 9px; font-size: 13px;
  opacity: 0; pointer-events: none; transition: .22s; z-index: 200; box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: #b91c1c; }
.toast.ok { background: #15803d; }

/* ---------- v1.1：可搜索下拉 / 标签页 / 时间线 / 需求块 ---------- */
.combo { position: relative; }
.combo-input { width: 100%; }
.combo-list {
  position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 2px);
  max-height: 240px; overflow-y: auto; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(16,24,40,.12); padding: 4px;
}
.combo-item { padding: 6px 10px; border-radius: 6px; font-size: 13px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combo-item:hover { background: #eef4ff; color: var(--brand); }
.combo-empty { padding: 10px; color: var(--text-3); font-size: 12.5px; text-align: center; }
.kv { display: flex; justify-content: space-between; font-size: 12.5px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.kv span { color: var(--text-3); }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.tab { padding: 8px 16px; font-size: 13.5px; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.chip { display: inline-block; padding: 3px 10px; margin: 0 6px 6px 0; background: #f2f5fa; border: 1px solid var(--line); border-radius: 20px; font-size: 12.5px; color: var(--text-2); }
.city-grid { display: flex; flex-wrap: wrap; max-height: 340px; overflow-y: auto; }
.req-box { background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.7; white-space: pre-wrap; margin-bottom: 10px; }
.req-box.sm { min-height: 52px; }
.timeline { margin: 6px 0 14px; max-height: 280px; overflow-y: auto; padding-left: 4px; }
.tl-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 6px; flex-shrink: 0; }
.tl-body { flex: 1; }
.tl-hd { font-size: 12.5px; color: var(--text-2); }
.tl-txt { font-size: 13px; margin-top: 2px; }
.tl-issue { font-size: 12px; color: #b45309; margin-top: 2px; }
.sec-title button { margin-left: 8px; }

/* ---------- v1.2：筛选栏 / 列配置 / 分组小计 / 年度切换 ---------- */
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.filterbar input[type=text] { width: 200px; }
.filterbar select { min-width: 110px; }
.fl { font-size: 12.5px; color: var(--text-3); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { padding: 5px 12px; border: 1px solid var(--line); border-radius: 20px; font-size: 12.5px; color: var(--text-2); cursor: pointer; background: #fff; user-select: none; }
.chip-btn:hover { border-color: var(--brand); color: var(--brand); }
.chip-btn.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.col-panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; box-shadow: 0 6px 20px rgba(16,24,40,.06); }
.col-panel-hd { display: flex; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.col-panel-bd { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 18px; padding: 12px; max-height: 320px; overflow-y: auto; }
.col-group-t { font-size: 12px; color: var(--text-3); margin-bottom: 6px; font-weight: 600; }
.col-chk { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 2px 0; cursor: pointer; color: var(--text-2); }
.col-chk input { accent-color: var(--brand); }
.col-chk:hover { color: var(--brand); }

.tbl tr.grp-row td { background: #eef4ff; color: #1e40af; font-weight: 600; font-size: 12.5px; padding: 6px 10px; position: static; }
.tbl tr.sub-row td { background: #f8fafc; font-weight: 600; color: var(--text-2); border-top: 1px dashed var(--line); }
.tbl tr.total-row td { background: #eef7f0; font-weight: 700; color: #14532d; border-top: 2px solid #86efac; }

/* ---------- v1.3：三级权限 / 人员点选 / 交付进度加号 / 登录提醒 ---------- */
.super-only { display: none; }
.sec-title { display: flex; align-items: center; gap: 8px; }
.sec-title .spacer { flex: 1; }
.sec-title button { margin-left: 0; }

.picker {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; background: #fff; position: relative;
}
.picker:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.picker-chips { display: flex; flex-wrap: wrap; gap: 2px; }
.picker .chip { cursor: pointer; margin: 2px 4px 2px 0; flex: none; white-space: nowrap; display: inline-flex; align-items: center; }
.picker .chip i { font-style: normal; margin-left: 6px; color: var(--text-3); }
.picker .chip:hover { border-color: var(--red); color: var(--red); }
.picker .chip .x { font-style: normal; margin-left: 5px; color: var(--text-3); cursor: pointer; }
.picker .chip .x:hover { color: var(--red); }
.chip-share { width: 54px; border: none; border-bottom: 1px dashed var(--line); background: transparent; font-size: 12px; padding: 0 0 1px 3px; margin-left: 5px; text-align: center; outline: none; color: var(--text-1); }
.chip-share:focus { border-bottom-color: var(--brand); }
.chip-share::-webkit-outer-spin-button, .chip-share::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.picker-input { border: none; outline: none; width: 100%; font-size: 13px; padding: 3px 0; background: transparent; }
.picker-list {
  position: absolute; z-index: 70; left: 0; right: 0; top: calc(100% + 2px);
  max-height: 220px; overflow-y: auto; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(16,24,40,.12); padding: 4px;
}
.picker-item { padding: 6px 10px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.picker-item:hover { background: #eef4ff; color: var(--brand); }

.draft { border: 1px solid #c8d8ff; background: #f7faff; border-radius: 9px; padding: 10px 12px 12px; margin-bottom: 10px; }
.draft-hd { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; }
.draft-hd .spacer { flex: 1; }
/* 交付进度填报：进展用整行大输入框，进度百分比与风险在下一行 */
.draft-bd { display: block; }
.draft-row, .draft-field { display: flex; flex-direction: column; gap: 4px; }
.draft-row { margin-bottom: 9px; }
.draft-row label, .draft-field label { font-size: 12.5px; color: var(--text-2); }
.draft-field label.ghost-label { color: transparent; }
.draft-bd textarea.d-content {
  width: 100%; min-height: 74px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; outline: none; font-size: 13.5px; line-height: 1.6; resize: vertical;
}
.draft-bd textarea.d-content:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.draft-foot { display: grid; grid-template-columns: 200px minmax(220px, 1fr) 96px; gap: 12px; align-items: end; }
.draft-field.grow { min-width: 0; }
.draft-bd input.d-issue {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; outline: none; font-size: 13.5px;
}
.pct-input { display: flex; align-items: center; gap: 0; }
.pct-input input.d-progress {
  width: 100%; padding: 9px 34px 9px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; outline: none; font-size: 16px; font-weight: 700; color: var(--brand);
  text-align: right; font-variant-numeric: tabular-nums;
}
.pct-input input.d-progress:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.pct-input span { margin-left: -24px; font-size: 13px; color: var(--text-3); pointer-events: none; }
@media (max-width: 900px) { .draft-foot { grid-template-columns: 1fr; } }

/* 关联商机模糊搜索点选 */
.pick-box { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.pick-hd { display: flex; gap: 8px; align-items: center; padding: 8px; border-bottom: 1px solid var(--line); background: #fafbfe; }
.pick-hd input { flex: 1; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; outline: none; font-size: 13px; }
.pick-hd input:focus { border-color: var(--brand-2); }
.pick-list { max-height: 176px; overflow-y: auto; }
.pick-item { padding: 7px 11px; border-bottom: 1px dashed #eef1f6; cursor: pointer; font-size: 13px; line-height: 1.5; }
.pick-item:last-child { border-bottom: 0; }
.pick-item:hover { background: #f5f9ff; }
.pick-item.on { background: var(--brand-soft, #eef4ff); box-shadow: inset 3px 0 0 var(--brand); }
.pick-item .pick-sub { display: block; color: var(--text-3); font-size: 11.5px; }
.pick-empty { padding: 14px 11px; color: var(--text-3); font-size: 12.5px; text-align: center; }
.pick-cur { margin-top: 6px; font-size: 12.5px; color: var(--text-2); }
.pick-cur b { color: var(--brand); }
/* 归母订单：左单选母单 / 右多选子单 */
.gm-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gm-t { font-size: 12px; font-weight: 650; color: var(--text-2); margin-bottom: 5px; }
.pick-hd input:disabled { background: #f4f6f9; color: var(--text-3); cursor: not-allowed; }
.gm-wrap .pick-list { max-height: 190px; }
/* 母单折叠树 */
table.tbl tr.parent-row > td { background: #f6f9ff; }
table.tbl tr.parent-row > td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
table.tbl tr.child-row > td { background: #fcfdff; color: var(--text-2); }
table.tbl tr.child-row > td:first-child { padding-left: 24px; }
.gx { border: 0; background: transparent; cursor: pointer; color: var(--brand); font-size: 11px; padding: 0 4px 0 0; line-height: 1; }
.gx:hover { color: var(--brand-2); }
.gx-dot { color: var(--text-3); margin-right: 3px; }

.notice-list { max-height: 380px; overflow-y: auto; margin-top: 10px; border-top: 1px solid var(--line); }
.notice-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.notice-time { width: 92px; flex-shrink: 0; font-size: 12px; color: var(--text-3); }
.notice-main { flex: 1; font-size: 13px; }
.notice-title { margin-left: 6px; color: var(--text-2); }
.notice-detail { font-size: 12px; color: var(--text-3); margin-top: 2px; line-height: 1.55; }
.tbl tfoot td { background: #eef7f0; font-weight: 700; color: #14532d; }


/* ===== v2.6：母订单分组行 + 全表统一列宽（无论筛选与否，列宽布局保持一致） ===== */
table.tbl tr.group-row > td { background: #f2f8ff; font-weight: 600; }
table.tbl tr.group-row > td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
table.tbl tr.group-row > td.sticky { background: #f2f8ff; }
table.tbl tr.group-row > td.num, table.tbl tr.group-row > td.muted { font-weight: 400; }
table.tbl th[data-col] { min-width: 88px; }
table.tbl th[data-col="orderNo"] { min-width: 150px; }
table.tbl th[data-col="name"] { min-width: 190px; }
table.tbl th[data-col="owner"] { min-width: 90px; }
table.tbl th[data-col="province"] { min-width: 84px; }
table.tbl th[data-col="city"] { min-width: 108px; }
table.tbl th[data-col="customerName"] { min-width: 108px; }
table.tbl th[data-col="sourceOppName"] { min-width: 132px; }
table.tbl th[data-col="grouping"] { min-width: 132px; }
table.tbl th[data-col="amount"] { min-width: 118px; }
table.tbl th[data-col="season"] { min-width: 68px; }
table.tbl th[data-col="isSigned"] { min-width: 82px; }
table.tbl th[data-col="contractArchived"] { min-width: 90px; }
table.tbl th[data-col="signEntity"] { min-width: 108px; }
table.tbl th[data-col="year"] { min-width: 78px; }
table.tbl th[data-col="phase"] { min-width: 84px; }
table.tbl th[data-col="createdAt"] { min-width: 96px; }
table.tbl th[data-col="ops"] { min-width: 84px; }
table.tbl th[data-col="invSurvey"], table.tbl th[data-col="invGrowth"], table.tbl th[data-col="invLoss"] { min-width: 88px; }
table.tbl th[data-col="invTotal"] { min-width: 96px; }
table.tbl th[data-col="unInvoiced"] { min-width: 92px; }
table.tbl th[data-col="receivedAmount"] { min-width: 104px; }
table.tbl th[data-col="unpaidAmount"] { min-width: 118px; }
table.tbl th[data-col="receiveRate"] { min-width: 76px; }
table.tbl th[data-col="paidOff"] { min-width: 78px; }
table.tbl th[data-col="invUnreceived"] { min-width: 104px; }
table.tbl th[data-col="costProjectAmount"] { min-width: 108px; }
table.tbl th[data-col="costProjectReceived"] { min-width: 118px; }
table.tbl th[data-col="flowAmount"], table.tbl th[data-col="flowProcessed"] { min-width: 96px; }
table.tbl th[data-col="flowTaxRate"], table.tbl th[data-col="flowTax"] { min-width: 92px; }
table.tbl th[data-col="outsourcingCost"], table.tbl th[data-col="outsourcingPaid"], table.tbl th[data-col="outsourcingUnpaid"] { min-width: 96px; }
table.tbl th[data-col="salesCost"] { min-width: 96px; }
table.tbl th[data-col="salesCostPaid"] { min-width: 110px; }
table.tbl th[data-col="devExpertCost"] { min-width: 112px; }
table.tbl th[data-col="imageCost"] { min-width: 96px; }
table.tbl th[data-col="grossCost"] { min-width: 96px; }
table.tbl th[data-col="grossProfit"] { min-width: 104px; }
table.tbl th[data-col="grossRate"] { min-width: 76px; }
table.tbl th[data-col="operators"] { min-width: 100px; }
table.tbl th[data-col="internalMembers"] { min-width: 130px; }
table.tbl th[data-col="remark"] { min-width: 130px; }