.wrapper {
    position: absolute;
    overflow: hidden;
    width: 15rem;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

/* Elementos hijo directamente (que serían: nav y content) */
.wrapper > * {
    overflow: auto;
    flex: 1 1 auto;
}

.vertical-nav {
    min-width: 15rem;
    width: 15rem;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s;
}

.sidebar-submenu {
    display: none !important;
}

.sidebar-submenu.is-open {
    display: block !important;
}

#sidebar .nav-link {
    cursor: pointer;
}

#sidebar .nav-link.sidebar-active {
    background-color: #63BBB2 !important;
    color: #1D635D !important;
    font-weight: 600;
}

#sidebar .nav-link.sidebar-active i {
    color: #1D635D !important;
}

#sidebar .nav-link.sidebar-group-active {
    background-color: rgba(99, 187, 178, 0.28) !important;
    color: #1D635D !important;
}

.page-content {
    width: calc(100% - 15rem);
    margin-left: 15rem;
    transition: all 0.4s;
}

#sticky-footer {
    width: calc(100% - 15rem);
    margin-left: 15rem;
    transition: all 0.4s;
}

#sticky-footer.active {
    width: 100%;
    margin-left: 0;
}

#sidebar.active {
    margin-left: -15rem;
}

#content.active {
    width: 100%;
    margin: 0;
}

@media (max-width: 1200px) {

    .wrapper {
        position: absolute;
        overflow: hidden;
        width: 13rem;
        height: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
    }

    /* Elementos hijo directamente (que serían: nav y content) */
    .wrapper > * {
        overflow: auto;
        flex: 1 1 auto;
    }

    .vertical-nav {
        min-width: 13rem;
        width: 13rem;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
        transition: all 0.4s;
    }

    .page-content {
        width: calc(100% - 14rem);
        margin-left: 14rem;
        transition: all 0.4s;
    }

    #sticky-footer {
        width: 100%;
        margin-left: 0;
        transition: all 0.4s;
    }

    #sticky-footer.active {
        width: calc(100% - 14rem);
        margin-left: 14rem;
    }

    #sidebar.active {
        margin-left: -14rem;
    }

    #content.active {
        width: 100%;
        margin: 0;
    }

    #sidebar {
        margin-left: -14rem;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content {
        width: 100%;
        margin: 0;
    }
    #content.active {
        margin-left: 14rem;
        width: calc(100% - 14rem);
    }
}


/* ── Modo móvil: sidebar overlay, no empuja contenido ── */
@media (max-width: 999px) {

    .vertical-nav {
        min-width: 13rem;
        width: 13rem;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1050;
        box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
        transition: all 0.4s;
    }

    .page-content {
        width: 100%;
        margin-left: 0;
        transition: none;
    }

    #sticky-footer {
        width: 100%;
        margin-left: 0;
        transition: none;
    }

    /* Oculto por defecto */
    #sidebar {
        margin-left: -13rem;
    }

    /* Visible al activar */
    #sidebar.active {
        margin-left: 0;
    }

    /* Content NUNCA se mueve */
    #content {
        width: 100% !important;
        margin: 0 !important;
    }
    #content.active {
        width: 100% !important;
        margin: 0 !important;
    }

    #sticky-footer.active {
        width: 100%;
        margin-left: 0;
    }

    /* Backdrop */
    .sidebar-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1040;
    }
    .sidebar-backdrop.show {
        display: block;
    }
}
/*
*
* ==========================================
* FOR DEMO PURPOSE
* ==========================================
*
*/
.separator {
    margin: 3rem 0;
    border-bottom: 1px dashed #fff;
}

.text-uppercase {
    letter-spacing: 0.1em;
}

.text-gray {
    color: #aaa;
}
