@import '_content/Blazored.Toast/Blazored.Toast.bundle.scp.css';

/* _content/AI_ERP/Shared/MainLayout.razor.rz.scp.css */
.page[b-asv6crk30z] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-asv6crk30z] {
    flex: 1;
}

.sidebar[b-asv6crk30z] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-asv6crk30z] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-asv6crk30z]  a, .top-row .btn-link[b-asv6crk30z] {
        white-space: nowrap;
        margin-left: 1.5rem;
    }

    .top-row a:first-child[b-asv6crk30z] {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row:not(.auth)[b-asv6crk30z] {
        display: none;
    }

    .top-row.auth[b-asv6crk30z] {
        justify-content: space-between;
    }

    .top-row a[b-asv6crk30z], .top-row .btn-link[b-asv6crk30z] {
        margin-left: 0;
    }

    /*----Added on 26/09/2025 (ticket #28)----*/
    .footer[b-asv6crk30z] {
        position: fixed !important;
    }
    /*---------------------------------------*/
}

@media (min-width: 641px) {
    .page[b-asv6crk30z] {
        flex-direction: row;
    }

    .sidebar[b-asv6crk30z] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-asv6crk30z] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row[b-asv6crk30z], article[b-asv6crk30z] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* _content/AI_ERP/Shared/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-jqblunv0ic] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-jqblunv0ic] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-jqblunv0ic] {
    font-size: 1.1rem;
}

.oi[b-jqblunv0ic] {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.nav-item[b-jqblunv0ic] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-jqblunv0ic] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-jqblunv0ic] {
        padding-bottom: 1rem;
    }

    .nav-item[b-jqblunv0ic]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-jqblunv0ic]  a.active {
    background-color: rgba(255,255,255,0.25);
    color: white;
}

.nav-item[b-jqblunv0ic]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

/*-----------------Modified on 16/12/2025 (ticket #223)--------------------*/
/*@media (min-width: 641px) {
    .navbar-toggler {*/
        /*display: none;*/ /*<--Commented on 15/09/2025 (ticket #5)*/
    /*}

    .collapse {*/
        /* Never collapse the sidebar for wide screens */
        /*display: block;
    }
    
    .nav-scrollable {*/
        /* Allow sidebar to scroll for tall menus */
        /*height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}*/

@media (min-width: 641px) {

    /* Sidebar desktop widths */
    .sidebar[b-jqblunv0ic] {
        width: 281.39px;
        transition: width 0.3s ease;
        flex-shrink: 0;
    }

        .sidebar.collapsed[b-jqblunv0ic] {
            width: 80px;
        }

    /* Push main content */
    .main-content[b-jqblunv0ic] {
        margin-left: 220px;
        transition: margin-left 0.3s ease;
    }

    .sidebar.collapsed ~ .main-content[b-jqblunv0ic] {
        margin-left: 80px;
    }

    /* Top row alignment */
    .top-row[b-jqblunv0ic] {
        /*margin-left: 220px;*/
        transition: margin-left 0.3s ease;
    }

    .collapsed-top-row[b-jqblunv0ic] {
        /*margin-left: 80px !important;*/
    }

    .nav-scrollable[b-jqblunv0ic] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/*-------------------------------------------------------------------------*/
        /*-------------------------Added on 16/09/2025 (ticket #8)-----------------------*/
        /* Mobile sidebar (below 641px) */
        @media (max-width: 640px) {
    .sidebar[b-jqblunv0ic] {
        position: fixed;
        top: 3.5rem; /* below top-row */
        left: 0;
        width: 220px;
        height: calc(100vh - 3.5rem);
        background-color: #004aad; /* keep your blue */
        transition: width 0.3s ease-in-out;
        z-index: 1050;
        pointer-events: auto; /*<--Added on 16/12/2025 (ticket #223)--*/
    }

        .sidebar.mobile-hidden[b-jqblunv0ic] {
            transform: translateX(-100%);
        }

        .sidebar.mobile-visible[b-jqblunv0ic] {
            transform: translateX(0);
        }
        .sidebar.collapsed[b-jqblunv0ic] {
            width: 0px;
        }
}
/*-------------------------------------------------------------------------------*/
