/* MudBlazor component overrides for SI-Expertise theme.
   Loaded after MudBlazor.min.css so selectors of equal specificity win. */

/* Brand bar variant of MudAppBar */
.mud-appbar.brandbar {
    box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}

/* Outlined inputs: focused border uses action blue */
.mud-input-outlined-border {
    border-radius: var(--radius-sm) !important;
}
.mud-input.mud-input-outlined.mud-focused .mud-input-outlined-border {
    border-color: var(--color-action) !important;
    border-width: 2px;
}

/* Filled buttons radius */
.mud-button-root.mud-button-filled {
    border-radius: var(--radius-md);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}

/* SSR fix: on [ExcludeFromInteractiveRouting] pages, MudTextField's C# state
   doesn't update on input, so the .mud-shrink class is never added and the
   floating label overlaps user-typed text. MudBlazor's :focus-within rule
   covers focused fields; this mirrors it for "filled but blurred" via
   :has(input:not(:placeholder-shown)). Requires Placeholder=" " on the field. */
.mud-input:has(input:not(:placeholder-shown)) ~ label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-outlined {
    transform: translate(14px, -6px) scale(0.75);
    max-width: calc(100% - 14px);
}
.mud-input:has(input:not(:placeholder-shown)) ~ label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-filled {
    transform: translate(12px, 10px) scale(0.75);
    max-width: calc(100% - 12px);
}
.mud-input:has(input:not(:placeholder-shown)) ~ label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-filled.mud-input-label-margin-dense {
    transform: translate(12px, 7px) scale(0.75);
}
