/* =====================================================
   INRADR — ListView — root/nested ListView height chain, nested toolbar, full-text search
   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).
   ===================================================== */

/* ---- Root ListView height chain (WP-13) ----
   The root grid fills the space between the content toolbar and the footer and scrolls inside
   itself: the header stays visible and virtual scrolling gets a definite height. XAF's own rule
   ('.app .main-content > .grid-content') needs the .app class, which the INRADR shell does not
   carry on purpose. DOM (List snapshot, Tree list capture):
   .inradr-content-body > .grid-content > xaf-contextmenu-click-helper > dxbl-grid | dxbl-tree-list.
   Popup and nested ListViews are not direct children of the content body and keep XAF's layout. */

/* (0,5,0) so the list padding wins against the content-body padding of inradr-feature-shell.css
   (up to 0,4,0). 24px between the toolbar row and the grid (A). */
.dxbl-theme-fluent .inradr-content-body.main-content.xaf-flex-auto:has(> .grid-content) {
    display: flex;
    flex-direction: column;
    padding-top: var(--inradr-space-md);
}

/* 300px is XAF's own minimum; below it the content body scrolls (phone). */
.inradr-content-body > .grid-content {
    flex: 1 1 auto;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

/* The helper is an unstyled custom element (display: inline) between the grid and its container.
   ANNAHME (WP-00): XAF positions the row context menu correctly with a flex helper; not measurable while the
   context menu is switched off app-wide (ListViewContextMenuEnabled=False). */
.inradr-content-body > .grid-content > xaf-contextmenu-click-helper {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* .dxbl-grid rather than the dxbl-grid tag: the tree list renders as dxbl-tree-list.dxbl-grid. */
.inradr-content-body > .grid-content > xaf-contextmenu-click-helper > .dxbl-grid {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
}

/* ---- Nested ListView (Detail2 snapshot) ----
   No max-height: the nested grid shows all rows and the DetailView scrolls (OQ-18, A live). The
   nested toolbar already sits flush with its grid in 26.1 - the first group is the first child of
   .dxbl-btn-toolbar, which DX leaves without a margin - so A's alignment rules are not ported. */

/* A frame without actions: XAF's '.nested-toolbar:empty' only drops the 12px padding while the
   toolbar holds nothing, and misses a toolbar that keeps just its hidden action-handler div.
   ANNAHME (WP-00): not measurable: every nested toolbar seen holds a DxToolbar (Detail2 snapshot; all 95 in the
   eleven tabs of the fund DetailView, 2026-09-30). */
.nested-frame > .nested-toolbar:not(:has(dxbl-toolbar)) {
    display: none;
}

/* ---- Full-text search (Tree list capture) ----
   dxbl-input-editor.parametrized-action-wrapper.xaf-action-fulltextsearch, set by XAF's
   FocusFullTextSearchLookupWindowController. Locale-free hooks only (A keyed on German aria-label and
   placeholder texts). XAF makes it 230px wide; the height stays at the toolbar's 32px (OQ-09). Its
   img.xaf-toolbar-item-icon is tinted by the toolbar icon rule (WP-11). */

/* No own margin in front of the search group (124ca7cqpku; A had 8px). As the first group it sits
   flush with the content edge - in line with the lookthrough switch on lists that show one - and as
   a later group DX's own group spacing (8px, OQ-10) already separates it. */

/* No separator line between the input and the search button. The button declares these tokens
   ('.dxbl-text-edit > .dxbl-btn-group > .dxbl-btn'); re-verify on DX upgrade. */
.xaf-action-fulltextsearch.dxbl-text-edit > .dxbl-btn-group > .dxbl-btn.dxbl-text-edit-btn {
    --dxbl-btn-border-color: transparent;
    --dxbl-btn-hover-border-color: transparent;
    --dxbl-btn-active-border-color: transparent;
}
