/* Theme text colours that any host needs, kept apart from the desktop shell rules in base.css so a
   web host can link this file on its own. perceptionag-ui.css imports it straight after base.css. */

/* MudBlazor's primary-as-text rules, pointed at --primary-on-surface. A theme sets that variable
   when its primary fails 4.5:1 as text on a light surface (PreVision: #07AE57 is 2.9:1 on white);
   without it every rule keeps the primary. Fills, borders and filled buttons keep the primary. */
.mud-primary-text {
    color: var(--primary-on-surface, var(--mud-palette-primary)) !important;
}

.mud-tab.mud-tab-active,
.mud-button-text.mud-button-text-primary,
.mud-button-outlined.mud-button-outlined-primary,
.mud-button-group-text.mud-button-group-override-styles.mud-button-group-text-primary .mud-button-root,
.mud-button-group-outlined.mud-button-group-override-styles.mud-button-group-outlined-primary .mud-button-root,
.mud-chip-outlined.mud-chip-color-primary,
.mud-chip-text.mud-chip-color-primary,
.mud-fab-text.mud-fab-text-primary,
.mud-fab-outlined.mud-fab-outlined-primary,
.mud-avatar-outlined.mud-avatar-outlined-primary,
.mud-alert-text-primary .mud-alert-icon,
.mud-alert-outlined-primary .mud-alert-icon,
.mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled),
.mud-navmenu.mud-navmenu-primary .mud-nav-link.active:not(.mud-nav-link-disabled),
.mud-navmenu.mud-navmenu-primary .mud-nav-link.active:not(.mud-nav-link-disabled) .mud-nav-link-icon,
.mud-input:focus-within ~ label.mud-input-label.mud-input-label-inputcontrol,
.mud-treeview.mud-treeview-selected-primary .mud-treeview-item-content.mud-treeview-item-selected {
    color: var(--primary-on-surface, var(--mud-palette-primary));
}

