/* SPDX-License-Identifier: LicenseRef-Orbitalys-Proprietary */
.cost-dashboard { display: grid; gap: 20px; min-width: 0; }
.cost-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cost-kpi { padding: 24px; border-top: 3px solid #3bbeb1; display: grid; gap: 12px; }
.cost-kpi p { margin: 0; font-size: 13px; }
.cost-kpi strong { font-size: clamp(20px, 2.1vw, 34px); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.cost-kpi span, .cost-muted { opacity: .75; font-size: 13px; line-height: 1.6; }
.cost-analytics-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; min-width: 0; }
.cost-panel { padding: 24px; min-width: 0; }
.cost-panel h2 { margin-top: 0; font-size: 19px; }
.cost-source { margin-top: 24px; }
.cost-source-label { display: flex; justify-content: space-between; gap: 12px; }
.cost-source progress { width: 100%; height: 12px; margin-top: 14px; accent-color: #3bbeb1; }
.cost-table-scroll { overflow: auto; max-height: 540px; }
.cost-dashboard table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cost-dashboard th, .cost-dashboard td { padding: 14px 12px; text-align: right; border-bottom: 1px solid #80909040; font-variant-numeric: tabular-nums; }
.cost-dashboard th:first-child, .cost-dashboard td:first-child { text-align: left; }
.cost-dashboard th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.cost-warning { border-left: 3px solid #e5aa51; padding: 12px 16px; background: #e5aa5114; }
.cost-defaults-dialog { width: min(1100px, 94vw); max-height: 90vh; padding: 28px; background: var(--surface, #15262b); color: var(--text, #eaf3f2); border: 1px solid #80909060; border-radius: 16px; }
.cost-defaults-dialog::backdrop { background: #0009; }
.cost-defaults-dialog form { display: grid; gap: 16px; }
.cost-defaults-list { max-height: 50vh; overflow-y: auto; }
.cost-defaults-list fieldset { border: 1px solid #80909040; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.cost-defaults-list legend { max-width: 100%; overflow-wrap: anywhere; font-size: 13px; }
.cost-default-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cost-default-fields label { font-size: 12px; display: grid; gap: 8px; }
.cost-defaults-dialog input { width: 100%; min-width: 0; padding: 10px; border-radius: 6px; border: 1px solid #80909070; background: transparent; color: inherit; }
@media (max-width: 1000px) { .cost-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cost-analytics-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .cost-kpis, .cost-default-fields { grid-template-columns: 1fr; } .cost-panel { padding: 16px; } .cost-source-label { flex-wrap: wrap; } }

.cost-report-status:empty { display: none; }

/* CFO previews contain a header and a PDF, without the shared assurance row. */
.cfo-report-dialog[open] { grid-template-rows: auto minmax(0, 1fr); }
.cfo-report-dialog .actionable-report-frame { display: block; min-width: 0; min-height: 0; }
