/* 1106 当前公司品牌色的文字对比；颜色值由 app.js 按明暗主题注入。 */
html[data-1106-console="d"] .btn.is-primary,
html[data-1106-console="d"] .btn-main {
  color: var(--r12-on-brand, #fff);
}

/* ---------- 公司后台 · 价格（#/d/prices） ---------- */

.dp-toolbar { flex-wrap: wrap; }
.dp-search { flex: 0 1 280px; }
.dp-head-note { margin: -4px 0 10px; font-size: 12px; line-height: 18px; color: var(--r12-muted); }
.dp-card-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.dp-open-cell { width: 88px; text-align: center; }
.dp-model-cell { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dp-model-cell .vendor { width: 22px; height: 22px; flex: none; margin-right: 0; }
.dp-model-cell .model-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.dp-model-cell .model-name { font-size: 13px; font-weight: 600; color: var(--r12-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-empty-cell { padding: 16px 4px; text-align: center; font-size: 12px; color: var(--r12-muted); }
.dp-raised { color: var(--r12-review); }
.co-prices-page .table-wrap,
.co-price-detail .table-wrap { overflow-x: auto; }

/* 统一加价弹窗 */
.dp-unified { display: flex; flex-direction: column; gap: 12px; }
.dp-unified-field { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--r12-ink); }
.dp-unified-unit { font-size: 12px; color: var(--r12-muted); }
.dp-unified-note { font-size: 12px; line-height: 18px; color: var(--r12-muted); }
.dp-preview-name { margin-right: 6px; font-weight: 600; }

/* ---------- 公司后台 · 总览顶部数字卡 ---------- */

.co-billing { display: flex; flex-direction: column; gap: 8px; }
.co-billing-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.co-billing-unpriced { font-size: 12px; color: var(--r12-review); }
.co-billing-shadow { font-size: 12px; color: var(--r12-muted); }
/* 总览两栏里的排行表按列宽收进面板，1280 宽也不顶出内容区。 */
.co-overview .compact-table { min-width: 0; }

@media (max-width: 1100px) {
  .co-billing-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 模型详情的价格链：卡片里直接放三段价格，去掉中间那层边框和底色，避免框套框（11-09 总工程师按常设规矩改） */
.chain-panel .chain { padding: 0; border: 0; background: transparent; gap: 8px; }
.chain-panel .chain > .seg { background: var(--surface-2); }
