/* =====================================================
   INRADR — Tenant overview ("Übersicht") — KPI tiles and the quick access group
   inradr-feature layer (adapter): DevExpress / XAF / vendor selectors and tokens only.
   Maps inradr-design values (var(--inradr-*)) onto the framework; no new base values and
   no hex literals. Internal --dxbl-* tokens are set on the element that declares them and
   carry "re-verify on DX upgrade" (full list: inradr-feature/README.md).

   TenantView_DetailView carries CustomCSSClassName (INRADR.Module.Blazor model layer):
   inradr-layout--overview on Main, inradr-kpi-tile on the four KPI groups, inradr-overview-quick-access on the
   quick access group. Ported from A inradr-features/inradr-customs.css (TennatOverviewBold[Content]) and
   inradr-embedded-crud-feature.css (schnellzugriff), without A's !important chains. A's .uebersicht padding
   rule is not ported: a syntax error merged it into a popup rule, so it never applied in A either.
   The own elements (cards, quick access buttons) are styled in inradr-design/inradr-overview.css.
   ===================================================== */

/* ---- KPI tiles ----
   Each KPI is a captionless layout group holding one read-only numeric editor with its caption on top:
   div.dxbl-row > dxbl-form-layout-group.dxbl-col-md-3.inradr-kpi-tile > div.dxbl-row > .dxbl-fl-item >
   .dxbl-fl-cpt + .dxbl-fl-ctrl > dxbl-spinedit.dxbl-text-edit.dxbl-disabled > input.dxbl-text-edit-input
   (verified at the acceptance 2026-10-01, DX 26.1).
   The tile matches .inradr-kpi-card (inradr-card.css); display mode already renders the value without
   border or spin buttons (inradr-feature-editors.css). Re-verify on DX upgrade. */

/* The tile is the DevExpress column itself: its padding is the row gutter, so the four borders touched, and the
   row's negative margin pushed the first tile past the portfolio grid. The row of tiles is laid out like
   .inradr-kpi-row instead (inradr-card.css): equal columns, 16px apart, wrapping in pairs on a narrow window, flush
   with the content edge, and 24px above the portfolio grid as in A (36px tile to grid with the group margins).
   The tiles wrap before a value is cut: a ten-digit amount in the KPI size needs about 280px, so the overview has
   its own minimum (--inradr-kpi-tile-min-width) instead of the 13rem of the dashboard KPI row; min() keeps a tile
   inside a window narrower than that minimum.
   '.dxbl-fl .dxbl-row' (0,2,0) loses to (0,3,0). Re-verify on DX upgrade. */
.inradr-layout--overview .dxbl-row:has(> .inradr-kpi-tile) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(var(--inradr-kpi-tile-min-width), 100%), 1fr));
    gap: var(--inradr-space-sm);
    margin-inline: 0;
    padding-bottom: var(--inradr-space-md);
}

.inradr-layout--overview .inradr-kpi-tile {
    box-sizing: border-box;
    width: auto;
    max-width: none;
    padding: var(--inradr-kpi-card-padding);
    border: 1px solid var(--inradr-color-border);
    border-radius: var(--inradr-radius-lg);
    background: var(--inradr-color-surface);
}

/* The 86px of A and the KPI card: label 17px below the edge, the figure 8px below the label. The tile's inner row
   keeps the negative half item spacing (-6px) of the form layout, which pulled both 6px up. */
.inradr-layout--overview .inradr-kpi-tile > .dxbl-row {
    margin-block: 0;
}

.inradr-layout--overview .inradr-kpi-tile .dxbl-fl-item > .dxbl-fl-cpt {
    padding-bottom: 0;
    margin-bottom: var(--inradr-kpi-label-gap);
    font-size: var(--inradr-text-kpi-label-size);
    font-weight: var(--inradr-text-kpi-label-weight);
    line-height: var(--inradr-text-kpi-label-line-height);
    color: var(--inradr-color-text-secondary);
}

/* The figure: KPI size, dark, flush left. The caption-top item spacing of the form layout would add 24px below
   the value inside the tile. */
.inradr-layout--overview .inradr-kpi-tile .dxbl-fl-item:not(.dxbl-fl-item-horizontal) {
    margin-top: 0;
    margin-bottom: 0;
}

.inradr-layout--overview .inradr-kpi-tile .dxbl-text-edit.dxbl-disabled > .dxbl-text-edit-input {
    padding-block: 0;
    font-size: var(--inradr-text-h1-size);
    font-weight: var(--inradr-text-h1-weight);
    line-height: var(--inradr-text-h1-line-height);
    color: var(--inradr-color-text-primary);
}

/* ---- Quick access group ----
   The group has no caption; the quick access renders its own title. Without a permitted button it renders
   nothing, so the empty group is hidden instead of leaving a gap. Spaced like A, where the title was a group
   caption: 50px from the portfolio grid to the title (A: 40px group margin + 10px caption padding, here 6px of it
   come from the grid's group) and 50px from the buttons to the next caption (A: 16px group body + 2 x 12px margin
   + 10px caption padding). */
.inradr-layout--overview .inradr-overview-quick-access:not(:has(.inradr-entity-type-button)) {
    display: none;
}

.inradr-layout--overview .inradr-overview-quick-access:has(.inradr-entity-type-button) {
    margin-top: calc(var(--inradr-space-lg) + var(--inradr-space-2xs));
    margin-bottom: var(--inradr-space-2xs);
    padding-bottom: var(--inradr-space-sm);
}

/* ---- Appointments and notes ----
   A: 14px between the caption "Termine & Notizen" and the two card lists (the 12px item margin of the 25.2 form
   layout); the 26.1 layout leaves 2px. Only on the overview: the "show all" popup lists keep their place. */
.inradr-layout--overview .inradr-overview-list {
    margin-top: var(--inradr-space-2xs);
}

/* ---- Quick access popup: the selector form with labels on top ----
   QuickAccessRenderer's DxPopup is a DevExpress popup of its own, not an XAF popup, so the popup form measures of
   inradr-feature-popup.css do not reach it: label 8px above the field, 16px between the rows (spec form variant).
   Tokens declared on .dxbl-fl (core.min.css 26.1.4 '.dxbl-fl{...--dxbl-fl-item-spacing-y:var(--dxbl-fl-item-spacing-y-m);
   ...--dxbl-fl-caption-vertical-padding-bottom:var(--dxds-spacing-20)...}'). Re-verify on DX upgrade. */
.inradr-crud-popup__body .dxbl-fl {
    --dxbl-fl-item-spacing-y: var(--inradr-space-sm);
    --dxbl-fl-caption-vertical-padding-bottom: var(--inradr-space-xs);
}
