/* Standard page header — shared by all AdminPanel pages via PageHeader.razor.
   Colors resolve through MudBlazor palette variables so both light and dark
   modes are supported automatically. dir="rtl" is set on the component. */

/* Standard page header — shared by all AdminPanel pages via PageHeader.razor.
   Single fixed Primary tint (mirrors the order-queue hero): a soft tint fading
   into the surface, with a matching hairline border. dir="rtl" is set
   on the component. */

.page-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(40, 53, 147, 0.08), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(40, 53, 147, 0.14);
}

.mud-theme-dark .page-header,
html.dark .page-header {
    background: linear-gradient(135deg, #1b2150 0%, #242b63 48%, var(--mud-palette-surface) 135%);
    border-color: rgba(121, 134, 203, 0.45);
    box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.7);
}

.page-header__copy {
    flex: 1;
    min-width: 280px;
}

.page-header__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--mud-palette-table-lines);
    flex-shrink: 0;
}

.mud-theme-dark .page-header__icon,
html.dark .page-header__icon {
    background: rgba(121, 134, 203, 0.16);
    border-color: rgba(121, 134, 203, 0.4);
}

.page-header--dense .page-header__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.page-header__subtitle {
    opacity: 0.7;
}

.mud-theme-dark .page-header__subtitle,
html.dark .page-header__subtitle {
    opacity: 0.88;
}

/* Section chip: filled primary (#7986CB) with white text is low-contrast in
   dark mode — switch to a bright tinted chip with light text. */
.mud-theme-dark .page-header .mud-chip-color-primary,
html.dark .page-header .mud-chip-color-primary {
    background-color: rgba(121, 134, 203, 0.22) !important;
    color: #d6dbf5 !important;
    border: 1px solid rgba(121, 134, 203, 0.55);
}

.page-header__stats {
    text-align: left;
}

@media (max-width: 600px) {
    .page-header {
        padding: 24px !important;
    }
}
