/* ==========================================================================
   Switch-Action (RenderMode=Switch)
   Own layout of ToolbarSliderActionControlComponent: one label (the action's caption)
   left of the DxCheckBox switch, rendered as its child content (124ca7cqpku).
   Ported from inradr-app; light theme only. The DxCheckBox switch skin itself is
   DevExpress markup and lives in inradr-feature/inradr-feature-switch.css.
   ========================================================================== */

/* Container grouping all switch actions; first element of the content-toolbar row,
   before the DxToolbar. It must never shrink: the adaptive toolbar next to it
   measures and folds its own items, the switch stays as it is. */
.inradr-switch-actions {
    display: inline-flex;
    align-items: center;
    gap: var(--inradr-space-sm);
    flex: 0 0 auto;
}

/* The slot renders on every view once a switch control is registered on the template; on a view
   whose action is inactive it holds only a Blazor comment node, which :empty ignores. Without
   this rule the empty slot, now first in the row, would indent the toolbar by the row gap. */
.inradr-switch-actions:empty {
    display: none;
}

/* One switch = label + DxCheckBox switch (label gap is DX's own, see feature layer). */
.inradr-action-switch {
    display: inline-flex;
    align-items: center;
    gap: var(--inradr-space-xs);
    cursor: pointer;
}

.inradr-action-switch.inradr-action-disabled {
    cursor: default;
    opacity: 0.6;
}

.inradr-action-label {
    font-size: var(--inradr-text-body-size);
    color: var(--inradr-color-text-secondary);
    white-space: nowrap;
    user-select: none;
}
