.cfo-value-dashboard {
  min-width: 0;
  display: grid;
  gap: 16px;
  padding-bottom: 16px;
}

.value-dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
  border-top: 3px solid var(--theme-primary);
}

.value-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--theme-primary-active);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.value-dashboard-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.3;
}

.value-dashboard-header p,
.value-filter-head p,
.value-card-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.value-source-summary {
  min-width: 220px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: end;
  gap: 6px 12px;
}

.value-source-summary small {
  grid-column: 1;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.value-source-summary .btn {
  grid-column: 2;
  grid-row: 1 / span 3;
  min-width: 96px;
  min-height: 44px;
}

.value-source-status {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 12px;
  font-weight: 800;
}

.value-source-status.partial,
.value-source-status.stale { background: var(--warning-soft); color: var(--warning); }
.value-source-status.error,
.value-source-status.permission { background: var(--danger-soft); color: var(--danger); }
.value-source-status.empty,
.value-source-status.loading { background: var(--info-soft); color: var(--info); }

.value-filter-panel { padding: 16px 18px; }

.value-filter-head,
.value-card-head,
.value-filter-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.value-filter-head h3,
.value-card-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.value-filter-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
}

.value-filter-toggle span {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--theme-primary);
  color: var(--theme-primary-contrast);
  font-size: 12px;
}

.value-filter-form { display: grid; gap: 12px; margin-top: 14px; }
.value-filter-primary,
.value-filter-advanced {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.value-filter-advanced {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.value-filter-form label,
.value-compact-select {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
}

.value-filter-form label > span em {
  margin-left: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.value-filter-form input,
.value-filter-form select,
.value-compact-select select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
}

.value-filter-actions {
  justify-content: flex-end;
  padding-top: 2px;
}

.value-filter-actions .btn { min-width: 112px; }
.btn:disabled { cursor: not-allowed; opacity: .5; transform: none; box-shadow: none; }

.value-feedback {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
}

.value-feedback.success { border-color: var(--success-line); border-left-color: var(--success); background: var(--success-soft); color: var(--success-active); }
.value-feedback.warning,
.value-feedback.stale { border-color: var(--warning-line); border-left-color: var(--warning); background: var(--warning-soft); color: var(--warning-active); }
.value-feedback.error { border-color: var(--danger-line); border-left-color: var(--danger); background: var(--danger-soft); color: var(--danger-active); }

.value-page-state {
  min-height: 320px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 32px;
  text-align: center;
}

.value-page-state > i { color: var(--line-strong); font-size: 40px; }
.value-page-state.loading > i { color: var(--theme-primary); }
.value-page-state.error > i,
.value-page-state.permission > i { color: var(--danger); }
.value-page-state strong { color: var(--ink); font-size: 17px; }
.value-page-state span { max-width: 560px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.value-page-state .btn { margin-top: 8px; }

.value-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.value-kpi-card {
  min-width: 0;
  min-height: 188px;
  display: flex;
  flex-direction: column;
  padding: 17px;
  border-top: 3px solid var(--theme-primary);
}

.value-kpi-card.available { border-color: var(--success); }
.value-kpi-card.zero { border-color: var(--info); }
.value-kpi-card.baseline-missing { border-color: var(--warning); }
.value-kpi-card.unavailable { border-color: var(--line-strong); }

.value-kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.value-kpi-head span { min-width: 0; color: var(--muted); font-size: 12px; font-weight: 750; }
.value-kpi-head em {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--theme-primary-soft);
  color: var(--theme-primary-active);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.value-kpi-card.zero .value-kpi-head em { background: var(--info-soft); color: var(--info); }
.value-kpi-card.baseline-missing .value-kpi-head em { background: var(--warning-soft); color: var(--warning); }
.value-kpi-card.unavailable .value-kpi-head em { background: var(--info-soft); color: var(--info); }
.value-kpi-card > strong { margin-top: 20px; color: var(--ink); font-size: clamp(22px, 2vw, 30px); line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.value-kpi-card > p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.value-kpi-card details { margin-top: auto; padding-top: 14px; }
.value-kpi-card summary { min-height: 44px; display: inline-flex; align-items: center; color: var(--theme-primary-active); font-size: 12px; font-weight: 750; cursor: pointer; }
.value-kpi-card details p,
.value-kpi-card details ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.value-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.value-dashboard-card { min-width: 0; padding: 18px; }
.value-funnel-card { grid-column: span 5; }
.value-trend-card { grid-column: span 7; }
.value-breakdown-card { grid-column: span 7; }
.value-guardrail-card { grid-column: span 5; }
.value-quality-card { grid-column: span 12; }
.value-card-head { margin-bottom: 16px; }
.value-compact-select { min-width: 96px; }
.value-compact-select select { min-height: 44px; }

.value-funnel-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.value-funnel-list li { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 6px 12px; }
.value-funnel-list li > div { display: flex; justify-content: space-between; gap: 12px; }
.value-funnel-list span,
.value-funnel-list strong,
.value-funnel-list small { font-size: 12px; }
.value-funnel-list span { color: var(--text); font-weight: 700; }
.value-funnel-list strong { color: var(--ink); }
.value-funnel-list small { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.value-funnel-list i { height: 8px; overflow: hidden; border-radius: 999px; background: var(--info-soft); }
.value-funnel-list b { display: block; height: 100%; border-radius: inherit; background: var(--theme-gradient-primary); }
.value-realization-rates { display: grid; gap: 5px; margin-top: 16px; padding: 11px; border-radius: var(--radius); background: var(--surface-soft); }
.value-realization-rates span { color: var(--muted); font-size: 12px; }
.value-realization-rates strong { color: var(--ink); }

.value-dimension-tabs { display: flex; gap: 7px; margin-bottom: 14px; overflow-x: auto; padding-bottom: 4px; }
.value-dimension-tabs button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.value-dimension-tabs button.active { border-color: var(--theme-primary); background: var(--theme-primary-soft); color: var(--theme-primary-active); }
.value-breakdown-list { display: grid; gap: 12px; }
.value-breakdown-row { display: grid; grid-template-columns: minmax(100px, .9fr) minmax(120px, 1fr) minmax(130px, 1.1fr); align-items: center; gap: 12px; }
.value-breakdown-row div:last-child { text-align: right; }
.value-breakdown-row strong,
.value-breakdown-row span { display: block; overflow-wrap: anywhere; }
.value-breakdown-row strong { color: var(--ink); font-size: 12px; }
.value-breakdown-row span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.value-breakdown-row > i { height: 8px; overflow: hidden; border-radius: 999px; background: var(--info-soft); }
.value-breakdown-row b { display: block; height: 100%; border-radius: inherit; background: var(--success); }

.value-guardrail-list { display: grid; gap: 10px; }
.value-guardrail-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.value-guardrail-row > i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--radius); background: var(--success-soft); color: var(--success); font-size: 17px; }
.value-guardrail-row.attention > i { background: var(--warning-soft); color: var(--warning); }
.value-guardrail-row.unavailable > i { background: var(--info-soft); color: var(--info); }
.value-guardrail-row strong,
.value-guardrail-row span { display: block; }
.value-guardrail-row strong { color: var(--ink); font-size: 12px; }
.value-guardrail-row span { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.value-guardrail-row em { color: var(--muted); font-size: 12px; font-style: normal; font-weight: 800; white-space: nowrap; }

.value-quality-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.value-quality-grid > div { min-height: 76px; display: grid; place-content: center; justify-items: center; gap: 4px; padding: 9px; border: 1px solid var(--success-line); border-radius: var(--radius); background: var(--success-soft); text-align: center; }
.value-quality-grid > div.attention { border-color: var(--warning-line); background: var(--warning-soft); }
.value-quality-grid > div.unavailable { border-color: var(--info-line); background: var(--info-soft); }
.value-quality-grid strong { color: var(--ink); font-size: 20px; font-variant-numeric: tabular-nums; }
.value-quality-grid span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.value-source-chip { min-height: 28px; display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; background: var(--info-soft); color: var(--info); font-size: 12px; font-weight: 800; white-space: nowrap; }
.value-coverage-notes { margin: 14px 0 0; padding: 12px 12px 12px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }
.value-inline-state { min-height: 160px; display: grid; place-content: center; color: var(--muted); font-size: 12px; text-align: center; }

.value-opportunity-panel { min-width: 0; padding: 18px; }
.value-list-loading { color: var(--theme-primary-active); font-size: 12px; }
.value-opportunity-list { display: grid; border-top: 1px solid var(--line); }
.value-opportunity-row { min-width: 0; display: grid; grid-template-columns: minmax(220px, 1.5fr) minmax(150px, .9fr) minmax(130px, .8fr) auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.value-opportunity-main { min-width: 0; display: flex; align-items: center; gap: 10px; }
.value-status-pill { min-height: 24px; display: inline-flex; align-items: center; flex: 0 0 auto; padding: 3px 8px; border-radius: 999px; background: var(--info-soft); color: var(--info); font-size: 12px; font-weight: 800; }
.value-status-pill.success { background: var(--success-soft); color: var(--success); }
.value-status-pill.warning { background: var(--warning-soft); color: var(--warning); }
.value-status-pill.danger { background: var(--danger-soft); color: var(--danger); }
.value-status-pill.primary { background: var(--theme-primary-soft); color: var(--theme-primary-active); }
.value-opportunity-main div,
.value-opportunity-amount,
.value-opportunity-owner { min-width: 0; }
.value-opportunity-main strong,
.value-opportunity-main small,
.value-opportunity-amount strong,
.value-opportunity-amount span,
.value-opportunity-owner strong,
.value-opportunity-owner span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.value-opportunity-main strong,
.value-opportunity-amount strong,
.value-opportunity-owner strong { color: var(--ink); font-size: 12px; }
.value-opportunity-main small,
.value-opportunity-amount span,
.value-opportunity-owner span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.value-opportunity-amount strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.value-opportunity-row > .btn { min-width: 104px; min-height: 44px; font-size: 12px; }
.value-list-state { min-height: 160px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 12px; text-align: center; }
.value-list-state.error { color: var(--danger-active); }
.value-pagination { justify-content: flex-end; margin-top: 16px; }
.value-pagination :deep(.el-pager li),
.value-pagination :deep(.btn-prev),
.value-pagination :deep(.btn-next) { min-width: 44px; height: 44px; }

@media (max-width: 1120px) {
  .value-filter-primary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-filter-advanced { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .value-funnel-card,
  .value-trend-card,
  .value-breakdown-card,
  .value-guardrail-card { grid-column: span 12; }
  .value-quality-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .value-opportunity-row { grid-template-columns: minmax(220px, 1.4fr) minmax(150px, 1fr) auto; }
  .value-opportunity-owner { display: none; }
}

@media (max-width: 760px) {
  .value-dashboard-header,
  .value-filter-head,
  .value-card-head { flex-direction: column; align-items: stretch; }
  .value-source-summary { width: 100%; grid-template-columns: 1fr auto; justify-content: stretch; }
  .value-source-summary small { text-align: left; }
  .value-kpi-grid { grid-template-columns: 1fr; }
  .value-filter-primary,
  .value-filter-advanced { grid-template-columns: 1fr; }
  .value-filter-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-filter-actions .btn { width: 100%; min-width: 0; }
  .value-quality-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-opportunity-row { grid-template-columns: 1fr; align-items: stretch; gap: 10px; padding: 16px 0; }
  .value-opportunity-owner { display: block; }
  .value-opportunity-main { align-items: flex-start; }
  .value-opportunity-main strong,
  .value-opportunity-main small,
  .value-opportunity-amount strong,
  .value-opportunity-amount span,
  .value-opportunity-owner strong,
  .value-opportunity-owner span { white-space: normal; }
  .value-opportunity-row > .btn { width: 100%; }
  .value-breakdown-row { grid-template-columns: 1fr; gap: 7px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .value-breakdown-row div:last-child { text-align: left; }
  .value-funnel-list li { grid-template-columns: minmax(0, 1fr) 100px; }
}

@media (max-width: 420px) {
  .value-dashboard-header,
  .value-filter-panel,
  .value-dashboard-card,
  .value-opportunity-panel { padding: 14px; }
  .value-quality-grid { grid-template-columns: 1fr; }
  .value-guardrail-row { grid-template-columns: 32px minmax(0, 1fr); }
  .value-guardrail-row em { grid-column: 2; }
}
