:root {
    --reportHub-sidebar-bg: var(--pcg-primary, #052924);
    --reportHub-sidebar-width: 320px;
    --reportHub-accent: var(--pcg-accent, #0d6b5c);
    --reportHub-text: #ffffff;
    --reportHub-header-bg: #ffffff;
    --reportHub-body-bg: #f5f6f8;
}

.sliding-nav-layout {
    min-height: 100vh;
    display: grid;
    grid-template-areas: 'header header' 'body body';
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
}

.sliding-nav-header {
    grid-area: header;
    position: sticky;
    top: 0;
    background-color: var(--reportHub-header-bg) !important;
    color: #1a1a2e !important;
    border-bottom: 1px solid #e8eaed;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    z-index: 100;
}

.header-stack {
    max-width: none;
    margin: 0 auto;
    padding: 0 1rem;
}

.sliding-nav-body {
    grid-area: body;
    background-color: var(--reportHub-body-bg) !important;
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
}

.main-content-wrap {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.main-footer {
    padding: 1rem 1.5rem;
    font-size: 0.8125rem;
    color: #5a5a5a;
    text-align: center;
    border-top: 1px solid #e8eaed;
    background: #fff;
}

.menu-btn {
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    cursor: pointer;
    border: none;
    background-color: var(--reportHub-sidebar-bg) !important;
    color: var(--reportHub-text) !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 400ms cubic-bezier(0.9, 0, 0.33, 1);
}

    .menu-btn:hover {
        background-color: #252d45 !important;
    }


.header-user-fullname {
    font-size: 0.875rem;
    color: #3c4043;
    max-width: min(40vw, 14rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /*margin-right: 0.5rem;*/
    font-weight: bold;
    flex-shrink: 1;
}

@media (max-width: 520px) {
    .header-user-fullname {
        font-size: 0.6rem;
        /* margin-right: 2rem; */
        padding-right: 4rem;
    }
}

.sliding-nav-header .btn-logout {
    color: #5a5a5a !important;
}

    .sliding-nav-header .btn-logout:hover {
        color: var(--pcg-primary, #052924) !important;
    }

.btn-logout-icon {
    min-width: 44px !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0.5rem !important;
}

.menu-btn .rz-icon {
    color: var(--reportHub-text) !important;
    transition: transform 700ms cubic-bezier(0.9, 0, 0.33, 1);
}

.sliding-nav {
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-320px);
    height: 100vh;
    width: var(--reportHub-sidebar-width);
    transition: all 800ms cubic-bezier(0.8, 0, 0.33, 1);
    border-radius: 0 0 100% 50%;
    background: var(--reportHub-sidebar-bg);
    border-right: none;
    outline: none;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
    z-index: 1000;
}

    .sliding-nav.nav-open {
        transform: translateX(0);
        border-radius: 0;
        background: var(--reportHub-sidebar-bg);
    }

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    animation: fadeIn 300ms ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.sliding-nav .nav-links {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1.5rem 0.75rem 2rem 1rem;
    box-sizing: border-box;
    gap: 0.5rem;
    transform: translateX(-100px);
    opacity: 0;
    transition: all 900ms cubic-bezier(0.9, 0, 0.33, 1);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-color: rgba(255, 255, 255, 0.28) var(--reportHub-sidebar-bg);
    scrollbar-width: thin;
}

    .sliding-nav .nav-links::-webkit-scrollbar {
        width: 8px;
    }

    .sliding-nav .nav-links::-webkit-scrollbar-track {
        background: var(--reportHub-sidebar-bg);
    }

    .sliding-nav .nav-links::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.28);
        border-radius: 4px;
    }

        .sliding-nav .nav-links::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.4);
        }

    .sliding-nav .nav-links.fade-in {
        opacity: 1;
        transform: translateX(0);
    }

.sliding-nav .sidebar-brand {
    margin-bottom: 1.25rem;
}

.sliding-nav .logo-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

    .sliding-nav .logo-circle .rz-image,
    .sliding-nav .logo-circle img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.sliding-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-family: sans-serif;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: all 300ms cubic-bezier(0.9, 0, 0.33, 1);
}

    .sliding-nav .nav-link .rz-icon {
        font-size: 1.25rem;
        color: var(--reportHub-text) !important;
    }

    .sliding-nav .nav-link:hover {
        color: rgba(255, 255, 255, 1);
        background-color: rgba(255, 255, 255, 0.1);
    }

    .sliding-nav .nav-link.active {
        background-color: var(--reportHub-accent) !important;
        color: var(--reportHub-text) !important;
    }

        .sliding-nav .nav-link.active .rz-icon {
            color: var(--reportHub-text) !important;
        }

.nav-sidebar-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.nav-sidebar-search-icon {
    position: absolute;
    left: 0.65rem;
    z-index: 1;
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 1.15rem !important;
    pointer-events: none;
}

.nav-sidebar-search .nav-sidebar-search-input,
.nav-sidebar-search .rz-textbox {
    width: 100% !important;
    padding-left: 2.35rem !important;
    padding-right: 2.25rem !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 0.9rem !important;
}

    .nav-sidebar-search .nav-sidebar-search-input::placeholder,
    .nav-sidebar-search .rz-textbox::placeholder {
        color: rgba(255, 255, 255, 0.5) !important;
    }

.nav-sidebar-search-clear {
    position: absolute;
    right: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
}

    .nav-sidebar-search-clear:hover {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
    }

.nav-favoritos-section {
    width: 100%;
}

.nav-favoritos-toggle .nav-favoritos-header-img {
    flex-shrink: 0;
    object-fit: contain;
    opacity: 0.95;
}

.nav-favorito-row-img {
    flex-shrink: 0;
    object-fit: contain;
    opacity: 0.9;
}

.nav-favorito-item {
    align-items: center;
}

.nav-reportes-section {
    width: 100%;
}

.nav-reportes-categorias {
    padding-left: 0.5rem;
    margin-top: 0.25rem;
    overflow: visible;
}

.nav-reportes-sin-resultados {
    margin: 0.5rem 0 0 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.nav-back-to-top-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1002;
    width: 52px;
    height: 52px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: var(--pcg-primary, #052924);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(5, 41, 36, 0.45);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

    .nav-back-to-top-fab:hover {
        background: var(--pcg-accent, #0d6b5c);
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(5, 41, 36, 0.5);
    }

    .nav-back-to-top-fab .rz-icon {
        color: #fff !important;
    }

.nav-reportes-toggle {
    cursor: pointer;
}


.nav-reportes-loading {
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    --rz-progressbar-value-background-color: var(--pcg-accent-light, #0e7d6c);
    --rz-progressbar-background-color: rgba(255, 255, 255, 0.18);
}

    .nav-reportes-loading .rz-progressbar-circular-value {
        stroke: var(--pcg-accent-light, #0e7d6c) !important;
    }

    .nav-reportes-loading .rz-progressbar-circular-background {
        stroke: rgba(255, 255, 255, 0.22) !important;
    }

.nav-categoria {
    margin-bottom: 0.5rem;
}

.nav-categoria-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    border-radius: 6px;
}

    .nav-categoria-header:hover {
        background-color: rgba(255, 255, 255, 0.08);
    }

.nav-reportes-list {
    padding-left: 1.25rem;
    margin-top: 0.25rem;
}

.nav-reporte-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    border-radius: 6px;
}

    .nav-reporte-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 1);
    }
