/* alihealth-finance 样式。原生 CSS,零依赖。配合 app.js 的类名。 */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background: #f1f5f9; color: #0f172a; font-size: 14px; line-height: 1.5; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 0 20px; height: 52px;
  background: #0f172a; color: #e2e8f0; position: sticky; top: 0; z-index: 10; }
.brand { font-weight: 600; font-size: 15px; white-space: nowrap; }
.tabs { display: flex; gap: 4px; flex: 1; }
.tab { background: transparent; color: #94a3b8; border: none; padding: 6px 14px; border-radius: 6px;
  cursor: pointer; font-size: 13px; }
.tab:hover { color: #e2e8f0; background: rgba(255,255,255,0.06); }
.tab.active { color: #fff; background: #1e40af; }
.topright { margin-left: auto; }
.btn-link { background: transparent; color: #94a3b8; border: 1px solid #334155; padding: 5px 12px;
  border-radius: 6px; cursor: pointer; font-size: 12px; }
.btn-link:hover { color: #fff; border-color: #64748b; }
.oph-btn { font-size: 13px; line-height: 1; padding: 4px 9px; }   /* 链接归属变更史按钮(📅N/＋),复用 .btn-link */
main { max-width: 1280px; margin: 0 auto; padding: 16px 20px 60px; }
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; }
.card-h { font-weight: 600; font-size: 15px; margin-bottom: 12px; display: flex; align-items: baseline; gap: 10px; }
.hint { color: #64748b; font-size: 12px; font-weight: 400; }
.warn { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; padding: 8px 12px; border-radius: 6px;
  font-size: 13px; margin: 8px 0; }
.ok { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; padding: 8px 12px; border-radius: 6px;
  font-size: 13px; margin: 8px 0; }
.err { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; padding: 8px 12px; border-radius: 6px; }
.loading { color: #64748b; padding: 20px; text-align: center; }
#pane { position: relative; }
/* 顶部刷新进度条(stale-while-revalidate 期间流动指示) */
.ah-progress { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: transparent; overflow: hidden; z-index: 5; pointer-events: none; }
.ah-progress.on::after { content: ''; position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: #2563eb; animation: ah-bar 1s linear infinite; }
@keyframes ah-bar { 0% { left: -30%; } 100% { left: 100%; } }
/* zone 更新中:旧数据半透表示 stale,数据到位后由 render 函数移除该 class */
.ah-stale > * { opacity: 0.45; transition: opacity .15s ease; }
/* 轻量骨架(首屏/zone 空时替代满屏「加载中…」大字) */
.skel { padding: 22px; display: flex; align-items: center; gap: 10px; }
.skel-dot { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; animation: ah-pulse 1s infinite; flex: none; }
.skel-line { display: inline-block; width: 130px; height: 10px; border-radius: 4px;
  background: linear-gradient(90deg,#e5e7eb,#f1f5f9,#e5e7eb); background-size: 200% 100%; animation: ah-shimmer 1.2s infinite; }
@keyframes ah-pulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes ah-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filters label { font-size: 13px; color: #475569; }
.filters input, .inp { padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 13px; }
/* 仪表盘筛选栏:置顶 sticky(topbar 52px 之下),下滑持久可见;克隆 thead 锚其下(app.js _updateStickyHead 动态读栏高) */
.dash-filters-bar { position: sticky; top: 52px; z-index: 9; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 16px; margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.sep { width: 1px; height: 22px; background: #e2e8f0; margin: 0 4px; }
.btn { background: #2563eb; color: #fff; border: none; padding: 7px 16px; border-radius: 6px;
  cursor: pointer; font-size: 13px; }
.btn:hover { background: #1d4ed8; }
.btn:disabled { background: #94a3b8; cursor: not-allowed; }
.btn-ghost { background: #fff; color: #334155; border: 1px solid #cbd5e1; padding: 6px 12px; border-radius: 6px;
  cursor: pointer; font-size: 12px; }
.btn-ghost:hover { background: #f8fafc; }
.btn-ok { background: #16a34a; }
.btn-ok:hover { background: #15803d; }
.btn-ok:disabled { background: #94a3b8; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px 14px; }
.kpi-l { color: #64748b; font-size: 12px; margin-bottom: 4px; }
.kpi-v { font-size: 19px; font-weight: 700; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { background: #f1f5f9; text-align: left; padding: 8px 10px; border-bottom: 2px solid #cbd5e1;
  font-weight: 600; color: #334155; white-space: nowrap; }
.tbl td { padding: 7px 10px; border-bottom: 1px solid #e2e8f0; }
.tbl.sm th, .tbl.sm td { padding: 5px 8px; font-size: 12px; }
.tbl .r { text-align: right; }
.tbl .b { font-weight: 600; }
.tbl .mono { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }
.tbl tr.total td { background: #eff6ff; font-weight: 700; border-top: 2px solid #2563eb; }
.tbl tr.st-amber td { color: #b45309; }
.tbl tr.st-red td { background: #fef2f2; }
.tbl tr.st-green td { background: #f0fdf4; }
.tbl tr.st-muted td { background: #f8fafc; color: #94a3b8; }   /* 无成交:区间内无销量(pay=0),net=0 非盈利 */
/* 看板链接明细:筛选栏 + 可排序列头 */
.tbl-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
#f_q { min-width: 220px; }
.tbl th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.tbl th.sortable:hover { background: #e2e8f0; }
.sort-ind { font-size: 10px; color: #2563eb; margin-left: 2px; }
/* 波动预警标记 */
.tbl tr.st-alert td { background: #fff1f2; }
.alert-tag { color: #dc2626; font-weight: 600; font-size: 0.85em; cursor: help; white-space: nowrap; }
.alert-cell { color: #dc2626; font-weight: 600; }
.missing-days { margin-bottom: 12px; }
.up-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.up-row input[type=file] { font-size: 12px; }
.np-chk { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-size: 13px; color: #475569; white-space: nowrap; user-select: none; }
.np-chk input { cursor: pointer; }
.preview { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #cbd5e1; }
.kv { width: 100%; border-collapse: collapse; font-size: 13px; }
.kv th { text-align: left; padding: 7px 10px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; width: 200px; color: #475569; }
.kv td { padding: 7px 10px; border-bottom: 1px solid #e2e8f0; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #1e293b; color: #fff;
  padding: 10px 20px; border-radius: 8px; font-size: 13px; z-index: 100; opacity: 0; transition: opacity .2s;
  pointer-events: none; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.toast.toast-err { background: #dc2626; opacity: 1; }
.toast.toast-ok { background: #16a34a; opacity: 1; }
.toast.toast-warn { background: #d97706; opacity: 1; }
/* 登录页 */
.auth-gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f172a, #1e3a5f); }
.auth-box { background: #fff; padding: 36px 40px; border-radius: 14px; width: 340px; text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.auth-icon { font-size: 40px; margin-bottom: 8px; }
.auth-box h2 { margin: 4px 0; font-size: 20px; }
.auth-sub { color: #64748b; font-size: 13px; margin-bottom: 20px; }
.auth-box input { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; margin-bottom: 8px; }
.auth-box button { width: 100%; padding: 10px; background: #2563eb; color: #fff; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; }
.auth-err { color: #dc2626; font-size: 12px; min-height: 16px; margin-bottom: 6px; }
.auth-divider { margin: 14px 0 10px; border-top: 1px solid #e2e8f0; position: relative; text-align: center; }
.auth-divider span { position: relative; top: -10px; background: #fff; padding: 0 10px; color: #94a3b8; font-size: 12px; }
.auth-dt-btn { display: block; width: 100%; padding: 10px; background: #fff; color: #1677ff; border: 1px solid #1677ff; border-radius: 6px; font-size: 14px; text-decoration: none; box-sizing: border-box; }
.auth-dt-btn:hover { background: #f0f6ff; }
.topright .sso-user { color: #64748b; font-size: 12px; margin-right: 8px; }
/* 数据源独立上传槽 */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.slot { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; }
.slot.has { border-color: #86efac; background: #f0fdf4; }
.slot-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.slot-h b { font-size: 13px; }
.slot .up-row { margin-top: 4px; }
.slot-prev { margin-top: 6px; }
/* 宽表(产品成本/链接归属/补单/亏损进度)横向滚动 + 首列粘性 + 表头垂直粘性。
   非宽表(仪表盘链接明细等)保持仅横向滚动,不入垂直滚动盒。:has 选现代浏览器(Chrome105+/Safari15.4+)。 */
.tblwrap { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 8px; }
.tblwrap:has(.widetbl) { overflow: auto; max-height: calc(100vh - 180px); }
.widetbl { min-width: 100%; }
.widetbl th, .widetbl td { white-space: nowrap; }
.widetbl thead th { position: sticky; top: 0; z-index: 3; }
.widetbl thead th.sticky-col { z-index: 4; }
.widetbl .sticky-col { position: sticky; left: 0; background: #f1f5f9; z-index: 2; border-right: 1px solid #cbd5e1; }
.widetbl td.sticky-col { background: #fff; }
.widetbl tr.st-amber td.sticky-col { background: #fffbeb; }
.widetbl .sticky-col2 { position: sticky; left: 0; background: #f1f5f9; z-index: 2; border-right: 1px solid #cbd5e1; }   /* 品名冻结(第二列):left 由 JS 按第一列实际宽度动态设(drawProducts 末尾),CSS left:0 为 fallback */
.widetbl td.sticky-col2 { background: #fff; }
.widetbl tr.st-amber td.sticky-col2 { background: #fffbeb; }
.widetbl thead th.sticky-col2 { z-index: 4; }
.widetbl .sticky-img { position: sticky; left: 0; background: #f1f5f9; z-index: 2; border-right: 1px solid #cbd5e1; }   /* 产品图片冻结列(2026-08-21,勾选列与国标69码之间):left 由 JS 动态设(=selW),CSS left:0 fallback */
.widetbl td.sticky-img { background: #fff; }
.widetbl tr.st-amber td.sticky-img { background: #fffbeb; }
.widetbl thead th.sticky-img { z-index: 4; }
.widetbl .sticky-act { position: sticky; right: 0; background: #fff; z-index: 2; border-left: 1px solid #cbd5e1; }   /* 操作列冻结(右侧):💾/× 横滚常驻可见(产品表30列否则末尾按钮不可达) */
.widetbl tr.st-amber td.sticky-act { background: #fffbeb; }
.widetbl thead th.sticky-act { z-index: 4; }
.widetbl .numinp { width: 78px; text-align: right; }
.widetbl .numinp.narrow { width: 58px; }   /* 包材/小费用窄列:标签/桶/外盒/内袋/内托/防伪/瓶子/其他组件费用/纸箱/超采费 */
.costtbl .r { text-align: center; }   /* 产品成本表:数字列列名与输入框居中对齐(覆盖 .tbl .r 右对齐) */
/* 产品成本批量设置:勾选列冻结(最左,在 sticky-col 左侧)+ 批量已应用行 dirty 淡蓝。z-index 镜像 sticky-col:td=2(thead 头 z3 盖之)/th=5(左上角最高,盖 sticky-col 头 z4 + top 头 z3) */
.widetbl .sticky-sel { position: sticky; left: 0; background: #f1f5f9; z-index: 2; border-right: 1px solid #cbd5e1; }
.widetbl td.sticky-sel { background: #fff; }
.widetbl tr.st-amber td.sticky-sel { background: #fffbeb; }
.widetbl thead th.sticky-sel { z-index: 5; }
.widetbl tr.batch-dirty td { background: #eff6ff; }
.widetbl tr.batch-dirty td.sticky-sel, .widetbl tr.batch-dirty td.sticky-img, .widetbl tr.batch-dirty td.sticky-col, .widetbl tr.batch-dirty td.sticky-col2, .widetbl tr.batch-dirty td.sticky-act { background: #dbeafe; }
.badge { display: inline-block; font-size: 10px; padding: 1px 5px; border-radius: 4px; margin-left: 4px; vertical-align: middle; }
.badge-cost { background: #ddd6fe; color: #5b21b6; }
.badge-fb { background: #fef3c7; color: #92400e; }
.badge-manual { background: #dbeafe; color: #1e40af; }
/* 仪表盘:单日/当月累计 分段 toggle */
.seg { display: inline-flex; border: 1px solid #cbd5e1; border-radius: 6px; overflow: hidden; }
.seg-btn { background: #fff; color: #334155; border: none; padding: 6px 14px; font-size: 13px; cursor: pointer; border-right: 1px solid #cbd5e1; }
.seg-btn:last-child { border-right: none; }
.seg-btn.active { background: #2563eb; color: #fff; }
.seg-btn:hover:not(.active) { background: #f8fafc; }
/* 仪表盘三区:运营表/链接明细 排查工具条 */
.lt-tools { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e2e8f0; }
.lt-tools .hint { margin-right: 4px; }
.alert-cell { color: #b45309; font-weight: 600; }
.zone-empty { color: #64748b; padding: 16px; text-align: center; }
/* 仪表盘 Phase1:派生比率卡(比绝对值卡更窄)+ 注释 */
.kpis-ratio { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin-bottom: 14px; }
.kpi-ratio { background: #fff; border-left: 3px solid #e2e8f0; }
.kpi-ratio .kpi-v { font-size: 17px; }
.kpi-note { color: #b45309; font-size: 11px; margin-top: 3px; }
/* 可点击的提示 chip(amber 下钻)+ 运营单元格(L1 下钻)*/
.warn.chip { cursor: pointer; transition: background .12s; }
.warn.chip:hover { background: #fde68a; }
.op-cell { cursor: pointer; text-decoration: underline dotted #94a3b8; text-underline-offset: 3px; }
.op-cell:hover { color: #1d4ed8; background: #eff6ff; }
/* SVG 图表容器:窄屏横向滚动,svg 自适应宽度 */
.ah-chart-wrap { overflow-x: auto; }
.ah-chart { display: block; max-width: 100%; }
.ah-chart circle { vector-effect: non-scaling-stroke; }
.ah-chart text { font-family: -apple-system, "PingFang SC", "Segoe UI", sans-serif; }
/* 补单申请:modal 弹窗 + 状态徽章 */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: flex;
  align-items: center; justify-content: center; z-index: 100; }
.modal-overlay.hidden { display: none; }
.modal-overlay .card { width: min(94vw, 1140px); max-height: 92vh; overflow: auto; box-shadow: 0 16px 48px rgba(0,0,0,.3); }
/* 趋势图放大按钮(card-h 右侧,margin-left:auto 推到最右) */
.ah-zoom-btn { margin-left: auto; background: #fff; border: 1px solid #cbd5e1; border-radius: 6px; padding: 3px 9px; cursor: pointer; font-size: 14px; color: #475569; line-height: 1; flex-shrink: 0; }
.ah-zoom-btn:hover { background: #f1f5f9; border-color: #94a3b8; color: #2563eb; }
.modal-card { background: #fff; border-radius: 10px; padding: 18px 22px; width: 440px;
  max-width: 92vw; max-height: 88vh; overflow: auto; box-shadow: 0 16px 48px rgba(0,0,0,.3); }
.modal-card h3 { margin: 0 0 14px; font-size: 16px; }
.modal-card .mf { margin: 9px 0; }
.modal-card .mf label { display: block; font-size: 12px; color: #475569; margin-bottom: 3px; }
.modal-card .inp { width: 100%; }
.modal-card textarea { resize: vertical; font-family: inherit; }
/* 2026-09-14 备用金多产品行式弹窗;09-15 前端ID 后加品名列=8 轨:pc-modal 放宽 600→660px(满宽内容区 616px≥
   min 608px),各轨同步收窄。行式 grid 从内联样式迁此(内联无法被媒体查询覆盖)。窄屏行内字段 flex 换行堆叠、
   表头列名隐藏(各输入 placeholder 自明),免横滑;.inp min-width:0 防 input/select 固有宽撑破轨/不缩;
   品名列只读 span 同 min-width:0+省略号(超长品名不撑轨,悬浮 title 全名)。
   ★09-15 审查修:断点 640→703px——卡 94vw 压缩时内容区=0.94vw-44,8 轨 min 608px 在 vw<693.6 溢出横滑
   (旧 600px 满足 600/0.94=638.3≤640 不变量,放宽卡宽后断点须随名义宽/0.94 同步上移,703=660/0.94 进位)。 */
.modal-card.pc-modal { width: 660px; max-width: 94vw; }
.pcr_row { display: grid; grid-template-columns: 26px minmax(96px,1fr) minmax(96px,1.2fr) 56px 72px 72px 64px 84px;
  gap: 6px; align-items: center; margin: 4px 0; }
.pc-grid-head { display: grid; grid-template-columns: 26px minmax(96px,1fr) minmax(96px,1.2fr) 56px 72px 72px 64px 84px;
  gap: 6px; align-items: center; margin: 0 0 2px; }
.pcr_row .inp { min-width: 0; }
.pcr_name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; color: #334155; line-height: 1.5; }   /* 09-15 品名列(fid 输入后自动带出;未建档红字由 JS 内联) */
/* 09-14 审查修:原生 number spinner 占 15-18px,62px 单量轨文本窗仅剩 ~27px(5 位单量尾部截断)→
   行内数字框隐藏 spinner(步进箭头冗余,键盘直输为主;上下键步进仍可用) */
.pcr_row input[type="number"]::-webkit-inner-spin-button,
.pcr_row input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pcr_row input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
@media (max-width: 703px) {   /* 09-15 审查修:640→703(卡 94vw 压缩带 641-693 横滑;见上注释) */
  .pc-grid-head { display: none; }
  .pcr_row { display: flex; flex-wrap: wrap; }
  .pcr_row .pcr_del { flex: 0 0 24px; }
  .pcr_row .pcr_fid { flex: 1 1 150px; }
  .pcr_row .pcr_qty { flex: 1 1 52px; }
  .pcr_row .pcr_unit { flex: 1 1 64px; }
  .pcr_row .pcr_comm { flex: 1 1 64px; }
  .pcr_row .pcr_chan { flex: 1 1 70px; }
  .pcr_row .pcr_amt { flex: 1 1 84px; }
  .pcr_row .pcr_name { flex: 1 1 130px; }
  .pcr_amt::before { content: "小计"; margin-right: 4px; color: #94a3b8; }   /* 审查修:表头隐藏后窄屏无「小计」标注 */
  .pcr_name::before { content: "品名"; margin-right: 4px; color: #94a3b8; }   /* 09-15 同上:表头隐藏后品名值标注 */
}
/* 09-14 审查修:8 行满载弹窗内容 ~623px,矮视口(88vh<623,vh<677)提交按钮行被裁须卡内下滑——
   镜像 .wide 矮视口紧凑档先例压 padding/行距(实测省 ~130px→按钮行可见阈值降到 vh~560) */
@media (max-height: 700px) {
  .modal-card.pc-modal { padding: 10px 16px; }
  .pc-modal h3 { margin: 0 0 6px; font-size: 15px; }
  .pcr_row { margin: 1px 0; }
  .pcr_row .inp { padding: 3px 6px; }
  .pc-modal .mf { margin: 4px 0; }
}
/* 2026-08-21 新增/编辑产品成本弹窗紧凑横排(免下滑):label 左·输入右,单行≈32px;只作用于 .wide,不影响其他小弹窗 */
.modal-card.wide { padding: 12px 18px; }
.modal-card.wide h3 { margin: 0 0 6px; font-size: 15px; }
.modal-card.wide .mf { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
.modal-card.wide .mf > label { flex: 0 0 100px; text-align: right; margin: 0; font-size: 12px; line-height: 1.25; }
.modal-card.wide .mf > input.inp { flex: 1 1 auto; width: auto; min-width: 0; max-width: none; }
.modal-card.wide .mf > .amort-inp { display: inline-block; flex: 0 0 76px; width: 76px; margin-top: 0; padding: 5px 6px; }
.modal-card.wide .mf > .pv { flex: 1 1 auto; max-width: none; font-size: 13px; }
/* 矮视口紧凑档(Windows 125%/150% DPI、Ctrl+放大、远程桌面等 CSS 视口高≤640):进一步压行高保免下滑 */
@media (max-height: 640px) {
  .modal-card.wide { padding: 10px 16px; }
  .modal-card.wide h3 { margin: 0 0 4px; }
  .modal-card.wide .mf { margin: 1px 0; }
  .modal-card.wide .mf > input.inp, .modal-card.wide .mf > .amort-inp { padding: 3px 8px; }
  .modal-card.wide .hint { display: none; }   /* 矮视口藏两行提示(PII 警示已入品名 placeholder,不丢) */
  .modal-card.wide .card-h { margin-top: 2px; }
}
.budan-badge { display: inline-block; color: #fff; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 10px; }
.nowrap { white-space: nowrap; }
.bar { width: 120px; height: 10px; background: #e5e7eb; border-radius: 5px; overflow: hidden; display: inline-block; vertical-align: middle; }
.bar-fill { height: 100%; border-radius: 5px; transition: width .3s ease; }
.np-over { color: #dc2626; font-weight: 600; }
.np-profit { color: #1976d2; font-weight: 600; }

/* ---- 亏损进度顶部汇总(分布条 + 需关注队列;纯 additive)---- */
.np-ov { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; margin-top: 8px; }
.np-ov-counts { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.np-ov-count { font-size: 13px; color: #475569; }
.np-ov-count b { font-size: 16px; color: #0f172a; }
.np-ov-count.loss b { color: #dc2626; }
.np-ov-count.profit b { color: #1976d2; }
.np-ov-count.amber b { color: #d97706; }
.np-ov-count.abandoned b { color: #8a8a8a; }
.np-ov-clear { margin-left: auto; font-size: 11px; color: #2563eb; cursor: pointer; }
.np-ov-dist-title { font-size: 12px; color: #64748b; margin-bottom: 4px; }
.np-ov-bars { display: flex; flex-direction: column; gap: 3px; }
.np-ov-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; cursor: pointer; padding: 3px 6px; border-radius: 4px; border: 1px solid transparent; }
.np-ov-bar:hover { background: #fff; border-color: #cbd5e1; }
.np-ov-bar.active { background: #eff6ff; border-color: #2563eb; font-weight: 600; }
.np-ov-bar-label { width: 110px; color: #334155; flex-shrink: 0; }
.np-ov-bar-track { flex: 1; min-width: 40px; height: 12px; background: #e5e7eb; border-radius: 3px; overflow: hidden; }
.np-ov-bar-fill { display: block; height: 100%; border-radius: 3px; }   /* display:block 必须:span 默认 inline,width:%/height:100% 不生效→fill 不可见 */
.np-ov-attn { margin-top: 8px; padding: 8px 10px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; cursor: pointer; font-size: 13px; color: #991b1b; }
.np-ov-attn.active { border-color: #dc2626; background: #fee2e2; }
.np-ov-toggle { float: right; font-size: 12px; color: #2563eb; }
.np-ov-attn-list { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; }
.np-ov-attn-row { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 4px 6px; border-radius: 4px; cursor: pointer; background: #fff; }
.np-ov-attn-row:hover { background: #eff6ff; }

/* ---- 回撤观察层(2026-10-03;成熟链接瞬态低谷纪律防呆,行内线+抽屉卡;纯 additive)---- */
.np-watch { font-size: 11px; margin-top: 2px; white-space: nowrap; }
.np-watch.obs { color: #c2410c; }   /* orange-700:白底 5.18:1 达 AA(同 .sit-watch) */
.np-watch.breach { color: #dc2626; font-weight: 600; }
.np-watch-card { border-left: 3px solid #ccc; padding: 8px 12px; margin-bottom: 8px; background: #f8fafc; border-radius: 0 4px 4px 0; }
.np-watch-card.obs { border-left-color: #c2410c; background: #fff7ed; }
.np-watch-card.breach { border-left-color: #dc2626; background: #fef2f2; }

/* ---- 计划账本(2026-10-04 第一批:①四象限+②漏斗+④分布+⑤断流标注;纯 additive)---- */
.np-spend-bar { display: flex; width: 100%; height: 14px; background: #e5e7eb; border-radius: 4px;
  overflow: hidden; margin-top: 6px; }   /* ④纯展示条:无 data-sit + cursor:default(wbBar 契约) */
.np-spend-seg { display: block; height: 100%; min-width: 2px; }
.pl-legend { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 12px; color: #334155; }
.pl-legend-item.off { color: #94a3b8; }
.pl-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px;
  vertical-align: -1px; flex-shrink: 0; }
.pl-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pl-chip { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; cursor: pointer;
  border: 1px solid #e2e8f0; background: #fff; color: #334155; }   /* 可点筛选钮(pdBar 契约) */
.pl-chip:hover { border-color: #94a3b8; }
.pl-chip.active { border-color: currentColor; font-weight: 600; }
.pl-chip.green, .pl-quad.green { color: #15803d; }
.pl-chip.yellow, .pl-quad.yellow { color: #b45309; }
.pl-chip.blue, .pl-quad.blue { color: #1d4ed8; }
.pl-chip.red, .pl-quad.red { color: #b91c1c; }
.pl-chip.inc, .pl-quad.inc { color: #475569; }   /* 10-19 ⏳冷启动:蓝灰(豁免态,非火警非机会) */
.pl-chip.active { background: #f1f5f9; }
.pl-quad { font-size: 12px; font-weight: 600; white-space: nowrap; }
.pl-tag { display: inline-block; padding: 0 5px; border-radius: 3px; font-size: 10px;
  background: #f1f5f9; color: #64748b; vertical-align: 1px; }
.pl-flag { font-size: 11px; white-space: nowrap; }
.pl-flag.stall { color: #dc2626; font-weight: 600; }
.pl-flag.cap { color: #b45309; }
.pl-flag.burn { color: #b91c1c; font-weight: 600; }
.pl-card { border: 1px solid #e2e8f0; border-radius: 6px; padding: 8px 12px; margin-bottom: 8px;
  background: #f8fafc; }
.pl-card b { font-size: 13px; color: #0f172a; display: block; margin-bottom: 6px; }
.pl-funnel-row { display: flex; align-items: baseline; gap: 10px; padding: 3px 6px; border-radius: 4px; }
.pl-funnel-row.bad { background: #fef2f2; color: #b91c1c; font-weight: 600; }
.pl-funnel-label { width: 190px; flex-shrink: 0; }
.pl-funnel-val { min-width: 80px; }
.pl-funnel-mark { color: #dc2626; font-size: 12px; font-weight: 700; }
.pl-ch-row { display: flex; align-items: center; gap: 10px; padding: 3px 6px; font-size: 12px;
  color: #334155; border-radius: 4px; }
.pl-ch-row.star { background: #fff; margin-top: 4px; }

/* ---- 形势判定(亏损进度 列表 pill + 抽屉卡)---- */

/* ---- 形势判定(亏损进度 列表 pill + 抽屉卡)---- */
.sit-pill { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 11px; font-weight: 600; color: #fff; white-space: nowrap; }
.sit-improving { background: #16a34a; }
.sit-deteriorating { background: #dc2626; }
.sit-stalemate { background: #64748b; }
.sit-watch { background: #c2410c; }   /* orange-700:白字对比度 5.18:1 达 WCAG AA(原 #d97706 仅 3.19:1) */
.sit-profit { background: #1976d2; }
.sit-card { border-left: 3px solid #ccc; padding: 8px 12px; margin-bottom: 8px; background: #f8fafc; border-radius: 0 4px 4px 0; }
.sit-card.sit-improving { border-left-color: #16a34a; }
.sit-card.sit-deteriorating { border-left-color: #dc2626; }
.sit-card.sit-stalemate { border-left-color: #64748b; }
.sit-card.sit-watch { border-left-color: #c2410c; }
.sit-card.sit-profit { border-left-color: #1976d2; }
.sit-advice { font-size: 12px; color: #475569; }
.sit-tier { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 3px; font-size: 11px; background: #e2e8f0; color: #475569; }
.sit-forecast { font-size: 12px; color: #475569; }
.sit-accel { font-size: 12px; color: #64748b; }
.sit-dormant { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 3px; font-size: 11px; background: #f1f5f9; color: #64748b; }
/* 形势列高信度事实(近7 vs 上7 净利,替代低信度 verdict pill):两行紧凑,近7带方向色,上7灰基线 */
.sit-fact { white-space: nowrap; }
.sit-line { display: flex; align-items: baseline; gap: 3px; }
.sit-curr { font-size: 12px; font-weight: 600; color: #334155; }
.sit-dir { font-size: 11px; font-weight: 700; }
.sit-prev { font-size: 11px; color: #94a3b8; margin-top: 1px; }
.sit-up { color: #16a34a; }   /* 近7>上7 净利上升=改善(同 sit-improving 绿) */
.sit-dn { color: #dc2626; }   /* 近7<上7 净利下降=恶化(同 sit-deteriorating 红) */
.sit-reasons { font-size: 12px; color: #334155; line-height: 1.5; margin-top: 4px; }
/* 僵持细分(灰梯度区分,非色相——不暗示好坏判断):慢烧=深灰(下行消耗,重)/慢回=浅灰(上行回本,轻)/
   信号不足=最浅(信号弱)。早期·陡降复用 sit-watch 琥珀警示(非僵持无害)。休眠/停滞用默认 sit-stalemate。 */
.sit-stalemate-burn { background: #334155; color: #fff; }
.sit-stalemate-recover { background: #94a3b8; color: #1e293b; }
.sit-stalemate-light { background: #cbd5e1; color: #475569; }
.sit-card.sit-stalemate-burn { border-left-color: #334155; }
.sit-card.sit-stalemate-recover { border-left-color: #94a3b8; }
.sit-card.sit-stalemate-light { border-left-color: #cbd5e1; }
/* R² 拟合优度(抽屉卡):不稳=琥珀警示 d2z/斜率仅供参考 */
.sit-r2 { font-size: 11px; color: #64748b; }
.sit-r2-warn { color: #c2410c; }   /* orange-700 on #f8fafc = 4.95:1 达 WCAG AA 小字(原 #d97706 仅 3.05:1) */

/* ===== 仪表盘 Phase 1(① 链接表决策列 + ③ 流量卡 + 趋势切换)===== */
.muted { color: #94a3b8; }   /* 决策列「—」/合计行空格弱化(累计口径不进区间合计) */
/* 流量质量卡行(复用 .kpis grid,加虚线分隔区分金额/比率卡) */
.kpis-traffic { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); border-top: 1px dashed #e2e8f0; padding-top: 8px; margin-top: 2px; }
/* 趋势图 segmented toggle(切数据集,非双轴) */
.seg-toggle { display: inline-flex; border: 1px solid #cbd5e1; border-radius: 6px; overflow: hidden; margin-right: 8px; vertical-align: middle; }
.seg-toggle button { border: none; background: #fff; padding: 3px 10px; font-size: 12px; cursor: pointer; color: #475569; border-right: 1px solid #e2e8f0; }
.seg-toggle button:last-child { border-right: none; }
.seg-toggle button.active { background: #2563eb; color: #fff; }
/* Zone1 变体C:zoneKpi(左5fr)+ zoneTrend(右6fr)左右分列;窄屏(≤1100px)退化为单列堆叠 */
/* 外框套两内框:dash-split 本身作外框(border+radius+padding+白底),zoneKpi/zoneTrend 各为内框(.card);
   align-items:stretch + 内层 flex column + .card flex:1 → 左右两张内框等高(短的一张撑满,内容顶对齐,无空洞) */
.dash-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 14px; align-items: stretch; margin-bottom: 14px; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; background: #fff; }
@media (max-width: 1100px) { .dash-split { grid-template-columns: 1fr; gap: 14px; } }
.dash-split > #zoneKpi, .dash-split > #zoneTrend { display: flex; flex-direction: column; min-width: 0; }
.dash-split > #zoneKpi > .card, .dash-split > #zoneTrend > .card { flex: 1 1 auto; margin-bottom: 0; }
/* Zone1 变体C:3 hero 大框(26px)+ 成本子行2卡(17px)+ 次级行式KV(13px);去抽屉常驻,去流量组 */
.kpis-hero { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 10px; }
.kpis-hero .kpi { padding: 16px 10px; text-align: center; cursor: pointer; min-width: 0; overflow: hidden; container-type: inline-size; }
.kpis-hero .kpi:hover { border-color: #94a3b8; }
.kpis-hero .kpi-l { margin-bottom: 6px; }
.kpis-hero .kpi-v { font-size: 20px; font-size: clamp(17px, 12cqw, 26px); line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }   /* cqw 按卡宽自适应字号(窄屏~19px/宽屏26px);不支持 cqw 的浏览器回退前一行 20px 兜底;nowrap+ellipsis 防 7/30 天长金额换行或溢出 */
.kpis-cost { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-bottom: 10px; }
.kpis-cost .kpi { padding: 10px 14px; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.kpis-cost .kpi:hover { border-color: #94a3b8; }
.kpis-cost .kpi-l { margin-bottom: 0; }
.kpis-cost .kc-v { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 2px; }
.kpi-chips .warn { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 12px; line-height: 1.6; }
.kpi-chips .chip { cursor: pointer; }
/* 次级行式2列KV(损益7+比率5):标签左值右,tabular-nums 等宽对齐;组标题分隔 */
.kpi-secondary { margin-top: 8px; }
.kpi-sub-group { margin-bottom: 8px; }
.kpi-sub-title { font-size: 11px; font-weight: 600; color: #94a3b8; letter-spacing: .5px; margin: 4px 0; padding-bottom: 3px; border-bottom: 1px solid #e2e8f0; }
.kpi-sub-rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
.kpi-sub-row { display: flex; justify-content: space-between; align-items: baseline; padding: 1.5px 0; }
.kpi-sub-l { color: #64748b; font-size: 11px; }
.kpi-sub-v { font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; color: #1e293b; }
.kpi-sub-note { color: #b45309; font-size: 11px; margin-left: 3px; }
/* 链接表进度列色阶(累计口径:≥80% 临近超额琥珀,>100% 超额度红) */
td.prog-high { color: #c2410c; font-weight: 600; }   /* orange-700 on #fff = 4.95:1 达 WCAG AA */
td.prog-over { color: #dc2626; font-weight: 700; }

/* ===== 仪表盘 Phase 2(④ 运营对比+缺成本清单)===== */
/* 运营排行 diverging 条形图(零线居中,正右绿负左红;op-bar-* 三列复用) */
.op-bar-label { width: 70px; flex-shrink: 0; color: #334155; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-bar-div { flex: 1; display: flex; height: 14px; position: relative; min-width: 60px; }
.op-bar-div::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: #94a3b8; }   /* 零线居中 */
.op-bar-half { flex: 1; display: flex; height: 100%; }
.op-bar-neghalf { justify-content: flex-end; }   /* 负条右对齐贴零线 */
.op-bar-poshalf { justify-content: flex-start; }  /* 正条左对齐贴零线 */
.op-bar-fill { height: 100%; border-radius: 2px; }
.op-bar-val { width: 92px; flex-shrink: 0; text-align: right; color: #334155; font-size: 14px; white-space: nowrap; }   /* 金额放大12→14px更醒目;width80→92防区间大额(¥525,514.13)溢出;nowrap防换行 */
/* 缺成本清单(zoneCost)复用 .tbl/.tblwrap/.st-amber/.op-cell/.ok/.warn.chip,无需新类 */

/* ZoneRank:盈亏排行(左盈利右亏损纯文字双列,无条形) */
.rank-ctrl { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.rk-btn { border: 1px solid #cbd5e1; background: #fff; border-radius: 4px; padding: 2px 8px; font-size: 12px; cursor: pointer; color: #475569; }
.rk-btn:hover { background: #f1f5f9; }
.rk-btn.active { background: #1e293b; color: #fff; border-color: #1e293b; }
.rank-grid { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 0 14px; }
.rank-sep { background: #94a3b8; }
.rank-col-h { font-size: 12px; font-weight: 600; padding: 4px 0 6px; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.rank-lrow, .rank-prow { display: flex; flex-direction: column; gap: 1px; padding: 5px 4px; font-size: 12px; cursor: pointer; border-radius: 3px; align-items: flex-start; }   /* 都左对齐 */
.rank-lrow:hover, .rank-prow:hover { background: #f8fafc; }
.rank-headline { display: flex; align-items: baseline; gap: 5px; }
.rank-idx { color: #94a3b8; font-size: 11px; min-width: 16px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.rank-medal { font-size: 16px; min-width: 16px; flex-shrink: 0; text-align: center; line-height: 1; }   /* top3 奖牌emoji(14→16适当放大更醒目),替代数字序号 */
.rank-name { color: #334155; line-height: 1.3; overflow-wrap: anywhere; flex: 1 1 auto; min-width: 0; }   /* flex占中间,让金额(rank-val)推到行右端对齐成列 */
.rank-val { font-weight: 600; flex-shrink: 0; }   /* 金额不压缩,固定行右端(与 rank-rate/days 一致) */
.rank-val.loss { color: #dc2626; }
.rank-val.profit { color: #16a34a; }
.rank-bar { flex: 0 0 100px; display: flex; height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }   /* 量级横条:固定100px(缩短让品名多显),灰底+绿/红填充长度=|净利|/列最大值;display:flex让loss fill用margin-left:auto右对齐向中线汇聚 */
.rank-bar-fill { display: block; height: 100%; border-radius: 3px; }   /* span 默认 inline,width:%/height 不生效→fill 不可见;必须 block(同 .np-ov-bar-fill L191) */
.rank-bar-fill.profit { background: #16a34a; }
.rank-bar-fill.loss { background: #dc2626; margin-left: auto; }   /* 亏损列横条右对齐(向中线汇聚);profit默认左对齐不动 */
.rank-pl-name { flex: 1 1 0; min-width: 0; color: #334155; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* 盈亏排行品名(flex占满剩余+min-width:0触发ellipsis;横条固定宽让起点对齐成列;长名截断+title全称+hover富浮层兜底) */
.rank-days { color: #94a3b8; font-size: 11px; flex-shrink: 0; }
.rank-meta { display: flex; align-items: center; gap: 6px; padding-left: 21px; }
.rank-main { width: 100%; display: flex; align-items: center; gap: 6px; }   /* 运营排行主行:序号+名|diverging条|金额,复用 op-bar-* 三列 */
.rank-sub { display: flex; align-items: center; gap: 6px; padding-left: 22px; }   /* 副行:净利率+链数,缩进对齐名(序号16+gap6=22) */
.rank-rate { color: #64748b; font-size: 11px; flex-shrink: 0; }
.rank-fire { font-size: 11px; }
.rank-new { font-size: 10px; background: #fef3c7; color: #92400e; border-radius: 2px; padding: 0 3px; flex-shrink: 0; }
.rank-col-foot { font-size: 11px; color: #64748b; padding: 6px 4px 4px; margin-top: 4px; border-top: 1px solid #e2e8f0; background: #f8fafc; border-radius: 0 0 3px 3px; }
.rank-viewall { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.rk-link { font-size: 12px; color: #2563eb; text-decoration: none; }
.rk-link:hover { text-decoration: underline; }
.rank-note { font-size: 11px; color: #94a3b8; margin-top: 6px; }
.rank-legend { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; padding: 0 2px; }
.rank-leg { display: flex; align-items: center; gap: 4px; font-size: 11px; }
.rank-leg-bar { display: flex; }
.rank-leg-cell { display: inline-block; width: 14px; height: 10px; }
.rank-leg-cell:first-child { border-radius: 2px 0 0 2px; }
.rank-leg-cell:last-child { border-radius: 0 2px 2px 0; }
.rank-lrow.peak, .rank-prow.peak { background: #f1f5f9; }   /* 盈亏排行第1名灰底(运营排行改用金银铜,此处不动) */
.rank-lrow.peak-op, .rank-prow.peak-op { background: rgba(251,191,36,0.13); }   /* 前3名金底(A淡彩薄涂:低饱和金wash,若隐若现现代清爽);运营+盈亏共用 */
.rank-lrow.peak-op:hover, .rank-prow.peak-op:hover { background: rgba(251,191,36,0.22); }
.rank-lrow.peak-silver, .rank-prow.peak-silver { background: rgba(148,163,184,0.15); }   /* 前3名银底(A淡彩,中性冷银) */
.rank-lrow.peak-silver:hover, .rank-prow.peak-silver:hover { background: rgba(148,163,184,0.24); }
.rank-lrow.peak-bronze, .rank-prow.peak-bronze { background: rgba(251,146,60,0.13); }   /* 前3名铜底(A淡彩,暖铜) */
.rank-lrow.peak-bronze:hover, .rank-prow.peak-bronze:hover { background: rgba(251,146,60,0.22); }
.rank-lrow.peak-op .rank-pl-name, .rank-lrow.peak-silver .rank-pl-name, .rank-lrow.peak-bronze .rank-pl-name, .rank-prow.peak-op .rank-pl-name, .rank-prow.peak-silver .rank-pl-name, .rank-prow.peak-bronze .rank-pl-name, .rank-prow.peak-op .op-bar-label, .rank-prow.peak-silver .op-bar-label, .rank-prow.peak-bronze .op-bar-label { font-weight: 700; }   /* 前3名品名加粗(盈亏用rank-pl-name,运营用op-bar-label) */

/* ---------------- 变动幅度排行榜(movers) ---------------- */
.rank-view-toggle { margin-left: auto; display: inline-flex; border: 1px solid #cbd5e1; border-radius: 6px; overflow: hidden; }
.rvt-btn { border: none; background: #fff; color: #475569; padding: 3px 10px; font-size: 12px; cursor: pointer; border-right: 1px solid #cbd5e1; }
.rvt-btn:last-child { border-right: none; }
.rvt-btn.active { background: #1e293b; color: #fff; }
.rvt-btn:hover:not(.active) { background: #f1f5f9; }
.movers-tabs { display: flex; gap: 0; border-bottom: 1px solid #f1f5f9; background: #fafbfc; border-radius: 6px 6px 0 0; overflow-x: auto; }
.mtab { flex: 1; min-width: 80px; background: transparent; border: none; border-bottom: 3px solid transparent; padding: 8px 4px; font-size: 12.5px; color: #64748b; cursor: pointer; white-space: nowrap; }
.mtab:hover { background: #f8fafc; }
.mtab.active { font-weight: 600; color: #1e293b; }
.mtab .mtab-icon { font-size: 14px; display: block; }
.mtab .mtab-cnt { font-size: 10px; color: #94a3b8; margin-left: 3px; }
.mtab.movers-q-grow.active { border-bottom-color: #16a34a; color: #15803d; }
.mtab.movers-q-slide.active { border-bottom-color: #ea580c; color: #c2410c; }
.mtab.movers-q-turn.active { border-bottom-color: #0891b2; color: #0e7490; }
.mtab.movers-q-worse.active { border-bottom-color: #dc2626; color: #b91c1c; }
.movers-rows { padding: 4px 0; }
.movers-row { padding: 8px 14px; border-bottom: 1px solid #f8fafc; border-left: 3px solid transparent; cursor: pointer; }
.movers-row:hover { background: #f8fafc; }
.movers-row.movers-q-grow { border-left-color: #16a34a; }
.movers-row.movers-q-slide { border-left-color: #ea580c; }
.movers-row.movers-q-turn { border-left-color: #0891b2; }
.movers-row.movers-q-worse { border-left-color: #dc2626; }
.movers-row:last-child { border-bottom: none; }
.rank-bar-fill.movers-q-grow { background: linear-gradient(90deg,#86efac,#16a34a); }
.rank-bar-fill.movers-q-slide { background: linear-gradient(90deg,#fed7aa,#ea580c); }
.rank-bar-fill.movers-q-turn { background: linear-gradient(90deg,#67e8f9,#0891b2); }
.rank-bar-fill.movers-q-worse { background: linear-gradient(90deg,#fca5a5,#dc2626); }
.movers-dual { font-size: 11px; color: #64748b; }
.movers-dual b { font-weight: 600; }
.movers-qtag { font-size: 10px; padding: 1px 6px; border-radius: 8px; font-weight: 500; margin-left: auto; white-space: nowrap; }
.movers-qtag.movers-q-grow { background: #dcfce7; color: #15803d; }
.movers-qtag.movers-q-slide { background: #ffedd5; color: #c2410c; }
.movers-qtag.movers-q-turn { background: #cffafe; color: #0e7490; }
.movers-qtag.movers-q-worse { background: #fee2e2; color: #b91c1c; }
.movers-guards { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 14px; background: #fffbeb; border-bottom: 1px solid #fde68a; }
.tag { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 8px; font-weight: 500; white-space: nowrap; }
.tag-pos { background: #dcfce7; color: #15803d; }
.tag-neg { background: #fee2e2; color: #b91c1c; }
.tag-amber { background: #fef3c7; color: #92400e; }
.tag-insuf { background: #f1f5f9; color: #64748b; border: 1px dashed #cbd5e1; }
.tag-bad { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.tag-stop { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.movers-amber { margin: 10px 14px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; }
.movers-amber-h { display: flex; align-items: center; gap: 6px; padding: 8px 12px; cursor: pointer; user-select: none; font-size: 12.5px; }
.movers-amber-h b { color: #78350f; }
.movers-amber-h .hint { color: #92400e; font-size: 11px; }
.movers-amber-ct { margin-left: auto; color: #92400e; font-size: 11px; }
.movers-amber-body { display: none; padding: 4px 12px 10px; border-top: 1px dashed #fde68a; }
.movers-amber.open .movers-amber-body { display: block; }
.movers-amber-row { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px dashed #fde68a; font-size: 12px; cursor: pointer; }
.movers-amber-row:last-child { border-bottom: none; }
.movers-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: #64748b; padding: 8px 14px; }
.movers-legend b { color: #334155; }

/* 实际运营核算成本「今日 X」小签/📅徽章/基础价只读 已删(2026-08-18 单一价格概念:格子只显当前生效价,
   点击开「价格记录」弹窗,复用 .op-cell 点式下划线;历史小签/徽章样式随之退役) */
/* 一次性费用(总额)格下「≈X/件」小签:每件摊销额=单位成本−Σ单件明细,显示期现算不存数据。
   普通 span 无点击行为(tr.onclick 不早退)——点击落到单元格=进编辑 */
.otf-tag { display: block; margin-top: 2px; color: #0e7490; font-size: 11px; line-height: 1.5;
  font-weight: 600; white-space: nowrap; }
/* 出厂成本/运营核算*1.2 派生格(2026-08-18):无框纯文本浅蓝字(计算值,非手输——readonly 框仍像可输,已去框);
   显示态存值≠公式值的红色差签 */
.uc-val { color: #1d4ed8; font-weight: 600; }
.otf-tag.uc-diff { color: #b91c1c; }
/* 一次性费用(总额)格下「分摊/件」直录输入(2026-08-18 单件分摊直录):编辑态小额框,青色小字同≈小签色系;
   data-amort 不入 harvest(值存进出厂成本残差,不单存) */
.amort-inp { display: block; width: 78px; margin-top: 2px; font-size: 11px; color: #0e7490;
  border: 1px solid #67e8f9; border-radius: 4px; padding: 1px 4px; background: #ecfeff; }

/* 实际运营核算成本 基础价只读/分段徽章 已删(2026-08-18 单一价格概念,同上);.cov-open 点击绑定保留(app.js
   _bindCovOpen 绑 .cov-open[data-bid]→「价格记录」弹窗,样式走 .op-cell) */

/* ---- 产品成本:聚水潭式行编辑——显示态纯文本(.pv 无框,空值灰—),点击行变编辑态(带框 input;淡蓝底) ---- */
.pv { display: inline-block; max-width: 190px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; vertical-align: bottom; }
.costtbl tbody tr:not(.row-edit) { cursor: pointer; }   /* 显示态行可点进编辑;编辑态行内是文本光标的 input,不抢 */
.widetbl tr.row-edit td { background: #e0f2fe; }
.widetbl tr.row-edit td.sticky-sel, .widetbl tr.row-edit td.sticky-img, .widetbl tr.row-edit td.sticky-col,
.widetbl tr.row-edit td.sticky-col2, .widetbl tr.row-edit td.sticky-act { background: #bae6fd; }

/* ---- 产品图片格(2026-08-21 产品成本/包材成本/BOM 共用:40×40 缩略,拖放/点选上传) ---- */
.img-td { text-align: center; }
.img-cell { position: relative; display: inline-block; width: 40px; height: 40px; vertical-align: middle; }
.img-thumb { display: block; width: 40px; height: 40px; object-fit: cover; border-radius: 4px;
  border: 1px solid #cbd5e1; background: #fff; }
.img-empty { display: inline-block; width: 38px; height: 38px; line-height: 36px; text-align: center;
  color: #94a3b8; border: 1px dashed #cbd5e1; border-radius: 4px; font-size: 15px; user-select: none; }
.img-cell.img-edit .img-empty { cursor: pointer; color: #60a5fa; border-color: #93c5fd; }
.img-cell.img-edit .img-empty:hover, .img-cell.img-edit.img-drag .img-empty { background: #eff6ff; color: #2563eb; border-color: #2563eb; }
.img-cell.img-edit .img-thumb { cursor: pointer; }
.img-cell.img-edit.img-drag .img-thumb { outline: 2px dashed #2563eb; outline-offset: 1px; }
.img-del { position: absolute; top: -7px; right: -7px; width: 16px; height: 16px; line-height: 14px;
  padding: 0; text-align: center; font-size: 11px; color: #c33; background: #fff;
  border: 1px solid #cbd5e1; border-radius: 50%; cursor: pointer; }

/* ---- BOM 管理 Tab(2026-08-21):配比 chips 格 + 弹窗 stepper;★行高治理:包装形式收标签+✎弹窗 ---- */
.bom-chips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-bottom: 3px; }
.bom-chip { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 8px;
  background: #ddd6fe; color: #5b21b6; white-space: nowrap; }
.bm-sum { font-size: 11px; color: #0a7d43; white-space: nowrap; align-self: center; }   /* Σ≈¥ 只读汇总小签 */
.bom-cell .btn-ghost { font-size: 12px; padding: 2px 8px; }
.bom-step { min-width: 28px; padding: 2px 0; font-size: 13px; line-height: 1.4; }   /* 配比弹窗 −/＋ 步进钮 */
.pf-cell { max-width: 200px; }   /* 包装形式格:斜杠文字短,收窄防占宽(08-23 无框化,chip 三件退役) */
.pf-cell .bm-pf-edit { font-size: 12px; padding: 1px 6px; margin-left: 4px; vertical-align: middle; }
.pf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 10px; margin-top: 10px; }   /* 包装形式弹窗 4列勾选 */
.bm-sec { margin: 10px 0 2px; font-weight: 600; letter-spacing: .3px; }   /* 配比弹窗分区头 */
.bm-sec2 { border-top: 1px dashed #d8dee4; padding-top: 10px; }
.bm-zap { margin-right: 3px; cursor: help; }   /* ⚡自动匹配行徽章 */
.bom-mgd { margin-left: 2px; font-size: 11px; cursor: help; }   /* 📦BOM自动同步列徽章(产品成本Tab) */
.bm-noprice { background: #fee2e2; color: #991b1b; }   /* BOM组件缺价红签(缺价闸提示) */

/* ---- 08-22 包材成本表贴内容(pktbl):撤 min-width:100% 拉伸=商品编码↔名称间距过宽的病灶;
   表宽随内容,列间空隙消失;.pv 不截断=名称完整显示。编辑行内 input 内联宽度小于列宽,不受影响 ---- */
.widetbl.pktbl { min-width: 0; }
.pktbl .pv { max-width: none; }
/* 08-22 BOM 品名列加宽:BOM 表保持 min-width:100%(其余列 .pv 照旧 190px ellipsis),仅品名不截断 */
.bomtbl td.bm-name .pv { max-width: none; }

/* ---- 08-23 BOM Tab 改版(参考竞品链接Tab):列搜索行/快捷片/序号列/冻结表头/分页器 ---- */
.cs-row .inp { font-size: 12px; padding: 4px 8px; }   /* 列搜索行紧凑小框(08-23 两Tab共用:回车/🔍 生效,输入不重绘;类名 bm-csrow→cs-row) */
.cs-row .mono { font-family: "SF Mono", Menlo, Consolas, monospace; }   /* 编码框等宽(盖 .tbl .mono 表内作用域) */
.bm-fchip { border: 1px solid #c4ccd8; background: #fff; border-radius: 14px; padding: 2px 10px; font-size: 12px;
  cursor: pointer; color: #333; }   /* 快捷片「缺配比」(镜像竞品 arc-chip;★命名避开既有 bm-chip(缺价红签基类)+bom-chip(配比组件) */
.bm-fchip:hover { background: #f0f7ff; border-color: #93c5fd; color: #1d4ed8; }
.bm-fchip b { color: #b45309; margin-left: 2px; }
.bm-fchip.active, .bm-fchip.active:hover { background: #eef4ff; border-color: #2563eb; color: #1d4ed8; }
.bm-fchip.active b { color: #1d4ed8; }
.bomtbl .bm-seq, .pktbl .bm-seq { width: 34px; min-width: 34px; text-align: center; color: #94a3b8; font-size: 12px; }   /* 首列 # 行号(bomtbl+08-24 pktbl 同款) */
.bomtbl thead th { position: sticky; top: 0; background: #f1f5f9; z-index: 2; box-shadow: 0 1px 0 #e2e8f0; }   /* 冻结表头(滚动容器=.tblwrap) */
#bm_body .tblwrap { max-height: calc(100vh - 330px); }   /* 压滚动区高度(搜索行+快捷片行+分页器占高;盖 .tblwrap:has(.widetbl) 通用 180px) */
.bomtbl tbody tr:not(.row-edit):hover td { background: #f8fafc; }   /* 行悬停微底(编辑行蓝底不盖) */
/* ---- 08-24 功能①②:批量条(样式参考竞品我方链接 Tab arcBatchBar)+勾选列 ---- */
.bm-batchbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #f8fafc;
  border: 1px solid #e2e8f0; border-radius: 6px; padding: 6px 8px; margin-top: 6px; }
.bm-bsm { border-radius: 5px; font-size: 12px; padding: 4px 10px; cursor: pointer; border: 1px solid transparent; }
.bm-bsm:disabled { opacity: .55; cursor: default; }
.bm-bsm-main { background: #2563eb; border-color: #2563eb; color: #fff; }
.bm-bsm-main:hover:not(:disabled) { background: #1d4ed8; }
.bm-bsm-ghost { background: #fff; border-color: #cbd5e1; color: #475569; }
.bm-bsm-ghost:hover:not(:disabled) { border-color: #93c5fd; color: #1d4ed8; }
.bm-bsm-ok { background: #16a34a; border-color: #16a34a; color: #fff; }   /* 08-24 财务「通过审核」绿 */
.bm-bsm-ok:hover:not(:disabled) { background: #15803d; }
.bm-bsm-warn { background: #dc2626; border-color: #dc2626; color: #fff; }   /* 08-24 财务「退回/退回重录」红 */
.bm-bsm-warn:hover:not(:disabled) { background: #b91c1c; }
.vsep { width: 1px; height: 18px; background: #e2e8f0; display: inline-block; }
.bomtbl .bm-sel-th, .bomtbl .bm-sel-td { width: 26px; min-width: 26px; text-align: center; }
.bomtbl .bm-sel-td input, .bomtbl .bm-sel-th input { cursor: pointer; }
#bm_pager { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
#bm_pager .bm-pgbtn { padding: 2px 10px; font-size: 12px; }
.bm-pgcur { font-size: 12px; color: #475569; min-width: 56px; text-align: center; }
#bm_pager .bm-pgsz { width: auto; font-size: 12px; padding: 2px 6px; }
/* 08-26 赠品实物合并单表(用户令:废两表与月份片,单表=链接×赠品条码粒度;BOM 管理同款
   # 序号列+冻结表头+滚动区+分页器) */
.jgtbl .bm-seq, .brtbl .bm-seq { width: 34px; min-width: 34px; text-align: center; color: #94a3b8; font-size: 12px; }
.jgtbl thead th, .brtbl thead th { position: sticky; top: 0; background: #f1f5f9; z-index: 2; box-shadow: 0 1px 0 #e2e8f0; }
#jg_tbl .tblwrap { max-height: calc(100vh - 330px); }   /* 压滚动区高度(摘要行+搜索行+分页器占高;盖 tblwrap:has 通用 180px) */
#jg_pager { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
/* 08-26 补单 Tab 阶段1(聚水潭卡单·读侧;镜像 jg 表样式;三表=每日出库/订单明细/按条码聚合) */
#br_tbl .tblwrap { max-height: calc(100vh - 390px); }
#br_tbl .brtbl { min-width: 1200px; }   /* 明细 12 列宽表(08-27 运单号+主单号两新列,撤 io_id 展示:撞数易误导):保横滚不挤压(41.1 列宽教训);日表/聚合表不受限 */
.brtbl td.mono { white-space: nowrap; }   /* 出库日/条码/前端ID/运单号=长串不可断;挤压交给横滚 */
#br_pager { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
#jg_pager .bm-pgbtn { padding: 2px 10px; font-size: 12px; }
#jg_pager .bm-pgsz { width: auto; font-size: 12px; padding: 2px 6px; }
/* 09-21 补单三块筛选批:核销/问大家分页器容器(镜像 #jg_pager;对抗审查实锤=容器样式全钉死 id,
   漏同船 CSS 则挤成无间距行内串+按钮大号非紧凑) */
#vf_pager, #qa_pager { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
#vf_pager .bm-pgbtn, #qa_pager .bm-pgbtn { padding: 2px 10px; font-size: 12px; }
#vf_pager .bm-pgsz, #qa_pager .bm-pgsz { width: auto; font-size: 12px; padding: 2px 6px; }
/* 08-23 表头按列搜索框(聚水潭式,一列一框)退役:两Tab 列搜均挪表上方搜索行(框在表外,
   th 恢复无框无文本选择问题;表头小框样式件随之删除防回潮) */
/* 08-22 图片放大查看 lightbox:显示态图片格点击=大图(编辑态仍是换图 picker);ESC/点空白/✕ 三路关 */
.img-zoom-card { position: relative; background: #fff; border-radius: 10px; padding: 12px; }
.img-zoom-card img { display: block; max-width: min(90vw, 1200px); max-height: 80vh; border-radius: 6px; }
.img-zoom-card .img-zoom-x { position: absolute; top: -13px; right: -13px; width: 26px; height: 26px;
  line-height: 24px; padding: 0; text-align: center; background: #fff; border: 1px solid #cbd5e1;
  border-radius: 50%; font-size: 14px; color: #c33; cursor: pointer; }
/* 链接归属:同款聚水潭式行编辑(显示态纯文本,点击行进编辑);row-edit 蓝底复用上面 .widetbl 通用规则 */
.linktbl tbody tr:not(.row-edit) { cursor: pointer; }
/* 品名列稍宽(2026-08-17):.pv 默认 190px 截断,链接品名带规格/厂商后缀偏长 */
.linktbl td[data-col="name"] .pv { max-width: 260px; }


/* 赠品成本小签(2026-08-19 赠品进 P&L:成本格内「含赠X」;gift_cost=0 时不渲染零扰动) */
.cost-sub { display: block; font-size: 10px; color: #0d9488; line-height: 1.1; margin-top: 1px; }


/* 数据源查看(2026-08-26 上传 Tab 9 源标签):覆盖点阵 + 月行 + 缺月黄条 */
.tbl td.amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }   /* sv 表金额列:右对齐不换行(新类,全局无冲突) */
.sv-mrow { margin: 6px 0; font-size: 13px; line-height: 1.9; }
.sv-dot { display: inline-block; margin: 0 1px; font-size: 11px; color: #cbd5e1; }
.sv-dot.on { color: #15803d; }
.sv-dot.out { color: #94a3b8; opacity: .55; }   /* 段外日(本次未查询)≠无数据:点●查单日后其余日全是它 */
.sv-dot.on[data-date]:hover { color: #047857; outline: 1px solid #86efac; border-radius: 3px; }
.sv-miss { margin: 6px 0; padding: 6px 10px; background: #fef3c7; border: 1px solid #fcd34d; border-radius: 6px; color: #92400e; font-size: 12px; }
/* 08-27 原始表全列:单元格单行省略(超宽 hover title 看全值),列多靠 .tblwrap 横滚不挤压 */
.sv-rawtbl th { white-space: nowrap; }
.sv-rawtbl td { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
tr.sv-total td { background: #f1f5f9; font-weight: 600; color: #334155; }   /* 08-27 合计行(原始表+聚合表通用,表体首行):过滤后全量的每列求和,非数值/文本列显 — */


/* 批2(10-13 推广管理整合·合壳):汇总双盘标签;批4「按计划」档退役=视图切换钮/灰显矩阵样式一并拆除 */
.pm-band { margin-top: 8px; }
.pm-band-tag { display: inline-block; font-size: 12px; color: #64748b; font-weight: 600; margin-bottom: 2px; }


/* 10-13 作战单·层1:今日必看带;10-14 方案甲「表即清单」:带收敛成一行摘要+最急一条+chips(清单并入表「今日」列) */
.np-today-head { font-size: 12px; color: #334155; margin: 2px 0 4px; }
.np-today-top { margin: 0 0 4px; }
.np-today-item { font-size: 12px; padding: 2px 6px; border-radius: 4px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-today-item:hover { background: #fef2f2; }
.np-today-more { padding: 1px 6px; }
.np-tbadge { cursor: pointer; }   /* 「今日」列 badge:点=开该段首条计划抽屉(样式底子复用 .pl-flag) */
.np-tbadge:hover { outline: 1px solid #cbd5e1; border-radius: 3px; }


/* 批3(10-13 推广管理整合·主从展开+幽灵行):▸展开钮/展开行面板/子表/铁律句 */
.np-xbtn { border: none; background: #f1f5f9; color: #2563eb; border-radius: 4px; cursor: pointer; font-size: 11px; padding: 1px 6px; margin-right: 2px; line-height: 1.4; }
.np-xbtn:hover { background: #e0e7ff; }
tr.np-xrow > td { background: #f8fafc; padding: 0 10px; border-top: none; }   /* 展开行:浅底与主行区分,整行一格外框 */
.np-xpanel { padding: 8px 4px 10px; }
.np-subtbl { margin-top: 6px; width: 100%; }   /* 10-15e:width:100% 占满展开格(用户拍板);列宽由 table-layout:auto 按内容分配;10-15e-fix2:超宽源头=计划列已改 np-plan 限宽换行,不再靠 nowrap 硬扛 */
.np-subtbl th { white-space: nowrap; font-size: 12px; background: #334155; color: #f8fafc; border-bottom: 1px solid #1e293b; font-weight: 600; padding: 5px 8px; text-align: center; }   /* 10-15e A案(效果图拍板):深蓝灰底白字与主表浅灰(#f1f5f9)强分层,主判读在子表;列名居中(用户拍板) */
.np-subtbl th.r { text-align: center; }   /* 10-15e:数字列列名同居中(格内容仍右对齐);(0,2,1) 压 .tbl .r 的右对齐 */
.np-subtbl td { white-space: nowrap; padding: 5px 8px; }   /* nowrap=中文列 min-content 是单字宽,防压竖排(10-15d 防线);间距 6→8=width:100% 后有宽可舒展 */
.np-subtbl .mono { font-size: 10px; }   /* 计划ID 副行小一号:20 位 mono 不再撑宽计划列 */
.np-subtbl .np-wlabel { white-space: nowrap; font-size: 12px; color: #64748b; }   /* 10-15c 两行制:窗标签列(近7天/昨日) */
.np-subtbl tr.np-w1 > td { color: #94a3b8; }   /* 昨日行整行灰显=对照层(调计划以近7天为准;组界=昨日行实线底边) */
.np-subtbl tr.np-w1 > td span { color: #94a3b8 !important; }   /* !important 压 _st 的✓/✗内联色(全饱和绿/红)——灰显行里单日信号不得抢权重(10-15c 审查修) */
.np-subtbl tr.np-w7 > td:not([rowspan]) { border-bottom: 1px dashed #e2e8f0; }   /* 组内(近7天→昨日)弱分隔;:not([rowspan])=渠道/计划/打平线/象限/标注五个跨行格不吃虚线,其底边画在组界上须保持实线,否则计划对边界呈虚-实-虚拼接(10-15c 审查修) */
/* ===== 10-15e 五项 UI 改版:主表列距收窄+列名居中(仅推广 tab,他 tab .tbl 不动) / 进度条 / 口径折叠 ===== */
#np_body table.widetbl th, #np_body table.widetbl th.r { text-align: center; padding: 7px 8px; }   /* 10-15e②⑤:主表列头居中+间距 10→8(用户拍板列名居中);id 作用域=只动推广主表 */
#np_body table.widetbl > tbody > tr:not(.np-xrow) > td { padding: 6px 8px; }   /* 10-15e②:主表行距 10→8 收窄;:not(.np-xrow)=展开行容器格不吃(其 padding:0 10px 由 703 行专职管) */
#np_body table.np-subtbl th, #np_body table.np-subtbl th.r { padding: 5px 8px; text-align: center; }   /* 压回:上两条 id 规则经后代选择器会打到嵌套子表格,此处同 specificity 后置压回 5px 竖距(子表列头小一档=分层一部分);居中语义与本页一致 */
#np_body table.np-subtbl td { padding: 5px 8px; }   /* 压回:同上,子表格内容格 5px 竖距 */
#np_body table.np-subtbl td.np-plan { white-space: normal; min-width: 11em; max-width: 16em; line-height: 1.35; }   /* 10-15e-fix2:计划名全显改限宽换行——nowrap+全显(真名 p90=34字≈450px)把子表最小宽顶到1300px+,连主表一起右滑;11~16em=一行11~16字,25~37字名换2~3行,rowspan=2 两行高天然容纳;不截断不省略=全显语义保留(用户拍板) */
#np_body table.widetbl { font-size: 12px; }   /* 10-15e-fix3:主表16列min-content实测1678px>可用1238px=自身必滑(10-15e②只收padding没治本);12px后整体缩~8% */
#np_body table.widetbl > thead > tr > th { white-space: normal; min-width: 3.5em; }   /* fix3b:列头允许换行但不逐字竖排(3.5em 地板=5字头恰两行);直系子代选择器=只打主表列头,后代选择器会漏进嵌套子表列头压掉其 nowrap(审查实锤) */
#np_body table.widetbl td.np-name { white-space: normal; min-width: 8em; max-width: 13em; line-height: 1.3; }   /* fix3:品名列撤24字硬截断→全显+限宽换行(一行8~13字),悬停title全名;幽灵行同步 */
#np_body table.widetbl td.np-trend { white-space: normal; }   /* fix3b:趋势列可换行——审查实锤:trendChip 长行「预计23天烧完额度⚠仅供参考(R²低)」在 nowrap 下 205px 顶爆 min-content(真数据主表 1657px 恒超 1200 可用=右滑复发);换行后列 min=最长行自然宽 */
#np_body table.widetbl td.np-prog { white-space: normal; }   /* fix3b:进度列 hint 行「N%·已亏¥X/¥Y·📅·超额度」可断行(原 .widetbl td nowrap 罩着整行不可断,最恶 470px) */
#np_body td.np-prog .bar { width: 100%; max-width: 120px; min-width: 48px; }   /* fix3b:进度条恒 120px 固定宽也顶列 min-content;改弹性(表格松时 120 收紧时 48) */
#np_body .np-watch { white-space: normal; }   /* fix3b:回撤观察线原 nowrap——「🔴 回撤破位·已N天(深破位)·建议复盘介入」整行不可断也是 1657px 大头;np-watch 仅本页用,域内放开安全 */
#np_body .sit-pill { white-space: normal; }   /* fix3b:长 pill 可在字间断行(否则「预计23天烧完额度」9字一整块 ~110px 顶死趋势列);pill 背景色随断行分段,观感可接受 */
#np_body table.widetbl td.np-ops { white-space: normal; }   /* 10-16 fix4:操作列三按钮可换行(用户屏余溢出=操作列截一多半;按钮间空格=断点,有富余时仍一行,186→~80px) */
#np_body table.np-subtbl td.np-wlabel { padding-left: 3px; padding-right: 3px; }   /* 10-16 fix4:窗列(近7天/昨日)左右距 8→3(用户点名窗↔成交单数间距,再腾 ~10px); specificity (1,1,2) 压 L718 的 5px 8px */
#np_body table.np-subtbl thead th { position: sticky; top: var(--np-head-h, 48px); z-index: 5; }   /* 10-16 fix4:子表列头吸在主表列头下缘——垂直滚动时不再被主表 sticky 列头(z=3/4)遮死;z=5=盖过主表冻结列内容;--np-head-h 由渲染后 JS 实测写入(两行列头高度不硬编码);底色 #334155 不透明,吸顶时盖住滚过的行 */
#np_body .np-xpanel .tblwrap { overflow: visible; }   /* fix4 配套(实测实锤):内层 tblwrap 的 overflow-x:auto 会截走子表列头 sticky 的作用域(贴附在内层盒内=随子表滚走,白贴);放开后 sticky 归属外层主滚动容器,子表列头才能真正吸在主表列头下缘;子表 min-content(~936px)<面板宽,放开无横溢 */
.np-obar { display: inline-block; vertical-align: middle; width: 64px; height: 6px; border-radius: 3px; background: #e2e8f0; margin-right: 6px; overflow: hidden; }   /* 10-15e④:近7天成交单数进度条(满格=20 单);灰底=跑道 */
.np-obar i { display: block; height: 6px; border-radius: 3px; background: #3b82f6; }   /* 未满=蓝 */
.np-obar.np-ok i { background: #16a34a; }   /* 达标=绿(≥20 单,前端 width 钳 100%);类名np-ok防撞全局.ok横幅 */
.np-onum { font-variant-numeric: tabular-nums; }   /* N/20 数字 */
.np-onum.np-ok { color: #16a34a; font-weight: 700; }   /* 达标数字绿粗 */
details.np-canon { margin-top: 10px; font-size: 12px; color: #64748b; }   /* 10-15e⑥:表下口径小字收进折叠条,默认一行 */
details.np-canon summary { cursor: pointer; color: #334155; font-weight: 600; }
.np-iron { color: #b91c1c; font-weight: 600; margin-top: 4px; }
tr[data-gfid] td { color: #64748b; }   /* 幽灵行整行灰系:有花费无销售,各格—/仅计划 */

/* ---- 云仓对账 Tab(2026-10-26;选择器一律挂 .wh-page 下,不影响其他页) ---- */
.wh-page .wh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 1000px) { .wh-page .wh-grid { grid-template-columns: 1fr; } }
.wh-page .wh-drop { border: 2px dashed #cbd5e1; border-radius: 8px; padding: 14px; text-align: center; color: #64748b;
  font-size: 13px; background: #f8fafc; flex: 1; min-width: 280px; }
.wh-page .wh-drop.wh-drop-on { border-color: #2563eb; background: #eff6ff; }
.wh-page .wh-file { font-size: 13px; color: #334155; }
.wh-page .wh-ready { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.wh-page .wh-ready .tag { font-size: 12px; padding: 2px 8px; }
.wh-page .wh-kpis .kpi { cursor: default; }
.wh-page .wh-kpis .kpi:hover { border-color: #e2e8f0; }
.wh-page .wh-kpis .wh-kpi-amber, .wh-page .wh-kpis .wh-kpi-amber:hover { background: #fffbeb; border-color: #fde68a; }
.wh-page .wh-kpi-amber .kpi-v { color: #b45309; }
.wh-page .wh-kpi-sub { font-size: 12px; color: #64748b; margin-top: 4px; }
.wh-page .wh-why { font-size: 13px; color: #475569; margin: 4px 0 12px; }
.wh-page .wh-why b { color: #b45309; }
.wh-page .wh-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.wh-page .tbl td.why { color: #475569; font-size: 12px; }
.wh-page .tbl tr.minor td { color: #64748b; }
.wh-page .tbl td.neg { color: #b91c1c; }
.wh-page .tbl.sm td.r, .wh-page .tbl.sm th.r { white-space: nowrap; }
.wh-page .wh-sub-h { font-weight: 600; font-size: 13px; margin: 14px 0 6px; color: #334155; }
.wh-page .wh-check { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.wh-page .wh-check li { padding: 5px 0; border-bottom: 1px solid #f1f5f9; }
.wh-page .wh-ex { font-size: 12px; color: #64748b; }
.wh-page .dl { font-size: 12px; padding: 2px 8px; }
.wh-page .wh-steps { margin-top: 6px; display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; }
.wh-page .wh-step-done { color: #15803d; }
.wh-page .wh-step-doing { color: #b45309; font-weight: 600; }
.wh-page .wh-step-failed { color: #b91c1c; }
.wh-page .wh-step-todo { color: #94a3b8; }
