/* src/MonolithAccessControl.Central.Admin.Client/wwwroot/css/checkbox-theme.css */

/* Native controls retain keyboard, disabled, and indeterminate browser behavior. */
input[type="checkbox"] {
    color-scheme: light;
    accent-color: var(--mud-palette-primary);
}

/* Dialog and popover portals inherit the same theme as the active application shell. */
body.theme-dark input[type="checkbox"],
.theme-dark input[type="checkbox"],
[data-theme="dark"] input[type="checkbox"],
html:has(.theme-dark.mac-shell, .theme-dark.edge-shell, .theme-dark.auth-shell, .theme-dark.edge-login-shell) input[type="checkbox"] {
    color-scheme: dark;
}
