/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-sk9d0p3oto] {
    display: flex;
    flex-direction: row;
    /*min-height: 100vh;*/
    height: 100vh; /* CHANGED: from min-height to height */
    overflow: hidden;
    
}




main[b-sk9d0p3oto] {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh; /* IMPORTANT: Force main to respect viewport height */
    min-width: 0; /* Standard flexbox fix for nested scrolling */
    /*flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;  Prevent horizontal scroll */
    /*background-image: linear-gradient(180deg, #ffffff 0%, #cdfff1 70%);*/
}

.sidebar[b-sk9d0p3oto] {
    display: flex; /* Required for the child 'flex: 1' to work */
    flex-direction: column; /* Stacks logo on top of menu */
    height: 100vh; /* Locks the height to the screen */


    background-image: linear-gradient(180deg, #cc0000 0%, #08654c 70%);
    width: 250px;
    height: 100vh; /* Full height */
    flex-shrink: 0;
    /*background-image: linear-gradient(180deg, #cc0000 0%, #08654c 70%);
    width: 250px;
    height: 100vh;
    position: static;
    top: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;*/
}

.top-row[b-sk9d0p3oto] {
    background-image: linear-gradient(180deg, #9cd7ff 0%, #b4ffc8 70%);
    border-bottom: 1px solid #d6d5d5;
    height: 3.5rem;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.content[b-sk9d0p3oto] {
    flex-grow: 1;
    overflow-y: auto; /* This enables the scrollbar */
    padding-top: 1.5rem;
    padding-bottom: 2rem;

  

    /*overflow-y: auto;
    flex-grow: 1;
    padding-top: 1.5rem;*/
}

/* Hide toggler on desktop by default */
.navbar-toggler[b-sk9d0p3oto] {
    display: none;
}



/* === Mobile Styles (< 641px) === */
@media (max-width: 994.98px) {
    .page[b-sk9d0p3oto] {
        flex-direction: column;
        height: auto; /* Let mobile grow naturally */
        overflow: visible;
        /*flex-direction: column;*/
    }

    .top-row[b-sk9d0p3oto] {
        justify-content: space-between;
    }

    .sidebar[b-sk9d0p3oto] {
        width: 100%;
        height: auto;
        position: static;
        /*width: 100%;
        height: auto;*/
    }


    main[b-sk9d0p3oto] {
        height: auto;
        min-height: unset; /* Remove the desktop restriction */
    }


    .content[b-sk9d0p3oto] {
        /* Disable the internal desktop scrollbar */
        overflow-y: visible;
        height: auto;
    }


    /* Show the toggle button on mobile */
    .navbar-toggler[b-sk9d0p3oto] {
        display: block;
        background-color: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }


 /*   .navbar-toggler {
        display: block;
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.5rem;
        border-radius: 4px;
        margin-right: 1rem;
        cursor: pointer;
    }*/

    .navbar-toggler-icon[b-sk9d0p3oto] {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.top-row-brand[b-wxdyueyr35] {
    height: 6rem;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes brand to left and toggle to right */
    padding-top: 1rem; /* Adjust padding for the new layout */
    
}

.navbar-brand[b-wxdyueyr35] {
    font-size: 1.1rem;
    color: white;
}

/* Style for the toggle when it's inside the top row */
.top-row-brand .submenu-toggle[b-wxdyueyr35] {
    color: #d7d7d7;
}

    .top-row-brand .submenu-toggle:hover[b-wxdyueyr35] {
        color: white;
    }


.nav-item[b-wxdyueyr35] {
    font-size: 0.8rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-wxdyueyr35] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-wxdyueyr35] {
        padding-bottom: 1rem;
    }

    /* Unified style for all nav-links, including the submenu toggle */
    .nav-item[b-wxdyueyr35]  .nav-link, .submenu-toggle[b-wxdyueyr35] {
        color: #d7d7d7;
        border-radius: 4px;
        height: 2.3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
        cursor: pointer; /* Ensures all nav-links are visibly interactive */
        text-decoration: none;
    }

        .nav-item[b-wxdyueyr35]  .nav-link.active {
            background-color: rgba(255,255,255,0.37);
            color: white;
        }

        .nav-item[b-wxdyueyr35]  .nav-link:hover {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }

.nav-scrollable[b-wxdyueyr35] {
    overflow-y: auto;
    /* Use 'flex: 1' instead of manual grow/basis settings. 
       This sets grow=1, shrink=1, basis=0% automatically. */
    flex: 1;
    /* CRITICAL: Allows the item to shrink below its content size */
    min-height: 0;
    /* REMOVE THIS LINE: height: 0; <--- DELETE THIS */
    /*overflow-y: auto;
    flex-grow: 1;*/
    /* CRITICAL: This allows the div to shrink to fit the sidebar height, 
       which forces the scrollbar to appear when content is too long. */
    /*min-height: 0;*/
}

/* The arrow for the submenu toggle is added here */
.submenu-toggle[b-wxdyueyr35]::after {
    content: '▼';
    font-size: 0.8em;
    margin-left: auto; /* Pushes arrow to the far right */
    padding-left: 0.5rem;
}


/*Sub Menu Styles - Keep these as they are*/
.nav-item-submenu[b-wxdyueyr35] {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.1s ease-in-out;
}

    .nav-item-submenu.show[b-wxdyueyr35] {
        max-height: 500px;
    }

    .nav-item-submenu .nav-link[b-wxdyueyr35] {
        padding-left: 3rem !important;
        font-size: 0.9rem;
        color: #d7d7d7;
    }

/* Styles for the icons, keep them as they are */
.bi[b-wxdyueyr35] {
    display: inline-block;
    position: relative;
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-wxdyueyr35] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

/* --- Mobile Specific Overrides --- */
@media (max-width: 993.98px) {
    /* When NavMenu is collapsed on mobile, it should not be visible */
    .collapse[b-wxdyueyr35] {
        display: none;
    }

    .nav-scrollable:not(.collapse)[b-wxdyueyr35] {
        display: block;
    }


    /* Shows the hamburger button in the top row so you can open it */
    /*.navbar-toggler {
        display: block;
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.5rem;
        border-radius: 4px;
        margin-right: 1rem;
        cursor: pointer;
    }*/

    /* On mobile, hide the toggle in the top bar since the whole menu is visible */
    .top-row-brand .submenu-toggle[b-wxdyueyr35] {
        display: none;
    }
}

/* --- Desktop Specific Overrides --- */
@media (min-width: 994px) {
    /*
     * This rule ensures that the nav menu's content is always visible on desktop.
     * It overrides the default behavior of the ".collapse" class from Bootstrap,
     * which would otherwise hide the menu on larger screens.
    */

    .navbar-toggler[b-wxdyueyr35] {
        display: none;
    }

    .nav-scrollable[b-wxdyueyr35] {
        display: block;
    }
}
/* /Pages/Login.razor.rz.scp.css */
/* Custom Login Page Styles */

.login-page-container[b-bcucwoypk7] {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(1, 96, 67, 1) 0%, rgba(1, 45, 32, 1) 100%);
    padding: 1.5rem;
    font-family: 'Segoe UI Variable Display', 'Pyidaungsu', sans-serif;
}

.login-box[b-bcucwoypk7] {
    width: 100%;
    max-width: 420px;
    animation: fadeIn-b-bcucwoypk7 0.6s ease-out;
    height: 90dvh;
}

@keyframes fadeIn-b-bcucwoypk7 {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-bg[b-bcucwoypk7] {
    background-color: rgb(1, 96, 67);
}

.brand-text[b-bcucwoypk7] {
    color: rgb(1, 96, 67);
}

/* Customizing DevExpress Components */
[b-bcucwoypk7] .custom-input.dxbl-text-edit {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    padding-left: 1rem !important;
}

    [b-bcucwoypk7] .custom-input.dxbl-text-edit:focus-within {
        border-color: rgb(1, 96, 67) !important;
        box-shadow: 0 0 0 0.25rem rgba(1, 96, 67, 0.25) !important;
    }

.btn-login[b-bcucwoypk7] {
    background-color: rgb(1, 96, 67);
    color: white;
    border: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

    .btn-login:hover[b-bcucwoypk7] {
        background-color: #01412d;
        color: white;
        transform: translateY(-2px);
    }

    .btn-login:disabled[b-bcucwoypk7] {
        background-color: #6c757d;
    }

.alert-soft-danger[b-bcucwoypk7] {
    background-color: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

/* Mobile Specific Tweaks */
@media (max-width: 576px) {
    .login-page-container[b-bcucwoypk7] {
        padding: 1rem;
    }

    .login-box[b-bcucwoypk7] {
        max-width: 100%;
    }

    .card-body[b-bcucwoypk7] {
        padding: 1rem 2.0rem !important;
    }
}
