@font-face {
    font-family: 'InterVariable';
    src: url('../fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'InterVariable';
    src: url('../fonts/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
    font-style: italic;
}

body {
    font-family: 'InterVariable', sans-serif;
    background-color: rgba(249, 250, 251, 0.5);
}

/* Estilos para el carrusel */

#carrusel::-webkit-scrollbar { display: none; }
#carrusel { 
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

.dot.active {
    background-color: #FABE06;
    width: 1.5rem;
}

/* Estilos de tinymce */

.tox-tinymce {
    border: 1px solid #d1d5db; 
    border-radius: 6px;
}

.tox-tinymce--focused {
    box-shadow: none !important;
}

.tox-tinymce:focus-within {
    box-shadow: none !important;
}

/* Estilos de datatables */
.dt-search input, .dt-length select {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 5px 10px !important;
    background-color: white !important;
    color: #1f2937 !important;
}

.dt-paging-button {
    background: white !important;
    border: 1px solid #d1d5db !important;
    color: #374151 !important;
    border-radius: 6px !important;
    padding: 5px 12px !important;
    margin: 0 2px !important;
    cursor: pointer;
}

.dt-paging-button.current {
    background-color: #00A63E !important; 
    color: white !important;
    border-color: #00A63E !important;
}

.dt-layout-row:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 1.5rem !important;
}

.dt-search input {
    width: 18rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    border-width: 2px !important;
    border-color: #e5e7eb !important;
    border-radius: 9999px !important;
    background-color: #ffffff !important;
    color: #374151 !important;
    transition-property: all !important;
    transition-duration: 300ms !important;
    outline: 2px solid transparent !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.dt-search input:focus {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 4px #dcfce7 !important;
    width: 20rem !important;
}

.dt-length select {
    border-width: 2px !important;
    border-color: #e5e7eb !important;
    border-radius: 0.75rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    outline: none !important;
}

.dt-length select:focus {
    border-color: #22c55e !important;
}

.dt-length label {
    color: #4b5563 !important;
    font-weight: 500 !important;
}

.dt-layout-row:last-child {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 2rem !important;
}

.dt-layout-cell.dt-layout-full {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.dt-paging nav {
    display: flex !important;
    gap: 5px !important;
}

.dt-paging-button {
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    min-width: 38px !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #e5e7eb !important;
    transition: all 0.2s !important;
}

.dt-paging-button:hover:not(.current):not(.disabled) {
    background-color: #f9fafb !important;
    border-color: #d1d5db !important;
    color: #111827 !important;
}

@media (max-width: 767px) {
    .dataTables_wrapper {
        width: 100% !important;
        overflow-x: hidden !important;
    }

    .dt-layout-row:first-child {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
    }

    .dt-layout-row:first-child .dt-layout-cell {
        width: 100% !important;
        justify-content: center !important;
    }

    .dt-search {
        width: 100% !important;
    }

    .dt-search input {
        width: 100% !important;
    }

    .dt-length {
        width: 100% !important;
        justify-content: center !important;
    }

    .dt-length select {
        width: 100% !important;
    }

    table.display {
        width: 100% !important;
    }

    .dataTables_scrollBody {
        overflow-x: hidden !important;
    }
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before {
    display: flex !important;
    width: 10px;
    height: 10px;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:first-child {
  white-space: nowrap !important;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:first-child::before {
  display: inline-block !important;
  margin-right: 8px;
  vertical-align: middle;
}

td.seleccion input.form-check-input {
  vertical-align: middle;
  margin: 0;
}