/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-ln6b6nx6u0] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Two-row header: a fixed-height brand strip on top (sticks to viewport) and a
   flexible section-nav strip below it. Splitting the rows lets the section
   nav wrap onto multiple lines without pushing the sticky brand strip
   around — the sidebar still anchors cleanly under the brand bar. */
.app-header[b-ln6b6nx6u0] {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-header-bar[b-ln6b6nx6u0] {
    display: flex;
    align-items: stretch;
    height: 3rem;
}

.app-brand[b-ln6b6nx6u0] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.25rem;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    white-space: nowrap;
}

.app-brand:hover[b-ln6b6nx6u0] {
    color: #ffffff;
    text-decoration: none;
}

.app-brand-icon[b-ln6b6nx6u0] {
    font-size: 1.25rem;
    color: var(--color-primary, #60a5fa);
}

.app-brand-logo[b-ln6b6nx6u0] {
    height: 1.75rem;
    width: auto;
    max-width: 9rem;
    object-fit: contain;
    display: block;
}

.app-header-actions[b-ln6b6nx6u0] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    margin-left: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.app-header-actions[b-ln6b6nx6u0]  a,
.app-header-actions[b-ln6b6nx6u0]  .btn-link {
    color: rgba(203, 213, 225, 0.85);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background-color 0.15s ease;
}

.app-header-actions[b-ln6b6nx6u0]  a:hover,
.app-header-actions[b-ln6b6nx6u0]  .btn-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.app-header-actions[b-ln6b6nx6u0]  .text-muted {
    color: rgba(203, 213, 225, 0.85) !important;
}

.app-body[b-ln6b6nx6u0] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

main[b-ln6b6nx6u0] {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg);
    min-width: 0;
}

.sidebar[b-ln6b6nx6u0] {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

@media (max-width: 640.98px) {
    .app-brand[b-ln6b6nx6u0] {
        padding: 0 0.75rem;
    }

    .app-header-actions[b-ln6b6nx6u0] {
        padding: 0 0.5rem;
        gap: 0.25rem;
    }
}

@media (min-width: 641px) {
    .app-body[b-ln6b6nx6u0] {
        flex-direction: row;
    }

    /* Sticky on its own — the brand bar above already sticks at top:0, and
       the section nav is allowed to scroll away. The sidebar follows the
       viewport top so it doesn't depend on the (now variable) header height. */
    .sidebar[b-ln6b6nx6u0] {
        align-self: flex-start;
        position: sticky;
        top: 0;
        max-height: 100vh;
        width: 240px;
        flex-shrink: 0;
        overflow-y: auto;
        border-right: 1px solid rgba(255, 255, 255, 0.05);
    }

    article.content[b-ln6b6nx6u0] {
        padding-top: 1.5rem !important;
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-ln6b6nx6u0] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-radius: 0;
}

    #blazor-error-ui .dismiss[b-ln6b6nx6u0] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* Section title at the top of the sidebar — names the active module. */
.sidebar-header[b-egyi0gpqew] {
    padding: 1rem 1.25rem 0.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 0.5rem;
}

.sidebar-section-label[b-egyi0gpqew] {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
}

/* Nav icon styling */
.nav-icon[b-egyi0gpqew] {
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
    margin-right: 0.75rem;
    opacity: 0.85;
    flex-shrink: 0;
}

.nav-item[b-egyi0gpqew] {
    font-size: 0.875rem;
    padding-bottom: 0.125rem;
}

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

    .nav-item[b-egyi0gpqew]  .nav-link {
        color: rgba(203, 213, 225, 0.85);
        background: none;
        border: none;
        border-radius: 0.5rem;
        height: 2.5rem;
        display: flex;
        align-items: center;
        line-height: 2.5rem;
        width: 100%;
        transition: all 0.15s ease;
        font-weight: 400;
    }

.nav-item[b-egyi0gpqew]  a.active {
    background-color: rgba(59, 130, 246, 0.2);
    color: #ffffff;
    font-weight: 500;
}

.nav-item[b-egyi0gpqew]  a.active .nav-icon {
    opacity: 1;
    color: #60a5fa;
}

.nav-item[b-egyi0gpqew]  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.nav-item[b-egyi0gpqew]  .nav-link:hover .nav-icon {
    opacity: 1;
    color: #60a5fa;
    transform: scale(1.1);
    transition: all 0.15s ease;
}

/* Standalone (top-level) item — used for the Dashboard sidebar entry. */
.nav-item-standalone[b-egyi0gpqew] {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Admin collapsible sub-section (uses <details>/<summary>) */
.nav-admin-details[b-egyi0gpqew] {
    padding-bottom: 0.125rem;
}

.nav-admin-details summary[b-egyi0gpqew] {
    list-style: none;
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 2.25rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
    user-select: none;
}

.nav-admin-details summary[b-egyi0gpqew]::-webkit-details-marker {
    display: none;
}

.nav-admin-details summary:hover[b-egyi0gpqew] {
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(203, 213, 225, 0.85);
}

.nav-admin-details[open] summary .nav-chevron[b-egyi0gpqew] {
    transform: rotate(180deg);
}

[b-egyi0gpqew] .nav-chevron {
    font-size: 0.6rem;
    opacity: 0.5;
    transition: transform 0.2s ease;
}

.nav-admin-section[b-egyi0gpqew] {
    border-left: 2px solid rgba(59, 130, 246, 0.25);
    margin-left: 1.5rem;
    padding-left: 0.25rem;
}

.nav-scrollable[b-egyi0gpqew] {
    display: block;
    padding-top: 0.25rem;
    padding-bottom: 0.5rem;
}

@media (min-width: 641px) {
    .nav-scrollable[b-egyi0gpqew] {
        height: calc(100vh - 3rem - 3rem);
        overflow-y: auto;
    }

    /* Custom scrollbar for sidebar */
    .nav-scrollable[b-egyi0gpqew]::-webkit-scrollbar {
        width: 4px;
    }

    .nav-scrollable[b-egyi0gpqew]::-webkit-scrollbar-track {
        background: transparent;
    }

    .nav-scrollable[b-egyi0gpqew]::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.15);
        border-radius: 4px;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-ma0jk3j6so],
.components-reconnect-repeated-attempt-visible[b-ma0jk3j6so],
.components-reconnect-failed-visible[b-ma0jk3j6so],
.components-pause-visible[b-ma0jk3j6so],
.components-resume-failed-visible[b-ma0jk3j6so],
.components-rejoining-animation[b-ma0jk3j6so] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-ma0jk3j6so],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-ma0jk3j6so],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-ma0jk3j6so],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-ma0jk3j6so],
#components-reconnect-modal.components-reconnect-retrying[b-ma0jk3j6so],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-ma0jk3j6so],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-ma0jk3j6so],
#components-reconnect-modal.components-reconnect-failed[b-ma0jk3j6so],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-ma0jk3j6so] {
    display: block;
}


#components-reconnect-modal[b-ma0jk3j6so] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-ma0jk3j6so 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-ma0jk3j6so 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-ma0jk3j6so 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-ma0jk3j6so]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-ma0jk3j6so 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-ma0jk3j6so {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-ma0jk3j6so {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-ma0jk3j6so {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-ma0jk3j6so] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-ma0jk3j6so] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-ma0jk3j6so] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-ma0jk3j6so] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-ma0jk3j6so] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-ma0jk3j6so] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-ma0jk3j6so] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-ma0jk3j6so 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-ma0jk3j6so] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-ma0jk3j6so {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Layout/TopSectionNav.razor.rz.scp.css */
/* Section nav strip: wraps onto multiple lines instead of horizontally
   scrolling — the previous overflow-x:auto scrollbar was visually noisy. */
.section-nav[b-z61fy8m6f8] {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    row-gap: 0.125rem;
    padding: 0 0.5rem;
    background: rgba(15, 23, 42, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.section-tab[b-z61fy8m6f8] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.75rem;
    height: 2.5rem;
    color: rgba(203, 213, 225, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.section-tab:hover[b-z61fy8m6f8] {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.section-tab:hover .section-tab-icon[b-z61fy8m6f8] {
    color: var(--color-primary, #60a5fa);
    opacity: 1;
}

.section-tab.active[b-z61fy8m6f8] {
    color: #ffffff;
    border-bottom-color: var(--color-primary, #60a5fa);
    background-color: rgba(255, 255, 255, 0.06);
}

.section-tab.active .section-tab-icon[b-z61fy8m6f8] {
    color: var(--color-primary, #60a5fa);
    opacity: 1;
}

.section-tab-icon[b-z61fy8m6f8] {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Greyed-out section for modules disabled tenant-wide. Renders as a span
   (not an anchor) so it isn't navigable; cursor + opacity signal the state
   visually, the title attribute drives the hover tooltip. */
.section-tab-disabled[b-z61fy8m6f8] {
    opacity: 0.4;
    cursor: not-allowed;
}

.section-tab-disabled:hover[b-z61fy8m6f8] {
    color: rgba(203, 213, 225, 0.85);
    background-color: transparent;
}

.section-tab-disabled:hover .section-tab-icon[b-z61fy8m6f8] {
    color: rgba(203, 213, 225, 0.85);
    opacity: 0.85;
}

.section-tab-lock[b-z61fy8m6f8] {
    font-size: 0.7rem;
    margin-left: 0.1rem;
    opacity: 0.7;
}

@media (max-width: 640.98px) {
    .section-tab[b-z61fy8m6f8] {
        padding: 0 0.6rem;
    }

    .section-tab-label[b-z61fy8m6f8] {
        display: none;
    }

    .section-tab-icon[b-z61fy8m6f8] {
        font-size: 1.1rem;
    }
}
/* /Components/Pages/Admin/BrandingPage.razor.rz.scp.css */
.branding-preview[b-ljuqfnxedw] {
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.branding-preview img[b-ljuqfnxedw] {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.branding-preview-logo[b-ljuqfnxedw] {
    height: 5rem;
    padding: 0.75rem;
}

.branding-preview-banner[b-ljuqfnxedw] {
    height: 9rem;
}

.branding-preview-banner img[b-ljuqfnxedw] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.branding-preview-empty[b-ljuqfnxedw] {
    color: var(--color-text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.branding-preview-empty i[b-ljuqfnxedw] {
    font-size: 1.5rem;
    opacity: 0.5;
}
