/* Fallback styles for pages/components that currently rely on Razor CSS isolation.
   Loaded after YoungbroWeb.styles.css to stabilize rendering across environments. */

.auth-layout {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.16), transparent 30%),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.auth-shell {
    width: 100%;
    max-width: 1160px;
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.auth-logo-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

.auth-logo {
    width: min(240px, 70vw);
    max-width: 100%;
    height: auto;
    display: block;
}

.auth-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.55;
}

.auth-orb-primary {
    width: 340px;
    height: 340px;
    top: -80px;
    right: min(10vw, 120px);
    background: rgba(59, 130, 246, 0.22);
}

.auth-orb-secondary {
    width: 280px;
    height: 280px;
    bottom: -70px;
    left: min(8vw, 96px);
    background: rgba(16, 185, 129, 0.18);
}

.login-page {
    animation: loginFallbackFadeIn 0.45s ease-out;
}

.login-panel {
    display: flex;
    justify-content: center;
}

.login-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 58rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(16px);
}

.login-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 55%);
}

.login-card-header {
    margin-bottom: 1.5rem;
}

.login-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-card-title {
    margin: 0;
    font-size: clamp(1.95rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #0f172a;
}

.login-card-copy {
    max-width: 20rem;
    margin: 0.55rem auto 0;
    color: rgba(15, 23, 42, 0.66);
}

.login-form {
    position: relative;
    width: min(100%, 60%);
    margin: 0 auto;
}

.login-field-label {
    font-weight: 700;
    color: #0f172a;
}

.login-card .form-control {
    min-height: 3.45rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding-inline: 1rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.login-card .form-control:focus {
    border-color: rgba(37, 99, 235, 0.72);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.login-mfa {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.78);
    padding: 0.85rem 1rem;
}

.login-mfa-body {
    margin-top: 0.85rem;
}

.login-submit {
    width: auto;
    min-width: 11rem;
    min-height: 3.55rem;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #00ff8f, #00a1ff);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    box-shadow: 0 18px 34px rgba(0, 161, 255, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.login-submit:hover,
.login-submit:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(0, 161, 255, 0.26);
}

.login-submit:disabled {
    cursor: wait;
    opacity: 1;
    transform: none;
    filter: saturate(0.92);
}

.login-submit-row {
    display: flex;
    justify-content: flex-end;
}

.login-submit-spinner,
.login-submit-loading-label,
.login-processing-indicator {
    display: none;
}

.login-form.is-submitting .login-submit-label {
    display: none;
}

.login-form.is-submitting .login-submit-spinner,
.login-form.is-submitting .login-submit-loading-label {
    display: inline-flex;
}

.login-form.is-submitting .login-processing-indicator {
    display: flex;
}

.profile-shell {
    padding-bottom: 1.5rem;
}

.profile-hero-card {
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, 0.12), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.94));
    border-color: rgba(13, 110, 253, 0.16) !important;
    box-shadow: 0 1.25rem 2.75rem rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
}

.profile-avatar {
    width: 116px;
    height: 116px;
    object-fit: cover;
    border-width: 4px !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
}

.profile-avatar-fallback {
    width: 116px;
    height: 116px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d6efd, #59a7ff);
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.profile-primary-action {
    background: linear-gradient(135deg, #0d6efd, #5a9fff);
    border: none;
    color: #ffffff;
    box-shadow: 0 0.9rem 1.6rem rgba(13, 110, 253, 0.2);
}

.profile-primary-action:hover,
.profile-primary-action:focus {
    color: #ffffff;
    background: linear-gradient(135deg, #0b5ed7, #3a8fff);
}

.profile-action-stack .btn {
    min-width: 185px;
}

.profile-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.profile-secondary-action {
    border-width: 1px;
    font-weight: 600;
    box-shadow: 0 0.45rem 1.25rem rgba(13, 110, 253, 0.08);
}

.profile-secondary-action:hover,
.profile-secondary-action:focus {
    box-shadow: 0 0.7rem 1.6rem rgba(13, 110, 253, 0.14);
}

.profile-section-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 253, 0.95));
    border-color: rgba(23, 59, 115, 0.1) !important;
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.05);
}

.yb-security-context-panel {
    border: 1px solid rgba(13, 110, 253, 0.14);
    border-radius: 0.8rem;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.06), rgba(25, 135, 84, 0.05));
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    padding: 1rem;
    transition: all 0.3s ease;
}

.yb-security-context-panel--collapsed {
    padding: 0.75rem 1rem;
}

.yb-security-context-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.yb-security-context-panel--collapsed .yb-security-context-panel__header {
    margin-bottom: 0;
}

.yb-security-context-panel__toggle {
    color: #64748b;
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 1;
}

.yb-security-context-panel__toggle:hover {
    color: #0d6efd;
}

.yb-security-context-panel__eyebrow,
.yb-security-context-panel__label {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.yb-security-context-panel__title {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
    margin: 0.2rem 0 0;
}

.yb-security-context-panel__session,
.yb-security-context-panel__chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.36rem 0.62rem;
}

.yb-security-context-panel__session--ready,
.yb-security-context-panel__chip--success {
    background: rgba(25, 135, 84, 0.12);
    border-color: rgba(25, 135, 84, 0.22);
    color: #166534;
}

.yb-security-context-panel__session--pending,
.yb-security-context-panel__chip--muted {
    background: rgba(100, 116, 139, 0.14);
    border-color: rgba(100, 116, 139, 0.24);
    color: #475467;
}

.yb-security-context-panel__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 0.75rem;
}

.yb-security-context-panel__item {
    display: grid;
    gap: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.72);
    padding: 0.8rem;
    min-width: 0;
}

.yb-security-context-panel__item--wide {
    grid-column: span 2;
}

.yb-security-context-panel__item strong {
    color: #0f172a;
    word-break: break-word;
}

.yb-security-context-panel__hint {
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.35;
}

.yb-security-context-panel__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.yb-security-context-panel__chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(13, 110, 253, 0.18);
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.36rem 0.62rem;
}

.page-title-heading {
    font-size: 24px;
    font-weight: bold !important;
    color: #495057;
    margin: 5px;
}

.page-subtitle {
    color: #6c757d;
    font-size: 1.1em;
    font-weight: 500;
    line-height: 1.4;
}

html[data-theme="dark"] .auth-layout {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.16), transparent 30%),
        linear-gradient(180deg, #020617 0%, #111827 100%);
}

html[data-theme="dark"] .login-card {
    background: rgba(15, 23, 42, 0.88);
}

html[data-theme="dark"] .login-card-title,
.dark-mode .login-card-title {
    color: #f8fafc;
}

html[data-theme="dark"] .profile-hero-card,
html[data-theme="dark"] .profile-section-card {
    background:
        radial-gradient(circle at top right, rgba(82, 163, 255, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(13, 27, 42, 0.96), rgba(17, 34, 56, 0.94));
    border-color: rgba(125, 181, 255, 0.22) !important;
}

html[data-theme="dark"] .profile-secondary-action,
.dark-mode .profile-secondary-action {
    color: #cfe1ff;
    border-color: rgba(125, 181, 255, 0.4);
    background-color: rgba(13, 30, 52, 0.65);
}

html[data-theme="dark"] .profile-secondary-action:hover,
html[data-theme="dark"] .profile-secondary-action:focus,
.dark-mode .profile-secondary-action:hover,
.dark-mode .profile-secondary-action:focus {
    color: #f8fbff;
    border-color: rgba(142, 196, 255, 0.58);
    background-color: rgba(20, 44, 74, 0.8);
}

html[data-theme="dark"] .yb-security-context-panel,
.dark-mode .yb-security-context-panel {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(34, 197, 94, 0.12));
    border-color: rgba(96, 165, 250, 0.2);
    box-shadow: none;
}

html[data-theme="dark"] .yb-security-context-panel__title,
html[data-theme="dark"] .yb-security-context-panel__item strong,
.dark-mode .yb-security-context-panel__title,
.dark-mode .yb-security-context-panel__item strong {
    color: #f8fafc;
}

html[data-theme="dark"] .yb-security-context-panel__eyebrow,
html[data-theme="dark"] .yb-security-context-panel__label,
html[data-theme="dark"] .yb-security-context-panel__hint,
.dark-mode .yb-security-context-panel__eyebrow,
.dark-mode .yb-security-context-panel__label,
.dark-mode .yb-security-context-panel__hint {
    color: #cbd5e1;
}

html[data-theme="dark"] .yb-security-context-panel__item,
.dark-mode .yb-security-context-panel__item {
    background: rgba(15, 23, 42, 0.42);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .yb-security-context-panel__chip,
.dark-mode .yb-security-context-panel__chip {
    background: rgba(96, 165, 250, 0.16);
    border-color: rgba(96, 165, 250, 0.28);
    color: #bfdbfe;
}

html[data-theme="dark"] .yb-security-context-panel__session--ready,
html[data-theme="dark"] .yb-security-context-panel__chip--success,
.dark-mode .yb-security-context-panel__session--ready,
.dark-mode .yb-security-context-panel__chip--success {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.32);
    color: #bbf7d0;
}

html[data-theme="dark"] .yb-security-context-panel__session--pending,
html[data-theme="dark"] .yb-security-context-panel__chip--muted,
.dark-mode .yb-security-context-panel__session--pending,
.dark-mode .yb-security-context-panel__chip--muted {
    background: rgba(148, 163, 184, 0.16);
    border-color: rgba(148, 163, 184, 0.28);
    color: #e2e8f0;
}

html[data-theme="dark"] .yb-security-context-panel__toggle,
.dark-mode .yb-security-context-panel__toggle {
    color: #cbd5e1;
}

html[data-theme="dark"] .yb-security-context-panel__toggle:hover,
.dark-mode .yb-security-context-panel__toggle:hover {
    color: #60a5fa;
}

@media (max-width: 767.98px) {
    .yb-security-context-panel__item--wide {
        grid-column: span 1;
    }
}

@media (max-width: 575.98px) {
    .login-form {
        width: 100%;
    }

    .login-card {
        border-radius: 24px;
        padding: 1.35rem;
    }
}

@keyframes loginFallbackFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Migrated from MainLayout.razor.css, NavMenu.razor.css, AccessDenied.razor.css, AnalyticsKpiDashboard.razor.css */
.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

.layout-shell {
    position: relative;
    overflow-x: clip;
}

main {
    flex: 1;
}

.main-column {
    min-width: 0;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

/* ── Authoritative dark-mode sidebar ──────────────────────────────────────
   site.css carries several .dark-mode .sidebar duplicates plus a !important
   [data-theme="dark"] .bg-light background colour, which otherwise flatten the
   sidebar to grey. This rule is loaded last and uses !important so the brand
   gradient renders in dark mode too — matching the light-mode look. */
/* Dark mode: paint ONE muted grey+purple gradient on the whole sidebar column so
   the logo header and the nav share a single continuous surface (no reset at the
   header/menu boundary). */
.dark-mode .sidebar-column,
[data-theme="dark"] .sidebar-column {
    background-image: linear-gradient(180deg, #1c1c1c 0%, #000000 100%) !important;
}

/* Logo header + sidebar are transparent so the column gradient shows through both. */
.dark-mode .logo-header,
[data-theme="dark"] .logo-header,
.dark-mode .sidebar,
[data-theme="dark"] .sidebar {
    background-color: transparent !important;
    background-image: none !important;
}

.dark-mode .sidebar,
[data-theme="dark"] .sidebar {
    color: #ffffff !important;
}

/* Keep the menu containers transparent too, so nothing fills the menu area. */
.dark-mode .sidebar .nav-scrollable,
.dark-mode .sidebar nav,
[data-theme="dark"] .sidebar .nav-scrollable,
[data-theme="dark"] .sidebar nav {
    background: transparent !important;
}

/* ── EXPERIMENTAL (easy to revert): extend the sidebar gradient to the top
   banner and footer so all the chrome shares one uniform dark-mode surface.
   Remove this block to go back to the plain page-coloured banner/footer. */
.dark-mode .top-row,
[data-theme="dark"] .top-row,
.dark-mode footer,
[data-theme="dark"] footer {
    background-color: transparent !important;
    background-image: linear-gradient(180deg, #1c1c1c 0%, #000000 100%) !important;
}

.sidebar-column {
    width: 250px;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 20;
}

.sidebar-column .logo-header,
.sidebar-column .sidebar {
    width: 100%;
    min-width: 0;
}

.sidebar-column .sidebar {
    flex: 1;
    overflow-y: auto;
}

.logo-img {
    width: 200px;
    max-width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-shrink: 0;
}

.mobile-menu-backdrop {
    display: none;
}

.top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.top-row a,
.top-row .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
    text-decoration: none;
}

.top-row a:hover,
.top-row .btn-link:hover {
    text-decoration: underline;
}

.top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-row-user-greeting {
    color: var(--bs-emphasis-color);
}

.top-row-user-link {
    color: inherit;
}

.top-row-user-link:hover,
.top-row-user-link:focus-visible {
    color: var(--bs-primary);
}

.auth-context-gate {
    max-width: 720px;
    margin-inline: auto;
    border: 1px solid var(--bs-border-color-translucent);
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.05), rgba(13, 110, 253, 0.02));
}

.auth-context-gate__icon {
    color: #0d6efd;
    font-size: 1rem;
}

.auth-context-gate .btn:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.45);
    outline-offset: 2px;
}

.dark-mode .auth-context-gate {
    border-color: rgba(173, 181, 189, 0.45);
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.18), rgba(13, 110, 253, 0.06));
}

.dark-mode .auth-context-gate__icon {
    color: #8ab4ff;
}

.navbar-toggler {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked {
    background-color: rgba(255, 255, 255, 0.5);
}

.navbar-brand {
    font-size: 1.1rem;
}

.nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.1rem;
}

.nav-item:last-of-type {
    padding-bottom: 0.4rem;
}

.nav-item .nav-link {
    color: #d7d7d7;
    background: none;
    border: none;
    border-radius: 4px;
    padding: 5px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
    width: 100%;
    white-space: nowrap;
}

.nav-item a.active {
    background-color: rgba(255, 255, 255, 0.37);
    color: white;
}

.nav-item .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-scrollable {
    display: block;
}

.access-denied-card {
    border: 1px solid var(--bs-border-color-translucent);
    background: linear-gradient(180deg, rgba(220, 53, 69, 0.06), rgba(220, 53, 69, 0.02));
}

.access-denied-icon {
    color: #c62828;
}

.access-denied-title {
    color: var(--bs-emphasis-color);
}

.access-denied-copy {
    color: var(--bs-secondary-color);
}

.access-denied-action {
    min-width: 10.5rem;
}

.access-denied-action:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.45);
    outline-offset: 2px;
}

.dark-mode .access-denied-card,
[data-theme="dark"] .access-denied-card {
    border-color: rgba(173, 181, 189, 0.38);
    background: linear-gradient(180deg, rgba(198, 40, 40, 0.2), rgba(198, 40, 40, 0.08));
}

.dark-mode .access-denied-icon,
[data-theme="dark"] .access-denied-icon {
    color: #ff8a80;
}

.analytics-kpi-dashboard .analytics-group {
    border-left: 4px solid rgba(13, 110, 253, 0.25);
    padding-left: 0.9rem;
}

.analytics-kpi-dashboard .kpi-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analytics-kpi-dashboard .progress {
    height: 10px;
}

.analytics-kpi-dashboard .table td,
.analytics-kpi-dashboard .table th {
    white-space: nowrap;
}

@media (max-width: 1399.98px) {
    .analytics-kpi-dashboard .kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .analytics-kpi-dashboard .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .analytics-kpi-dashboard .analytics-group {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 767.98px) {
    .sidebar-column {
        position: fixed;
        top: 0;
        left: 0;
        width: min(85vw, 250px);
        min-width: min(85vw, 250px);
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        z-index: 1040;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    .sidebar-column.open {
        transform: translateX(0);
    }

    .mobile-menu-backdrop.show {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1030;
        background: rgba(0, 0, 0, 0.35);
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1020;
        justify-content: space-between;
    }

    .top-row a,
    .top-row .btn-link {
        margin-left: 0;
    }
}

@media (max-width: 575.98px) {
    .analytics-kpi-dashboard .kpi-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .page {
        flex-direction: row;
    }

    .navbar-toggler {
        display: none;
    }

    .nav-scrollable {
        display: block;
        height: auto;
        overflow-y: visible;
    }

    .sidebar-column {
        transform: none !important;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row,
    article {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#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 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
