/* V3 ratios: screen styles for this work package only (WP-F1: Ratios & Risk, Analytics, Year view). Built on css/odoo.css classes (see its header and docs/V3_A_REPORT.md); no new colours or sizes outside the Odoo tokens. */

/* chart box: the svg is drawn at the box's real width (MySolarCharts.draw), so the 12px axis text stays 12px */
.v3r-ch { display: block; width: 100%; min-width: 0; }
.v3r-ch > svg { display: block; max-width: 100%; }

/* line under a chart: legend on the left, "Show as table" link on the right (teal link, 13px / 500) */
.v3r-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 8px; font-size: var(--odoo-fs-small); line-height: 19.5px; color: var(--odoo-dash-muted); }
.v3r-lg { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.v3r-tick { display: inline-block; width: 2px; height: 14px; margin-left: 8px; background: var(--odoo-gray-800); }   /* the benchmark tick, #343A40 as in the chart */
.v3r-showtbl { margin-left: auto; font-weight: 500; color: var(--odoo-link); text-decoration: none; }
.v3r-showtbl:hover { color: var(--odoo-link-hover); text-decoration: underline; }

/* the funnel's table fallback: a disclosure under the chart */
.v3r-tbl { margin-top: 8px; }
.v3r-tbl > summary { display: inline-block; cursor: pointer; font-size: var(--odoo-fs-small); line-height: 19.5px; font-weight: 500; color: var(--odoo-link); }
.v3r-tbl > summary:hover { color: var(--odoo-link-hover); text-decoration: underline; }
.v3r-tbl[open] > summary { margin-bottom: 8px; }

/* ring scorecards: the ring sits left of the figure */
.v3r-rv { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.v3r-rv > svg { flex: none; }

/* risk alerts sit directly above the risk list */
.v3r-alert { margin: 0 0 8px; }
.v3r-alert strong { font-weight: 700; }

/* What-If: an Odoo form (label above the control, 8px gap) with a slider and a number box per factor */
.v3r-form { margin-bottom: 16px; }
.v3r-form .g { gap: 16px 32px; }
.v3r-field { min-width: 0; }
.v3r-field .o-label { display: inline-block; margin-bottom: 8px; }
.v3r-ctl { display: flex; align-items: center; gap: 16px; }
.v3r-ctl input[type=range] { flex: 1 1 auto; min-width: 0; width: auto; height: 32.3px; padding: 0; border: 0; background: none; box-shadow: none; accent-color: var(--odoo-link); cursor: pointer; }
.v3r-ctl input[type=range]:focus-visible { outline: 2px solid var(--odoo-link); outline-offset: 2px; }
.v3r-ctl input[type=number] { flex: none; width: 88px; }
.v3r-sc { margin-top: 8px; }

@media (max-width: 575.98px) {
  .v3r-ctl { gap: 8px; }
  .v3r-ctl input[type=number] { width: 72px; }
}
@media print {
  .v3r-showtbl, .v3r-tbl { display: none; }
}
