.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    .logo {
        height: 4.9rem;
    }
    background-color: $primary;
    padding: 0.7rem $padding-h 0.7rem $padding-h;
    .toggle {
        color: white;
        font-size: 1.6rem;
        margin-left: 2rem;
        transition: $transition;
    }
    .toggle {
        &:hover {
            background-color: $primary-off;
        }
    }
    .h-right {
        span {
            color: $light;
            font-size: 1.2rem;
            font-weight: 600;
        }
        i {
            font-size: 1.6rem;
        }
    }
}

.flex {
    display: flex;
}

section {
    vertical-align: middle;
    height: 30vh;
    width: 100vw;
    position: absolute;
    top: 50%;
    margin-top: -15vh;
}

.loader {
    position: relative;
    width: 7vh;
    height: 7vh;
    border-radius: 50%;
    margin: 7vh;
    display: inline-block;
    vertical-align: middle;
}

/*LOADER-7*/

.loader-7 .line {
    width: 10px;
    position: absolute;
    border-radius: 0.2vw;
    bottom: 0;
    background: -webkit-gradient(linear, left top, left bottom, from(#3bafda), to(#00457c));
    background: -webkit-linear-gradient(top, #3bafda, #00457c);
    background: -o-linear-gradient(top, #3bafda, #00457c);
    background: linear-gradient(to bottom, #3bafda, #00457c);
}

.loader-7 .line1 {
    left: 0vh;
    -webkit-animation: line-grow 0.5s ease alternate infinite;
    animation: line-grow 0.5s ease alternate infinite;
}

.loader-7 .line2 {
    left: 2.5vh;
    -webkit-animation: line-grow 0.5s 0.2s ease alternate infinite;
    animation: line-grow 0.5s 0.2s ease alternate infinite;
}

.loader-7 .line3 {
    left: 5vh;
    -webkit-animation: line-grow 0.5s 0.4s ease alternate infinite;
    animation: line-grow 0.5s 0.4s ease alternate infinite;
}

.progress-bar {
    background-color: $primary;
    text-align: right;
    padding-right: 10px;
    color: $light;
}

.progress {
    margin-left: auto;
    margin-right: auto;
    width: 35%;
    height: 2.8px;
    margin-bottom: 20px;
    overflow: hidden;
    background-color: $border;
    border-radius: 10px;
    -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ----------------     KEYFRAMES    ----------------- */

@-webkit-keyframes line-grow {
    0% {
        height: 0;
    }
    100% {
        height: 75%;
    }
}

@keyframes line-grow {
    0% {
        height: 0;
    }
    100% {
        height: 75%;
    }
}

.loader-title {
    margin: 0 auto;
    text-align: center;
    color: $primary;
    font-size: 1.5rem;
    letter-spacing: 0.05vh;
    line-height: 1.4;
    white-space: nowrap;
}
// loader

// content
.main-content {
    display: flex;
    min-height: 100vh;
    flex-wrap: wrap;
    overflow: hidden;
    &.nav-closed {
        .sidebar {
            width: 0px;
            padding: 0rem;
            transition: $transition;
            position: relative;
            z-index: 10;
            .ent-logo,
            .nav-menu {
                opacity: 0;
                transition: $transition;
            }
        }
    }
    .sidebar {
        width: 230px;
        box-sizing: border-box;
        // box-shadow: 0 0 2rem 0 rgb(0 0 0 / 5%);
        overflow: hidden;
        transition: width 0.5s ease;
        padding: 1.4rem;
        background-color: $bg-cards;
        // position: relative;
        z-index: 1;
        .ent-logo {
            margin-top: 35px;
            width: 100%;
            background-color: $light;
            border-radius: $b-radius;
        }
        img {
            display: block;
            margin-left: auto;
            margin-right: auto;
        }
    }
    .nav-menu {
        margin-top: 5rem;
        ul {
            padding: 0;
            li {
                list-style: none;
                a {
                    color: $off-text;
                    font-weight: 500;
                    text-decoration: none;
                    font-size: 1.3rem;
                    display: flex;
                    padding: 12px;
                    white-space: nowrap;
                    transition: $transition;
                    border-radius: 5px;
                    margin-bottom: 7px;
                    position: relative;
                    i {
                        margin-right: 10px;
                        font-size: 1.3rem;
                        line-height: 20px;
                    }

                    &:hover,
                    &:active {
                        background-color: $i-card;
                        color: $light;
                    }
                    &:hover > i,
                    &:active > i {
                        color: $primary;
                    }
                }

                .submenu-item {
                    position: relative;
                    a {
                        &::after {
                            content: url(../assets/icons/chevron-down.svg);
                            color: $off-text;
                            position: absolute;
                            right: 10px;
                            transform: rotate(-90deg);
                            transition: $transition;
                        }
                    }
                    &.rotate-arrow {
                        a {
                            &::after {
                                transform: rotate(0deg);
                            }
                        }
                    }
                }
                .submenu {
                    margin-left: 25px;
                    border-left: 2px solid $primary;
                    height: 0px;
                    overflow: hidden;
                    transition: $transition;
                    &.third-level-menu {
                        border-left: 0px !important;
                        margin-left: 15px !important;
                    }
                }
            }
        }
    }
}

.page-content {
    // height: calc(100% - 50px);
    // width: calc(100% - 50px);
    display: flex;
    flex-direction: column;
    flex: 1;
}
.marquee {
    background-color: #1e1e1e;
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    marquee {
        color: $light;
        font-size: 12px;
        font-weight: 500;
        // padding: 0.8rem 0;
    }
    span {
        margin-right: 13px;
    }
    .marquee-ind {
        padding: 5px 5px 5px 5px;
        background-color: $i-card;
        padding: 0.8rem 0;

        &:nth-child(1) {
            border-right: 1px solid #3b3a3a;
        }
        h6 {
            margin-bottom: 2px;
            font-size: 1.2rem;
        }
        p {
            font-size: 1rem;
        }
    }
}

// content

.top-indicators {
    padding: 0.8rem 0.9rem;
    border-radius: $b-radius;
    color: $light;
    min-height: 90.63px;
    h4,
    p {
        padding: 0;
        margin: 0;
    }
    h4 {
        font-size: 1.2rem;
        font-weight: 800;
    }
    p {
        font-size: 0.75rem;
        font-weight: 500;
        color: $light;
    }
    i {
        font-size: 1.5rem;
    }

    &.alter {
        background: transparent linear-gradient(-270deg, #f99223 0%, #ce791d 100%) 0% 0% no-repeat padding-box;
        i,
        .data-ind {
            color: #854e13;
            font-weight: 800;
        }
    }

    &.scarlet {
        background: transparent linear-gradient(-270deg, #e74c3c 0%, #d44737 100%) 0% 0% no-repeat padding-box;
        i,
        .data-ind {
            color: #6d261e;
            font-weight: 800;
        }
    }

    &.ruby {
        background: transparent linear-gradient(-270deg, #ff4757 0%, #b4323d 100%) 0% 0% no-repeat padding-box;
        i,
        .data-ind {
            color: #83262e;
            font-weight: 800;
        }
    }

    &.light-blue {
        background: transparent linear-gradient(270deg, #4c9eac 100%, #63cfe3 0%) 0% 0% no-repeat padding-box;
        i,
        .data-ind {
            color: #3a7985;
            font-weight: 800;
        }
    }
    &.dark-blue {
        background: transparent linear-gradient(-270deg, #028dc4 0%, #0076a4 100%) 0% 0% no-repeat padding-box;
        i,
        .data-ind {
            color: #004d6b;
            font-weight: 800;
        }
    }
    &.green {
        background: transparent linear-gradient(-270deg, #20b398 0%, #26a28c 100%) 0% 0% no-repeat padding-box;
        i,
        .data-ind {
            color: #186153;
            font-weight: 800;
        }
    }
    &.purple {
        background: transparent linear-gradient(-270deg, #6648e8 0%, #452fa2 100%) 0% 0% no-repeat padding-box;
        i,
        .data-ind {
            color: #2a1e66;
            font-weight: 800;
        }
    }
    .data-ind {
        font-weight: 500;
        display: inline-block;
    }
}

.card {
    background: $bg-cards;
    padding: 0.9rem;
    min-height: 307px;
    .card-title {
        font-weight: 600;
        font-size: 0.8rem;
        color: $light;
    }

}

.chart-indicator{
   background-color: rgba(35, 35, 34, 0.6);
   height: 50px;
   width: 220px;
   border-right: 1px solid $border;
   &:first-child{
    border-radius: 10px 0 0 10px;
   }
   &:last-child{
    border-radius: 0px 10px 10px 0px;
    border: 0!important;
   }
}

.status-ind {
    .indicator {
        border-radius: $b-radius;
        padding: 0.3rem 0.6rem;
        margin-right: 0.5rem;
        font-size: 0.75rem;
        color: $light;
        border-radius: 5px;
    }
    .description {
        color: white;
        h6 {
            font-size: 0.8rem;
            font-weight: bold;
        }
        h6,
        p {
            margin: 0;
            padding: 0;
        }
    }
}

.number-ind {
    font-size: 1.5rem;
    color: white;
}

.donut-chart {
    %percent {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 0.9rem;
        color: $light;
        font-weight: 700;
    }
    .percent {
        @extend %percent;
    }
    .percent-st2 {
        @extend %percent;
        background-color: $i-card;
        border-radius: 50%;
        // padding: 2.3rem 1.6rem;
        width: 125px;
        height: 125px;
        z-index: 1;
        p {
            font-size: 0.65rem;
        }
    }
}

.btn-group {
    .btn-check:checked + .btn,
    .btn.active,
    .btn.show,
    .btn:first-child:active,
    :not(.btn-check) + .btn:active {
        color: $primary;
        background-color: $i-card;
        border-color: $border;
        font-size: 0.7rem;
        font-weight: 700;
    }
    .btn-outline-primary {
        --bs-btn-color: #545454;
        --bs-btn-border-color: #414141;
        --bs-btn-hover-color: #fff;
        --bs-btn-hover-bg: #0d6efd;
        --bs-btn-hover-border-color: $border;
        --bs-btn-focus-shadow-rgb: 13, 110, 253;
        --bs-btn-active-color: #fff;
        --bs-btn-active-bg: #0d6efd;
        --bs-btn-active-border-color: #0d6efd;
        --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
        --bs-btn-disabled-color: #0d6efd;
        --bs-btn-disabled-bg: transparent;
        --bs-btn-disabled-border-color: #0d6efd;
        font-size: 0.7rem;
        font-weight: 700;
    }
}

@media (max-width: 600px) {
    .sidebar {
        position: absolute;
        z-index: 100;
        height: 100vh;
    }
}

// botones

.bro-btn {
    background: transparent;
    border: 2px solid $primary;
    border-radius: $b-radius;
    font-size: 0.7rem;
    padding: 0.6rem 2rem;
    color: $light;
    font-weight: 600;
    transition: $transition;
    i {
        font-size: 1rem;
    }
    &.primary {
        border-color: $primary;
        &:hover {
            background: $primary;
            color: $light;
        }
    }
    &.neutral {
        border-color: $neutral;
        &:hover {
            background: $neutral;
            color: $light;
        }
    }
    &.secondary {
        border-color: $alter;
        &:hover {
            background: $alter;
            color: $light;
        }
    }
    &.error {
        border-color: $error;
        &:hover {
            background: $error;
            color: $light;
        }
    }
    &.success {
        border-color: $success;
        &:hover {
            background: $success;
            color: $light;
        }
    }
    &.secondary {
        border-color: $alter;
        &:hover {
            background: $alter;
            color: $light;
        }
    }
    &.warning {
        border-color: $warning;
        &:hover {
            background: $warning;
            color: $bg-primary;
        }
    }
}

// inputs
.form-control,
.form-select {
    &.bro {
        background-color: $i-card;
        border: 2px solid $border;
        color: $light;
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
        font-weight: 600;
        option {
            font-size: 0.9rem;
        }
        &:focus {
            background-color: $i-card;
            box-shadow: none;
            border: 2px solid #7c7c7c;
            color: $light;
        }
    }
}

// drag files

.drop-zone {
    width: 100%;
    min-height: 150px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 500;
    font-size: 20px;
    cursor: pointer;
    border: 2px dashed $border;
    border-radius: 10px;
    transition: $transition;
    .drop-zone__prompt {
        font-size: 1rem;
        color: $text;
        font-weight: 500;
    }
}
.drop-zone--over {
    border-color: $primary;
    transition: $transition;
    background-color: $i-card;
    .drop-zone__prompt {
        font-size: 1rem;
        color: $primary;
    }
}
.drop-zone__input {
    display: none;
}

.title-file {
    background-color: $i-card;
    padding: 0.5rem 0.8rem !important;
    border-radius: $b-radius;
    font-size: 1rem;
    font-weight: 600;
    width: 230px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    &::before {
        content: url(../assets/icons/file-csv.svg);
        color: $off-text;
        margin-right: 1rem;
        height: 1rem;
    }
}

// title modules
.title-mod {
    font-weight: 500;
    margin-bottom: 20px;
    i {
        color: $light;
        font-size: 1.5rem;
        margin-right: 1.3rem;
    }
    div {
        h5 {
            color: $light;
            margin-bottom: 0px;
        }
        small {
            font-size: $f-xsm;
            .active {
                color: $primary;
            }
            color: $text;
        }
    }
}

// Tabla
table {
    font-size: 0.8rem;
    --bs-border-color: #414141;
    .col {
        color: $light !important;
    }
    tr {
        color: $text !important;
    }
    .table-row-error {
        background-color: rgba($error, 0.07);
        td {
            color: $light;
            font-weight: 600;
            border-color: $error;
        }
    }
    .table-row-success {
        background-color: rgba($success, 0.07);
        td {
            color: $light;
            font-weight: 600;
            border-color: $success;
        }
    }
}

//alerts-bootstrapp
.alert-danger {
    background-color: rgba($error, 0.3);
    border: 0;
    h6 {
        font-size: $f-xsm;
        font-weight: bold;
    }
    .alert-link {
        color: $light;
    }
}

// Modals
.modal-content {
    --bs-modal-bg: #232323;
    .modal-header {
        --bs-modal-header-border-color: #414141;
    }
    .modal-footer {
        --bs-modal-footer-border-color: #414141;
    }
}
