/* Keep only Blazor/error helpers — MudBlazor owns the UI chrome. */

html, body {
    margin: 0;
    height: 100%;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Kill Mud elevation "tab" under AppBar edge */
.admin-appbar.mud-appbar {
    box-shadow: none !important;
    overflow: hidden;
}

.admin-drawer.mud-drawer {
    box-shadow: none !important;
}

/*
  Do NOT put MudBlazor .pa-* on MudMainContent — it sets padding: Npx !important
  and wipes Mud's padding-top for the fixed AppBar (create button ends up under the bar).
*/
.admin-main.mud-main-content {
    padding-top: calc(var(--mud-appbar-height, 64px) + 16px) !important;
    padding-right: 16px !important;
    padding-bottom: 24px !important;
    padding-left: 16px !important;
}

@media (min-width: 960px) {
    .admin-main.mud-main-content {
        padding-right: 24px !important;
        padding-left: 24px !important;
    }
}

.mud-appbar-dense ~ .admin-main.mud-main-content {
    padding-top: calc(var(--mud-appbar-height, 64px) * 0.75 + 16px) !important;
}

.page-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.page-toolbar__actions {
    flex-shrink: 0;
    align-self: center;
}

.login-main.mud-main-content {
    padding: 0 !important;
    min-height: 100vh;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(ellipse at top, rgba(47, 107, 58, 0.12), transparent 55%),
        linear-gradient(160deg, #eef3ee 0%, #f4f7f4 45%, #e7eee8 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
}

/* MudChart clips Y/X axis labels unless overflow is visible */
.online-chart .mud-chart,
.online-chart .mud-chart-line,
.online-chart .mud-chart svg {
    overflow: visible !important;
}
