/* Fallback para estilos de componentes cuando no se inyecta scoped CSS en Web */

.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

.page main {
    flex: 1;
}

.page .sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.page .top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.page .top-row a,
.page .top-row .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
    text-decoration: none;
}

.page .top-row a:hover,
.page .top-row .btn-link:hover {
    text-decoration: underline;
}

.page .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.page .nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

.page .nav-item:first-of-type {
    padding-top: 1rem;
}

.page .nav-item:last-of-type {
    padding-bottom: 1rem;
}

.page .nav-item .nav-link {
    color: #d7d7d7;
    background: none;
    border: none;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
    width: 100%;
}

.page .nav-item a.active {
    background-color: rgba(255, 255, 255, 0.37);
    color: white;
}

.page .nav-item .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.page .nav-scrollable {
    display: none;
}

.page .navbar-toggler:checked ~ .nav-scrollable {
    display: block;
}

@media (max-width: 640.98px) {
    .page .top-row {
        justify-content: space-between;
    }

    .page .top-row a,
    .page .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .page .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .page .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .page .top-row.auth a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .page .top-row,
    /* .page article {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    } */

    .page .nav-scrollable {
        display: block;
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }

    .page .navbar-toggler {
        display: none;
    }
}
