/* The shared --app-* semantic CSS variables + boilerplate (body/a/footer/blazor-error-ui/loading-progress/code)
   have moved to MaskITv5.WebShared/wwwroot/css/shared.css (loaded before this file in App.razor) —
   this file keeps only Web-specific rules. */

.manage {
    width: 100dvw;
}

.alert {
    border: 1px dashed var(--app-brand-stroke);
    padding: 5px;
    margin: 10px 0;
}

.alert-danger {
    border: 1px dashed var(--app-status-danger);
}

.alert-success {
    border: 1px dashed var(--app-status-success);
}

.alert-warning {
    border: 1px dashed var(--app-status-warning);
}

/* Table */

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

    table td,
    table th {
        padding: 4px 12px;
        text-align: left;
        vertical-align: middle;
        border-bottom: 1px solid var(--app-border);
    }

/* Sidebar width as the theme token, not an inline style on RadzenSidebar — Radzen's responsive rule
   (width:0 at or below 768px) and the expanded rule both set width through this token, and an inline
   width would override them (see MainLayout.razor). */
.rz-layout {
    --rz-sidebar-width: 10rem;
}

/* The hamburger that shows the sidebar on narrow screens (MainLayout.razor); desktop has the sidebar
   in view permanently, so the button only exists at Radzen's responsive breakpoint. */
.maskit-nav-toggle {
    display: none;
}

@media (max-width: 768px) {
    .maskit-nav-toggle {
        display: inline-flex;
        align-items: center;
    }
}

/* Sidebar in light mode.
   Radzen's `standard` (light) theme ships the sidebar + panel menu deliberately dark
   (--rz-sidebar-background-color: base-900, panel-menu items #262526, white text), so the left
   menu looked pinned to dark mode no matter which theme the account had. Only the light theme
   needs the override — standard-dark.css already matches — and the gate is the same <html>
   class that shared.css's --app-* layer keys on, so it flips together with the theme toggle.
   The values are the theme's own tokens, not literals, so they track the light palette. */
:root:not(.app-dark) {
    --rz-sidebar-background-color: var(--rz-base-background-color);
    --rz-sidebar-color: var(--rz-text-color);
    --rz-panel-menu-item-background-color: var(--rz-base-background-color);
    --rz-panel-menu-item-color: var(--rz-text-color);
    --rz-panel-menu-icon-color: var(--rz-text-secondary-color);
    --rz-panel-menu-item-border: var(--rz-border-base-200);
    --rz-panel-menu-item-hover-background-color: var(--rz-base-100);
    --rz-panel-menu-item-active-background-color: var(--rz-base-200);
    --rz-panel-menu-item-active-indicator: var(--rz-primary);
}

/* Media upload: the page draws its own per-file progress list, so the picker's file list is a duplicate. */
.maskit-upload-nolist .rz-fileupload-files {
    display: none;
}
