/* BECO U4 v1.8.3 — presentation only. No budget business logic changes. */
/* Keep the five financial figures in a single, clean row on desktop. */
#metrics.metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
#metrics .metric { min-width:0; border-radius:10px; padding:11px 13px; min-height:85px; }
#metrics .metric small { display:block; font-size:11px; line-height:1.4; }
#metrics .metric strong { display:block; font-size:clamp(14px,1.15vw,19px); white-space:nowrap; font-variant-numeric:tabular-nums; letter-spacing:-.02em; }
#metrics .metric span { display:block; line-height:1.3; font-size:10px; }
#metrics .metric:nth-child(2) { border-color:#398c87; }
#metrics .metric:nth-child(2) span { font-weight:750; color:#72d5c0; }
#metrics .metric:nth-child(5) strong.metric-negative { color:#ff8893; }
#submetrics.submetrics{display:flex; justify-content:space-between; gap:7px 17px; align-items:center; flex-wrap:wrap; padding:4px 2px 8px; }
#submetrics.submetrics >div { min-width:0; }
/* The edited budget remains compact: longer financial labels must not force huge columns. */
#budgetTable .data-table th,#budgetTable th { font-size:10px; }
/* Classic analytics: seven financial columns, with graceful scrolling at narrow widths. */
#v173FinanceLegacy .an-kpis { grid-template-columns: repeat(5,minmax(0,1fr)); }
#v173FinanceLegacy .an-kpi { min-width:0; display:flex; flex-direction:column; justify-content:center; min-height:81px; }
#v173FinanceLegacy .an-kpi strong { overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
#v173FinanceLegacy .an-kpi .v183-kpi-sub { display:block; margin-top:4px; font-size:10px; color:#67c1b0; font-weight:700; }
#v173FinanceLegacy .an-table-scroll { overflow-x:auto; overscroll-behavior-x:contain; }
#v173FinanceLegacy .an-sections table { width:100%; min-width:980px; font-variant-numeric:tabular-nums; border-collapse:collapse; }
#v173FinanceLegacy .an-sections th { white-space:nowrap; font-size:10px; }
#v173FinanceLegacy .an-sections td { white-space:nowrap; font-size:11px; }
#v173FinanceLegacy .an-sections td:first-child { white-space:normal; min-width:178px; }
#v173FinanceLegacy .an-sections td:not(:first-child),#v173FinanceLegacy .an-sections th:not(:first-child) { text-align:right; }
/* Budget panorama table: extra context without changing existing editor. */
.v178-fin-kpis { grid-template-columns:repeat(5,minmax(0,1fr)); }
.v178-fin-kpi { min-width:0; }
.v178-fin-kpi:nth-child(2) { box-shadow: inset 3px 0 #239c8b; }
.v178-fin-kpi:nth-child(2) span { color:#49b8a5; font-weight:800; }
.v178-sel-kpis { grid-template-columns:repeat(5,minmax(0,1fr)); }
.v183-fin-table-card { grid-column:1/-1; margin-top:0; }
.v183-fin-table-scroll { max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; margin-top:10px; }
.v183-fin-table { width:100%; min-width:1050px; border-collapse:collapse; font-size:11px; font-variant-numeric:tabular-nums; }
.v183-fin-table th { text-align:right; font-weight:700; font-size:10px; color:var(--v178-muted); white-space:nowrap; padding:10px 9px; border-bottom:1px solid var(--v178-stroke); }
.v183-fin-table th:first-child { text-align:left; min-width:180px; }
.v183-fin-table td { padding:10px 9px; color:var(--v178-text); border-bottom:1px solid var(--v178-stroke); white-space:nowrap; text-align:right; }
.v183-fin-table td:first-child { text-align:left; white-space:normal; }
.v183-fin-table tr:last-child td { font-weight:850; border-top:2px solid var(--v178-stroke); }
/* All financial tables use muted banding rather than harsh spreadsheet stripes. */
.v183-fin-table tbody tr:nth-child(even),#v173FinanceLegacy #sections tr:nth-child(even) { background: color-mix(in srgb,var(--v178-elev) 50%,transparent); }
@media(max-width:1280px){#metrics.metrics,#v173FinanceLegacy .an-kpis,.v178-fin-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); }}
@media(max-width:760px){#metrics.metrics,#v173FinanceLegacy .an-kpis,.v178-fin-kpis,.v178-sel-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }#metrics .metric strong{font-size:15px;white-space:normal;}}
