/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-oxytca5nfj] {
    position: relative;
    display: flex;
    flex-direction: row;
}

main[b-oxytca5nfj] {
    flex: 1;
    min-width: 0;
}

/* An icon rail on narrower screens, the full sidebar with labels from the lg breakpoint. */
.sidebar[b-oxytca5nfj] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
    flex-shrink: 0;
    width: 4rem;
    height: 100vh;
    position: sticky;
    top: 0;
}

@media (max-width: 640.98px) {
    /* Phones: the sidebar becomes a top bar above the page. It stays pinned so the menu button is
       always in reach. */
    .page[b-oxytca5nfj] {
        flex-direction: column;
    }

    .sidebar[b-oxytca5nfj] {
        width: auto;
        height: auto;
        z-index: 2;
    }

    article[b-oxytca5nfj] {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

@media (min-width: 992px) {
    .sidebar[b-oxytca5nfj] {
        width: 250px;
    }
}

@media (min-width: 641px) {
    article[b-oxytca5nfj] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-oxytca5nfj] {
    background: var(--bs-warning-bg-subtle);
    color: var(--bs-warning-text-emphasis);
    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[b-oxytca5nfj] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.top-row[b-sk0c5x7fzc] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-sk0c5x7fzc] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.brand-logo[b-sk0c5x7fzc] {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.375rem;
}

.bi[b-sk0c5x7fzc] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    font-size: 1.1rem;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-sk0c5x7fzc] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-sk0c5x7fzc] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-sk0c5x7fzc] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-sk0c5x7fzc] {
    font-size: 0.9rem;
    padding: 0 1rem 0.5rem;
}

    .nav-item:first-of-type[b-sk0c5x7fzc] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-sk0c5x7fzc] {
        padding-bottom: 1rem;
    }

    .nav-item[b-sk0c5x7fzc]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

/* The signed-in user and Log out, below the page links. */
.nav-account[b-sk0c5x7fzc] {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-item .nav-user[b-sk0c5x7fzc],
.nav-item .nav-user:hover[b-sk0c5x7fzc] {
    background: none;
    color: #d7d7d7;
    cursor: default;
}

.nav-user .nav-label[b-sk0c5x7fzc] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-item[b-sk0c5x7fzc]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-sk0c5x7fzc]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

/* Phones: the sidebar is a top bar whose menu button shows the links (Blazor's template pattern). */
.navbar-toggler[b-sk0c5x7fzc] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    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[b-sk0c5x7fzc] {
        background-color: rgba(255, 255, 255, 0.5);
    }

.nav-scrollable[b-sk0c5x7fzc] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-sk0c5x7fzc] {
    display: block;
}

/* Phones: the open menu drops down over the page, so opening it while scrolled doesn't push the
   page down, and a long menu scrolls on its own. */
@media (max-width: 640.98px) {
    .nav-scrollable[b-sk0c5x7fzc] {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100dvh - 3.5rem);
        overflow-y: auto;
        background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    }
}

@media (min-width: 641px) {
    .navbar-toggler[b-sk0c5x7fzc] {
        display: none;
    }

    /* The account section stays at the bottom of the sidebar; a tall list of links scrolls above it. */
    .nav-scrollable[b-sk0c5x7fzc] {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 3.5rem);
    }

    nav[b-sk0c5x7fzc] {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
    }

    .nav-account[b-sk0c5x7fzc] {
        flex-shrink: 0;
    }
}

/* Mid-width windows collapse the sidebar to an icon rail; each link's title is its tooltip and
   its accessible name. */
@media (min-width: 641px) and (max-width: 991.98px) {
    .top-row[b-sk0c5x7fzc] {
        padding-left: 0 !important;
    }

    .top-row .container-fluid[b-sk0c5x7fzc] {
        justify-content: center;
        padding: 0;
    }

    .navbar-brand[b-sk0c5x7fzc] {
        margin-right: 0;
        font-weight: 600;
    }

    /* A classic (Windows) scrollbar would squeeze the rail; it still scrolls with the wheel. */
    nav[b-sk0c5x7fzc] {
        scrollbar-width: none;
    }

    .nav-item[b-sk0c5x7fzc] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

        .nav-item[b-sk0c5x7fzc]  .nav-link {
            justify-content: center;
            padding: 0;
        }

    .bi[b-sk0c5x7fzc] {
        margin-right: 0;
    }

    .nav-label[b-sk0c5x7fzc] {
        display: none;
    }
}
/* /Components/Pages/Login.razor.rz.scp.css */
/* Scoped to Login.razor via Blazor CSS isolation — these rules never affect any other page.
   A clean standalone sign-in instead of the default Bootstrap look. Colours are Bootstrap
   variables, so the page follows the light/dark theme like the rest of the CMS. */

.login-page[b-pa536mbsjn] {
    /* 100vh first as a fallback; dvh overrides it where supported so the page fills the *dynamic*
       viewport and doesn't overflow under mobile browser chrome (e.g. iOS Safari's address bar). */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
}

.login-shell[b-pa536mbsjn] {
    width: 100%;
    max-width: 22rem;
}

.login-brand[b-pa536mbsjn] {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.login-card[b-pa536mbsjn] {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.login-title[b-pa536mbsjn] {
    margin: 0 0 1.25rem;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
}

.login-field[b-pa536mbsjn] {
    margin-bottom: 1rem;
}

.login-label[b-pa536mbsjn] {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.login-input[b-pa536mbsjn] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    /* 16px keeps mobile browsers from auto-zooming the field on focus. */
    font-size: 1rem;
    outline: none;
    transition: border-color 0.15s ease;
}

.login-input:focus[b-pa536mbsjn] {
    border-color: var(--bs-primary);
}

.login-error[b-pa536mbsjn] {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--bs-danger-border-subtle);
    border-radius: 1rem;
    background: var(--bs-danger-bg-subtle);
    color: var(--bs-danger-text-emphasis);
    font-size: 0.875rem;
}

.login-button[b-pa536mbsjn] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 1rem;
    background: var(--bs-primary);
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.login-button:hover[b-pa536mbsjn] {
    filter: brightness(0.92);
}

.login-button:active[b-pa536mbsjn] {
    filter: brightness(0.85);
}
