/* ============================================================
 * 批 K K-4（2026-10-14）：财务 › 经营指标（原型 S13 / S14）+ Charts 经营指标组件（kc-b* 利润桥、kc-hb 横条、kc-sg 分段条、kc-vb 竖柱）
 * 设计语言沿用《修改要求_2026-10-11》第十一节与 core-k-cockpit.css：间距 4/8/12/16/20/24、卡片圆角 12、状态色只表示状态并带文字。
 * 只作用于 .kfm（经营指标页）、.kfm-dr（下钻抽屉内容）和 .kc-b / .kc-hb / .kc-sg / .kc-vb 组件，不改别的页面。
 * 宽度：1366 左导航 188 + 右侧各节；> 1600 「数据更新」与筛选同一行；≤ 1100 导航收到顶部横排；≤ 767 手机单列、不横向滚动。
 * ============================================================ */
.kfm {
  --kf-ok: #0b8a0b; --kf-ok-bg: #e8f6e8; --kf-ok-dot: #0ca30c;
  --kf-warn: #a76a00; --kf-warn-bg: #fff4d6; --kf-warn-dot: #fab219;
  --kf-hard: #b4532a; --kf-hard-bg: #fdebe3; --kf-hard-dot: #ec835a;
  --kf-bad: #b42323; --kf-bad-bg: #fdecec; --kf-bad-dot: #d03b3b;
  --kf-sunk: #f8fafc; --kf-border-2: #cbd5e1; --kf-brand-50: #eff6ff;
  min-width: 0;
}
.kfm .card { border-radius: 12px; }
.kfm .card + .card, .kfm .u-card:where([data-legacy]) + .u-card:where([data-legacy]) { margin-top: 0; }   /* 批 V19 V19-13c：经营指标里的老卡片换成 u-card（带 data-legacy），版式那几条并列认它 */
.kfm .muted { color: var(--text-3); }
.kfm .up { color: var(--kf-ok); font-weight: 600; }
.kfm .down { color: var(--kf-bad); font-weight: 600; }
.kfm .bad { color: var(--kf-bad); }
.kfm-link { color: var(--u-brand); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }   /* 批 V18 V18-33 B：文字按钮的颜色 */
/* 批 V18 V18-33 D3 第二节（审核方 #401 11-18 06:49）：待补清单这张表放进自己的横滚容器，内容区不跟着横滚；最后一列「操作」照 app.css E 第 5 条钉在右边（放不下才出左边细线和阴影）；
 *   类名带 kfm- 前缀（这份样式只管经营指标，用例 377 ⑪、6161 ③） */
.kfm-fill-x { overflow-x: auto; }
/* 审核方 #401 11-18 07:08：表已经在自己的容器里滚，列不用再挤——单号、签约日不折行（单号原来在连字符处断开）；「主体」「路径」给最小宽度，俄文最多折两行（原来「Схема」一个词一行折 4 行），其余标签列不变；目标俄文 1366 一行约两行字高 */
.kfm-fill-x .kfm-fno > a, .kfm-fill-x .kfm-fdate { white-space: nowrap; }
/*   表放不下时每一列都压到最窄，中文能逐字折（路径原来 53 宽折 5 行），所以中文也给最小宽度：路径 120（「①A 中国企业ODI出海」最多两行）、主体 150；俄文（容器上的 kfm-ru，同 .kfm.kfm-ru）主体 180、路径 190 */
.kfm-fill-x .kfm-fent { min-width: 150px; }
.kfm-fill-x .kfm-fpath { min-width: 120px; }
.kfm-fill-x.kfm-ru .kfm-fent { min-width: 180px; }
.kfm-fill-x.kfm-ru .kfm-fpath { min-width: 190px; }
.kfm-link:hover { text-decoration: underline; }
.kfm-empty { color: var(--text-3); font-size: 13px; padding: 18px 4px; text-align: center; }
.kfm-est { font-size: 11px; color: var(--kf-warn); }

/* ---------- 吸顶筛选条 ---------- */
.kfm-bar { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 0 0 14px; position: sticky; top: 0; z-index: 20; background: linear-gradient(var(--bg) 84%, rgba(241, 245, 249, 0)); }
.kfm-bar .sp { flex: 1; }
.kfm-lb { font-size: 12.5px; color: var(--text-2); white-space: nowrap; margin-right: -4px; }
.kfm-seg { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 9px; padding: 2px; }
.kfm-seg button, .kfm-seg > span { border: 0; background: transparent; padding: 4px 11px; border-radius: 7px; font-size: 12.5px; color: var(--text-2); cursor: pointer; white-space: nowrap; font-family: inherit; }
.kfm-seg button.on, .kfm-seg > span.on { background: var(--brand); color: #fff; font-weight: 600; }
.kfm-seg.soft button.on, .kfm-seg.soft > span.on { background: var(--kf-brand-50); color: var(--brand); }
.kfm-seg button:focus-visible { outline: 2px solid #93c5fd; outline-offset: 1px; }
.kfm-seg button:disabled { opacity: .4; cursor: default; }
.kfm-per > span.on { cursor: default; min-width: 96px; text-align: center; }
.kfm-upd { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.kfm-upd .kfm-bad, #fd-fxst.bad a { color: var(--kf-bad); font-weight: 600; cursor: pointer; }
@media (max-width: 1600px) { .kfm-bar .sp { display: none; } .kfm-upd { flex-basis: 100%; margin-top: -4px; } }

/* ---------- 左导航 + 右侧各节 ---------- */
.kfm-grid { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 20px; align-items: start; }
.kfm.kfm-only .kfm-grid { grid-template-columns: minmax(0, 1fr); }
.kfm-nav { position: sticky; top: 62px; padding: 8px; z-index: 5; }
.kfm-nav a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: var(--text-2); cursor: pointer; text-decoration: none; }
.kfm-nav a:hover { background: var(--kf-sunk); }
.kfm-nav a.on { background: var(--kf-brand-50); color: var(--brand); font-weight: 650; }
.kfm-nav a:focus-visible { outline: 2px solid #93c5fd; outline-offset: -2px; }
.kfm-nav .k { font-size: 11px; color: var(--text-3); margin-left: auto; font-weight: 400; }
.kfm-nav .k.warn { color: var(--kf-warn); font-weight: 650; }
.kfm-nav .hr { height: 1px; background: var(--border); margin: 8px 4px; }
.kfm-dq { margin: 6px 4px 2px; padding: 10px; border-radius: 10px; background: var(--kf-warn-bg); color: #6b4500; font-size: 12px; line-height: 1.5; cursor: pointer; }
.kfm-dq b { display: block; font-size: 12.5px; margin-bottom: 2px; }
.kfm-dq.ok { background: var(--kf-ok-bg); color: var(--kf-ok); }
.kfm-body { min-width: 0; }
.kfm-sec { margin-bottom: 26px; scroll-margin-top: 70px; }
.kfm-sec > h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; font-size: 16px; font-weight: 650; margin: 2px 0 12px; }
.kfm-sec > h2 .sub { font-size: 12px; color: var(--text-3); font-weight: 400; }
.kfm-sec > h2 .sp { flex: 1; }
.kfm-sec > h2 .kfm-seg { align-self: center; }
.kfm-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kfm-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kfm .card-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kfm .card-hd .sp { flex: 1; }
.kfm-q { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 4px; border-radius: 50%; border: 1px solid var(--kf-border-2); color: var(--text-3); font-size: 10px; font-weight: 600; line-height: 1; cursor: help; vertical-align: 1px; flex: 0 0 auto; }
.kfm-q:hover, .kfm-q:focus-visible { border-color: #2563eb; color: #2563eb; outline: none; }
.kfm-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.kfm-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.kfm-st.ok { background: var(--kf-ok-bg); color: var(--kf-ok); } .kfm-st.ok::before { background: var(--kf-ok-dot); }
.kfm-st.warn { background: var(--kf-warn-bg); color: var(--kf-warn); } .kfm-st.warn::before { background: var(--kf-warn-dot); }
.kfm-st.hard { background: var(--kf-hard-bg); color: var(--kf-hard); } .kfm-st.hard::before { background: var(--kf-hard-dot); }
.kfm-st.bad { background: var(--kf-bad-bg); color: var(--kf-bad); } .kfm-st.bad::before { background: var(--kf-bad-dot); }
.kfm-st.idle { background: var(--kf-sunk); color: var(--text-2); } .kfm-st.idle::before { background: var(--text-3); }
.kfm-legend { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin-top: 6px; }
.kfm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.kfm-legend span[role="button"] { cursor: pointer; }
.kfm-legend span[role="button"]:hover { color: var(--text); }
.kfm-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

/* 经营结果 */
.kfm-bridge { padding: 18px 20px 16px; }
.kfm-bwrap { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.kfm-bmain { min-width: 0; }
.kfm-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 8px; }
.kfm-big .v { font-size: 44px; font-weight: 700; letter-spacing: -.02em; line-height: 1; cursor: pointer; font-variant-numeric: tabular-nums; }
.kfm-big .l { font-size: 14px; color: var(--text-2); }
.kfm-warnline { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--kf-warn-bg); color: #6b4500; font-size: 12.5px; line-height: 1.5; }
.kfm-warnline .sp { flex: 1; }
.kfm-wi { color: var(--kf-warn-dot); }
.kfm-side { display: grid; grid-template-rows: repeat(3, 1fr); gap: 10px; }
.kfm-sk { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--kf-sunk); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; cursor: pointer; }
.kfm-sk:hover { box-shadow: 0 0 0 2px #dbeafe; }
.kfm-sk .t { font-size: 12.5px; color: var(--text-2); display: flex; gap: 6px; align-items: center; }
.kfm-sk .t i { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto; }
.kfm-sk .c { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.kfm-sk .n { font-size: 21px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* 目标完成 */
.kfm-tgts { padding: 6px 18px; }
.kfm-tgt { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid var(--border); cursor: pointer; }
.kfm-tgt:first-child { border-top: 0; }
.kfm-tgt .nm { font-weight: 650; font-size: 13.5px; display: flex; align-items: center; }
.kfm-tgt .vv { text-align: right; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kfm-tgt .vv b { font-size: 15px; }
.kfm-cyc { margin-top: 12px; font-size: 12.5px; color: var(--text-2); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.kfm-cyc b { font-size: 15px; color: var(--text); }
/* 表格 */
.kfm-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.kfm-tbl th { font-size: 12px; color: var(--text-3); font-weight: 500; text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.kfm-tbl td { padding: 9px 10px; border-bottom: 1px solid var(--border); }
.kfm-tbl tbody tr:last-child td { border-bottom: 0; }
.kfm-tbl .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kfm-tbl tr[role="button"] { cursor: pointer; }
.kfm-tbl tr[role="button"]:hover td { background: var(--kf-sunk); }
.kfm-tbl td.bad { color: var(--kf-bad); }
.kfm-stbl { padding: 6px 18px 8px; }
.kfm-tip { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; cursor: pointer; background: #fff; }
.kfm-tip:hover { background: var(--kf-sunk); }
.kfm-tip .x { font-size: 13.5px; flex: 1; }
.kfm-tip .kfm-go { color: var(--text-3); }
.kfm-tip.ok { cursor: default; }
/* 指标口径页 */
.kfm-ftbl td { font-size: 12.5px; vertical-align: top; line-height: 1.55; }
.kfm-ftbl td:first-child { white-space: nowrap; }
.kfm-ftbl td:nth-child(2) { width: 32%; }
.kfm-ftbl td:nth-child(3) { width: 17%; }

/* ---------- 下钻抽屉（S14） ---------- */
.kfm-dh { font-weight: 650; }
.kfm-dh-sub { font-size: 12px; color: var(--text-3); font-weight: 400; margin-left: 10px; }
.kfm-dh-ex { font-size: 13px; font-weight: 500; color: #2563eb; cursor: pointer; margin-left: 16px; }
.kfm-dr .kfm-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kfm-dr .kfm-sc { background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.kfm-dr .kfm-sc span { font-size: 12px; color: var(--text-2); }
.kfm-dr .kfm-sc b { display: block; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.kfm-dr .kfm-sc.warn b { color: #a76a00; }
.kfm-dr .kfm-formula { font-size: 12px; color: var(--text-2); background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; padding: 8px 10px; margin-bottom: 12px; line-height: 1.55; }
.kfm-dr .kfm-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.kfm-dr .kfm-tabs button { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; color: var(--text-2); cursor: pointer; font-family: inherit; }
.kfm-dr .kfm-tabs button.on { background: #eff6ff; border-color: #bfdbfe; color: var(--brand); font-weight: 600; }
.kfm-dr .kfm-tbl a[data-oid] { color: var(--text); cursor: pointer; white-space: nowrap; }
.kfm-dr .kfm-tbl a[data-oid]:hover { color: #2563eb; text-decoration: underline; }
.kfm-dr .kfm-tbl tfoot td { border-top: 1px solid var(--border); border-bottom: 0; font-weight: 600; }
.kfm-dr .kfm-pg { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--text-3); }
.kfm-dr .kfm-pg .sp { flex: 1; }
.kfm-dr .kfm-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.kfm-dr .kfm-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.kfm-dr .kfm-st.warn { background: #fff4d6; color: #a76a00; } .kfm-dr .kfm-st.warn::before { background: #fab219; }
.kfm-dr .kfm-st.idle { background: #f8fafc; color: var(--text-2); } .kfm-dr .kfm-st.idle::before { background: var(--text-3); }
.kfm-dr .kfm-empty { color: var(--text-3); font-size: 13px; padding: 18px 4px; text-align: center; }
.kfm-dr .kfm-est { font-size: 11px; color: #a76a00; }
.kfm-dr .kfm-tbl tr[data-opk] { cursor: pointer; }
.kfm-dr .kfm-tbl tr[data-opk]:hover td { background: #f8fafc; }

/* ---------- Charts 组件：利润桥 ---------- */
.kc-bridge { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; padding: 22px 0 0; }
.kc-bz { position: absolute; left: -16%; right: -16%; height: 0; border-top: 1px solid #cbd5e1; text-decoration: none; }
.kc-bcol { position: relative; display: flex; flex-direction: column; cursor: pointer; min-width: 0; container-type: inline-size; }
.kc-bcol:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; border-radius: 6px; }
.kc-bplot { position: relative; height: var(--kc-bh, 200px); margin: 0 14%; }
.kc-bbar { position: absolute; left: 0; right: 0; border-radius: 5px; opacity: .92; }
.kc-bcol.tot .kc-bbar { opacity: 1; }
.kc-bcol:hover .kc-bbar { filter: brightness(1.08); box-shadow: 0 0 0 2px #dbeafe; }
/* 批 R R1-13：柱顶金额不再伸出到相邻柱（左右 −19.44% = 柱子所在整列的宽度，.kc-bplot 两边各缩 14%），列窄时字号降到 11px；
 * 柱下小字放在标签下面正常排版，11px、最多 2 行、超出省略（全文在 title） */
.kc-bval { position: absolute; left: -19.44%; right: -19.44%; text-align: center; font-size: 12.5px; font-weight: 650; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
@container (max-width: 100px) { .kc-bval { font-size: 11px; } }
.kc-bnote { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 4px 0; text-align: center; font-size: 11px; line-height: 1.3; color: #a76a00; overflow-wrap: anywhere; }
.kc-blink { position: absolute; left: 100%; width: 40%; height: 0; border-top: 1px dashed #94a3b8; }
.kc-blbl { text-align: center; font-size: 12.5px; color: #475569; padding: 6px 2px 0; line-height: 1.3; min-height: 36px; display: flex; align-items: flex-start; justify-content: center; flex-wrap: wrap; gap: 0 2px; }
/* 横条带目标刻度（按顾问） */
.kc-hbars { display: grid; gap: 4px; }
.kc-hb { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 5px 4px; border-radius: 6px; cursor: pointer; font-size: 12.5px; }
.kc-hb:hover { background: #f8fafc; }
.kc-hb-l { color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 批 V18 V18-33 公共件（审核方 #365 ★12）：排行条单色——值最大的那一条（.top）data-1、其余 data-2；没在做的灰 data-0 */
.kc-hb-t { position: relative; height: 12px; background: var(--u-data-track); border-radius: 3px; }
.kc-hb-t > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--u-data-2); border-radius: 3px; }
.kc-hb.top .kc-hb-t > i { background: var(--u-data-1); }
.kc-hb.idle .kc-hb-t > i { background: var(--u-data-0); }
.kc-hb-t > b { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: #64748b; border-radius: 1px; }
.kc-hb-v { white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 92px; }
.kc-hb-v small { color: #94a3b8; font-size: 11.5px; }
/* 分段条（账龄） */
.kc-sg { display: flex; gap: 2px; height: 22px; border-radius: 6px; overflow: hidden; margin: 8px 0 6px; background: var(--u-data-track); }   /* 批 V18 V18-33：段之间留 2px，同色的两段（61–90、90 天以上都是琥珀）也分得开 */
.kc-sg i { display: block; height: 100%; cursor: pointer; }
.kc-sg i:hover { filter: brightness(1.06); }
.kc-sg i.none { flex: 1; cursor: default; }
/* 竖柱（13 周、在手订单） */
.kc-vbars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; align-items: end; }
.kc-vb { display: flex; flex-direction: column; align-items: stretch; cursor: pointer; min-width: 0; }
.kc-vb-p { height: var(--kc-vh, 130px); display: flex; flex-direction: column-reverse; justify-content: flex-start; border-bottom: 1px solid #cbd5e1; }
.kc-vb-p i { display: block; width: 100%; border-radius: 3px 3px 0 0; }
.kc-vb-p i + i { border-radius: 3px 3px 0 0; margin-bottom: 1px; }
.kc-vb:hover .kc-vb-p i { filter: brightness(1.08); }
.kc-vb-x { font-size: 11px; color: #64748b; text-align: center; padding-top: 4px; white-space: nowrap; min-height: 18px; }

/* ---------- 宽度 ---------- */
.kfm.kfm-ru .kfm-tgt { grid-template-columns: 150px minmax(0, 1fr) auto; }
.kfm.kfm-ru .kc-hb { grid-template-columns: 90px minmax(0, 1fr) auto; }
@media (max-width: 1440px) {
  .kfm-big .v { font-size: 38px; }
  .kfm-bwrap { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
  .kfm-sk .n { font-size: 19px; }
  .kfm.kfm-ru .kfm-g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kfm.kfm-ru .kfm-g3 > .card:first-child, .kfm.kfm-ru .kfm-g3 > .u-card:where([data-legacy]):first-child { grid-column: 1 / 3; }
}
@media (max-width: 1100px) {
  .kfm-g3.kfm-g3cf { grid-template-columns: minmax(0, 1fr); }
  .kfm-g3.kfm-g3cf > .card:first-child, .kfm-g3.kfm-g3cf > .u-card:where([data-legacy]):first-child { grid-column: auto; }
  .kfm-grid { grid-template-columns: minmax(0, 1fr); }
  .kfm-nav { position: static; display: flex; flex-wrap: wrap; gap: 2px; }
  .kfm-nav .hr { display: none; }
  .kfm-dq { flex-basis: 100%; }
  .kfm-bwrap, .kfm-g2, .kfm-g3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  body.app-shell .main > .content:has(#kfm-page) { min-width: 0; }
  .kfm-bar { position: static; }
  .kfm-dr .kfm-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kfm-tbl { display: block; overflow-x: auto; }
  .kc-blbl { font-size: 11px; }
}

/* ============================================================
 * 批 B B1-e（2026-10-28）：经营指标 · 趋势与对比（kc-bl 柱 + 去年同期线、kfm-tr 卡）、分析维度（kfm-dm）、在手现金三列（kfm-cf）
 * 选择器一律落在 .kc-bl / .kfm-* 下（用例 377 ⑪），不改别的页面
 * ============================================================ */
/* 批 V18 V18-33 公共件（审核方 #365 ★12；★B 审核方 #369 11-17 19:35）：柱 data-2、本期（至今）data-1、负数柱 data-3，不再有红色填充；
   去年同期是参照线，不占数据色——灰虚线 --u-control、1.5px（琥珀只留给要人注意的一段） */
.kc-bl { --kc-blbar: var(--u-data-2); --kc-blln: var(--u-control); }
.kc-bl-plot { position: relative; height: var(--kc-blh, 190px); margin-top: 18px; }
.kc-bl-z { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid #cbd5e1; }
.kc-bl-cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--kc-bln, 12), minmax(0, 1fr)); gap: 0; }
.kc-bl-c { position: relative; cursor: pointer; border-radius: 4px; }
.kc-bl-c:hover { background: rgba(148, 163, 184, .12); }
.kc-bl-bar { position: absolute; left: 22%; right: 22%; background: var(--kc-blbar); border-radius: 3px 3px 0 0; }
.kc-bl-c.neg .kc-bl-bar { background: var(--u-data-3); border-radius: 0 0 3px 3px; }
.kc-bl-c.part .kc-bl-bar { background: var(--u-data-1); }
.kc-bl-v { position: absolute; left: 0; right: 0; text-align: center; font-size: 10.5px; color: #475569; white-space: nowrap; font-variant-numeric: tabular-nums; pointer-events: none; }
.kc-bl-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.kc-bl-line polyline { fill: none; stroke: var(--kc-blln); stroke-width: 1.5; stroke-dasharray: 4 4; stroke-linejoin: round; stroke-linecap: round; }
.kc-bl-dot { position: absolute; width: 7px; height: 7px; margin: 0 0 -3.5px -3.5px; border-radius: 50%; background: #fff; border: 2px solid var(--kc-blln); box-sizing: border-box; cursor: help; }
.kc-bl-xs { display: grid; grid-template-columns: repeat(var(--kc-bln, 12), minmax(0, 1fr)); border-top: 1px solid #e2e8f0; padding-top: 4px; }
.kc-bl-x { font-size: 11px; color: #64748b; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 1px; }
.kc-bl-x small { display: block; font-size: 10px; color: #b45309; }
.kc-bl-lg { display: flex; gap: 16px; justify-content: flex-end; font-size: 11.5px; color: #64748b; margin-top: 6px; }
.kc-bl-lg i { display: inline-block; vertical-align: middle; margin-right: 5px; }
.kc-bl-lg i.bar { width: 10px; height: 10px; border-radius: 2px; background: var(--kc-blbar); }
.kc-bl-lg i.ln { width: 14px; height: 0; border-top: 1.5px dashed var(--kc-blln); }

.kfm-tr { margin-top: 12px; }
.kfm-tr .card-hd { flex-wrap: wrap; gap: 8px; }
.kfm-tr-tbl { margin-top: 10px; }
.kfm-tr-tbl summary { cursor: pointer; font-size: 12.5px; color: #475569; padding: 4px 0; }
.kfm-tr-tbl .kfm-tbl td.up { color: #047857; }
.kfm-tr-tbl .kfm-tbl td.down { color: #b91c1c; }
.kfm-tr-note { font-size: 11.5px; color: #94a3b8; }

.kfm-dm-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.kfm-dm .kfm-stbl { overflow-x: auto; }
@media (min-width: 1800px) { .kfm-dm-wrap { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.kfm-dm .kfm-tbl td.lk a { color: #1e40af; text-decoration: none; }
.kfm-dm .kfm-tbl td.lk a:hover { text-decoration: underline; }
.kfm-dm .kfm-tbl tr.kid td:first-child { padding-left: 26px; color: #475569; }
.kfm-dm .kfm-tbl tr.none td { color: #94a3b8; }
.kfm-dm .kfm-tbl .tg { cursor: pointer; color: #64748b; margin-right: 4px; display: inline-block; width: 12px; }
.kfm-dm .kfm-tbl td.num { cursor: pointer; }
.kfm-dm .kfm-tbl td.num:hover { background: #f1f5f9; }
.kfm-dm-cmp { font-size: 11px; color: #94a3b8; display: block; }
.kfm-dm-ctl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* 在手现金加了「财务确认 / 差额」两列：这张卡占第一行整行，账龄和逾期客户在下一行并排（同俄文 ≤ 1440 的排法） */
.kfm-g3.kfm-g3cf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kfm-g3.kfm-g3cf > .card:first-child, .kfm-g3.kfm-g3cf > .u-card:where([data-legacy]):first-child { grid-column: 1 / 3; }
.kfm-g3cf .kfm-cf td { white-space: nowrap; }
.kfm-g3cf > .card:first-child .card-bd, .kfm-g3cf > .u-card:where([data-legacy]):first-child .card-bd { overflow-x: auto; }
.kfm-cf td.diff.bad { color: #b91c1c; font-weight: 600; }
.kfm-cf .cf-meta { display: block; font-size: 11px; color: #94a3b8; }
.kfm-cf .cf-btn { font-size: 11.5px; padding: 1px 6px; }
@media (max-width: 767px) {
  /* 批 B B1-e：经营指标页手机外壳（同人事 / 会议模板页的写法）：藏侧栏、顶栏收紧、主区不设最小宽、弹窗 / 抽屉铺满 */
  body.app-shell:has(#kfm-page) .sidebar { display: none; }
  body.app-shell:has(#kfm-page) .topbar { padding: 8px 12px; height: auto; flex-wrap: wrap; gap: 8px; }
  body.app-shell:has(#kfm-page) .topbar .crumb { display: none; }
  body.app-shell .main > .content:has(#kfm-page) { padding: 12px 12px 32px; }
  body.app-shell:has(#kfm-page) .drawer { left: 8px; right: 8px; top: 8px; bottom: 8px; width: auto !important; min-width: 0 !important; max-width: none !important; }
  body.app-shell:has(#kfm-page) .modal-box { width: calc(100vw - 24px) !important; max-width: none; }
  .kfm-tr .card-hd .kfm-seg { flex-wrap: wrap; }
  .kc-bl-v { display: none; }
  .kc-bl-x { font-size: 9px; text-overflow: clip; overflow: visible; padding: 0; letter-spacing: -.2px; }
  .kc-bl-x small { font-size: 8.5px; white-space: nowrap; }
  .kfm-dm .kfm-tbl, .kfm-tr-tbl .kfm-tbl { display: block; overflow-x: auto; }
}

/* ============================================================
 * 批 B 热修 H1（审核方 10-28 23:15）：经营指标切换不闪跳
 * - 取数期间旧内容留着变淡、点不了（高度由 JS 锁住，回包后放开）：看板整块（换期间 / 主体 / 币种）、趋势卡身、「预算执行」卡、分析维度表格区
 * - 结构与质量标题栏、趋势卡头的按钮高亮不改字重（俄文加粗会变宽，按钮跟着挪）；对比按钮组原四维时置灰（disabled，悬停有说明）
 * ============================================================ */
.kfm-loading { opacity: .5; pointer-events: none; transition: opacity .12s ease; }
.kfm-st-hd .kfm-seg button.on, #kfm-tr-hd .kfm-seg button.on { font-weight: 400; text-shadow: .3px 0 0 currentColor; }
.kfm-st-hd .kfm-seg button:disabled { cursor: not-allowed; }
.kfm-tr-est { text-align: right; font-size: 12px; line-height: 1.4; }

/* ============================================================
 * 批 V18 V18-25 ★7（审核方 #367 11-17 19:35）：经营指标减重，尺寸照经营总览（core-v17-o6.css）。
 *   只在经营指标页（#kfm-page）里改尺寸，不动 charts.js 的 HTML、不动颜色（颜色是 #369 定的数据色）；
 *   AI 新媒体页也用 kBarLine，那边不跟着变。
 *   利润桥：柱宽不超过 28、圆角 6；柱与柱之间的虚线从这根柱的右边连到下一根柱的左边（列宽 = 柱区宽 ÷ 0.72，柱区两边各缩 14%）。
 *   趋势与对比：柱宽不超过 20、圆角 6（站在零线上的一头不圆，负数柱反过来）。
 *   目标完成进度条高 4、排行条高 3（经营总览的进度条 4、排行条 3）。
 * ============================================================ */
#kfm-page .kc-bplot .kc-bbar { left: 0; right: 0; margin: 0 auto; width: min(28px, 100%); border-radius: 6px; }
#kfm-page .kc-blink { left: calc(50% + 14px); width: calc(138.89% - 28px); }
#kfm-page .kc-bl-bar { left: 0; right: 0; margin: 0 auto; width: min(20px, 56%); border-radius: 6px 6px 0 0; }
#kfm-page .kc-bl-c.neg .kc-bl-bar { border-radius: 0 0 6px 6px; }
#kfm-page .kc-bar { height: 4px; }
#kfm-page .kc-hb-t { height: 3px; border-radius: 2px; }
#kfm-page .kc-hb-t > i { border-radius: 2px; }
