/* °°°° SIDEBAR °°°°*/
.treeview{
    cursor: pointer;
}

.treeview-item{
    cursor: pointer;
}

.app-menu__item{
    cursor: pointer;
}

/* °°°° LOGIN °°°°*/
.cover{
    background-image: url("../img/fondo.PNG");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 100vh !important;
}
.login-content .login-box {
    background-color: #ffffff94;
    border-radius: 5px;
}
.login-content .login-box .login-head{
    border: none;
    padding-bottom: 0;
}
.login-content .login-box label {
    color: black;
}
.swal2-popup.swal2-toast {
    background-color: #ffffff !important;
}
.btnAccionesTabla{
    height: 30px;
}

.btn-blue{
    background-color: #0d6efd !important;
    color: white !important;
    border-color: #0d6efd !important;
} 

.btn-outline-blue{
    background-color: white;
    color: #0d6efd;
    border-color: #0d6efd;

    &:hover{
        background-color: #0d6efd !important;
        color: white !important;
    }
}



.btnAccionesTabla i{
    margin: 0 !important;
}

/* °°°° SELECT2 °°°°*/
.select2-container--default .select2-selection--single {
    padding: 0.375rem 0.75rem;
    height: auto !important;
    border: 2px solid var(--bs-border-color) !important; 
}

.select2-container--default:focus{
    background-color: red !important;
}

.select2-selection__arrow{
    height: 98% !important;
}


.select2-selection__rendered{
    line-height: 1.5 !important;
    padding: 0 !important;
}

.select2-container--open .select2-dropdown--below{
    border: 2px solid var(--bs-border-color) !important; 
}


.select2-search__field:focus-visible {
    outline: none !important;
}

.select2-search__field{
    border-radius: 4px;
    border: 2px solid var(--bs-border-color) !important;
}

.select2-search__field:focus {
    outline: none !important;
    border-color: #00695C !important;
    outline: 0 !important;
}

.modal-body-frmdl{
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: var(--bs-modal-padding);
}


.dif-pass-feedback{
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--bs-form-invalid-color);
}

.invalid-input{
    border-color: var(--bs-form-invalid-border-color) !important;
    padding-right: calc(1.5em + 0.75rem);
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    background-image: none !important;
}

/* °°°° LOADER °°°°*/

.loader-section{
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    position: fixed;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    z-index:999;
    transition: all 1s 1s ease-out;
    opacity:1;
}
.loaded{
    opacity:0;
    z-index:-1;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #623ddb;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
} 

/* TABLA DE PERMISOS */
/* #tblEditarPermisos tbody tr td{
    display: flex;
    justify-content: center;
    align-items: center;
} */

.cell-wrap-center{

}

#tblEditarPermisos tbody tr td .form-check{
    padding-left: 0 !important;
}



.cell-wrap-center{
    height: 44px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-icon{
    & i{
        margin-right: 0 !important;
        font-size: 16px !important; 
    }
}

#tblPermisosUsuario tbody tr td, #tblPermisosUsuario thead tr th{
    text-align: center ;
}

.cstm-modal-lg .modal-dialog{
    max-width: 600px !important;
}

.pr-non{
    padding-right: 0 !important;
}


/* 
    ······ Contenedor de entradas ······ 
*/
.entrada-container{
    margin: -30px -30px 30px;
}

/* 
    ······ Tabs Invertidas ······ 
*/
.tab-inverted{
    & .nav-item{
        border-radius: 10px 0 10px 10px !important;
    }

    & .nav-link{
        border-radius: 0 0 10px 10px !important;
    }
}

/* 
    ······ Estilos de tablas ······ 
*/
/* Headers de tablas centrados */
/* .thead-center thead tr th .th-cont{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
} */

/* Headers de tablas centrados */
.thead-center tbody tr td{
    vertical-align: middle;
}

.nav-link{
    background-color: #ffffff3f;
}

.was-validated .form-control:invalid + span > span > span{
    border-color: var(--bs-form-invalid-border-color) !important; 
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(1.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:valid + span > span > span{
    border-color: var(--bs-form-valid-border-color) !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(1.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.txtCantidadProducto{
    width: 115px;
}

@media (max-width: 550px){
    #tblEditarPermisos thead tr th{
        height: 61px;
    }

    /* °°°° TABLA RESPONSIVA °°°°*/
    .table-responsive{
        width: 100%;
        border-collapse: collapse;
        border-spacing: 0;
        display: block;
        position: relative;
    }
    
    .table-responsive thead{
        border: 0;
        border-right: 1px solid rgba(0,0,0,0.12);
        display: block;
        float: left;
        background-color: #ffffff;
        color: white;
    }

    .table-responsive thead tr th{
        border: none;
    }
    
    .table-responsive tbody{
        background-color: #ffffff !important;
    }
    
    .table-responsive thead tr{
        display: block;
        padding: 0 10px 0 0;
        border-bottom: none;
    }
    
    .table-responsive th{
        display: block;
        text-align: right;
        margin: 0;
        vertical-align: top;
    }
    
    .table-responsive tbody{
        display: block;
        width: auto;
        position: relative;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .table-responsive tbody tr{
        display: inline-block;
        vertical-align: top;
        padding: 0;
    }
    
    .table-responsive tr{
        border-bottom: none;
        padding: 0 10px;
    }
    
    .table-responsive td{
        display: block;
        min-height: 1.25em;
        text-align: left;
        margin: 0;
        vertical-align: top;
    }
    
    .table-responsive thead tr th:last-child{
        border-bottom: none;
    }
    
    .table-responsive tbody tr td:last-child{
        border-bottom: none;
    }

    .table-resposive-dhead{
        display: flex;
        justify-content: center;
    }

    /* 
    ······ Contenedor de entradas ······ 
    */
    .entrada-container{
        margin: -15px -15px 15px;
    }
}

@media (max-width: 767px){
    .app.sidenav-toggled .app-sidebar {
        left: -230px;
    }

    .app .app-sidebar {
        left: 0;
    }

    .app .app-sidebar__overlay {
        visibility: visible;
    }

    .app.sidenav-toggled .app-sidebar__overlay {
        visibility: hidden;
    }
}
