/* B2B2C 财务核心 · 仓库汇算 UI */
.fc-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.fc-kpi-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; }
.fc-kpi-card .lbl { font-size: 12px; color: #64748b; }
.fc-kpi-card .val { font-size: 22px; font-weight: 700; color: #0f172a; margin: 6px 0 2px; }
.fc-kpi-card .sub { font-size: 11px; color: #94a3b8; }
.fc-kpi-card.green .val { color: #059669; }
.fc-kpi-card.orange .val { color: #d97706; }
.fc-kpi-card.blue .val { color: #2563eb; }

.fc-formula {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 16px 20px; margin-bottom: 16px; font-size: 13px; line-height: 1.85;
}
.fc-formula .lines { color: #475569; margin-top: 8px; }
.fc-formula strong { color: #0f172a; }

.fc-dual { display: inline-block; padding: 2px 8px; background: #eff6ff; color: #1d4ed8; border-radius: 4px; font-size: 12px; font-weight: 600; }

.unit-chain {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 16px; background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border-radius: 10px; margin-bottom: 16px; font-size: 13px;
}
.unit-chain span { padding: 6px 12px; background: #fff; border-radius: 6px; border: 1px solid #e2e8f0; }
.unit-chain .arrow { background: none; border: none; color: #94a3b8; }

.voucher-preview {
  border: 2px dashed #cbd5e1; border-radius: 12px; padding: 24px;
  background: #fff; max-width: 480px; margin: 0 auto;
}
.voucher-preview h3 { text-align: center; margin-bottom: 16px; font-size: 18px; }
.voucher-preview .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.voucher-preview .stamp { text-align: center; margin-top: 20px; color: #059669; font-weight: 700; border: 2px solid #059669; display: inline-block; padding: 4px 16px; border-radius: 4px; transform: rotate(-8deg); }

.fc-doc-banner {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  color: #fff; border-radius: 12px; padding: 20px 24px; margin-bottom: 20px;
}
.fc-doc-banner h2 { font-size: 16px; margin-bottom: 6px; }
.fc-doc-banner p { font-size: 12px; color: #94a3b8; line-height: 1.7; }

.diff-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; margin: 16px 0; }
.diff-box div { padding: 12px; background: #f8fafc; border-radius: 8px; }
.diff-box .num { font-size: 20px; font-weight: 700; }
.diff-box .warn .num { color: #dc2626; }

.trend-bars { display: flex; align-items: flex-end; gap: 8px; height: 100px; margin-top: 12px; }
.trend-bars .col { flex: 1; text-align: center; }
.trend-bars .bar { background: linear-gradient(180deg, #3b82f6, #1d4ed8); border-radius: 4px 4px 0 0; min-height: 4px; }
.trend-bars span { font-size: 10px; color: #94a3b8; margin-top: 4px; display: block; }
