/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* BMI Electrical ERP — MainLayout.razor.css
   CSS isolation: keep beside Components/Layout/MainLayout.razor.
   This replaces the incomplete stylesheet; no Razor or C# changes required. */

.erp-layout[b-8ii95sm19m] {
    display: flex;
    min-height: 100vh;
    background: #f4f6f9;
    font-family: Arial, Helvetica, sans-serif;
}

.erp-sidebar[b-8ii95sm19m] {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    width: 260px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #002b41;
    color: #fff;
}

.brand-area[b-8ii95sm19m] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 18px;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.brand-logo[b-8ii95sm19m] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #fff;
    color: #002b41;
    font-size: 18px;
    font-weight: 700;
}

.brand-name[b-8ii95sm19m] {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.brand-subtitle[b-8ii95sm19m] {
    color: #bcccdc;
    font-size: 12px;
}

.erp-main[b-8ii95sm19m] {
    flex: 1;
    min-width: 0;
    margin-left: 260px;
}

.erp-header[b-8ii95sm19m] {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 70px;
    padding: 12px 28px;
    background: #fff;
    border-bottom: 1px solid #d9e2ec;
}

.header-company[b-8ii95sm19m] {
    min-width: 0;
    color: #102a43;
}

.header-user[b-8ii95sm19m] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
    color: #334e68;
}

.signed-in-user[b-8ii95sm19m], .signed-out-user[b-8ii95sm19m] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-details[b-8ii95sm19m] {
    text-align: right;
}

.user-name[b-8ii95sm19m] {
    font-weight: 700;
    font-size: 13px;
}

.user-role[b-8ii95sm19m] {
    font-size: 12px;
    color: #627d98;
}

.user-avatar[b-8ii95sm19m] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #d9eaf1;
    color: #102a43;
    font-size: 12px;
    font-weight: 700;
}

.logout-navigation-form[b-8ii95sm19m], .login-navigation-form[b-8ii95sm19m] {
    margin: 0;
}

.header-auth-button[b-8ii95sm19m] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #cbd8e2;
    border-radius: 6px;
    background: #fff;
    color: #102a43;
    cursor: pointer;
}

    .header-auth-button:hover[b-8ii95sm19m] {
        background: #edf3f7;
    }

.mobile-menu-button[b-8ii95sm19m] {
    display: none;
}

.mobile-sidebar-overlay[b-8ii95sm19m] {
    display: none;
}

.workspace-bar[b-8ii95sm19m] {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: stretch;
    gap: 8px;
    min-height: 46px;
    padding: 6px 10px 0;
    background: #edf3f7;
    border-bottom: 1px solid #cbd8e2;
}

.workspace-label[b-8ii95sm19m] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px 6px 2px;
    color: #52697b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.workspace-label-icon[b-8ii95sm19m] {
    font-size: 14px;
}

.workspace-tabs[b-8ii95sm19m] {
    display: flex;
    flex: 1;
    align-items: flex-end;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.workspace-tab[b-8ii95sm19m] {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    min-width: 118px;
    max-width: 230px;
    height: 39px;
    overflow: hidden;
    border: 1px solid #cbd8e2;
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
    background: #dde7ee;
}

    .workspace-tab.active[b-8ii95sm19m] {
        background: #fff;
        border-color: #b8cbd8;
    }

.workspace-tab-open[b-8ii95sm19m] {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 6px;
    min-width: 0;
    height: 100%;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: #29485d;
    cursor: pointer;
    text-align: left;
}

.workspace-tab.active .workspace-tab-open[b-8ii95sm19m] {
    color: #002b41;
    font-weight: 700;
}

.workspace-tab-icon[b-8ii95sm19m] {
    flex: 0 0 auto;
}

.workspace-tab-title[b-8ii95sm19m] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-tab-close[b-8ii95sm19m] {
    flex: 0 0 auto;
    height: 28px;
    margin-right: 4px;
    padding: 0 7px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #52697b;
    cursor: pointer;
}

    .workspace-tab-close:hover[b-8ii95sm19m] {
        background: #d4e0e8;
    }

.workspace-close-others[b-8ii95sm19m] {
    align-self: center;
    padding: 6px 10px;
    border: 1px solid #cbd8e2;
    border-radius: 5px;
    background: #fff;
    color: #29485d;
    white-space: nowrap;
    cursor: pointer;
}

.erp-content[b-8ii95sm19m] {
    position: relative;
    min-width: 0;
    padding: 28px;
}

/* NavMenu is a child component: ::deep lets this layout style its markup. */
.erp-sidebar[b-8ii95sm19m]  a {
    color: #d9e8f1;
}

    .erp-sidebar[b-8ii95sm19m]  a:hover {
        color: #fff;
    }

@media (max-width: 800px) {
    .erp-sidebar[b-8ii95sm19m] {
        width: 260px;
        transform: translateX(-100%);
        transition: transform .2s ease;
        z-index: 110;
    }

        .erp-sidebar.mobile-open[b-8ii95sm19m] {
            transform: translateX(0);
        }

    .erp-main[b-8ii95sm19m] {
        margin-left: 0;
    }

    .mobile-menu-button[b-8ii95sm19m] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border: 1px solid #cbd8e2;
        border-radius: 6px;
        background: #fff;
        color: #002b41;
        cursor: pointer;
    }

    .mobile-sidebar-overlay.mobile-open[b-8ii95sm19m] {
        position: fixed;
        inset: 0;
        z-index: 105;
        display: block;
        background: rgba(0,0,0,.4);
    }

    .erp-header[b-8ii95sm19m] {
        padding: 10px 14px;
    }

    .erp-content[b-8ii95sm19m] {
        padding: 16px;
    }

    .user-details[b-8ii95sm19m] {
        display: none;
    }

    .workspace-label[b-8ii95sm19m] {
        display: none;
    }
}

@media print {
    .erp-sidebar[b-8ii95sm19m], .erp-header[b-8ii95sm19m], .workspace-bar[b-8ii95sm19m], .mobile-sidebar-overlay[b-8ii95sm19m] {
        display: none !important;
    }

    .erp-main[b-8ii95sm19m] {
        margin-left: 0;
    }

    .erp-content[b-8ii95sm19m] {
        padding: 0;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-nz5m59xyb5],
.components-reconnect-repeated-attempt-visible[b-nz5m59xyb5],
.components-reconnect-failed-visible[b-nz5m59xyb5],
.components-pause-visible[b-nz5m59xyb5],
.components-resume-failed-visible[b-nz5m59xyb5],
.components-rejoining-animation[b-nz5m59xyb5] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-nz5m59xyb5],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-nz5m59xyb5],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-nz5m59xyb5],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-nz5m59xyb5],
#components-reconnect-modal.components-reconnect-retrying[b-nz5m59xyb5],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-nz5m59xyb5],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-nz5m59xyb5],
#components-reconnect-modal.components-reconnect-failed[b-nz5m59xyb5],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-nz5m59xyb5] {
    display: block;
}


#components-reconnect-modal[b-nz5m59xyb5] {
    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-nz5m59xyb5 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-nz5m59xyb5 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-nz5m59xyb5 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-nz5m59xyb5]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-nz5m59xyb5 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-nz5m59xyb5 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-nz5m59xyb5 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-nz5m59xyb5 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-nz5m59xyb5] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-nz5m59xyb5] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-nz5m59xyb5] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-nz5m59xyb5] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-nz5m59xyb5] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-nz5m59xyb5] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-nz5m59xyb5] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-nz5m59xyb5 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-nz5m59xyb5] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-nz5m59xyb5 {
    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;
    }
}
