/* ==========================================================================
   19b. Dashboard shells - dashboard, grid, panel and card frames
   --------------------------------------------------------------------------
   The chrome INSIDE a card (chart-local filter, action cluster, footnote, table
   toolbar, chart tooltips and every :fullscreen rule) lives in chapter 18,
   inradr-dataviz.css. This chapter holds only the shells those cards
   sit in: the dashboard, its grid, the panel wrapper and the card frames.

   Consumed by Features/Dashboards in INRADR.Module.Blazor. Blocks since WP-25:
   .inradr-dashboard, .inradr-chart-card, .inradr-table-card, .inradr-plot-tooltip.

   Note on fonts and colours: anything Plotly draws is configured in C#
   (InradrVizTypography / InradrVizColors), never here. Plotly computes its margins
   from the inline font size and builds its PNG export from a clone that has no
   stylesheet, so a size or colour set only in CSS breaks the layout and the export.
   ========================================================================== */

/* Dashboard text sits at the 13px floor for secondary text (InradrVizTypography.MinSize). */
.inradr-dashboard {
    font-family: var(--inradr-font-body);
    font-size: var(--inradr-text-caption-size);
    color: var(--inradr-color-text-primary);
    width: 100%;
    box-sizing: border-box;
}

.inradr-dashboard__error {
    color: var(--inradr-color-status-danger-text);
    background: var(--inradr-color-status-danger-bg);
    padding: 6px 10px;
    border-radius: var(--inradr-radius-sm);
    margin-bottom: var(--inradr-space-2xs);
}

/* --- Dashboard grid: two columns; a full-width panel spans both ------------ */
.inradr-dashboard__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--inradr-space-xl);
}

@media (max-width: 1400px) {
    .inradr-dashboard__grid {
        grid-template-columns: 1fr;
    }
}

/* --- Panel: the wrapper around one grid cell (PerfPanel.razor) -------------
   Transparent and without a look of its own - the cards bring that. It carries
   only flex/shrink geometry, and min-width/min-height 0 are what let DxGrid and
   Plotly shrink inside a grid cell instead of forcing it open. */
.inradr-dashboard__panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.inradr-dashboard__panel > .inradr-chart-card,
.inradr-dashboard__panel > .inradr-table-card {
    flex: 1;
    min-height: 0;
}

.inradr-dashboard__panel--full {
    grid-column: 1 / -1;
}

/* --- Cards ----------------------------------------------------------------
   No divider line: the design system is flat-first (no border and no shadow on
   cards at rest). Separation comes from the grid gap. */
.inradr-chart-card,
.inradr-table-card {
    display: flex;
    flex-direction: column;
    padding-bottom: var(--inradr-space-md);
}

.inradr-table-card {
    min-width: 0; /* lets the DxGrid shrink inside the grid cell */
}

/* Aligned at the top, not centred: a header with taller content (badges in two lines, a wrapped toolbar) would
   otherwise push its title down, and two cards side by side would start their titles at different heights (owner,
   2026-10-12). The title's top margin puts it where centring its box on the 36px controls did. */
.inradr-chart-card__header,
.inradr-table-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--inradr-space-2xs);
    padding: 10px 0 var(--inradr-space-sm) 0;
}

/* Section title with the accent underline (spec section header). */
.inradr-chart-card__title,
.inradr-table-card__title {
    color: var(--inradr-color-text-heading);
    font-family: var(--inradr-font-body);
    font-size: var(--inradr-text-h2-size);
    font-weight: var(--inradr-text-h2-weight);
    line-height: var(--inradr-text-h2-line-height);
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    /* (control height - one title line - the underline's padding) / 2: the title box centred on the header controls. */
    margin-top: calc((var(--inradr-height-control) - var(--inradr-text-h2-size) * var(--inradr-text-h2-line-height) - var(--inradr-space-xs)) / 2);
    padding-bottom: var(--inradr-space-xs);
    overflow: visible;
}

.inradr-chart-card__title::after,
.inradr-table-card__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: var(--inradr-section-underline-w);
    height: var(--inradr-section-underline-h);
    background-color: var(--inradr-color-accent);
    border-radius: var(--inradr-radius-xs);
}

/* A table card carries its toolbar (search, filter badge, actions) in the title row, as a chart card its actions
   (owner, 2026-10-12). The title takes its own width and the rest of the row; when title and toolbar do not fit,
   the toolbar wraps right-aligned into the next line instead of squeezing the title. */
.inradr-table-card__header {
    flex-wrap: wrap;
    row-gap: var(--inradr-space-xs);
}

.inradr-table-card__title {
    flex: 1 1 auto;
    width: auto;
}

/* Meta and actions group to the right; the title stays left. */
.inradr-chart-card__header-end {
    display: flex;
    align-items: center;
    gap: var(--inradr-space-xs);
}

/* --- Plot area ------------------------------------------------------------ */
.inradr-chart-card__plot {
    position: relative;
    flex: 1;
    min-height: 320px;
}

/* The ONE height modifier. Waterfalls and maps need more vertical room than a bar chart: a bridge
   with seven steps and a map with an aspect ratio of its own both become unreadable at 320px.
   Deliberately a single modifier rather than a height parameter per card - a per-card height ends
   up inline, and Plotly's own resize clears layout.width/height unless BOTH are set, so the height
   belongs on the container. */
.inradr-chart-card--tall .inradr-chart-card__plot {
    min-height: 440px;
}

/* A plot that grows with its data - horizontal bars, one row per entry (InradrPlotlyCard.PlotHeight). The plot
   area keeps the card's height and scrolls; the canvas inside carries the plot's own height inline, because
   that height follows the row count. The canvas never gets shorter than the area it scrolls in. */
.inradr-chart-card__plot--scroll {
    flex: none;
    height: 320px;
    overflow-x: hidden;
    overflow-y: auto;
}

.inradr-chart-card--tall .inradr-chart-card__plot--scroll {
    height: 440px;
}

.inradr-chart-card__canvas {
    min-height: 100%;
}

/* A plot with content beside it (InradrPlotlyCard.SideContent): the donut with its compact list
   legend (124ca7cqpjk). The plot takes the flexible column and grows with the card, square up to a
   cap - the ring stays circular because the pie radius follows the smaller dimension; the legend
   takes its content width. Header and any bottom content span both columns. Narrow, the list moves
   under the plot.
   The rows keep their content height and sit at the top (align-content): a card stretched by a taller neighbour
   in its grid row would otherwise stretch its rows and centre the header in the first one, so its title started
   lower than the neighbour's (owner, 2026-10-12). */
.inradr-chart-card--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) fit-content(280px);
    column-gap: var(--inradr-space-md);
    align-content: start;
    align-items: center;
}

.inradr-chart-card--split > * {
    grid-column: 1 / -1;
}

.inradr-chart-card--split > .inradr-chart-card__plot {
    grid-column: 1;
    flex: none;
    width: 100%;
    min-height: 240px;
    max-height: 480px;
    aspect-ratio: 1 / 1;
}

.inradr-chart-card--split > .inradr-chart-card__side {
    grid-column: 2;
    min-width: 0;
}

@media (max-width: 720px) {
    .inradr-chart-card--split {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Stacked, the donut must not become a viewport-wide ring. */
    .inradr-chart-card--split > .inradr-chart-card__plot {
        justify-self: center;
        width: min(100%, 400px);
    }

    .inradr-chart-card--split > .inradr-chart-card__side {
        grid-column: 1;
        margin-top: var(--inradr-space-md);
    }
}

/* Plotly's own wrappers inside the container (.js-plotly-plot / .plot-container) are sized in
   inradr-feature/inradr-feature-dashboards.css (vendor selectors). */

.inradr-chart-card__empty {
    min-height: 160px;
    display: grid;
    place-items: center;
    padding: var(--inradr-space-md);
    color: var(--inradr-color-text-muted);
    font-size: var(--inradr-text-caption-size);
    line-height: var(--inradr-text-caption-line-height);
    text-align: center;
}

/* The zoom buttons of a map (InradrPlotlyCard.ShowGeoZoom), stacked in the top left corner of the plot area -
   the positioning parent. The buttons are the card-action squares. */
.inradr-chart-card__zoom {
    position: absolute;
    top: var(--inradr-space-xs);
    left: var(--inradr-space-xs);
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--inradr-space-xs);
}

/* The empty note over a plot that stays mounted - the property map, which a filter must not recreate (every
   map is a billed load). The plot area is the positioning parent. */
.inradr-chart-card__empty--overlay {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--inradr-color-surface) 85%, transparent);
}

/* --- Custom HTML tooltip of the Plotly cards ------------------------------
   MUST stay global: the element is created in JS and appended to <body>, or to
   the fullscreen element while a card is maximised - never inside the card. The
   z-index has to clear the fullscreen top layer. Body size: the former
   clamp(13px, 0.8125rem + 0.25vw, 14px) already resolved to 14px from 400px up. */
.inradr-plot-tooltip {
    position: fixed;
    z-index: var(--inradr-layer-tooltip);
    pointer-events: none;
    max-width: 320px;
    padding: var(--inradr-space-xs) 10px;
    font-family: var(--inradr-font-body);
    font-size: var(--inradr-text-body-size);
    color: var(--inradr-color-text-primary);
    background: var(--inradr-color-surface);
    border: 1px solid var(--inradr-color-border);
    border-radius: var(--inradr-radius-sm);
    box-shadow: var(--inradr-elevation-2-shadow);
}

/* Heading line of a tooltip (InradrVizTooltip.Title) - the rule was missing until WP-25. */
.inradr-plot-tooltip__title {
    margin-bottom: var(--inradr-space-xxs);
    font-weight: var(--inradr-text-body-strong-weight);
    color: var(--inradr-color-text-heading);
}

/* A warning line of a tooltip (InradrVizTooltip.Warning), e.g. a share-value gap. */
.inradr-plot-tooltip__warn {
    color: var(--inradr-color-status-warn);
}

/* --- Selection band (InradrScopeSummary.razor) ------------------------------
   "Aktuelle Auswahl": the headline count on the left, the coverage bars on the right; one column below 1400px. */
.inradr-scope-summary {
    display: grid;
    grid-template-columns: minmax(420px, 1.35fr) minmax(360px, 0.85fr);
    gap: var(--inradr-space-md);
    align-items: center;
    margin-bottom: var(--inradr-space-md);
    padding-bottom: var(--inradr-space-md);
    border-bottom: 1px solid var(--inradr-color-border);
}

.inradr-scope-summary__main {
    display: grid;
    gap: var(--inradr-space-xs);
}

.inradr-scope-summary__eyebrow {
    font-size: var(--inradr-text-caption-size);
    line-height: var(--inradr-text-caption-line-height);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--inradr-color-text-muted);
}

.inradr-scope-summary__value {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--inradr-space-xs);

    & strong {
        font-size: var(--inradr-text-display-size);
        font-weight: var(--inradr-text-display-weight);
        line-height: var(--inradr-text-display-line-height);
        color: var(--inradr-color-text-heading);
    }
}

.inradr-scope-summary__meta {
    font-size: var(--inradr-text-caption-size);
    color: var(--inradr-color-text-secondary);
}

.inradr-scope-summary__side {
    display: grid;
    gap: var(--inradr-space-sm);
}

.inradr-scope-summary__bar {
    display: grid;
    gap: 6px;
}

.inradr-scope-summary__bar-row {
    display: flex;
    justify-content: space-between;
    gap: var(--inradr-space-sm);
    font-size: var(--inradr-text-caption-size);
    color: var(--inradr-color-text-secondary);

    & strong {
        color: var(--inradr-color-text-heading);
    }
}

.inradr-scope-summary__track {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: var(--inradr-radius-full);
    background: var(--inradr-color-surface-muted);
}

.inradr-scope-summary__fill {
    height: 100%;
    border-radius: var(--inradr-radius-full);
    background: var(--inradr-color-viz-1);
}

/* A bar label with an explanation on hover (InradrScopeBar.Title) - dotted, as a caption with a tooltip. */
.inradr-scope-summary__help {
    text-decoration: underline dotted;
    text-underline-offset: 2px;
    cursor: help;
}

@media (max-width: 1400px) {
    .inradr-scope-summary {
        grid-template-columns: 1fr;
    }
}

/* --- Loading state (InradrChartLoading.razor) ------------------------------
   The spinner itself is the design-system .inradr-spinner (inradr-spinner.css); the initial
   dashboard load pins it to the large size, independent of the spinner's default. */
.inradr-chart-loading {
    display: grid;
    place-items: center;
    min-height: 320px;
    gap: var(--inradr-space-sm);
    color: var(--inradr-color-text-secondary);
    font-size: var(--inradr-text-caption-size);
}

.inradr-chart-loading .inradr-spinner {
    width: 2rem;
    height: 2rem;
}

.inradr-chart-loading-text {
    font-size: var(--inradr-text-caption-size);
    line-height: var(--inradr-text-caption-line-height);
    color: var(--inradr-color-text-secondary);
}

/* --- DxGrid inside a table card (CssClass="inradr-table-card__grid") --------------------
   The grid itself (height, cell padding, header, row colours) is mapped onto DxGrid tokens in
   inradr-feature/inradr-feature-dashboard-controls.css; only the own cell content class stays here. */
.inradr-table-card__grid .inradr-table-card__cell--strong {
    font-weight: var(--inradr-text-body-strong-weight);
}

/* --- Small helpers -------------------------------------------------------- */
/* "not available" cell value. Body size: the former clamp() resolved to 14px from 400px up. */
.inradr-table-card__cell--na {
    color: var(--inradr-color-text-muted);
    font-style: italic;
    font-size: var(--inradr-text-body-size);
}

/* A signed delta in a table cell (InradrCellTone.Positive / Negative) - the colours of the KPI trend. */
.inradr-table-card__cell--up {
    color: var(--inradr-color-status-ok);
}

.inradr-table-card__cell--down {
    color: var(--inradr-color-status-danger-text);
}

/* A badge in a table cell (InradrCell.Badge); after the cell text it keeps a small gap. */
.inradr-table-card__badge:not(:first-child) {
    margin-left: var(--inradr-space-xs);
}

/* A caption with a tooltip (InradrColumn.HeaderTitle) - dotted, so the reader sees there is one. */
.inradr-table-card__header-help {
    text-decoration: underline dotted;
    text-underline-offset: 2px;
    cursor: help;
}

/* --- Status matrix (InradrStatusMatrix.razor) ----------------------------------------------------------------
   Rows × columns of status fields, e.g. a fund's delivery state per month - the predecessor's coverage matrix
   (inradr-app, cov-*). The row header and the code column stay put while the columns scroll (sticky); the scroll
   container caps the height. The row header has a fixed width: the code column docks onto it, so its left offset
   must be known - with a content-sized column a long name would push the offset and the two would overlap. */
.inradr-status-matrix {
    --inradr-status-matrix-head-w: 240px;

    overflow: auto;
    max-height: 440px;
}

.inradr-status-matrix__table {
    border-collapse: separate;
    border-spacing: 2px;
    font-size: var(--inradr-text-body-size);
}

.inradr-status-matrix__table th,
.inradr-status-matrix__table td {
    padding: 0;
}

.inradr-status-matrix__table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: var(--inradr-space-xxs) var(--inradr-space-xs);
    background: var(--inradr-color-surface);
    /* The design system's data-grid header, as every table of the app (owner, 2026-10-12). */
    color: var(--inradr-color-text-primary);
    font-size: var(--inradr-text-list-header-size);
    font-weight: var(--inradr-text-list-header-weight);
    white-space: nowrap;
    vertical-align: bottom;
}

.inradr-status-matrix__column {
    min-width: 38px;
    text-align: center;
}

.inradr-status-matrix__table .inradr-status-matrix__row-head {
    position: sticky;
    left: 0;
    z-index: 1;
    box-sizing: border-box;
    width: var(--inradr-status-matrix-head-w);
    min-width: var(--inradr-status-matrix-head-w);
    max-width: var(--inradr-status-matrix-head-w);
    overflow: hidden;
    padding: var(--inradr-space-xxs) 10px var(--inradr-space-xxs) var(--inradr-space-xs);
    background: var(--inradr-color-surface);
    color: var(--inradr-color-text-body);
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 2px less than the header width: for a sticky cell only "left" counts, not the border spacing - a gap between the
   two would belong to neither cell and show the scrolled cells through it. */
.inradr-status-matrix__table .inradr-status-matrix__code {
    position: sticky;
    left: calc(var(--inradr-status-matrix-head-w) - 2px);
    z-index: 1;
    padding: 0 var(--inradr-space-xxs);
    background: var(--inradr-color-surface);
    text-align: center;
}

/* The sticky corners lie above the sticky header row and the sticky body cells; as header cells they take the
   header colour, not the row head's body text. */
.inradr-status-matrix__table thead th.inradr-status-matrix__row-head,
.inradr-status-matrix__table thead th.inradr-status-matrix__code {
    z-index: 3;
    color: var(--inradr-color-text-primary);
}

.inradr-status-matrix__badge {
    margin-left: var(--inradr-space-xs);
}

.inradr-status-matrix__row--muted .inradr-status-matrix__row-head {
    color: var(--inradr-color-text-muted);
}

/* A status field. The tone classes serve the legend keys as well - one source for cell and key. */
.inradr-status-matrix__cell {
    width: 38px;
    height: 22px;
    border-radius: var(--inradr-radius-xs);
    font-weight: var(--inradr-text-body-bold-weight);
    text-align: center;
    vertical-align: middle;
    cursor: default;
}

.inradr-status-matrix__cell--ok {
    background: var(--inradr-color-status-ok);
    color: var(--inradr-color-surface);
}

.inradr-status-matrix__cell--warn {
    background: var(--inradr-color-status-warn);
    color: var(--inradr-color-surface);
}

.inradr-status-matrix__cell--danger {
    background: var(--inradr-color-status-danger);
    color: var(--inradr-color-surface);
}

.inradr-status-matrix__cell--neutral {
    background: var(--inradr-color-border);
    color: var(--inradr-color-text-secondary);
}

.inradr-status-matrix__cell--info {
    background: var(--inradr-color-status-info);
    color: var(--inradr-color-surface);
}

.inradr-status-matrix__cell--accent {
    background: var(--inradr-color-accent);
    color: var(--inradr-color-surface);
}

.inradr-status-matrix__cell--empty {
    background: var(--inradr-color-surface-muted);
}

/* --- Comparison table (InradrComparisonTable.razor) -------------------------------------------------------------
   A figure at the current and at the compare date, each with a micro bar, the delta and its percentage below - the
   predecessor's GuV comparison tables (inradr-app, guv-compare-*). Current bars in viz-1, compare bars in viz-7, as
   the dumbbell dots and the coverage rings: one pair of colours for the two key dates. */
.inradr-comparison {
    overflow-x: auto;
}

.inradr-comparison__table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: var(--inradr-text-body-size);
    color: var(--inradr-color-text-body);

    & th {
        padding: var(--inradr-space-xs) 12px;
        border-bottom: 1px solid var(--inradr-color-border);
        /* The design system's data-grid header, as every table of the app (owner, 2026-10-12). */
        color: var(--inradr-color-text-primary);
        font-size: var(--inradr-text-list-header-size);
        font-weight: var(--inradr-text-list-header-weight);
        text-align: left;
        white-space: nowrap;
    }

    & td {
        padding: 7px 12px;
        border-bottom: 1px solid var(--inradr-color-surface-muted);
        white-space: nowrap;
    }
}

.inradr-comparison__table .inradr-comparison__number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.inradr-comparison__table .inradr-comparison__bar {
    width: 96px;
    padding-left: 0;
}

.inradr-comparison__row--subtotal td {
    background: var(--inradr-color-surface-muted);
    font-weight: var(--inradr-text-body-strong-weight);
}

.inradr-comparison__row--total td {
    background: var(--inradr-color-accent-tint-8);
    font-weight: var(--inradr-text-body-bold-weight);
}

/* Part of the line above and outside the sums - the balance sheet's "davon: Forderungen aus SHLs": the label indented
   and muted, the figures and the delta as on any line (predecessor). */
.inradr-comparison__row--subline td:first-child {
    padding-left: 28px;
    color: var(--inradr-color-text-secondary);
}

/* The line that reconciles the positions with the delivered NAV ("Delta zu NAV"). */
.inradr-comparison__row--reconciliation td {
    color: var(--inradr-color-text-secondary);
    font-style: italic;
}

.inradr-comparison__track {
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: var(--inradr-radius-full);
    background: var(--inradr-color-surface-muted);
}

.inradr-comparison__fill {
    height: 100%;
    border-radius: var(--inradr-radius-full);
}

.inradr-comparison__fill--current {
    background: var(--inradr-color-viz-1);
}

.inradr-comparison__fill--compare {
    background: var(--inradr-color-viz-7);
    opacity: 0.72;
}

/* Dark appearance (spec): current in Accent Blue Light, compare in Viz Orange at full opacity on the Deep Sea
   track (--inradr-color-surface-muted). */
:root[data-theme="dark"] .inradr-comparison__fill--current {
    background: var(--inradr-color-accent-light);
}

:root[data-theme="dark"] .inradr-comparison__fill--compare {
    background: var(--inradr-color-viz-2);
    opacity: 1;
}

.inradr-comparison__delta--up {
    color: var(--inradr-color-status-ok);
}

.inradr-comparison__delta--down {
    color: var(--inradr-color-status-danger-text);
}

.inradr-comparison__delta-pct {
    display: block;
    font-size: var(--inradr-text-caption-size);
    color: var(--inradr-color-text-secondary);
}

/* A colour key in front of a line, e.g. the risk class of a share table; the colour comes inline from the register. */
.inradr-comparison__swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: var(--inradr-radius-xs);
    vertical-align: middle;
}

/* --- Dumbbell table (InradrDumbbellTable.razor) ------------------------------------------------------------------
   Per row two dots on one value axis with a mark at zero - the predecessor's manager card (guv-dumbbell-*). */
.inradr-dumbbell {
    display: grid;
}

.inradr-dumbbell__row {
    display: grid;
    grid-template-columns: 160px 88px minmax(80px, 1fr) 88px 88px;
    gap: 12px;
    align-items: center;
    padding: var(--inradr-space-xs) 0;
    border-bottom: 1px solid var(--inradr-color-surface-muted);
    font-size: var(--inradr-text-body-size);
    color: var(--inradr-color-text-body);
}

.inradr-dumbbell__row--head {
    border-bottom-color: var(--inradr-color-border);
    /* The design system's data-grid header, as every table of the app (owner, 2026-10-12). */
    color: var(--inradr-color-text-primary);
    font-size: var(--inradr-text-list-header-size);
    font-weight: var(--inradr-text-list-header-weight);
}

.inradr-dumbbell__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inradr-dumbbell__number {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.inradr-dumbbell__delta--up {
    color: var(--inradr-color-status-ok);
}

.inradr-dumbbell__delta--down {
    color: var(--inradr-color-status-danger-text);
}

/* The track: a 2px axis line through the middle, the zero mark across it. */
.inradr-dumbbell__track {
    position: relative;
    height: 22px;
    background: linear-gradient(var(--inradr-color-surface-muted), var(--inradr-color-surface-muted)) center / 100% 2px no-repeat;
}

.inradr-dumbbell__zero {
    position: absolute;
    top: 3px;
    bottom: 3px;
    width: 1px;
    background: var(--inradr-color-grid-line);
}

.inradr-dumbbell__connector {
    position: absolute;
    top: 10px;
    height: 2px;
    background: var(--inradr-color-viz-10);
}

.inradr-dumbbell__dot {
    position: absolute;
    top: 4px;
    width: 14px;
    height: 14px;
    box-sizing: border-box;
    margin-left: -7px;
    border: 2px solid var(--inradr-color-surface);
    border-radius: var(--inradr-radius-full);
}

.inradr-dumbbell__dot--current,
.inradr-dumbbell__key--current {
    background: var(--inradr-color-viz-1);
}

.inradr-dumbbell__dot--compare,
.inradr-dumbbell__key--compare {
    background: var(--inradr-color-viz-7);
}

.inradr-dumbbell__legend {
    display: flex;
    gap: 18px;
    margin-top: var(--inradr-space-xs);
    font-size: var(--inradr-text-caption-size);
    color: var(--inradr-color-text-secondary);

    & span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
}

.inradr-dumbbell__key {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: var(--inradr-radius-full);
}

@media (max-width: 1024px) {
    .inradr-dumbbell__row {
        grid-template-columns: 120px 80px minmax(60px, 1fr) 80px 80px;
    }
}

/* --- Bar list (InradrBarList.razor) ------------------------------------------------------------------------------
   A list chart of the Private Debt prototypes (concentration, margin ladder, coverage, collateral types, covenant
   headroom): per row a right-aligned label, a track with stacked bars from zero - a negative bar runs left of zero -,
   an optional marker, and value columns. Without a track the same grid is a legend table with colour squares (the
   segment tables under the ladders). The columns come from the component (--inradr-bar-list-columns); the bar colours
   arrive inline from the colour register. Wide lists scroll sideways inside the card. */
.inradr-bar-list {
    /* The default grid - label and track; InradrBarList sets the columns of each list inline. */
    --inradr-bar-list-columns: 190px minmax(160px, 1fr);
    display: grid;
    overflow-x: auto;
}

.inradr-bar-list__row {
    display: grid;
    grid-template-columns: var(--inradr-bar-list-columns);
    gap: 12px;
    align-items: center;
    min-width: 520px;
    min-height: 36px;
    padding: var(--inradr-space-xs) 0;
    border-bottom: 1px solid var(--inradr-color-surface-muted);
    color: var(--inradr-color-text-body);
    font-size: var(--inradr-text-body-size);
}

.inradr-bar-list__row--head {
    min-height: 0;
    border-bottom-color: var(--inradr-color-border);
    /* The design system's data-grid header, as every table of the app (owner, 2026-10-12). */
    color: var(--inradr-color-text-primary);
    font-size: var(--inradr-text-list-header-size);
    font-weight: var(--inradr-text-list-header-weight);
}

.inradr-bar-list__row--axis {
    min-height: 30px;
    border-bottom-color: var(--inradr-color-border);
    color: var(--inradr-color-text-chart);
    font-size: var(--inradr-text-caption-size);
}

.inradr-bar-list__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inradr-bar-list__label--right {
    text-align: right;
    color: var(--inradr-color-text-chart);
}

.inradr-bar-list__number {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.inradr-bar-list__number--up {
    color: var(--inradr-color-status-ok);
}

.inradr-bar-list__number--down {
    color: var(--inradr-color-status-danger-text);
}

.inradr-bar-list__number--muted {
    color: var(--inradr-color-text-secondary);
}

.inradr-bar-list__number--strong {
    font-weight: var(--inradr-text-body-strong-weight);
}

.inradr-bar-list__swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: var(--inradr-radius-xs);
}

/* The track: transparent, the bars 24px high with a rounded free end, as the prototypes. */
.inradr-bar-list__track {
    position: relative;
    height: 24px;
}

.inradr-bar-list__segment {
    position: absolute;
    top: 0;
    bottom: 0;
}

.inradr-bar-list__segment:last-of-type {
    border-radius: 0 var(--inradr-radius-sm) var(--inradr-radius-sm) 0;
}

.inradr-bar-list__zero {
    position: absolute;
    top: -6px;
    bottom: -6px;
    z-index: 1;
    border-left: 2px solid var(--inradr-color-text-primary);
}

/* The marker: a dark tick across the bar - the principal of a coverage row, the compare value of a headroom row. */
.inradr-bar-list__marker {
    position: absolute;
    top: -3px;
    bottom: -3px;
    z-index: 2;
    width: 3px;
    margin-left: -1.5px;
    border-radius: var(--inradr-radius-xs);
    background: var(--inradr-color-text-primary);
}

.inradr-bar-list__marker--dot {
    top: 50%;
    bottom: auto;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: var(--inradr-radius-full);
    background: var(--inradr-color-text-secondary);
    transform: translateY(-50%);
}

.inradr-bar-list__axis {
    position: relative;
    height: 22px;

    & span {
        position: absolute;
        top: 2px;
        transform: translateX(-50%);
        white-space: nowrap;
    }

    & span:first-child {
        transform: none;
    }

    & span:last-child {
        transform: translateX(-100%);
    }
}

/* --- Coverage ring (InradrCoverageRing.razor) and the coverage card around it ------------------------------------
   One ratio as a ring, its value and a caption in the centre - the predecessor's coverage donut (inradr-donut). The
   geometry is tied to the markup: viewBox 140, radius 52, stroke 16; here size, rotation and the tone. The card puts
   two rings beside a key-figure list (inradr-coverage-*). */
.inradr-coverage-ring {
    --inradr-coverage-ring-size: 180px;

    position: relative;
    width: var(--inradr-coverage-ring-size);
    height: var(--inradr-coverage-ring-size);
    margin: 0 auto;

    & svg {
        width: 100%;
        height: 100%;
        transform: rotate(-90deg);
    }
}

.inradr-coverage-ring__track,
.inradr-coverage-ring__value {
    fill: none;
    stroke-width: 16;
}

.inradr-coverage-ring__track {
    stroke: var(--inradr-color-surface-muted);
}

.inradr-coverage-ring__value {
    stroke-linecap: round;
}

.inradr-coverage-ring--current .inradr-coverage-ring__value {
    stroke: var(--inradr-color-viz-1);
}

.inradr-coverage-ring--compare .inradr-coverage-ring__value {
    stroke: var(--inradr-color-viz-7);
}

.inradr-coverage-ring__center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    & strong {
        font-size: 28px;
        font-weight: 500;
        line-height: 1;
        color: var(--inradr-color-text-heading);
    }

    & span {
        font-size: var(--inradr-text-caption-size);
        color: var(--inradr-color-text-secondary);
    }
}

.inradr-coverage {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--inradr-space-md);
    align-items: center;
}

.inradr-coverage__rings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--inradr-space-sm);
}

.inradr-coverage__list {
    display: grid;
    gap: var(--inradr-space-xs);
}

.inradr-coverage__sub {
    margin-top: 6px;
    font-size: var(--inradr-text-caption-size);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--inradr-color-text-secondary);
}

.inradr-coverage__item {
    display: flex;
    justify-content: space-between;
    gap: var(--inradr-space-sm);
    font-size: var(--inradr-text-caption-size);
    color: var(--inradr-color-text-secondary);

    & strong {
        color: var(--inradr-color-text-heading);
    }
}

.inradr-coverage__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--inradr-space-xs);
    margin-top: var(--inradr-space-xs);
}

@media (max-width: 1024px) {
    .inradr-coverage {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .inradr-coverage__rings {
        grid-template-columns: 1fr;
    }
}
