/* =====================================================
   INRADR — Icons — XAF <img> action and context-menu icons
   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).
   ===================================================== */

/* Owner of all XAF icon colouring (OQ-11 a). XAF action icons are <img src="IImageService/..."> with
   img.xaf-toolbar-item-icon (toolbar), img.xaf-context-menu-item-icon (grid context menu) or a bare img (row
   actions), so no colour token reaches them; one filter token tints them to the accent. No file-name or caption selectors: every
   action icon is covered, including Alert_Info (Tour). SVG icons (ellipsis, split chevron) follow the
   button text colour through currentColor and need no rule. */

/* ── Action icons ─────────────────────────────────────────────────
   View and nested toolbars, popup footers (DOM: 26.1 List snapshot and popup captures) and the grid
   context menu (dxbl-dropdown-dialog.dxbl-context-menu-dropdown > ... > img.xaf-context-menu-item-icon,
   26.1 capture "Context menu (WP-15)"). The header and footer keep their own icon colours (header adapter,
   (0,4,1), loads later as a second safeguard). Primary buttons are left out: an accent icon on the accent
   fill would vanish (ANNAHME (WP-00): not measurable: every primary action in the app is text-only - Speichern,
   OK, Anwenden in all captures, checked 2026-09-30). */
:is(.dxbl-toolbar, .dxbl-modal-footer):where(:not(.inradr-app-header *, .inradr-footer *)) .dxbl-btn:not(.dxbl-btn-primary) img.xaf-toolbar-item-icon,
.dxbl-context-menu-dropdown img.xaf-context-menu-item-icon {
    filter: var(--inradr-icon-filter-accent);
}

/* Disabled actions grey out with the DS disabled contract (OQ-08): the accent tint desaturated lands
   near --inradr-color-text-muted. DOM: capture "Disabled toolbar action (WP-11)" shows DX's .dxbl-disabled on
   the button. ANNAHME (WP-00) for the icon itself: not measurable: no disabled toolbar action in the app has an
   icon (checked 2026-09-30 in the setup-request, lookup, user, role, tenant and import lists), and the context
   menu is switched off app-wide (ListViewContextMenuEnabled=False). */
:is(.dxbl-toolbar, .dxbl-modal-footer):where(:not(.inradr-app-header *, .inradr-footer *)) .dxbl-btn.dxbl-disabled:not(.dxbl-btn-primary) img.xaf-toolbar-item-icon,
.dxbl-context-menu-dropdown .dxbl-context-menu-item.dxbl-disabled img.xaf-context-menu-item-icon {
    filter: var(--inradr-icon-filter-accent) grayscale(1);
}

/* ── Row actions ─────────────────────────────────────────────────
   The inline actions in a grid's command column (edit, delete and every other row action): XAF 26.1 renders
   div.xaf-inline-action > button.dxbl-btn.dxbl-btn-link > img without a class (DOM checked 2026-10-14 in the
   capital flow list), so the toolbar rule above does not reach them. Accent like every icon-only action of the
   specification; the predecessor tinted them with the same filter through a file-name selector
   (inradr-app inradr-icon.css, img[src*="Action_"]). Disabled greys out as in the toolbar and the specification's
   button-disabled; inradr-app keeps a pale accent there (owner decision 2026-10-14: grey). A disabled row action
   carries the native disabled attribute, not .dxbl-disabled, and DevExpress dims the button to 0.6 opacity
   (measured 2026-10-14: capital flow list with lookthrough, rows not held directly). */
.xaf-inline-action .dxbl-btn img {
    filter: var(--inradr-icon-filter-accent);
}

.xaf-inline-action .dxbl-btn:disabled img {
    filter: var(--inradr-icon-filter-accent) grayscale(1);
}

/* ── Navigation icons ────────────────────────────────────────────
   The main-menu sub-menus and the hamburger panel (.inradr-nav-dropdown) render item icons as
   <img class="dxbl-image"> data URLs (IconUrl, inradr-feature-navigation.css), so no image colour token
   reaches them. The predecessor tinted them with the same filter (inradr-app inradr-design.css,
   .dxbl-itemlist-dropdown .dxbl-image). The call-to-action entry sits on the accent fill and keeps a white
   icon. Multi-colour DevExpress icons become a flat silhouette, as in the predecessor (owner decision
   2026-10-06). */
.dxbl-menu-dropdown.inradr-nav-dropdown img.dxbl-image {
    filter: var(--inradr-icon-filter-accent);
}

.dxbl-menu-dropdown.inradr-nav-dropdown .inradr-nav--cta img.dxbl-image {
    filter: var(--inradr-icon-filter-on-navy);
}

/* ── Edit button of object and criteria editors ──────────────────
   XAF renders DxEditorButton.xaf-append-image-button with a mask icon (XAF 26.1 sources
   Components/ObjectComponent.razor, Editors/PopupCriteriaPropertyEditor.cs): div.xaf-image whose inline
   style is 'background-color: currentColor' (seen on every div.xaf-image in the 26.1 captures). The icon
   is therefore coloured through 'color', which needs no !important against the inline style.
   ANNAHME (WP-00): not measurable: lookups in DetailViews hide their edit button (InradrPropertyEditorController,
   WP-20) and no checked view shows a criteria editor (2026-09-30). */
.xaf-append-image-button:not(.file-data-button) .xaf-image {
    color: var(--inradr-color-text-primary);
}
