@import "tailwindcss";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=fallback');


.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

/*botón deshabilitado*/
.btn.disabled,
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.h2 {
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.h3 {
    font-size: 1.875rem;
    font-weight: 800;
}

.h4 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

@media (min-width:768px) {
    .h1 {
        font-size: 3rem;
    }

    .h2 {
        font-size: 2.25rem;
    }
}

::-ms-reveal {
    display: none;
}

/* achica los botones de las modales en mobile*/
@media (max-width: 767.98px) {
    .modal-footer button.btn {
        padding: 0.25rem 0.5rem;
        /* px-2 py-1 */
        font-size: 0.875rem;
        /* text-sm */
    }
}

/*Custom inputs */

input.form-input[type="password"],
input.form-input,
form .form-input,
.form-textarea,
.form-multiselect,
.form-select,
.form-checkbox,
.form-radio {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    outline: none;
    box-shadow: none;
}

.form-checkbox {
    border-radius: 0.25rem;
}

form .form-input,
input.form-input,
input.form-input[type="password"],
form .form-textarea,
form .form-multiselect,
form .form-select {
    font-size: 0.875rem;
    color: #1f2937;
    line-height: 1.25rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease-in-out;
}

form .form-input:hover,
input.form-input[type="password"]:hover,
input.form-input:hover,
form .form-textarea:hover,
form .form-multiselect:hover,
form .form-select:hover {
    border-color: rgb(191 196 205);
}

form .form-input:focus,
input.form-input[type="password"]:focus,
input.form-input:focus,
form .form-textarea:focus {
    border-color: rgb(191 196 205);
    outline: none;
}

form .form-input::placeholder,
input.form-input[type="password"]::placeholder,
input.form-input::placeholder,
form .form-textarea::placeholder {
    color: #9ca3af !important;
}

.form-select {
    padding-right: 2.5rem;
}

.form-checkbox,
.form-radio {
    color: #4a8ef1;
    border: 1px solid #d1d5db;
}

.form-checkbox:checked,
.form-radio:checked {
    background-color: #4a8ef1;
    border-color: transparent !important;
}


/* Switch element */
.form-switch {
    position: relative;
    user-select: none;
    width: 44px;
}

.form-switch label {
    display: block;
    overflow: hidden;
    cursor: pointer;
    height: 1.5rem;
    border-radius: 9999px;
}

.form-switch label>span:first-child {
    position: absolute;
    display: block;
    border-radius: 9999px;
    width: 20px;
    height: 20px;
    top: 2px;
    left: 2px;
    right: 50%;
    transition: all 0.15s ease-out;
}

.form-switch input[type="checkbox"]:checked+label {
    background-color: #4a8ef1;
}

.form-switch input[type="checkbox"]:checked+label>span:first-child {
    left: 22px;
}

.form-switch input[type="checkbox"]:disabled+label {
    cursor: not-allowed;
    background-color: rgb(243, 244, 246);
    border: 1px solid rgb(229, 231, 235);
}

.form-switch input[type="checkbox"]:disabled+label>span:first-child {
    background-color: rgb(156, 163, 175);
}

/* Calendar Dates */
.calendar-dates-pr-error input,
.calendar-dates-pr input {
    border-radius: 5px;
    max-height: 40px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.calendar-dates-pr-error input {
    border-color: #f14a4a !important;
}

.calendar-dates-pr input {
    border-color: #4a8ef1;
}

.calendar-dates-pr-error button,
.calendar-dates-pr button {
    color: white;
}

.calendar-dates-pr .p-datepicker-trigger {
    background-color: #4a8ef1;
}

.calendar-dates-pr-error .p-datepicker-trigger {
    background-color: #f14a4a !important;
    border: none;
}

/* Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Selects */
.p-placeholder,
.p-inputtext {
    font-size: 0.875rem !important;
    line-height: 1.5715 !important;
}

.p-inputtext,
.p-multiselect-label {
    padding: 10px !important;
}

/* checkbox */
.p-checkbox-box {
    border: 1px solid #4a8ef1;
}

.p-checkbox.p-highlight .p-checkbox-box {
    background: rgba(74, 142, 241, 0.3);
    border: none;
}

/* multiselect */
.p-multiselect-panel {
    max-width: calc(100% - 30px);
    margin-left: 15px;
    overflow: hidden;
}

.p-multiselect-panel .p-multiselect-items .p-multiselect-item.p-highlight {
    color: #4a8ef1;
    background: rgba(74, 142, 241, 0.05);
}

.p-multiselect-panel .p-multiselect-items .p-multiselect-item.p-highlight.p-focus {
    background: rgba(74, 142, 241, 0.2);
}

.p-dropdown-item-label,
.p-multiselect-item span {
    word-wrap: break-word;
    /* Hace que las palabras largas se dividan al llegar al final del contenedor */
    overflow: hidden;
    /* Asegura que no haya desbordamiento horizontal */
    text-overflow: ellipsis;
    /* Agrega '...' al final si el texto es muy largo */
    white-space: normal;
    /* Asegura que el texto se pueda ajustar y no se quede en una sola línea */
}

@media (max-width: 575px) {

    .p-dropdown-item-label,
    .p-multiselect-item span {
        font-size: .8rem;
    }
}

/* Modal prime react */
.p-dialog-footer {
    padding: 0 0 10px;
}


/*Para Datatables  */
.table-responsive {
    overflow-x: auto;
    display: grid;
}

.table-responsive table {
    width: 100% !important;
}

/* PAra que no rompa al cambiar el ancho del menú*/
.table-responsive .dt-scroll-headInner,
.table-responsive .dt-scroll-footInner,
.table-responsive .dt-scroll-body {
    width: 100% !important;
}
/* estilo para alinear en 2 filas los titulos de las tablas anchas  */
table.dataTable > thead > tr > th, table.dataTable > thead > tr > td {
    white-space:normal !important;
    word-wrap:break-word;
    line-height: 1.2em;
    display: table-cell;
    height: 2.4em;
    overflow:hidden;
    vertical-align: bottom !important;
}

/* Visibilidad del filtrado por columnas*/
.table-responsive tfoot .filter-row {
    display: revert !important;
}

.table-responsive tfoot input.form-input {
    padding: .3rem .75rem !important;
}

/* estilo para columnas agrupadas  */
.table-responsive th.grupo {
    border-bottom: 1px solid rgba(0,0,0,.3);     
    text-align: center;
    position: relative;
}

.table-responsive .dt-scroll-head th.grupo::before {
    content: "";
    position: absolute;
    left: 0;              
    bottom: 0;            
    height: 12px;           
   border-left: 1px solid rgba(0,0,0,.3);          
    /*  border-left:  1px solid #000; */
  }
  .table-responsive .dt-scroll-head th.grupo::after {
    content: "";
    position: absolute;
    right: 0;              
    bottom: 0;            
    height: 12px;           
   border-right: 1px solid rgba(0,0,0,.3);            
     /* border-right:  1px solid #000;*/
    }
.table-responsive th.nogrupo {
    vertical-align: bottom;
}

.table-responsive th.nogrupo span.dt-column-order {
    bottom: -45px !important;
}



.table-responsive table.dataTable>tbody>tr>th,
.table-responsive table.dataTable>tbody>tr>td {
    padding: 4px 6px;
    font-size: smaller;
}

.dataTable td,
.dataTable th {
    white-space: nowrap;
    /* Evita que el contenido se divida en varias líneas */
    overflow: hidden;
    /* Oculta el texto desbordado */
    text-overflow: ellipsis;
    /* Muestra '...' cuando el texto no cabe */
}

/* Formato SELECT */
.table-responsive td select {
    padding-top: .30rem !important;
    padding-bottom: .30rem !important;
    width: auto;
    padding-left: 0.75rem;
    padding-right: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.5715;
    border: 1px solid #3383fd;
    border-radius: 0.25rem;
    background-color: #fff;
}

.three-columns .dataTable td:last-child,
.three-columns .dataTable th:last-child {
    width: 100%;
    /* Ocupa el resto del espacio */
}

.dataTable td,
.dataTable th {
    width: auto;
    /* Ajusta al contenido */
}

.table-responsive .dt-buttons {
    float: left;
    margin-right: 1rem;
    margin-bottom: 0.75rem;
}

.table-responsive .dt-search {
    float: left;
    line-height: 1.5em;
    font-size: 0.75em;
    margin-bottom: 0.75rem;
}

@media screen and (max-width: 640px) {

    .table-responsive div.dt-buttons,
    .table-responsive div.dt-search {
        float: none !important;
        text-align: left !important;
    }
}

.table-responsive .dt-search input {
    margin-left: 10px;
    border-radius: 6px;
    line-height: inherit;
    font-size: inherit;
    border: 1px solid #d1d2d5;
}

.table-responsive .dt-info {
    margin-top: 1.5rem;
}

.table-responsive .dt-paging {
    text-align: center;
    margin-top: 1.5rem;
}

.table-responsive .dt-paging .dt-paging-button {
    line-height: 1.3em;
    font-size: 0.85em;
    border-radius: 6px !important;
    padding: 0.25em 0.6em !important;
}

.table-responsive .dt-paging .dt-paging-button.current {
    background: linear-gradient(rgba(74, 142, 241, 0.05), rgba(74, 142, 241, 0.02)) !important;
    border: 1px solid #d1d2d5 !important;
}

.table-responsive .dt-buttons .dt-button {
    line-height: 1.5em;
    font-size: 0.75em;
    border-radius: 6px;
    padding: 0.45em 0.8em;
    background: linear-gradient(rgba(74, 142, 241, 0.05),
            rgba(74, 142, 241, 0.02));
    border: 1px solid #d1d2d5;
}

.table-responsive div.dt-buttons>.dt-button:hover:not(.disabled) {
    background: linear-gradient(rgba(74, 142, 241, 0.1), rgba(74, 142, 241, 0.05));
    border: 1px solid #d1d2d5;
}

.table-responsive table.dataTable.stripe>tbody>tr:nth-child(odd)>*,
.table-responsive table.dataTable.display>tbody>tr:nth-child(odd)>* {
    box-shadow: inset 0 0 0 9999px rgba(74, 141, 241, 0.05);
}

.table-responsive table.dataTable.stripe>tbody>tr:nth-child(odd).selected>*,
.table-responsive table.dataTable.display>tbody>tr:nth-child(odd).selected>* {
    box-shadow: inset 0 0 0 9999px rgba(74, 142, 241, 0.923);
}

.table-responsive table.dataTable.hover>tbody>tr:hover>*,
.table-responsive table.dataTable.display>tbody>tr:hover>* {
    box-shadow: inset 0 0 0 9999px rgba(74, 142, 241, 0.08);
}

.table-responsive table.dataTable.hover>tbody>tr.selected:hover>*,
.table-responsive table.dataTable.display>tbody>tr.selected:hover>* {
    box-shadow: inset 0 0 0 9999px rgba(74, 142, 241, 1) !important;
}

/* Pasar a asana */
/* .table-responsive table.dataTable td.dt-type-numeric {
     text-align: left!important;
     font-size: smaller!important;
    }   */
/*Swal*/
h2.swal2-title {
    font-size: 1.375rem !important;
}

/* Clientes */
.aside-clientes .cc-input,
.aside-clientes .cc-select {
    margin: 0px !important;
}

.aside-clientes .cc-select,
.aside-clientes span {
    height: 42px !important;
}

/* Upload Primereact */
.p-fileupload-choose {
    background-color: #4a8ef1;
}


/* LOADER LAYOUT */
/* Div padre */
.loader {
    border: 10px solid #3383fd;
    border-top: 10px solid transparent;
    border-radius: 50%;
    animation: rotateRight 2s linear infinite;
    position: relative;
}

/* Div hijo */
.loader-inner {
    content: "";
    border: 10px solid #f98e0d;
    border-top: 10px solid transparent;
    border-radius: 50%;
    animation: rotateLeft 1s linear infinite;
    position: absolute;
}

/* Animación para girar a la derecha */
@keyframes rotateRight {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Animación para girar a la izquierda */
@keyframes rotateLeft {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

/* Swiper | Utils */
swiper {
    width: 380px;
    height: 430px;
}

.mySwiper {
    max-width: 380px;
    width: 100%;
    height: 430px;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}

.swiper-button-next {
    right: -120px !important;
}

.swiper-button-prev {
    left: -120px !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-family: "Inter", sans-serif !important;
    font-size: 60px !important;
}

.swiper-button-next::after {
    content: ">" !important;
    /* Código Unicode del icono */
}

.swiper-button-prev::after {
    content: "<" !important;
    /* Código Unicode del icono */
}

.swiper-tip {
    display: none;
}

/* Media Queries */
@media only screen and (min-width: 576px) and (max-width: 767.99px) {
    swiper {
        width: 260px !important;
        height: 340px;
    }

    .mySwiper {
        max-width: 260px;
        width: 100%;
        height: 340px;
    }
}

@media only screen and (max-width: 575px) {
    swiper {
        width: 230px !important;
        height: 340px;
    }

    .mySwiper {
        max-width: 230px;
        width: 100%;
        height: 340px;
    }

}

@media (max-width: 767.99px) {
    .swiper-tip {
        display: flex !important;
    }

    .swiper-button-next {
        display: none !important;
    }

    .swiper-button-prev {
        display: none !important;
    }
}

/* componentes clases dinámicas */
.border-blue-400 {
    border-color: rgb(96, 165, 250);
}

.border-red-500 {
    border-color: rgb(255, 86, 86);
}