/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* App shell. Design tokens live in wwwroot/app.css (:root). */

.page[b-x9qtoynx84] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--npi-surface);
    color: var(--npi-text);
    font-family: var(--npi-font);
}

.sidebar[b-x9qtoynx84] {
    background: var(--npi-surface);
    border-bottom: 1px solid var(--npi-border);
}

main[b-x9qtoynx84] {
    flex: 1;
    min-width: 0;
    background: var(--npi-surface);
}

.content[b-x9qtoynx84] {
    padding: 1.5rem 2rem 3rem;
}

@media (min-width: 641px) {
    .page[b-x9qtoynx84] {
        flex-direction: row;
    }

    .page.no-sidebar[b-x9qtoynx84] {
        flex-direction: column;
    }

    .sidebar[b-x9qtoynx84] {
        width: var(--npi-sidebar-width);
        flex: 0 0 var(--npi-sidebar-width);
        height: 100vh;
        position: sticky;
        top: 0;
        border-bottom: none;
        border-right: 1px solid var(--npi-border);
        transition: width 0.2s ease, flex 0.2s ease;
    }

    .sidebar.collapsed[b-x9qtoynx84] {
        width: 68px;
        flex: 0 0 68px;
    }
}

@media (max-width: 640.98px) {
    .content[b-x9qtoynx84] {
        padding: 1rem 1.25rem 2.5rem;
    }
}

#blazor-error-ui[b-x9qtoynx84] {
    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;
}

    #blazor-error-ui .dismiss[b-x9qtoynx84] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* ---------------------------------------------------------------------------
   NPI Admin sidebar — matches the "Pre order flow admin" Figma section.
   Tokens (--npi-*) come from wwwroot/app.css.
   Icon sizing lives on the global .npi-icon-* classes, because scoped CSS
   cannot reach markup rendered by a child component (AppIcon).
   --------------------------------------------------------------------------- */

.sidebar-inner[b-ttcnjzal4a] {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    font-size: 0.875rem;
}

/* Brand ------------------------------------------------------------------- */

.brand[b-ttcnjzal4a] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.25rem 1rem 1rem 1.25rem;
    flex: 0 0 auto;
}

.brand-link[b-ttcnjzal4a] {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.brand-mark[b-ttcnjzal4a] {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    background: #0f0f10;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    flex: 0 0 auto;
}

img.brand-mark[b-ttcnjzal4a] {
    object-fit: contain;
    background: transparent;
}

.brand-text[b-ttcnjzal4a] {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.brand-name[b-ttcnjzal4a] {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--npi-text-strong);
}

.brand-sub[b-ttcnjzal4a] {
    font-size: 0.75rem;
    color: var(--npi-text-muted);
}

/* Mobile toggle ----------------------------------------------------------- */

.navbar-toggler[b-ttcnjzal4a] {
    display: none;
}

.nav-toggle[b-ttcnjzal4a] {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    color: var(--npi-text);
    cursor: pointer;
}

.nav-toggle:hover[b-ttcnjzal4a] {
    background: var(--npi-surface-hover);
}

/* Collapsible region (nav + user card) ------------------------------------ */

.nav-collapse[b-ttcnjzal4a] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.nav-scrollable[b-ttcnjzal4a] {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.25rem 0.75rem 1rem;
}

/* Groups ------------------------------------------------------------------ */

.nav-group[b-ttcnjzal4a] {
    margin-bottom: 0.25rem;
}

.nav-group-header[b-ttcnjzal4a] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.625rem 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    color: var(--npi-text-strong);
    font-weight: 600;
    font-size: 0.875rem;
}

.nav-group-header[b-ttcnjzal4a]::-webkit-details-marker {
    display: none;
}

.nav-group-header:hover[b-ttcnjzal4a] {
    background: var(--npi-surface-hover);
}

.nav-group-header:focus-visible[b-ttcnjzal4a] {
    outline: 2px solid var(--npi-primary);
    outline-offset: 1px;
}

.nav-group-title[b-ttcnjzal4a] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chevron[b-ttcnjzal4a] {
    display: inline-flex;
    flex: 0 0 auto;
    color: var(--npi-text-muted);
    transform: rotate(-90deg);
    transition: transform 0.15s ease;
}

.nav-group[open] > .nav-group-header .chevron[b-ttcnjzal4a] {
    transform: rotate(0deg);
}

/* Items ------------------------------------------------------------------- */

.nav-list[b-ttcnjzal4a] {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.125rem 0 0.375rem;
}

.nav-item-link[b-ttcnjzal4a] {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.625rem 0.5rem 0.75rem;
    border-radius: 0.375rem;
    color: var(--npi-text);
    text-decoration: none;
    line-height: 1.25rem;
    white-space: nowrap;
}

.nav-item-link:hover[b-ttcnjzal4a] {
    background: var(--npi-surface-hover);
    color: var(--npi-text-strong);
}

.nav-item-link.active[b-ttcnjzal4a] {
    background: var(--npi-surface-active);
    color: var(--npi-text-strong);
    font-weight: 500;
}

.nav-item-link:focus-visible[b-ttcnjzal4a] {
    outline: 2px solid var(--npi-primary);
    outline-offset: 1px;
}

.nav-item-link.is-disabled[b-ttcnjzal4a] {
    color: var(--npi-text-disabled);
    cursor: not-allowed;
}

.nav-item-link.is-disabled:hover[b-ttcnjzal4a] {
    background: transparent;
    color: var(--npi-text-disabled);
}

.nav-item-label[b-ttcnjzal4a] {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dev tools --------------------------------------------------------------- */

.nav-dev[b-ttcnjzal4a] {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--npi-border);
}

.nav-dev-title[b-ttcnjzal4a] {
    display: block;
    padding: 0 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--npi-text-disabled);
}

/* User card --------------------------------------------------------------- */

.user-card[b-ttcnjzal4a] {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 0 0 auto;
    margin: 0.5rem 0.75rem 1rem;
    padding: 0.625rem;
    border: 1px solid var(--npi-border);
    border-radius: 0.625rem;
    background: #fff;
}

.user-avatar[b-ttcnjzal4a] {
    position: relative;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--npi-surface-active);
    color: var(--npi-text);
    font-size: 0.75rem;
    font-weight: 600;
    flex: 0 0 auto;
}

.user-status[b-ttcnjzal4a] {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: #17b26a;
    border: 2px solid #fff;
}

.user-meta[b-ttcnjzal4a] {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
    flex: 1 1 auto;
}

.user-name[b-ttcnjzal4a] {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--npi-text-strong);
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email[b-ttcnjzal4a] {
    font-size: 0.75rem;
    color: var(--npi-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-logout[b-ttcnjzal4a] {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: var(--npi-text-muted);
    cursor: pointer;
    flex: 0 0 auto;
}

.user-logout:hover[b-ttcnjzal4a] {
    background: var(--npi-surface-hover);
    color: var(--npi-text-strong);
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 640.98px) {
    .nav-toggle[b-ttcnjzal4a] {
        display: flex;
    }

    .nav-collapse[b-ttcnjzal4a] {
        display: none;
        border-top: 1px solid var(--npi-border);
    }

    .navbar-toggler:checked ~ .nav-collapse[b-ttcnjzal4a] {
        display: flex;
    }

    .nav-scrollable[b-ttcnjzal4a] {
        max-height: 70vh;
    }
}

/* Sidebar Collapse -------------------------------------------------------- */

.sidebar-collapse-btn[b-ttcnjzal4a] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.375rem;
    border: 1px solid var(--npi-border);
    background: #fff;
    color: var(--npi-text-muted);
    cursor: pointer;
    padding: 0;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.sidebar-collapse-btn:hover[b-ttcnjzal4a] {
    background: var(--npi-surface-hover);
    color: var(--npi-text-strong);
    border-color: #cbd5e1;
}

.brand.is-collapsed[b-ttcnjzal4a] {
    flex-direction: column;
    padding: 1rem 0.5rem;
    gap: 0.625rem;
    align-items: center;
    justify-content: center;
}

.sidebar-inner.is-collapsed .nav-scrollable[b-ttcnjzal4a] {
    padding: 0.25rem 0.375rem 1rem;
    overflow-x: hidden;
}

.sidebar-inner.is-collapsed .nav-group-header[b-ttcnjzal4a] {
    display: none;
}

.sidebar-inner.is-collapsed .nav-group[b-ttcnjzal4a] {
    border-top: 1px solid var(--npi-border);
    padding-top: 0.375rem;
    margin-top: 0.375rem;
}

.sidebar-inner.is-collapsed .nav-group:first-child[b-ttcnjzal4a] {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.sidebar-inner.is-collapsed .nav-item-link[b-ttcnjzal4a] {
    justify-content: center;
    padding: 0.625rem 0;
    margin: 0.125rem 0;
}

.sidebar-inner.is-collapsed .nav-item-label[b-ttcnjzal4a] {
    display: none;
}

.sidebar-inner.is-collapsed .nav-dev[b-ttcnjzal4a] {
    border-top: 1px solid var(--npi-border);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.sidebar-inner.is-collapsed .nav-dev-title[b-ttcnjzal4a] {
    display: none;
}

.sidebar-inner.is-collapsed .user-card[b-ttcnjzal4a] {
    flex-direction: column;
    padding: 0.75rem 0.25rem;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-3v6g2kp7ac],
.components-reconnect-repeated-attempt-visible[b-3v6g2kp7ac],
.components-reconnect-failed-visible[b-3v6g2kp7ac],
.components-pause-visible[b-3v6g2kp7ac],
.components-resume-failed-visible[b-3v6g2kp7ac],
.components-rejoining-animation[b-3v6g2kp7ac] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-3v6g2kp7ac],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-3v6g2kp7ac],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-3v6g2kp7ac],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-3v6g2kp7ac],
#components-reconnect-modal.components-reconnect-retrying[b-3v6g2kp7ac],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-3v6g2kp7ac],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-3v6g2kp7ac],
#components-reconnect-modal.components-reconnect-failed[b-3v6g2kp7ac],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-3v6g2kp7ac] {
    display: block;
}


#components-reconnect-modal[b-3v6g2kp7ac] {
    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-3v6g2kp7ac 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-3v6g2kp7ac 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-3v6g2kp7ac 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-3v6g2kp7ac]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-3v6g2kp7ac 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-3v6g2kp7ac {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-3v6g2kp7ac {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-3v6g2kp7ac {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-3v6g2kp7ac] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-3v6g2kp7ac] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-3v6g2kp7ac] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-3v6g2kp7ac] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-3v6g2kp7ac] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-3v6g2kp7ac] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-3v6g2kp7ac] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-3v6g2kp7ac 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-3v6g2kp7ac] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-3v6g2kp7ac {
    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;
    }
}
