/* =====================================================
   INRADR — Dashboard controls — .inradr-table-card__grid, .inradr-table-search, global filter drawer DX parts
   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).
   Never target a bare .dxbl-modal (it also matches the XAF skip link).
   ===================================================== */

/* DOM (26.1 capture "List-box multi-select classes (WP-15, WP-17)", DistributionYield dashboard):
   .inradr-table-card > dxbl-grid.dxbl-grid.inradr-table-card__grid (CssClass on the grid root),
   .inradr-table-search > dxbl-input-editor.inradr-table-search__input.dxbl-text-edit,
   .inradr-global-filter__field > .inradr-field-wrap > dxbl-dropdown-box|dxbl-combo-box.dxbl-text-edit. */

/* ---- Card table: DxGrid CssClass="inradr-table-card__grid" (WP-17) ----
   One table palette in the app (OQ-17 a): zebra (surface-muted on odd data-visible-index) and row
   hover (row-selected) come from the ListView tokens in inradr-feature-grid.css, which reach every
   grid. Only the card-table deltas are set here, on the grid root that declares them
   ('.dxbl-grid{--dxbl-grid-text-cell-padding-x:...}', core.min.css 26.1.4); (0,2,0) from a later file
   beats the ListView rule '.dxbl-theme-fluent .dxbl-grid'. Horizontal lines only, no outer border and
   no wrapping come from GridlinesVisible/TextWrapEnabled in InradrGroupTable.razor
   (.dxbl-grid-no-v-lines / -no-outer-border / -nowrap). The family comes from the theme bridge.
   The header is the ListView's - the design system's data-grid header, 13px / bold / primary text (owner,
   2026-10-12; until then inradr-app's 14px / 500 / secondary text).
   Internal tokens: re-verify on DX upgrade. */
.dxbl-grid.inradr-table-card__grid {
    --dxbl-grid-color: var(--inradr-color-text-primary);
    --dxbl-grid-max-height: 420px;                          /* the card scrolls inside the grid (A) */
    --dxbl-grid-text-cell-padding-x: var(--inradr-space-2xs);  /* 12px */
    --dxbl-grid-text-cell-padding-y: 7px;                  /* A card-table cell, no spacing token */
}

/* Header row with 8px vertical padding; size, line height, colour and weight from the ListView header scope
   '.dxbl-grid .dxbl-grid-table > thead' (inradr-feature-grid.css). Re-verify on DX upgrade. */
.dxbl-grid.inradr-table-card__grid .dxbl-grid-table > thead {
    --dxbl-grid-text-cell-padding-y: var(--inradr-space-xs);
}

/* Figures line up in their columns. */
.dxbl-grid.inradr-table-card__grid .dxbl-grid-table > tbody {
    font-variant-numeric: tabular-nums;
}

/* A row without a valuation at the key date (CustomizeElement puts the class on the data-row tr,
   DX 26.1 sources Grid/Rendering/GridDataRow.razor). Muted instead of zebra, and a grey hover
   instead of the accent tint. DX reads both tokens on this tr ('.dxbl-grid .dxbl-grid-table>tbody>tr'
   and the row-hover rule), so no :hover selector is needed. The hover grey is the border colour at
   50% on white (A: #E9E9E8). DOM: capture "DistributionYield dashboard (WP-17)"; row and hover colours
   measured (#F5F5F5, #E9E9E8). Re-verify on DX upgrade. */
.dxbl-grid.inradr-table-card__grid .dxbl-grid-table > tbody > tr.inradr-table-card__row--no-data {
    --dxbl-grid-row-bg: var(--inradr-color-surface-muted);
    --dxbl-grid-hover-bg: color-mix(in srgb, var(--inradr-color-border) 50%, var(--inradr-color-surface));
}

.dxbl-grid.inradr-table-card__grid .dxbl-grid-table > tbody > tr.inradr-table-card__row--no-data > td {
    color: var(--inradr-color-text-muted);
}

.dxbl-grid.inradr-table-card__grid .dxbl-grid-table > tbody > tr.inradr-table-card__row--no-data > td:first-child {
    color: var(--inradr-color-text-secondary);
    font-weight: var(--inradr-text-body-strong-weight);
}

/* ---- Table search pill (.inradr-table-search, inradr-dataviz.css) ----
   The pill draws the 36px frame and its accent border on :focus-within; the DxTextBox inside is
   borderless and transparent and draws no focus underline of its own. All tokens are declared on
   '.dxbl-text-edit' (core.min.css 26.1.4); (0,2,0) beats that and the form-layout editor rule
   ':where(.dxbl-fl) .dxbl-text-edit' in inradr-feature-editors.css. The focus underline
   ('.dxbl-text-edit:focus-within::after') is max(focused height, radius) tall and takes the underline
   colour, which DX switches to the focused colour on focus - hence height, radius and both colours.
   Re-verify on DX upgrade. */
.inradr-table-search > .dxbl-text-edit {
    --dxbl-text-edit-bg: transparent;
    --dxbl-text-edit-border-width: 0;
    --dxbl-text-edit-border-radius: 0;
    --dxbl-text-edit-underline-color: transparent;
    --dxbl-text-edit-underline-focused-color: transparent;
    --dxbl-text-edit-underline-focused-height: 0;
}

/* ---- Global filter drawer (InradrGlobalFilterDrawer, inradr-filter.css) ----
   The toggle (.inradr-btn--secondary.inradr-btn--icon) and the reset (.inradr-btn--text) are DxButtons
   skinned by the generic .inradr-btn adapter in inradr-feature-button.css; their 36px size comes from
   inradr-button.css. Only the drawer's own DX parts follow. */

/* The counter badge follows the toggle in the DOM and must stay painted above it: the button becomes
   a positioned layer at z-index 0, so no DX state layer of the button can cover the badge. */
.inradr-global-filter .inradr-global-filter__toggle > .dxbl-btn {
    position: relative;
    z-index: 0;
}

/* Filter fields at the 36px control height: DX's large vertical padding (7px + 20px line + 7px +
   2px border) on the Medium editors. Declared on '.dxbl-text-edit' and its .dxbl-sm/.dxbl-lg
   variants (0,2,0); (0,3,0) wins. Re-verify on DX upgrade. */
.inradr-global-filter .inradr-global-filter__field .dxbl-text-edit {
    --dxbl-text-edit-padding-y: var(--dxbl-text-edit-padding-y-l);
}

/* Focus: 1px accent border plus the Fluent 2px underline in accent (the canonical search/filter focus;
   A's 2px border shifted the layout by 1px). Also holds while the drop-down is pressed: beats DX's
   '.dxbl-text-edit:not(.dxbl-disabled):active' (0,3,0). Re-verify on DX upgrade. */
.inradr-global-filter .inradr-global-filter__field:focus-within .dxbl-text-edit {
    --dxbl-text-edit-border-color: var(--inradr-color-accent);
    --dxbl-text-edit-underline-focused-color: var(--inradr-color-accent);
}

/* The counter badge protrudes 6px above and right of the toggle. No DX ancestor in the 26.1 chain
   (dxbl-fl-group > .dxbl-row > dxbl-fl-item > .dxbl-fl-ctrl) sets overflow in core.min.css 26.1.4
   (only the caption .dxbl-fl-cpt clips), so A's global overflow override is not ported. Measured with an
   active filter on 2026-09-30: only the shell's scroll surface clipped the badge, which the drawer's top
   padding in inradr-design/inradr-filter.css now leaves room for. */
