/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* ============================================================
   BMI ERP MAIN LAYOUT
   Desktop + Tablet + Mobile
   ============================================================ */

.erp-layout[b-8ii95sm19m] {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: #f4f6f9;
    font-family: Arial, Helvetica, sans-serif;
}


/* ============================================================
   SIDEBAR - DESKTOP
   ============================================================ */

.erp-sidebar[b-8ii95sm19m] {
    width: 260px;
    min-height: 100vh;
    background: #102a43;
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 6000;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.25s ease;
}


/* ============================================================
   BRAND
   ============================================================ */

.brand-area[b-8ii95sm19m] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-logo[b-8ii95sm19m] {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    background: #ffffff;
    color: #102a43;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.brand-name[b-8ii95sm19m] {
    font-size: 20px;
    font-weight: bold;
}

.brand-subtitle[b-8ii95sm19m] {
    font-size: 12px;
    color: #bcccdc;
}


/* ============================================================
   MAIN AREA - DESKTOP
   ============================================================ */

.erp-main[b-8ii95sm19m] {
    flex: 1;
    width: calc(100% - 260px);
    margin-left: 260px;
    min-width: 0;
}


/* ============================================================
   HEADER
   ============================================================ */

.erp-header[b-8ii95sm19m] {
    min-height: 70px;
    background: white;
    border-bottom: 1px solid #d9e2ec;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 5000;
}

.header-company[b-8ii95sm19m] {
    min-width: 0;
}

.header-user[b-8ii95sm19m] {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #334e68;
    min-width: 0;
}

.user-avatar[b-8ii95sm19m] {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: #1f5f99;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}


/* ============================================================
   MOBILE MENU BUTTON
   Hidden on desktop
   ============================================================ */

.mobile-menu-button[b-8ii95sm19m] {
    display: none;
    width: 42px;
    height: 42px;
    min-width: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #ffffff;
    color: #102a43;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}


/* ============================================================
   MOBILE SIDEBAR OVERLAY
   ============================================================ */

.mobile-sidebar-overlay[b-8ii95sm19m] {
    display: none;
}


/* ============================================================
   CONTENT
   ============================================================ */

.erp-content[b-8ii95sm19m] {
    width: 100%;
    min-width: 0;
    padding: 28px;
    box-sizing: border-box;
}


    /* ============================================================
   TABLE SAFETY
   ============================================================ */

    .erp-content table[b-8ii95sm19m] {
        max-width: 100%;
    }


/* ============================================================
   MOBILE / TABLET
   ============================================================ */

@media (max-width: 800px) {

    /* --------------------------------------------------------
       Main application
       -------------------------------------------------------- */

    .erp-layout[b-8ii95sm19m] {
        display: block;
        width: 100%;
        min-height: 100vh;
        overflow-x: hidden;
    }


    /* --------------------------------------------------------
       Sidebar becomes an off-screen drawer
       -------------------------------------------------------- */

    .erp-sidebar[b-8ii95sm19m] {
        width: 280px;
        max-width: 85vw;
        transform: translateX(-100%);
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.22);
    }

        .erp-sidebar.mobile-open[b-8ii95sm19m] {
            transform: translateX(0);
        }


    /* --------------------------------------------------------
       Dark overlay behind open menu
       -------------------------------------------------------- */

    .mobile-sidebar-overlay[b-8ii95sm19m] {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 5900;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

        .mobile-sidebar-overlay.mobile-open[b-8ii95sm19m] {
            opacity: 1;
            visibility: visible;
        }


    /* --------------------------------------------------------
       Main area gets FULL phone width
       -------------------------------------------------------- */

    .erp-main[b-8ii95sm19m] {
        width: 100%;
        margin-left: 0;
        min-width: 0;
    }


    /* --------------------------------------------------------
       Header
       -------------------------------------------------------- */

    .erp-header[b-8ii95sm19m] {
        width: 100%;
        min-height: 62px;
        padding: 8px 12px;
        gap: 8px;
        box-sizing: border-box;
    }


    /* --------------------------------------------------------
       Show hamburger button
       -------------------------------------------------------- */

    .mobile-menu-button[b-8ii95sm19m] {
        display: inline-flex;
    }


    /* --------------------------------------------------------
       Company heading
       -------------------------------------------------------- */

    .header-company[b-8ii95sm19m] {
        flex: 1;
        min-width: 0;
    }

        .header-company strong[b-8ii95sm19m] {
            display: block;
            overflow: hidden;
            font-size: 14px;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .header-company .small[b-8ii95sm19m] {
            display: none;
        }


    /* --------------------------------------------------------
       User area
       -------------------------------------------------------- */

    .header-user[b-8ii95sm19m] {
        flex: 0 0 auto;
        margin-left: 0;
    }

    .user-details[b-8ii95sm19m] {
        display: none !important;
    }

    .user-avatar[b-8ii95sm19m] {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 10px;
    }


    /* --------------------------------------------------------
       Sign in / out buttons
       Show icon only on small screens
       -------------------------------------------------------- */

    .header-auth-button[b-8ii95sm19m] {
        width: 38px;
        height: 38px;
        min-width: 38px;
        padding: 0 !important;
    }

        .header-auth-button span:last-child[b-8ii95sm19m] {
            display: none;
        }


    /* --------------------------------------------------------
       Dashboard/page content
       -------------------------------------------------------- */

    .erp-content[b-8ii95sm19m] {
        width: 100%;
        padding: 16px 12px;
        overflow-x: hidden;
        box-sizing: border-box;
    }


        /* --------------------------------------------------------
       Forms should fit phone width
       -------------------------------------------------------- */

        .erp-content input[b-8ii95sm19m],
        .erp-content select[b-8ii95sm19m],
        .erp-content textarea[b-8ii95sm19m] {
            max-width: 100%;
        }


    /* --------------------------------------------------------
       Tables may scroll horizontally
       -------------------------------------------------------- */

    .table-responsive[b-8ii95sm19m] {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}


/* ============================================================
   SMALL PHONES
   ============================================================ */

@media (max-width: 480px) {

    .erp-sidebar[b-8ii95sm19m] {
        width: 270px;
        max-width: 88vw;
    }

    .erp-header[b-8ii95sm19m] {
        padding-left: 8px;
        padding-right: 8px;
    }

    .erp-content[b-8ii95sm19m] {
        padding: 14px 10px;
    }

    .brand-area[b-8ii95sm19m] {
        padding: 18px 14px;
    }

    .brand-logo[b-8ii95sm19m] {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .brand-name[b-8ii95sm19m] {
        font-size: 18px;
    }
}


/* ============================================================
   PRINT
   ============================================================ */

@media print {

    .erp-sidebar[b-8ii95sm19m],
    .mobile-menu-button[b-8ii95sm19m],
    .mobile-sidebar-overlay[b-8ii95sm19m] {
        display: none !important;
    }

    .erp-main[b-8ii95sm19m] {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .erp-content[b-8ii95sm19m] {
        padding: 0 !important;
    }
}
/* /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;
    }
}
