/* =====================================================
   INRADR — Drop-downs — drop-down panels, list box, calendar, context menu
   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).
   ===================================================== */

/* Drop-downs render at the end of <body> (dxbl-popup-root > dxbl-popup-cell), outside every view container,
   so these rules are global. */

/* ── Drop-down panels ────────────────────────────────────────────
   Combobox, date edit, drop-down box, filter menu, toolbar and menu drop-downs: 4px radius and the
   elevation-2 shadow (OQ-32) instead of Fluent's 8px and box-shadow-lg. Fluent drop-downs have no border;
   that stays. Declared on the positioned wrapper '.dxbl-dropdown,.dxbl-itemlist-dropdown' and read by its
   '> .dxbl-dropdown-dialog' (core.min.css 26.1.4); the same selectors win by order. Dialogs that redeclare
   the tokens keep their own values: context menu (below), toolbar drop-down (radius 4px as well),
   navigation (inradr-feature-navigation.css). DOM: captures "Drop-down panels, list box / calendar (WP-15)":
   dxbl-dropdown.dxbl-dropdown > dxbl-dropdown-dialog.dxbl-dropdown-dialog.dxbl-edit-dropdown.
   Re-verify on DX upgrade. */
.dxbl-dropdown,
.dxbl-itemlist-dropdown {
    --dxbl-dropdown-border-radius: var(--inradr-radius-sm);
    --dxbl-dropdown-box-shadow: var(--inradr-elevation-2-shadow);
}

/* Editor drop-downs (combobox, lookup, date edit, drop-down box) paint their dialog with their own tokens:
   '.dxbl-dropdown>.dxbl-dropdown-dialog.dxbl-edit-dropdown{box-shadow:var(--dxbl-edit-dropdown-box-shadow);
   border-radius:var(--dxbl-edit-dropdown-border-radius)}' (0,3,0), declared on '.dxbl-edit-dropdown', the
   dialog itself (core.min.css 26.1.4). Re-verify on DX upgrade. */
.dxbl-edit-dropdown {
    --dxbl-edit-dropdown-box-shadow: var(--inradr-elevation-2-shadow);
    --dxbl-edit-dropdown-border-radius: var(--inradr-radius-sm);
}

/* ── List box (lookup and combobox lists, DxListBox, filter menu values) ──
   Single selection: accent row with white text, also under the pointer (A: no hover shade). The 26.1
   re-spacing (8/6px items, rounded items, 2px gap) is accepted (OQ-28). Declared on '.dxbl-list-box,
   .dxbl-list-box-render-container' and read by the item rules below it (core.min.css 26.1.4); the disabled
   redeclaration at (0,2,0) stays on top. DOM: capture "Drop-down panels, list box (WP-15)":
   div.dxbl-list-box-render-container > dxbl-virtual-scroll-viewer > ... table > tbody > tr[role=option].
   Re-verify on DX upgrade. */
.dxbl-list-box,
.dxbl-list-box-render-container {
    --dxbl-list-box-item-selected-bg: var(--inradr-color-accent);
    --dxbl-list-box-item-selected-hover-bg: var(--inradr-color-accent);
    --dxbl-list-box-item-selected-color: var(--inradr-color-text-on-navy);
    --dxbl-list-box-item-selected-hover-color: var(--inradr-color-text-on-navy);
}

/* Checkbox lists (ShowCheckboxes; InradrMultiSelect, wizard checklist, filter menu): a
   transparent row with dark text, the accent checkbox carries the state (OQ-26 b; checkbox accent in
   inradr-feature-editors.css); hover is the normal row hover. Multi-select lists read the multi-selected
   tokens; the class pair is set on the same list-box root, so (0,2,0) wins. DOM: capture "Filter menu
   drop-down (WP-13)": dxbl-list-box.dxbl-list-box-checked.dxbl-list-box-multi-select > ... ul > li > dxbl-check.
   Re-verify on DX upgrade. */
.dxbl-list-box.dxbl-list-box-checked,
.dxbl-list-box-render-container.dxbl-list-box-checked {
    --dxbl-list-box-item-multi-selected-bg: transparent;
    --dxbl-list-box-item-multi-selected-color: var(--inradr-color-text-primary);
    --dxbl-list-box-item-multi-selected-hover-bg: var(--dxds-color-surface-neutral-default-hovered);
    --dxbl-list-box-item-multi-selected-hover-color: var(--inradr-color-text-primary);
}

/* ── Calendar (date edit drop-down) ──────────────────────────────
   Selected day navy with white text, also under the pointer (A). Declared on '.dxbl-calendar', read by
   '.dxbl-calendar .dxbl-calendar-content td.dxbl-calendar-day.dxbl-calendar-selected-item>a'
   (core.min.css 26.1.4); a selected today keeps the Fluent today border. DOM: capture "Drop-down panels,
   calendar (WP-15)": dxbl-calendar.dxbl-calendar.dxbl-date-time-edit-calendar > ... td.dxbl-calendar-selected-item.
   Re-verify on DX upgrade. */
.dxbl-calendar {
    --dxbl-calendar-item-selected-bg: var(--inradr-color-navy);
    --dxbl-calendar-item-selected-hover-bg: var(--inradr-color-navy);
    --dxbl-calendar-item-selected-color: var(--inradr-color-text-on-navy);
    --dxbl-calendar-item-selected-hover-color: var(--inradr-color-text-on-navy);
}

/* ── Context menu (grid rows and columns; OQ-20 b) ───────────────
   A's look: 1px DS border, elevation-2 shadow, dark item text also under the pointer, light grey hover;
   the 4px radius is already the Fluent default. Declared on '.dxbl-context-menu,.dxbl-context-menu-submenu',
   which is the drop-down dialog itself; '.dxbl-context-menu.dxbl-context-menu-dropdown' maps them to the
   drop-down tokens on the same element and the item rules below read them (core.min.css 26.1.4).
   DOM: capture "Context menu (WP-15)": dxbl-itemlist-dropdown >
   dxbl-dropdown-dialog.dxbl-dropdown-dialog.dxbl-context-menu-dropdown.dxbl-context-menu > ... dxbl-context-menu-item.
   ANNAHME (WP-00): a nested sub-menu (.dxbl-context-menu-submenu) is not in a capture; not measurable while the
   grid context menu is switched off app-wide (ListViewContextMenuEnabled=False). Re-verify on DX upgrade. */
.dxbl-context-menu,
.dxbl-context-menu-submenu {
    --dxbl-context-menu-border-width: var(--dxds-border-width-10);
    --dxbl-context-menu-border-style: solid;
    --dxbl-context-menu-border-color: var(--inradr-color-border);
    --dxbl-context-menu-box-shadow: var(--inradr-elevation-2-shadow);
    --dxbl-context-menu-item-color: var(--inradr-color-text-primary);
    --dxbl-context-menu-item-hover-color: var(--inradr-color-text-primary);
    --dxbl-context-menu-item-hover-bg: var(--inradr-color-surface-muted);
}
