/* ================================================================
 * SCM 供应链协同 —— 样式
 * 复用 style.css 的设计令牌（--primary / --border / --text-2 等）
 * ================================================================ */

/* 图表容器 */
.scm-chart { width: 100%; height: 268px; }
.scm-chart-sm { height: 210px; }

/* 说明文字 */
.scm-note { font-size: 12px; color: var(--text-3); margin-top: 8px; line-height: 1.6; }
.scm-muted { color: var(--text-3); font-size: 12.5px; }
.scm-scroll { overflow-x: auto; }

/* 分值条 */
.scm-bar {
  position: relative; width: 120px; height: 18px;
  background: #f1f5f9; border-radius: 9px; overflow: hidden;
}
.scm-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 9px; }
.scm-bar em {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-style: normal; font-size: 10.5px; font-weight: 700; line-height: 1;
  background: #fff; padding: 2px 4px; border-radius: 6px;
  box-shadow: 0 0 0 1px var(--border);
}

/* 供应矩阵 */
/* 供应矩阵：整体密度收紧一档（原来格子 46px、表头 118px，一屏只看得到 4 行）
   目标是一屏能多看到 3~4 行，同时字不发虚。 */
.scm-matrix-wrap { overflow: auto; max-height: 74vh; }
table.scm-mx { border-collapse: separate; border-spacing: 2px; font-size: 11.5px; }
.scm-mx th, .scm-mx td { padding: 0; font-weight: 400; }
.scm-mx-th {
  writing-mode: vertical-rl; text-orientation: mixed;
  background: #fafbfd; color: var(--text-2); font-weight: 600;
  font-size: 10.5px; padding: 6px 2px; height: 96px; vertical-align: bottom;
  white-space: nowrap; border-bottom: 1px solid var(--border);
}
.scm-mx-corner {
  position: sticky; left: 0; z-index: 3; background: #fff;
  font-size: 10.5px; color: var(--text-2); padding: 5px 7px; white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.scm-mx-rowhead {
  position: sticky; left: 0; z-index: 2; background: #fff;
  white-space: nowrap; padding: 5px 8px; font-size: 12px; font-weight: 600;
  border-right: 1px solid var(--border); min-width: 100px; max-width: 100px;
  overflow: hidden; text-overflow: ellipsis;
}
.scm-mx-rowhead.crit { color: var(--danger); }
/* 类别副标题（“屏幕”“电池”）压到 9.5px、行高 1.1，不再额外占一整行 */
.scm-mx-cat { display: block; font-size: 9.5px; line-height: 1.1; color: var(--text-3); font-weight: 400; }
.scm-mx-cell { min-width: 38px; }
.scm-mx-empty { text-align: center; color: #cbd5e1; font-size: 11px; }
.scm-cell {
  border-radius: 5px; padding: 5px 3px; text-align: center;
  font-weight: 700; font-size: 11px; line-height: 1.1;
}
.scm-cell i { display: block; font-style: normal; font-size: 9.5px; font-weight: 600; opacity: .82; }
/* 表头吸顶：往下滚几屏后，竖排的供应商名必须还在，否则格子就变成「无主的数字」 */
.scm-mx thead th { position: sticky; top: 0; z-index: 4; background: #fafbfd; }
.scm-mx-corner { z-index: 6; background: #fff; }
/* 奇偶列交替底色：14 列不再糊成一片，顺带把空格（·）也分出列 */
.scm-mx tbody td:nth-child(even) { background: rgba(37,99,235,.03); }
/* 十字定位：悬停哪一格，整行整列亮，其余淡到 1/3 */
.scm-mx tbody tr[data-row] td { transition: opacity .12s ease, background .12s ease; }
.scm-mx.focusing tbody tr[data-row] td { opacity: .55; }
.scm-mx.focusing tbody tr[data-row] td.mx-hl { opacity: 1; }
.scm-mx.focusing thead th:not(.mx-hl) { opacity: .55; }
.scm-mx th.mx-hl { color: var(--primary); }
.scm-mx.focusing tbody td.mx-hl.scm-mx-empty { background: rgba(37,99,235,.14); }
.scm-mx.focusing tbody td.mx-hl { box-shadow: inset 0 0 0 1px rgba(37,99,235,.22); }
/* 可点击的格子/表头：给出手型与悬停反馈，让"能点"这件事被看见 */
.scm-cell-hit { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.scm-cell-hit:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(37,99,235,.28); }
.scm-mx-hit { cursor: pointer; }
.scm-mx-hit:hover { color: var(--primary); }
/* 表格行可下钻 */
.scm-row-hit { cursor: pointer; }
.scm-row-hit:hover td { background: rgba(37,99,235,.045); }

/* 图例 */
.scm-legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); margin-bottom: 10px; flex-wrap: wrap; }
.scm-sw { width: 20px; height: 12px; border-radius: 3px; display: inline-block; }

/* 工具栏 / 下拉 */
.scm-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.scm-sel-label { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 8px; font-weight: 600; }
.scm-sel { padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; background: #fff; }

/* 场景筛选表单 */
.scm-filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.scm-filters label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12.5px; color: var(--text-2); font-weight: 600;
}
.scm-filters input, .scm-filters select {
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; min-width: 132px; background: #fff; font-family: inherit;
}
.scm-filters input:focus, .scm-filters select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* 场景说明 */
.scm-desc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
.scm-desc > div { display: flex; gap: 10px; font-size: 13px; line-height: 1.6; }
.scm-desc b { color: var(--text-2); min-width: 42px; flex: 0 0 auto; }
.scm-desc span { color: var(--text); }

@media (max-width: 900px) {
  .scm-desc { grid-template-columns: 1fr; }
  .scm-mx-th { height: 96px; }
}

/* ==================== 2026-11-26 改版新增 ==================== */

/* ---- BOM 清单筛选条 ---- */
.scm-filterbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
  padding: 12px 14px; background: #f8fafc; border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 14px;
}
.scm-filterbar label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 12px; color: var(--text-2); font-weight: 600;
}
.scm-filterbar select, .scm-filterbar input {
  padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; background: #fff; font-family: inherit; min-width: 132px;
}
.scm-filterbar select:focus, .scm-filterbar input:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.scm-filterbar .scm-grow { flex: 1 1 180px; }
.scm-filterbar .scm-grow input { min-width: 100%; }

/* 候选数做成可点链接，别让人以为只是文字 */
.scm-sup-link {
  color: var(--primary); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed rgba(37,99,235,.5); padding-bottom: 1px;
}
.scm-sup-link:hover { color: var(--primary-dark); border-bottom-style: solid; }

/* ---- 类别树（由上至下，带占比）---- */
.scm-chart-tall { height: 300px; }
.scm-tree { margin-top: 6px; border-top: 1px dashed var(--border); padding-top: 10px; }
.scm-tree-cat { border-bottom: 1px solid #f1f5f9; }
.scm-tree-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 6px;
  cursor: pointer; border-radius: 8px; transition: background .15s;
}
.scm-tree-head:hover { background: #f8fafc; }
.scm-caret { color: var(--text-3); font-size: 11px; width: 12px; }
.scm-tree-head b { font-size: 13.5px; min-width: 64px; }
.scm-tree-meta { font-size: 12px; color: var(--text-2); }
.scm-tree-bar {
  flex: 1; max-width: 260px; height: 6px; background: #eef2f7;
  border-radius: 4px; overflow: hidden; margin-left: auto;
}
.scm-tree-bar i { display: block; height: 100%; background: linear-gradient(90deg, #60a5fa, #2563eb); border-radius: 4px; }
.scm-tree-body { padding: 0 0 8px 34px; }
.scm-tree-leaf {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px; font-size: 12.5px; color: var(--text-2);
  border-radius: 6px; cursor: pointer;
}
.scm-tree-leaf:hover { background: #eff6ff; color: var(--primary); }
.scm-tree-leaf-n { color: var(--text-3); font-size: 11.5px; }
.scm-tree-body.hidden { display: none; }

/* ---- 矩阵页紧凑指标条 ---- */
.scm-metrics {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px;
}
.scm-metric {
  display: flex; align-items: baseline; gap: 7px; background: var(--card);
  border: 1px solid var(--border); border-radius: 9px; padding: 9px 14px;
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.scm-metric span { font-size: 12px; color: var(--text-2); }
.scm-metric b { font-size: 17px; font-weight: 700; letter-spacing: -.3px; }
.scm-metric b em.danger { color: var(--danger); font-style: normal; }
.scm-metric-tip { font-size: 11.5px; color: var(--text-3); margin-left: auto; }

/* ---- 矩阵放大版（密度已收一档：格子 56→44、表头 108→92、行头 146→112）---- */
.scm-mx-lg .scm-mx-th { height: 92px; font-size: 10.5px; }
.scm-mx-lg .scm-cell {
  min-width: 44px; height: 32px; border-radius: 6px; font-size: 11.5px;
  font-weight: 700; letter-spacing: -.2px;
}
.scm-mx-lg .scm-cell i {
  display: block; font-size: 9px; font-weight: 700; font-style: normal; opacity: .85;
}
.scm-mx-lg td { padding: 3px 3px; }
.scm-mx-lg .scm-mx-rowhead {
  font-size: 12px; min-width: 112px; max-width: 112px; padding: 5px 8px;
  overflow: hidden; text-overflow: ellipsis;
}
.scm-mx-group td {
  background: #f8fafc; font-size: 11px; font-weight: 700; color: var(--text-2);
  letter-spacing: .5px; padding: 4px 10px; border-top: 1px solid var(--border);
}
.scm-mx-group td span { font-weight: 400; color: var(--text-3); margin-left: 6px; }
.scm-crit-dot {
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--danger); margin-right: 5px; vertical-align: middle;
}
.scm-sw-note { margin-left: auto; color: var(--text-3); font-size: 11.5px; }

/* ---- 能力评估：勾选与对比条 ---- */
.scm-pick-th { width: 44px; text-align: center; font-size: 11.5px; }
.scm-pick-td { width: 44px; text-align: center; }
.scm-pick { width: 15px; height: 15px; cursor: pointer; accent-color: var(--primary); }
.scm-pickbar {
  position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-top: 1px solid var(--border); background: rgba(248,250,252,.96);
  backdrop-filter: blur(6px); border-radius: 0 0 var(--radius) var(--radius);
}
.scm-pickbar #scm-pick-txt { font-size: 12.5px; color: var(--text-2); margin-right: auto; }
.scm-toolbar-tip { font-size: 11.5px; color: var(--text-3); margin-left: auto; }

/* ---- 雷达弹窗两栏 ---- */
.scm-radar-wrap { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(320px, 1.05fr); gap: 20px; }

/* 多家候选对比弹窗：默认 .modal-wide 只有 880px，5 列一挤「最优」就竖着变形。
   单独给这个弹窗更宽的空间，并把最后一列固定成省略号，不再折行。 */
.modal-cmp { max-width: 1240px; }
.modal-cmp .modal-body { padding: 18px 22px; }
.modal-cmp .scm-radar-wrap { grid-template-columns: minmax(340px, .95fr) minmax(540px, 1.35fr); gap: 22px; }
.modal-cmp .tbl-compact th, .modal-cmp .tbl-compact td { white-space: nowrap; }
.modal-cmp .tbl-compact th:last-child, .modal-cmp .tbl-compact td:last-child { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.scm-ai-placeholder { color: #94a3b8; font-size: 12.5px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; padding: 14px 16px; }
.scm-chart-radar { height: 330px; }
.scm-center { text-align: center; }
.scm-radar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.scm-radar-name { font-size: 16px; font-weight: 700; }
.scm-radar-score { text-align: right; }
.scm-radar-score b { font-size: 26px; font-weight: 700; letter-spacing: -1px; color: var(--primary); }
.scm-radar-score span { display: block; font-size: 10.5px; color: var(--text-3); }

/* 紧凑表格：弹窗里表格不要太占高 */
.tbl-compact th, .tbl-compact td { padding: 7px 9px; font-size: 12.5px; }
/* 紧凑表里的徽章同步收小：否则行高被徽章撑住，光收 padding 看不出效果 */
.tbl-compact .badge { padding: 2px 8px; font-size: 11.5px; line-height: 1.5; }
.tbl-compact .btn-sm { padding: 4px 10px; font-size: 12px; }
.tbl-compact td.up { color: var(--success); font-weight: 600; }
.tbl-compact td.down { color: var(--danger); font-weight: 600; }
.tbl-compact td.scm-best { background: #ecfdf5; color: #047857; font-weight: 700; }
.tbl-compact tr.scm-row-sum td { background: #f8fafc; }

/* 结论 / AI 区 */
.scm-verdict {
  margin-top: 12px; padding: 12px 14px; background: #f8fafc;
  border: 1px solid var(--border); border-radius: 10px;
}
.scm-verdict-line { font-size: 12.5px; line-height: 1.9; color: var(--text); }
.scm-verdict-line b { color: var(--text-2); font-weight: 600; margin-right: 6px; }
.scm-ai-box {
  margin-top: 12px; border: 1px solid #dbeafe; border-radius: 10px;
  background: linear-gradient(180deg, #f5f9ff, #fff);
}
.scm-ai-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 13px; border-bottom: 1px solid #e6efff;
  font-size: 12.5px; font-weight: 700; color: #1e40af;
}
.scm-ai-body { padding: 11px 13px; font-size: 12.5px; line-height: 1.85; color: var(--text-2); }
.scm-ai-text { white-space: pre-wrap; font-size: 12.5px; line-height: 1.85; color: var(--text); }
.scm-ai-note { margin-top: 8px; font-size: 11px; color: var(--text-3); }
.scm-ai-loading { color: var(--text-3); font-size: 12.5px; }
.scm-ai-loading::after { content: ''; animation: scmDots 1.2s steps(4, end) infinite; }
@keyframes scmDots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* 公式展示 */
.scm-formula {
  padding: 12px 16px; background: #f8fafc; border: 1px dashed var(--border);
  border-radius: 10px; font-size: 13px; color: var(--text-2); line-height: 1.9;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.scm-formula b { color: var(--primary); font-size: 15px; }
.scm-formula-lg { text-align: center; font-size: 13.5px; }

@media (max-width: 980px) {
  .scm-radar-wrap { grid-template-columns: 1fr; }
  .scm-chart-radar { height: 300px; }
  .scm-metrics { gap: 8px; }
  .scm-metric { padding: 8px 11px; }
  .scm-toolbar-tip { display: none; }
}

/* ==================== 供应商档案（2026-11-26 重做） ==================== */
.sup-hero {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.sup-name { font-size: 19px; font-weight: 700; letter-spacing: -.3px; }
.sup-badges { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 6px; }
.sup-sub { margin-top: 8px; font-size: 12px; color: var(--text-3); }
.sup-hero-actions { display: flex; gap: 8px; flex: 0 0 auto; }

.sup-sec { margin-top: 20px; }
.sup-sec-title {
  display: flex; align-items: center; gap: 10px; font-size: 13.5px;
  font-weight: 700; color: var(--text); margin-bottom: 10px;
}
.sup-sec-title::before {
  content: ''; width: 3px; height: 13px; border-radius: 2px; background: var(--primary);
}
.sup-src {
  font-size: 11px; font-weight: 400; color: var(--text-3);
  background: #f8fafc; border: 1px solid var(--border); border-radius: 20px; padding: 2px 9px;
}
.sup-src.ok { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.sup-src.warn { color: #b45309; background: #fffbeb; border-color: #fde68a; }

.sup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.sup-cell { background: #fff; padding: 10px 13px; }
.sup-cell-wide { margin-top: 1px; background: #fff; padding: 10px 13px; border: 1px solid var(--border); border-radius: 9px; }
.sup-cell .k { font-size: 11px; color: var(--text-3); }
.sup-cell .v { font-size: 12.5px; color: var(--text); margin-top: 3px; word-break: break-all; line-height: 1.55; }
.sup-empty { color: #c3c9d4; }

.sup-metrics { display: flex; flex-wrap: wrap; gap: 8px; }
.sup-metric {
  flex: 1 1 96px; background: #f8fafc; border: 1px solid var(--border);
  border-radius: 9px; padding: 9px 12px;
}
.sup-metric span { display: block; font-size: 10.5px; color: var(--text-3); }
.sup-metric b { font-size: 16px; font-weight: 700; letter-spacing: -.3px; }
.sup-metric b.danger { color: var(--danger); }

.sup-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 10px; border-bottom: 1px solid #f1f3f7; font-size: 12.5px;
}
.sup-row:last-child { border-bottom: none; }
.sup-row-r { color: var(--text-2); font-size: 12px; text-align: right; }
.sup-row-hit, .sup-cap-row { cursor: pointer; border-radius: 8px; transition: background .15s; }
.sup-row-hit:hover, .sup-cap-row:hover { background: #eff6ff; }
.sup-total { color: var(--primary); font-size: 14px; margin: 0 4px; }
.sup-none { padding: 14px; text-align: center; color: var(--text-3); font-size: 12.5px; background: #fafbfc; border-radius: 9px; }

@media (max-width: 860px) {
  .sup-grid { grid-template-columns: 1fr 1fr; }
  .sup-hero { flex-direction: column; }
}

/* ==================== 询价闭环（2026-11-26） ==================== */
.inq-flow {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 11px 14px; margin-bottom: 14px; background: #f8fafc;
  border: 1px solid var(--border); border-radius: 10px; font-size: 12px;
}
.inq-step { padding: 4px 11px; border-radius: 20px; background: #fff; border: 1px solid var(--border); color: var(--text-3); }
.inq-step.on { background: #eff6ff; border-color: #bfdbfe; color: var(--primary); font-weight: 600; }
.inq-flow i { color: #cbd5e1; font-style: normal; }

.inq-row { cursor: pointer; }
.inq-row:hover td { background: #f8fbff; }

.inq-hint {
  padding: 10px 14px; background: #f8fafc; border: 1px solid var(--border);
  border-radius: 9px; font-size: 12.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 14px;
}
.inq-hint.ok { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }

.inq-pick-tip { font-size: 11.5px; font-weight: 400; color: var(--text-3); margin-left: 8px; }
.inq-sup-tools { display: flex; gap: 8px; margin: 6px 0 8px; flex-wrap: wrap; }
.inq-sup-list {
  max-height: 210px; overflow-y: auto; border: 1px solid var(--border);
  border-radius: 9px; background: #fff; padding: 4px;
}
.inq-sup-item {
  display: flex; align-items: center; gap: 9px; padding: 7px 10px;
  border-radius: 7px; cursor: pointer; font-size: 12.5px;
}
.inq-sup-item:hover { background: #f8fafc; }
.inq-sup-item input { width: 14px; height: 14px; accent-color: var(--primary); }
.inq-sup-item .n { font-weight: 600; }
.inq-sup-item .m { color: var(--text-3); font-size: 11.5px; margin-left: auto; }

.inq-detail-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 20px; }
.inq-detail-top .k { font-size: 11px; color: var(--text-3); }
.inq-detail-top .v { font-size: 13px; margin-top: 3px; }
.inq-awarded td { background: #f0fdf4; }
.inq-lowest { color: #047857; }
.badge.bc { font-size: 10px; margin-left: 4px; }

@media (max-width: 800px) {
  .inq-detail-top { grid-template-columns: 1fr 1fr; }
  .inq-sup-item .m { display: none; }
}
.scm-cat-note { display: block; margin-top: 4px; font-size: 11px; font-weight: 400; }

/* ==================== 评级依据（2026-11-26） ==================== */
.rate-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.rate-chip {
  display: flex; align-items: baseline; gap: 7px; background: #f8fafc;
  border: 1px solid var(--border); border-radius: 9px; padding: 8px 13px;
}
.rate-chip span { font-size: 12px; color: var(--text-2); }
.rate-chip b { font-size: 16px; }
.rate-chip b.warn { color: var(--danger); }
.rate-dist { display: flex; gap: 6px; }
.rate-dot {
  font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
  background: #f1f5f9; color: var(--text-2);
}
.rate-dot.lv-A { background: #ecfdf5; color: #047857; }
.rate-dot.lv-B { background: #eff6ff; color: #1d4ed8; }
.rate-dot.lv-C { background: #fffbeb; color: #b45309; }
.rate-dot.lv-D { background: #fef2f2; color: #b91c1c; }
.rate-tip { margin-left: auto; font-size: 11.5px; color: var(--text-3); }
.rate-ops { white-space: nowrap; }

.rate-form-top { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.rate-sel { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.rate-sel select { padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; min-width: 240px; background: #fff; }
.rate-form-tip { font-size: 11.5px; color: var(--text-3); flex: 1; min-width: 200px; line-height: 1.6; }

.rate-basis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rate-basis-block { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: #fff; }
.rb-title { font-size: 12.5px; font-weight: 700; margin-bottom: 9px; color: var(--text); }
.rb-rows > div {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; padding: 4px 0; border-bottom: 1px dashed #f1f5f9;
}
.rb-rows > div:last-child { border-bottom: none; }
.rb-rows span { color: var(--text-2); }
.rb-rows b { font-weight: 700; }
.rb-rows b.ok { color: var(--success); }
.rb-rows b.bad { color: var(--danger); }
.rb-rows > div.hi b { color: var(--primary); font-size: 14px; }
.rate-basis-note { margin-top: 10px; font-size: 11.5px; color: var(--text-3); line-height: 1.7; }

.rate-suggest {
  margin-top: 14px; border: 1px solid #dbeafe; border-radius: 10px;
  background: linear-gradient(180deg, #f5f9ff, #fff); padding: 13px 16px;
}
.rs-title { font-size: 12.5px; font-weight: 700; color: #1e40af; margin-bottom: 10px; }
.rs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rs-item { background: #fff; border: 1px solid #e6efff; border-radius: 8px; padding: 9px 11px; text-align: center; }
.rs-item span { display: block; font-size: 11px; color: var(--text-3); }
.rs-item b { display: block; font-size: 19px; font-weight: 700; color: var(--primary); margin: 2px 0; }
.rs-item em { font-size: 10px; color: var(--text-3); font-style: normal; }
.rs-total { margin-top: 10px; font-size: 12.5px; color: var(--text-2); }
.rs-total b { font-size: 16px; color: var(--primary); }

@media (max-width: 900px) {
  .rate-basis-grid { grid-template-columns: 1fr; }
  .rs-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==================== 用户与权限（2026-11-26） ==================== */
.usr-sum { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.usr-sec { margin-bottom: 22px; }
.usr-sec-title { font-size: 13.5px; font-weight: 700; margin-bottom: 10px; }
.usr-sec-title span { font-size: 11.5px; font-weight: 400; color: var(--text-3); margin-left: 8px; }
.usr-types { display: flex; flex-wrap: wrap; gap: 8px; }
.usr-type {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px;
  border: 1px solid var(--border); border-radius: 20px; cursor: pointer;
  font-size: 12.5px; background: #fff; transition: all .15s;
}
.usr-type:hover { border-color: var(--primary); background: #f5f9ff; }
.usr-type input { width: 13px; height: 13px; accent-color: var(--primary); }

/* ==================== 报告外发（2026-11-26） ==================== */
.ai-send-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding: 11px 14px; border-radius: 10px;
  background: linear-gradient(90deg, #eff6ff, #f8fbff); border: 1px solid #dbeafe;
}
.ai-send-bar.hidden { display: none; }
.asb-txt { font-size: 12.5px; color: #1e40af; margin-right: auto; }

.snd-channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.snd-ch {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer;
  background: #fff; transition: all .16s; position: relative;
}
.snd-ch:hover { border-color: #bfdbfe; background: #f8fbff; }
.snd-ch.active { border-color: var(--primary); background: #eff6ff; box-shadow: 0 0 0 3px rgba(37,99,235,.10); }
.snd-ch.off { opacity: .62; }
.snd-ico { font-size: 20px; }
.snd-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.snd-info b { font-size: 13px; }
.snd-info span { font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snd-badge {
  position: absolute; top: 8px; right: 9px; font-size: 10px;
  background: #fef3c7; color: #b45309; padding: 1px 6px; border-radius: 20px;
}
.snd-preview { margin-top: 14px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.snd-preview-head {
  display: flex; justify-content: space-between; padding: 8px 13px;
  background: #f8fafc; font-size: 11.5px; color: var(--text-2); font-weight: 600;
}
.snd-preview-head span { font-weight: 400; color: var(--text-3); }
.snd-preview-body {
  padding: 12px 14px; font-size: 12px; line-height: 1.8; color: var(--text-2);
  max-height: 190px; overflow-y: auto; white-space: pre-wrap;
}
.snd-note { margin-top: 11px; font-size: 11.5px; color: var(--text-3); line-height: 1.7; }

.snd-cfg-sec { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); }
.snd-cfg-sec:first-of-type { border-top: none; padding-top: 0; }
.snd-cfg-title { font-size: 12.5px; font-weight: 700; margin-bottom: 10px; color: var(--text-2); }

@media (max-width: 860px) { .snd-channels { grid-template-columns: 1fr; } }

/* ============================ 询价管理：密度收一档 ============================
   用户反馈这一页的字和模块偏大。这里只按页面生效（#content[data-page=inquiry]），
   不动全站表格，避免牵一发动全身。 */
#content[data-page="inquiry"] .page-head { margin-bottom: 14px; }
#content[data-page="inquiry"] .page-head h2 { font-size: 18px; }
#content[data-page="inquiry"] .page-head .sub { font-size: 12.5px; margin-top: 2px; }
#content[data-page="inquiry"] .card { padding: 16px 18px; margin-bottom: 14px; }
#content[data-page="inquiry"] .tbl th { font-size: 12px; padding: 9px 12px; }
#content[data-page="inquiry"] .tbl td { font-size: 12.5px; padding: 9px 12px; }
#content[data-page="inquiry"] .badge { font-size: 11.5px; padding: 2px 9px; }
#content[data-page="inquiry"] .btn { font-size: 12.5px; }
#content[data-page="inquiry"] .btn-sm { padding: 5px 12px; }
#content[data-page="inquiry"] .inq-flow { padding: 8px 12px; margin-bottom: 12px; gap: 6px; font-size: 11.5px; }
#content[data-page="inquiry"] .inq-step { padding: 3px 9px; }
#content[data-page="inquiry"] .inq-hint { padding: 8px 12px; font-size: 12px; line-height: 1.6; margin-bottom: 12px; }

/* ============================ 开放接口：API Key 卡片 ============================ */
.apikey-eps { background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.apikey-ep { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 3px 0; }
.apikey-ep .k { color: var(--text-3); min-width: 92px; }
.apikey-ep code { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; font-size: 12px; color: var(--text); }
.apikey-bar { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.apikey-mask { font-size: 12px; color: var(--text-2); background: #f1f5f9; padding: 2px 7px; border-radius: 5px; }
.apikey-reveal {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 9px; padding: 10px 12px;
}
.apikey-reveal code { flex: 1; font-size: 12.5px; word-break: break-all; color: #92400e; }
.apikey-tag { background: #dcfce7; color: #15803d; font-size: 11px; padding: 1px 7px; border-radius: 5px; font-weight: 600; }
.apikey-note { color: var(--text-3); font-size: 11.5px; }

/* ---------- 比价台（2026-11-26） ---------- */
.pc-pick { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #64748b; }
.pc-pick select {
  height: 34px; padding: 0 10px; border: 1px solid #e2e8f0; border-radius: 8px;
  background: #fff; font-size: 13px; color: #0f172a; min-width: 210px;
}
.pc-sup { cursor: pointer; color: #1d4ed8; }
.pc-sup:hover { text-decoration: underline; }
.pc-advice { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pc-advice-green { background: #ecfdf5; color: #15803d; }
.pc-advice-red { background: #fef2f2; color: #b91c1c; }
.pc-advice-amber { background: #fffbeb; color: #b45309; }
.pc-advice-blue { background: #eff6ff; color: #1d4ed8; }
.pc-advice-muted { background: #f1f5f9; color: #64748b; }
.pc-note { margin-top: 10px; font-size: 11.5px; color: #94a3b8; line-height: 1.7; }

/* ---------- 成本与汇率（2026-11-26，2026-11-30 接官方实时源） ---------- */
/* 数据源状态条：一眼看清「哪个源、哪天的数据、什么时候同步的」，
   这三个信息不写清楚，数字再准也没人敢拿去报价 */
.fx-bar { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px; padding: 9px 13px; font-size: 12px; color: #64748b; margin-bottom: 12px; }
.fx-bar b { color: #0f172a; font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-bar .ok { color: #15803d; font-weight: 600; }
.fx-bar .warn { color: #b45309; font-weight: 600; }
.fx-bar .sep { width: 1px; height: 12px; background: #e2e8f0; }
.fx-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.fx-card { border: 1px solid #eef2f7; border-radius: 10px; padding: 10px 12px; background: #fafbfd; }
.fx-card.stale { border-color: #fecaca; background: #fff7f7; }
.fx-code { font-size: 12px; font-weight: 700; color: #334155; display: flex; justify-content: space-between; align-items: baseline; }
.fx-code span { font-weight: 400; font-size: 11px; color: #94a3b8; }
.fx-rate { font-size: 20px; font-weight: 700; margin: 3px 0 2px; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.fx-mid { font-size: 11px; color: #94a3b8; }
.fx-mid b { color: #475569; font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-chg { font-size: 11px; color: #64748b; margin-top: 3px; }
.fx-chg.up, .cmd-chg .up { color: #dc2626; }
.fx-chg.down, .cmd-chg .down { color: #16a34a; }
/* 原材料按 4 列铺：一行看全，减少上下翻找 */
.cmd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 8px; }
.cmd-card { border: 1px solid #eef2f7; border-radius: 10px; padding: 10px 11px; cursor: pointer; transition: all .16s; background: #fff; }
.cmd-card:hover { border-color: #c7d7fb; box-shadow: 0 6px 16px rgba(37,99,235,.08); }
.cmd-card.on { border-color: #d97706; box-shadow: 0 0 0 2px rgba(217,119,6,.12); }
.cmd-name { font-size: 12px; color: #334155; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; }
.cmd-name span { font-size: 10.5px; color: #94a3b8; font-weight: 400; }
.cmd-price { font-size: 18px; font-weight: 700; margin: 3px 0; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.cmd-chg { display: flex; gap: 8px; font-size: 11px; color: #64748b; }
.cmd-affects { font-size: 10.5px; color: #94a3b8; margin-top: 5px; line-height: 1.45; }
.cmd-src { font-size: 10px; color: #a8b4c4; margin-top: 3px; }
/* 大宗商品按大类分行：有官方价的走卡片，没官方价的只列品类，不编数字 */
.cmd-group { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px dashed #eef2f7; }
.cmd-group:last-of-type { border-bottom: 0; margin-bottom: 6px; }
.cmd-group-head { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 8px; }
.cmd-group-head b { font-size: 12.5px; color: #0f172a; }
.cmd-group-head span { font-size: 11px; color: #94a3b8; }
.cmd-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.cmd-chip { display: inline-flex; align-items: baseline; gap: 6px; border: 1px solid #eef2f7; background: #fafbfd;
  border-radius: 7px; padding: 6px 9px; font-size: 11.5px; color: #334155; cursor: default; }
.cmd-chip span { font-size: 10px; color: #b6c0cd; }
.fx-conv { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fx-conv input, .fx-conv select { height: 34px; padding: 0 10px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px; }
.fx-conv input { width: 180px; }
.fx-conv-out { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.conv-item { border: 1px solid #eef2f7; background: #fafbfd; border-radius: 8px; padding: 8px 12px; font-size: 12px; color: #64748b; }
.conv-item b { display: block; font-size: 15px; color: #0f172a; margin-top: 2px; font-variant-numeric: tabular-nums; }
/* 多币种折算与汇率放在一起：同一张卡内用虚线分区，不再单独占一屏 */
.fx-conv-sec { margin-top: 14px; padding-top: 13px; border-top: 1px dashed #e2e8f0; }
.fx-conv-title { font-size: 12.5px; font-weight: 600; color: #0f172a; display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.fx-conv-title span { font-size: 11px; font-weight: 400; color: #94a3b8; }
/* 断点：1280 笔记本仍保持 5 列汇率 / 4 列原材料；窄屏再逐级降列 */
@media (max-width: 1180px) { .cmd-grid { grid-template-columns: repeat(3, 1fr); } .fx-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .cmd-grid { grid-template-columns: repeat(2, 1fr); } }


/* ============================ 备货建议 ============================ */
.tbl-advice { font-size: 12.5px; }
.tbl-advice th.num, .tbl-advice td.num { text-align: right; white-space: nowrap; }
.tbl-advice thead th { white-space: nowrap; }
.adv-row { cursor: pointer; }
.adv-row:hover td { background: #f8fbff; }
.adv-sub { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.adv-badge { display: inline-block; padding: 2px 8px; border-radius: 20px; border: 1px solid transparent; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.adv-red { color: #dc2626; font-weight: 600; }
.adv-amber { color: #d97706; font-weight: 600; }
.adv-green { color: #16a34a; font-weight: 600; }
.adv-muted { color: var(--text-3); }
.tbl-advice td, .tbl-advice th { padding: 9px 12px; }
.tbl-advice td.adv-name { white-space: nowrap; }
.tbl-advice td.adv-name b { font-size: 12.5px; }
/* 理由列给足宽度、最多两行，宁可截断也不把整张表撑长 */
.adv-reason { font-size: 11.5px; color: var(--text-2); min-width: 240px; white-space: normal;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }

.adv-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.adv-guide-item { background: #f8fafc; border-left: 3px solid #94a3b8; border-radius: 8px; padding: 10px 12px; font-size: 12px; color: var(--text-2); line-height: 1.6; }
.adv-guide-item b { display: block; color: var(--text-1); margin-bottom: 3px; font-size: 12.5px; }

.adv-detail-head { background: #f8fafc; border-radius: 10px; padding: 10px 12px; }
.adv-detail-act { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.adv-reasons { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.adv-reason-line { display: flex; gap: 8px; font-size: 12.5px; color: var(--text-2); line-height: 1.55; }
.adv-reason-line span { flex: 0 0 18px; height: 18px; border-radius: 50%; background: #eef2ff; color: #4f46e5; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }

@media (max-width: 1100px) {
  .adv-guide { grid-template-columns: 1fr; }
  .adv-reason { min-width: 160px; }
}

/* ================================================================
 * 比价台 v2：按单比价（Tab 切换）
 * ================================================================ */
.pc-tabs { display: inline-flex; background: #eef2f7; border-radius: 10px; padding: 3px; margin-bottom: 16px; }
.pc-tab {
  border: 0; background: transparent; padding: 7px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: #64748b; cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.pc-tab:hover { color: var(--text); }
.pc-tab.on { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(15, 33, 70, .12); }

.pc-mx-wrap { overflow-x: auto; }
table.pc-mx { min-width: 100%; border-collapse: separate; border-spacing: 0; }
.pc-mx thead th {
  background: #f8fafc; border-bottom: 1px solid var(--border); padding: 10px 12px;
  text-align: center; vertical-align: top;
}
.pc-mx thead th.pc-mx-corner {
  text-align: left; font-size: 11.5px; color: var(--text-3); font-weight: 600;
  position: sticky; left: 0; z-index: 3; background: #f8fafc; min-width: 138px;
  vertical-align: middle;
}
.pc-mx tbody th {
  position: sticky; left: 0; z-index: 2; background: #fff;
  text-align: left; font-weight: 500; color: var(--text-2); font-size: 12.5px;
  padding: 7px 12px; white-space: nowrap; border-bottom: 1px solid #f1f5f9;
}
.pc-mx tbody td { padding: 7px 12px; text-align: center; font-size: 13px; border-bottom: 1px solid #f1f5f9; white-space: nowrap; }
.pc-mx tbody tr:hover td, .pc-mx tbody tr:hover th { background: rgba(37, 99, 235, .035); }
.pc-mx td.pc-na { color: #cbd5e1; }
.pc-mx td.is-best { background: #ecfdf5; color: #047857; font-weight: 700; }
.pc-mx td.is-worst { background: #fef2f2; color: #b91c1c; }
.pc-mx tr.is-key td { font-weight: 600; }
.pc-mx tr.is-key th { color: var(--text); font-weight: 700; }
.pc-mx tr.pc-mx-score td { font-size: 14px; }
.pc-mx tr.pc-mx-act td { padding: 10px 12px 14px; border-bottom: 0; }
.pc-mx-sup { min-width: 116px; }
.pc-mx-name { font-size: 13px; font-weight: 700; color: var(--text); cursor: pointer; line-height: 1.35; }
.pc-mx-name:hover { color: var(--primary); text-decoration: underline; }
.pc-mx-tags { margin-top: 5px; display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; min-height: 15px; }
.pc-tag { font-size: 10px; padding: 1px 6px; border-radius: 20px; font-weight: 700; white-space: nowrap; }
.tag-best { background: #eff6ff; color: #2563eb; }
.tag-cheap { background: #ecfdf5; color: #15803d; }
.tag-fast { background: #fffbeb; color: #b45309; }
.tag-win { background: #fef3c7; color: #92400e; }
.tag-mute { background: #f1f5f9; color: #94a3b8; }

/* ================================================================
 * 供应商能力全景抽屉（右侧滑出，列表保留在左侧可对照）
 * ================================================================ */
.scm-drw-root { position: fixed; inset: 0; z-index: 220; }
.scm-drw-scrim { position: absolute; inset: 0; background: rgba(15, 33, 70, .22); opacity: 0; transition: opacity .2s; }
.scm-drw-root.in .scm-drw-scrim { opacity: 1; }
.scm-drw {
  position: absolute; top: 0; right: 0; bottom: 0; width: 640px; max-width: 94vw;
  background: #fff; box-shadow: -14px 0 44px rgba(15, 33, 70, .2);
  display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .24s cubic-bezier(.22, .61, .36, 1);
}
.scm-drw-root.in .scm-drw { transform: none; }
.scm-drw-head {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.scm-drw-head-main { min-width: 0; flex: 1; }
.scm-drw-name { font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.35; }
.scm-drw-sub { font-size: 12px; color: var(--text-3); margin-top: 5px; line-height: 1.5; }
.scm-drw-x {
  border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--text-3);
  cursor: pointer; padding: 0 4px; border-radius: 6px;
}
.scm-drw-x:hover { color: var(--text); background: var(--bg); }
.scm-drw-body { flex: 1; overflow-y: auto; padding: 16px 20px 22px; }
.scm-drw-foot {
  display: flex; gap: 8px; justify-content: flex-end; padding: 12px 20px;
  border-top: 1px solid var(--border); background: #fcfdff; flex-shrink: 0;
}
.scm-drw-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.scm-drw-kpi {
  background: #f8fafc; border-radius: 10px; padding: 10px 11px;
  border-left: 3px solid #cbd5e1; min-width: 0;
}
.scm-drw-kpi.tone-good { border-left-color: #16a34a; }
.scm-drw-kpi.tone-ok { border-left-color: #2563eb; }
.scm-drw-kpi.tone-warn { border-left-color: #d97706; }
.scm-drw-kpi.tone-bad { border-left-color: #dc2626; }
.scm-drw-kpi-v { font-size: 19px; font-weight: 700; color: var(--text); line-height: 1.15; white-space: nowrap; }
.scm-drw-kpi-l { font-size: 11.5px; color: var(--text-2); margin-top: 3px; font-weight: 600; }
.scm-drw-kpi-s { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.scm-drw-sec { margin-top: 18px; }
.scm-drw-sec-t { font-size: 13px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.scm-drw-sec-t .dot { width: 4px; height: 14px; background: var(--primary); border-radius: 2px; }
.scm-drw-radar-row { display: flex; gap: 10px; align-items: center; }
.scm-drw-radar { width: 250px; height: 210px; flex-shrink: 0; }
.scm-drw-dimtbl { flex: 1; min-width: 0; }
.scm-drw-dimtbl td, .scm-drw-dimtbl th { font-size: 12px; padding: 6px 6px; }
.scm-drw-dim-name { color: var(--text-2); white-space: nowrap; }
.scm-drw-num { text-align: right; }
.scm-drw .up, .tbl-compact td.up { color: #16a34a; font-weight: 600; }
.scm-drw .down, .tbl-compact td.down { color: var(--danger); font-weight: 600; }
.scm-drw-hint { margin-top: 8px; }
.scm-drw-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 10px; }
.scm-drw-facts > div {
  display: flex; flex-direction: column; gap: 2px; background: #f8fafc;
  border-radius: 8px; padding: 8px 10px; min-width: 0;
}
.scm-drw-facts span { font-size: 11px; color: var(--text-3); }
.scm-drw-facts b { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scm-drw-risk {
  font-size: 12px; color: var(--text-2); line-height: 1.6;
  padding: 8px 10px; border-radius: 8px; background: #f8fafc; margin-bottom: 6px;
  border-left: 3px solid #cbd5e1;
}
.scm-drw-risk b { margin-right: 6px; color: var(--text); }
.scm-drw-risk span { display: block; margin-top: 2px; }
.scm-drw-risk.lv-high { background: #fef2f2; border-left-color: #dc2626; }
.scm-drw-risk.lv-mid { background: #fffbeb; border-left-color: #d97706; }
.scm-drw-risk.lv-low { background: #f8fafc; border-left-color: #94a3b8; }
@media (max-width: 720px) {
  .scm-drw { width: 100%; max-width: 100%; }
  .scm-drw-kpis { grid-template-columns: 1fr 1fr; }
  .scm-drw-radar-row { flex-direction: column; }
  .scm-drw-radar { width: 100%; }
}
.pc-mx-award {
  margin-top: 7px; border: 1px solid var(--primary); background: #fff; color: var(--primary);
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 6px;
  cursor: pointer; font-family: inherit; transition: all .15s; white-space: nowrap;
}
.pc-mx-award:hover { background: var(--primary); color: #fff; }
.pc-reco-act { margin-top: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- 产品与 BOM（鼠标场景 · 2026-12-01） ---------- */
.scm-prod-pick { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #64748b; }
.scm-prod-pick select { height: 34px; padding: 0 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; font-size: 13px; font-weight: 600; color: #0f172a; }
.tbl .ta-r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.scm-part { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.scm-part em { font-style: normal; font-size: 10.5px; color: #94a3b8; font-family: ui-monospace, Menlo, monospace; letter-spacing: .2px; }
.scm-spec { max-width: 260px; font-size: 11.5px; line-height: 1.5; }
.scm-row-key td:first-child { box-shadow: inset 3px 0 0 #dc2626; }
.scm-total-row td { background: #f8fafc; font-weight: 700; border-top: 2px solid #e2e8f0; }
.scm-score { color: #2563eb; font-size: 15px; }
.scm-up { color: #dc2626; }
.scm-down { color: #16a34a; }
.scm-sup-link em { font-style: normal; color: #94a3b8; font-weight: 400; }

/* 成本结构：左环形图 + 右类别明细 */
.scm-cost-wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: center; }
.scm-cost-donut { height: 250px; }
.scm-cost-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.scm-cost-item { min-width: 0; }
.scm-cost-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: #334155; }
.scm-cost-line b { font-weight: 600; }
.scm-cost-line span { font-variant-numeric: tabular-nums; font-weight: 700; }
.scm-cost-line i { font-style: normal; font-weight: 400; font-size: 11px; color: #94a3b8; margin-left: 6px; }
.scm-cost-bar { height: 6px; border-radius: 4px; background: #f1f5f9; margin: 5px 0 3px; overflow: hidden; }
.scm-cost-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #2563eb, #60a5fa); }
.scm-cost-sub { font-size: 10.5px; color: #94a3b8; }

/* 比价弹窗 */
.scm-cmp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; font-size: 13px; }
.scm-cmp-tbl th { font-size: 11.5px; white-space: nowrap; }
.scm-cmp-tbl td { font-size: 12.5px; }
.scm-cmp-sup b { display: block; font-size: 13px; }
.scm-cmp-sup em { font-style: normal; font-size: 10.5px; color: #94a3b8; }
.scm-cmp-note { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: #f8fafc; font-size: 11.5px; color: #64748b; line-height: 1.75; }

@media (max-width: 1180px) {
  .scm-cost-wrap { grid-template-columns: 1fr; }
  .scm-cost-donut { height: 220px; }
  .scm-cost-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 下单流程条（2026-12-01）：把「在哪下、谁接、怎么回」画成四步，避免用户来回问 */
.proc-flow {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-bottom: 16px; padding: 11px 13px; border-radius: 10px;
  background: #F8FAFF; border: 1px dashed #C7D2FE;
}
.proc-flow i { color: #94A3B8; font-style: normal; font-size: 12px; }
.pf-step {
  font-size: 12px; color: #475569; background: #fff; border: 1px solid var(--border);
  border-radius: 20px; padding: 3px 11px; white-space: nowrap;
}
.pf-step.on { color: #1D4ED8; border-color: #93C5FD; background: #EFF6FF; font-weight: 600; }
