/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-v6foyx7uod] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-v6foyx7uod] {
    flex: 1;
    overflow-y: auto; /* Allow main to scroll independently */
}

.sidebar[b-v6foyx7uod] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
    overflow-y: auto; /* Allow sidebar to scroll if needed */
}

.top-row[b-v6foyx7uod] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-v6foyx7uod]  a, .top-row[b-v6foyx7uod]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-v6foyx7uod]  a:hover, .top-row[b-v6foyx7uod]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-v6foyx7uod]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-v6foyx7uod] {
        justify-content: space-between;
    }

    .top-row[b-v6foyx7uod]  a, .top-row[b-v6foyx7uod]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-v6foyx7uod] {
        flex-direction: row;
        min-height: 100vh; /* Ensure page takes full viewport height */
    }

    .sidebar[b-v6foyx7uod] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        flex-shrink: 0; /* Prevent sidebar from shrinking */
        display: flex;
        flex-direction: column;
        overflow-y: auto; /* Allow sidebar to scroll if needed */
    }

    main[b-v6foyx7uod] {
        flex: 1;
        min-width: 0; /* Allow flex item to shrink below content size */
        max-width: calc(100vw - 250px); /* Prevent main from exceeding viewport minus sidebar */
        overflow-x: hidden; /* Prevent horizontal scroll on main */
        overflow-y: auto; /* Allow main to scroll independently */
        height: 100vh; /* Full viewport height for sticky sidebar to work */
    }

    .top-row[b-v6foyx7uod] {
        position: sticky;
        top: 0;
        z-index: 1;
        flex-shrink: 0; /* Prevent top-row from shrinking */
    }

    .top-row.auth[b-v6foyx7uod]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-v6foyx7uod], article[b-v6foyx7uod] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-v6foyx7uod] {
    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-v6foyx7uod] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-7timgyuhwm] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar-toggler:hover[b-7timgyuhwm] {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler:checked[b-7timgyuhwm] {
    background-color: rgba(0, 146, 68, 0.3);
    border-color: #009244;
}

.top-row[b-7timgyuhwm] {
    min-height: 3.5rem;
    background: linear-gradient(135deg, #022c32 0%, #1e4c53 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid #009244;
}

.navbar-brand[b-7timgyuhwm] {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover[b-7timgyuhwm] {
    color: #c1d11c !important;
    transform: translateX(4px);
}

.brand-icon[b-7timgyuhwm] {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.brand-text[b-7timgyuhwm] {
    letter-spacing: -0.5px;
}

.bi[b-7timgyuhwm] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
    transition: transform 0.2s ease;
}

.bi-house-door-fill-nav-menu[b-7timgyuhwm] {
    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");
}

.bi-graph-up-nav-menu[b-7timgyuhwm] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-graph-up' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M0 0h1v15h15v1H0V0Zm14.817 3.113a.5.5 0 0 1 .07.704l-4.5 5.5a.5.5 0 0 1-.74.037L7.06 6.767l-3.656 5.027a.5.5 0 0 1-.808-.588l4-5.5a.5.5 0 0 1 .758-.06l2.609 2.61 4.15-5.073a.5.5 0 0 1 .704-.07Z'/%3E%3C/svg%3E");
}

.bi-speedometer-nav-menu[b-7timgyuhwm] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-speedometer' viewBox='0 0 16 16'%3E%3Cpath d='M8 2a.5.5 0 0 1 .5.5V4a.5.5 0 0 1-1 0V2.5A.5.5 0 0 1 8 2M3.732 3.732a.5.5 0 0 1 .707 0l.915.914a.5.5 0 1 1-.708.708l-.914-.915a.5.5 0 0 1 0-.707M2 8a.5.5 0 0 1 .5-.5h1.586a.5.5 0 0 1 0 1H2.5A.5.5 0 0 1 2 8m9.5 0a.5.5 0 0 1 .5-.5h1.5a.5.5 0 0 1 0 1H12a.5.5 0 0 1-.5-.5m.754-4.246a.389.389 0 0 0-.527-.02L7.547 7.31A.91.91 0 1 0 8.85 8.569l3.434-4.297a.389.389 0 0 0-.029-.518z'/%3E%3Cpath fill-rule='evenodd' d='M6.664 15.889A8 8 0 1 1 9.336.11a8 8 0 0 1-2.672 15.78zm-4.665-4.283A11.95 11.95 0 0 1 8 10c2.186 0 4.236.585 6.001 1.606a7 7 0 1 0-12.002 0'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-7timgyuhwm] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-7timgyuhwm] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.bi-card-list-nav-menu[b-7timgyuhwm] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-card-list' viewBox='0 0 16 16'%3E%3Cpath d='M14.5 3a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h13zm-13-1A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 14.5 2h-13z'/%3E%3Cpath d='M5 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 5 8zm0-2.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm0 5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm-1-5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zM4 8a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zm0 2.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-gear-nav-menu[b-7timgyuhwm] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-gear' viewBox='0 0 16 16'%3E%3Cpath d='M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z'/%3E%3Cpath d='M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319z'/%3E%3C/svg%3E");
}

.nav-item[b-7timgyuhwm] {
    font-size: 0.95rem;
    padding-bottom: 0.25rem;
}

.nav-item:first-of-type[b-7timgyuhwm] {
    padding-top: 1rem;
}

.nav-item:last-of-type[b-7timgyuhwm] {
    padding-bottom: 1rem;
}

.nav-item[b-7timgyuhwm]  .nav-link {
    color: #EDF2F7;
    background: none;
    border: none;
    border-radius: 8px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
    width: 100%;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-item[b-7timgyuhwm]  .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #009244 0%, #c1d11c 100%);
    transition: width 0.3s ease;
    border-radius: 8px 0 0 8px;
}

.nav-item[b-7timgyuhwm]  .nav-link:hover::before {
    width: 4px;
}

.nav-item[b-7timgyuhwm]  a.active {
    background: linear-gradient(90deg, rgba(0, 146, 68, 0.15) 0%, rgba(193, 209, 28, 0.1) 100%);
    color: #c1d11c;
    font-weight: 600;
    border-left: 4px solid #009244;
}

.nav-item[b-7timgyuhwm]  a.active .bi {
    transform: scale(1.1);
}

.nav-item[b-7timgyuhwm]  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(4px);
}

.nav-text[b-7timgyuhwm] {
    position: relative;
    z-index: 1;
}

.nav-scrollable[b-7timgyuhwm] {
    display: none;
    background: linear-gradient(180deg, #111317 0%, #1e4c53 100%);
    flex: 1; /* Take remaining space in sidebar */
    overflow-y: auto; /* Allow scrolling if menu is too long */
}

.navbar-toggler:checked ~ .nav-scrollable[b-7timgyuhwm] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-7timgyuhwm] {
        display: none;
    }

    .nav-scrollable[b-7timgyuhwm] {
        /* Never collapse the sidebar for wide screens */
        display: flex; /* Changed from block to flex */
        flex-direction: column; /* Stack nav items vertically */

        /* Allow sidebar to scroll for tall menus */
        height: auto; /* Changed from calc(100vh - 3.5rem) */
        flex: 1; /* Take all available space */
        overflow-y: auto;
    }
}
/* /Components/Shared/Pagination.razor.rz.scp.css */
.pagination-container[b-4hqfx4l4fi] {
    margin: 1.5rem 0;
}

.pagination-header[b-4hqfx4l4fi] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-size-selector[b-4hqfx4l4fi] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-size-selector label[b-4hqfx4l4fi] {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--global-palette6);
    margin: 0;
}

.page-size-selector .form-select[b-4hqfx4l4fi] {
    width: auto;
    min-width: 80px;
}

.pagination-info[b-4hqfx4l4fi] {
    font-size: 0.875rem;
    color: var(--global-palette6);
}

.pagination-info strong[b-4hqfx4l4fi] {
    color: var(--global-palette3);
    font-weight: 700;
}

.pagination-nav[b-4hqfx4l4fi] {
    display: flex;
    justify-content: center;
}

.pagination-modern[b-4hqfx4l4fi] {
    margin: 0;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.pagination-modern .page-item[b-4hqfx4l4fi] {
    margin: 0;
}

.pagination-modern .page-link[b-4hqfx4l4fi] {
    color: var(--global-palette4);
    background-color: var(--global-palette9);
    border: 2px solid var(--global-palette7);
    border-radius: 8px;
    padding: 0.5rem 0.875rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    min-width: 42px;
    text-align: center;
}

.pagination-modern .page-link:hover:not(:disabled)[b-4hqfx4l4fi] {
    background: linear-gradient(135deg, var(--global-palette1) 0%, var(--global-palette2) 100%);
    color: var(--global-palette9);
    border-color: var(--global-palette1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 146, 68, 0.2);
}

.pagination-modern .page-item.active .page-link[b-4hqfx4l4fi] {
    background: linear-gradient(135deg, var(--global-palette1) 0%, var(--global-palette2) 100%);
    border-color: var(--global-palette1);
    color: var(--global-palette9);
    box-shadow: 0 4px 12px rgba(0, 146, 68, 0.3);
    transform: translateY(-1px);
}

.pagination-modern .page-item.disabled .page-link[b-4hqfx4l4fi] {
    color: var(--global-palette7);
    background-color: var(--global-palette8);
    border-color: var(--global-palette7);
    cursor: not-allowed;
    opacity: 0.5;
}

.page-link-first[b-4hqfx4l4fi],
.page-link-last[b-4hqfx4l4fi],
.page-link-prev[b-4hqfx4l4fi],
.page-link-next[b-4hqfx4l4fi] {
    font-size: 1.125rem;
    font-weight: 700;
}

@media (max-width: 576px) {
    .pagination-header[b-4hqfx4l4fi] {
        flex-direction: column;
        align-items: stretch;
    }
    
    .page-size-selector[b-4hqfx4l4fi],
    .pagination-info[b-4hqfx4l4fi] {
        justify-content: center;
        text-align: center;
    }
    
    .pagination-modern[b-4hqfx4l4fi] {
        gap: 0.125rem;
    }
    
    .pagination-modern .page-link[b-4hqfx4l4fi] {
        padding: 0.375rem 0.625rem;
        min-width: 36px;
        font-size: 0.75rem;
    }
}
