:root {
    /* colores 
--headercolor: #c8edf1; */

    --bgcolor: #6a6a6a;
    --bgtarget: #faf9f9;
    --shadow: rgba(107, 100, 100, 0.575);
    --colorletra: rgb(17, 16, 16);
    --bluebtn: #4bcffa;
    --hoverfc: #5a6589;
    --bgctnpage: #f5f5f5;
    --bgfactura: #d2dae2;
    --btndarkcolor: #212529;
    --headercolor: #49a9b5;
}

.border-1px {
    border-radius: 8px;
    border: 1px solid var(--shadow);
}

.borderb-1px {
    border-bottom: 1px solid var(--shadow);
}

/* * {
    outline: 1PX solid red;
} */

.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* PARA SWAL */
/* Modificar fondo de swal */
/* Solo aplicar fondo y blur si NO es un toast */
body:not(.swal2-toast-shown) .swal2-backdrop-show {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}

/* .swal2-backdrop-show {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
} */

.custom-swal {
    font-size: 12px;
    padding: 10px;
}

.custom-swal .swal2-title {
    color: #000;
}

.toast-swal {
    font-size: 12px;
    background: #fff;
    backdrop-filter: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px 15px;
}

/* FIN PARA SWAL */
label.required::after {
    content: " *";
    color: red;
}

.bgvideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.contenedor {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    background-color: var(--bgtarget);
    backdrop-filter: blur(20px);
}

.tarjeta-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    gap: 1px;
    width: 390px;
    height: 450px;
    border-radius: 16px;
    background: var(--bgtarget);
    box-shadow: 0px 0px 7px 3px var(--shadow);
    position: relative;
}

.logo {
    width: 190px;
    height: 150px;
}

.contenedor-input {
    display: flex;
    flex-direction: column;
    min-width: 90%;
    min-height: 30%;
    justify-content: space-around;
}

.input {
    outline: none;
    min-width: 75%;
    padding: 10px 0px;
    background-color: transparent;
    border: none;
}

.ctninput {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: rgb(228, 228, 238);
    border-radius: 5px;
    position: relative;
}

.icon {
    font-size: 20px;
}

.eyed {
    position: absolute;
    right: 6px;
    cursor: pointer;
    font-size: 25px;
}

/*Estilos del spinner*/
.spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    position: absolute;
    height: 100%;
    width: 100%;
    animation: blur 2s linear;
}

#spinner::before {
    content: '';
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 5px solid rgb(217, 217, 217);
    border-right-color: var(--headercolor);
    animation: girar 1s linear infinite;
}

.spinner.ocultar {
    display: none;
}

@keyframes girar {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }

}

@keyframes blur {
    0% {
        backdrop-filter: blur(10px);
    }

    50% {
        backdrop-filter: blur(8px);
    }

    100% {
        backdrop-filter: blur(.5px);
    }
}

/*Fin de estilos de spinner*/
/*Estilos de dashboard*/
/*Estilos del contenedor*/
.contentdash {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    position: relative;
}

.ctnpage {
    display: flex;
    justify-content: flex-start;
    height: 98dvh;
    overflow-y: auto;
    /* background-color: var(--bgctnpage); */
}

.backgroundIMG {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--shadow);
}

.backgroundIMG img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px);
    opacity: 0.8;
}

@media screen and (max-width: 768px) {
    .backgroundIMG img {
        width: 100%;
        height: 100%;
    }
}

/*Fin Estilos del contenedor*/
/*Estilos del header*/
.ctnheader {
    position: relative;
    display: flex;
    justify-content: space-between;
    height: 5vh;
    background-color: var(--headercolor);
}

/* .container_menu {
    outline: 1px solid red;
} */

.container_menu a {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 100%;
}

.hambur {
    color: white;
    font-size: 40px;
    font-weight: lighter;
}

.container_menu:hover>.ctn_logo {
    transform: translateX(0px);
    opacity: 1;
    z-index: 1;
    transition: all .5s;
}

.ctn_logo {
    transform: translateX(-15px);
    opacity: 0;
    z-index: -1;
    transition: all .1s;
}

#btn_logo {

    width: 30px;
    height: 30px;
    background-color: #fff;
    border-radius: 50%;
}

.perfil {
    display: flex;
    justify-content: space-between;
    width: 200px;
    position: absolute;
    right: 1px;
    height: 100%;
}

.perfil .user {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 100%;
    color: white;
}

.perfil-nombre {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: white;
    font-size: 12px;
    margin: 0;
}

.ctn_perfil {
    display: grid;
    justify-items: center;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    transition: all .2s;
    width: 100vw;
    height: calc(100vh - 2vh);
    gap: 20px;
    padding: 20px;
}

.icondrop {
    font-size: 20px;
    color: white;
    transition: all .2s;
}

.icondrop.active {
    transition: all .2s;
    transform: rotate(180deg);
}

.btndrop {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 100%;
    cursor: pointer;
    border: none;
    background-color: transparent;
}

.ctn_perfil .perfil_box {
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all .5s;
    border: 1px solid var(--shadow);
    overflow: hidden;
}



/*Estilos del menudrop*/
.boxdrop {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 150px;
    height: 70px;
    right: 2px;
    bottom: -71px;
    box-shadow: 0px 0px 7px 3px var(--shadow);
    border-radius: 5px;
    background-color: white;
}

.boxdrop.active {
    display: flex;
    z-index: 1000;
}

.dropmenu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.drop_menu_option {
    display: flex;
    text-decoration: none;
    justify-content: left;
    align-items: center;
    width: 90%;
    height: 50%;
    gap: 10px;
    border-radius: 5px;
    transition: all .1s;
}

.drop_menu_option:hover {
    background-color: var(--bgtarget);
}

.drop_menu_option i,
.drop_menu_option div {
    display: flex;
    align-items: center;
    color: black;
    height: 100%;
}

/*Fin Estilos del menudrop*/
.canvas_menu {
    display: none;
}

/*Fin Estilos del header*/
/* /* Estilos del footer */
.ctnfooter {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    bottom: 0%;
    height: 2vh;
    background-color: var(--headercolor);
    z-index: 1;
}

.text-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff47;
    height: 100%;
    font-size: 10px;
}

/* Fin Estilos del footer */
/*Estilos de la barra lateral*/
#sidebar {
    background: rgb(255, 255, 255);
    border-radius: 0px 12px 12px 0px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    width: 300px;
}

.sidebarop {
    width: 100%;
    height: 60px;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 4px;
    margin-top: 10px;
    transition: all .2s;
    color: var(--colorletra);
}

/*Fin Estilos de la barra lateral*/

.sidebarop:hover {
    border-radius: 10px;
    color: var(--bgtarget);
    transition: all .1s;
    background-color: var(--headercolor);
}


.ctnform {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transition: all .7s;
    width: 90vw;
    height: 45vh;
}

.ctnform.active {
    transform: translateX(-52px);
    position: absolute;
    margin: auto;
    right: 0px;
    width: 94vw;
    transition: all .7s;
}

.targetform {
    width: 90%;
}

/* Estilos del componente tarjeta */
.targetdash {
    width: 100%;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    border-radius: 8px;
    transition: all .5s;
    border: 1px solid var(--shadow);
    overflow: hidden;
    text-decoration: none;
    color: var(--colorletra);
    background-color: var(--bgtarget);
}

.target_sugerido {
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all .5s;
    border: 1px solid var(--shadow);
    overflow: hidden;
    text-decoration: none;
    color: var(--colorletra);
}

.target_sugerido .target_logo {
    width: 60px;
    height: 60px;
}

.registrar_ctn .card-usuario-registrar {
    width: 100%;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all .5s;
    border: 1px solid var(--shadow);
    overflow: hidden;
}

.targetdash:hover,
.target_sugerido:hover,
.card-usuario-registrar:hover,
.perfil_box:hover {
    box-shadow: 0px 0px 6px 2px var(--shadow);
}

.target_logo {
    width: 60px;
    height: 60px;
}

.logo #muela_svg {
    fill: rgb(82, 150, 240);
    /* Color de relleno */
}

.logo #muela_svg {
    animation: cellphone 3.5s ease-in-out infinite;
    /* transform-origin: 200px 200px; */
    /* Color de relleno */
}


@keyframes cellphone {
    0% {
        transform: translateY(0px);
    }

    25% {
        transform: translateY(-1px);
    }

    75% {
        transform: translateY(1px);
    }

    100% {
        transform: translateY(0px);
    }

}

.tarjeta-body {
    width: 100%;
    height: 100%;
}

.targettitle {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    height: auto;

}


.navar {
    display: none;
}

/*Estilos para offcanvas sidebar*/


/*Estilos para la tabla de pacientes*/
.ctnacciones,
.ctnacciones div {
    display: flex;
    height: 100%;
    justify-content: space-around;
    align-items: center;
}

.btnacciones {
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    background-color: var(--btndarkcolor);
    color: white;
}

.dropdown-menu .listitem {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-menu .delete {
    color: red;
}

.dropdown-menu .delete:hover {
    color: red !important;

}

.dropdown-item:active,
.dropdown-item:focus {
    background-color: #0f0f0f !important;
    color: #f9f6f6 !important;
}

/*estilos para el formulario facturas */
.ctnfact {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transition: all .7s;
    height: calc(100vh - 7vh);
    width: 100vw;
}

#formfactura {
    width: 99%;
}

#form_timbrado,
#form_timbrado input {
    font-size: 12px;
}

.datosfactura {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 16%;
}

.titlefact {
    background-color: var(--bgfactura);
}

.headerfact {
    height: 92px;
    background-color: var(--bgfactura);
}

.seccionbuscador {
    border: 1px solid red;
    padding: 0;
    width: 100%;
    height: 50px;
    background-color: (var(--bgfactura));
}

.select2 {
    width: 100%;
}

.lablefact {
    font-size: 11px;
}

.inputform {
    width: 100%;
    font-size: 10px !important;
}

.inputbody {
    display: block;
    width: 100%;
    padding: 4px 3.5px;
    line-height: 1.5;
    color: #212529;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #dee2e6;
    border-radius: 2px;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    font-size: 10px;
    height: 25px;
}

.datosIVA {
    display: flex;
    align-items: center;
    height: 100%;
    width: 16%;
}

.baseizquierda {
    width: 80%;
}

.body_factura {
    height: 440px;
    font-size: 10px;
}

.datostotal {
    display: flex;
    justify-content: end;
    height: 100%;
    width: 16%;
}

.icondelete {
    font-size: 25px;
}

.ctnbtns {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    height: 65px;
    border-top: 1px solid rgba(137, 135, 135, 0.789);
}

.ctnbtns .btns {
    width: 180px;
}

.ctnproducto {
    display: flex;
    flex-direction: row;
    background-color: var(--bgfactura);
}

/* Sección de reportes */

.ctnreport {
    display: flex;
    align-items: center;
    height: calc(100vh - 7vh);
    width: 60vw;
}

.reporte_contenedor_form {
    width: 100%;
}

.reporte_fecha {
    width: 40%;
    height: 100%;
    margin: 1px;
    padding: 5px;
}

.containerta {
    font-size: 12px;
}

.tablareport {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Fin Seccion Reporte */
/* Seccion pagina de perfil */
.perfil_ctn {
    width: 100%;
    height: 93vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
}

.perfil_ctn .perfil_box {
    width: 350px;
    height: 300px;
    border-radius: 5px;
    box-shadow: 0px 0px 20px 5px var(--shadow);
}

.mensaje_error_password {
    font-size: 12px;
    visibility: hidden;
    height: 17px;
}

.mensaje_error_password.active {
    visibility: visible;
}

/* Fin seccion pagina de perfil */
/* Seccion registrar paciente */
.ctnpage .ctn-superior {
    height: auto !important;
}

.ctnpage .ctn-inferior {
    margin-bottom: 10px;
}

/* Fin Seccion registrar paciente */
/* Seccion pagina de registrar usuario */
.registrar_ctn,
.perfil_box_group {
    display: grid;
    justify-items: center;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    transition: all .2s;
    width: 100vw;
    height: calc(100vh - 10vh);
    gap: 20px;
    padding: 20px;
}

.form_usuario_logo {
    width: 100vw;
    height: 15vh;
}

#form_create_user label::after {
    content: '*';
    color: red;
}

.user_group_input {
    height: 80px;
}

.card_form {
    width: 600px;
    height: 75vh;
}


@keyframes pulse {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(270deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

#iconshufle.active {
    animation: pulse 0.5s;
}

/* Fin seccion pagina de registrar usuario */

/* Seccion pagina no permission */
.no-permission-body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 98vh;
    width: 100vw;
    background-color: #f8d7da;
    color: #721c24;
    text-align: center;
}

.no_permission {
    background: white;
    padding: 8px 80px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #f5c6cb;
}

.no_permission div {
    font-size: 70px;
}

/*Fin seccion pagina no permission */
/* Seccion Invoice */
.invoice-container {
    max-width: 600px;
    margin: auto;
    border: 1px solid #ddd;
    padding: 20px;
}

.invoice-container img {
    width: 150px;
}

h2 {
    text-align: center;
}

.invoice-header,
.invoice-details {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.invoice-header th,
.invoice-header td,
.invoice-details th,
.invoice-details td {
    border: 1px solid #ddd;
    padding: 8px;
}

.invoice-header th {
    background-color: #f2f2f2;
}

/* Fin seccion Invoice */

/*Estilos para smartphones*/
@media screen and (min-width:320px) and (max-width: 768px) {
    .perfil {
        display: none;
    }

    .container_menu {
        width: 100%;
        height: 100%;
        justify-content: space-between;
        flex-direction: row-reverse;
        padding: 0px 10px;
    }

    .canvas_menu {
        border: 1px solid var(--shadow);
        border-radius: 8px;
        padding-left: 11px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .canvas_menu span {
        width: 95%;
        height: 1px;
        background-color: var(--shadow);
    }

    .ctn_logo {
        transform: translateX(0px);
        opacity: 1;
        z-index: 1;
    }

    .canvas_menu a {
        text-decoration: none;
        color: var(--btndarkcolor);
        margin: 10px 0px;
    }

    /* Seccion dashboard */
    #time {
        display: none;
    }

    .targetdash {
        min-height: 130px;
        width: 95%;
        margin-bottom: 10px;
        box-shadow: 0px 0px 2px .5px var(--shadow);
    }

    .targetdash .target_logo {
        width: 80px;
    }

    /* Fin Seccion dashboard */
    #form_timbrado div {
        flex-direction: column;
        /* width: 90vw; */
        padding: 2px;
    }



    .ctnproducto {
        display: flex;
        flex-direction: row;

    }

    .bgvideo {
        display: none;
    }

    .ctnproducto select {
        width: 70% !important;
    }

    .tarjeta-login {
        width: 340px;
        height: 410px;
        gap: 1px;
    }

    .body_factura {
        margin-bottom: 1px !important;
    }

    .ctnheader {
        position: sticky;
        top: 0px;
        z-index: 100;
    }

    .targetform {
        width: 100%;
    }

    .targetfact {
        width: 96%;
    }

    /* Seccion reporte */
    .reporte_fecha {
        width: 49%;
        margin: 1px;
    }

    .containerta {
        font-size: 12px;
        width: 100%;
        overflow-y: scroll;
    }

    .tablareport {
        overflow-x: scroll;
        justify-content: left;
    }

    .ctnreport {
        width: 90%;
    }

    /* Fin seccion reporte */
    /* Seccíon perfil y contraseña*/

    .ctn_perfil {
        width: 100%;
        height: auto;
        /* display: flex;
        flex-direction: column; */
        /* justify-content: flex-start;
        align-items: center; */
    }

    .ctn_perfil .perfil_box {
        align-items: flex-start;
        justify-content: flex-start;
        width: 95%;
        height: 310px;
        min-height: 310px;
    }


    /*Fin seccíon perfil y contraseña */
    .ctnbtns {
        justify-content: center;
        gap: 4px;
        align-items: center;
        height: 107px;
        flex-direction: column;
    }

    .ctnbtns .btns {
        width: 100%;
    }

    .factuinput {
        width: 100%;
    }

    .datosfactura {
        width: 98%;
        padding: 0px 20px 0px 20px;
    }

    .headerfact {
        height: 440px;
        background-color: var(--bgfactura);
        flex-direction: column;
        align-items: center;

    }

    /* Seccion pagina de registrar usuario */
    .registrar_ctn {
        width: 100%;
        height: 93vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .card-usuario-registrar {
        width: 350px;
        height: 160px;
        box-shadow: 0px 0px 7px .5px var(--shadow);
        margin: 10px;
    }

    .registrar_ctn .card-usuario-registrar {
        height: 200px;
        min-height: 200px;
    }

    .user_group_input {
        height: 55px;
    }

    .card_form {
        height: 91vh;
    }

    .acciones_rapidas {
        justify-content: space-around;
    }

    /* Fin seccion pagina de perfil */
    /* Seccion pagina no permission */


    .no_permission {
        background: white;
        width: 96%;
        padding: 8px 8px;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        border: 2px solid #f5c6cb;
    }

    .no_permission div {
        font-size: 60px;
    }

    /*Fin seccion pagina no permission */
    /* Seccion registrar paciente */
    .ctnpage {
        width: 100%;
        height: 95vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .ctnpage .ctn-superior {
        height: auto !important;
    }

    .ctnpage .ctn-inferior {
        margin-bottom: 10px;
    }

    .container-registrar-paciente form {
        justify-content: space-between;
        height: 925px;
    }


    /* Fin Seccion registrar paciente */

}

/*Estilos para tablets y algunos telefonos*/
@media screen and (min-width:769px) and (max-width: 1201px) {
    .grid_datos_paciente {
        flex-direction: column;
    }

    #ctn_grid_facturacion {
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding: 0px;
        gap: 20px;
    }

    #card_pagosPendientes,
    #card_pagosCancelados,
    #card_extractos {
        width: 100%;
        height: 460px;
    }

    .perfil {
        display: none;
    }

    .container_menu {
        width: 100%;
        height: 100%;
        justify-content: space-between;
        flex-direction: row-reverse;
        padding: 0px 10px;
    }

    .ctn_logo {
        transform: translateX(0px);
        opacity: 1;
        z-index: 1;
    }

    .canvas_menu {
        border: 1px solid var(--shadow);
        border-radius: 8px;
        padding-left: 11px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .canvas_menu a {
        text-decoration: none;
        color: var(--btndarkcolor);
        margin: 10px 0px;
    }
}

.dt-search input,
.dt-length select,
.dt-paging li button {
    font-size: 12px !important;
}