/* =========================================================
   IZZY | SELECT2 GLOBAL
   ========================================================= */

/* IMPORTANTE:
   Solo dimensiona el Select2 asociado al select original.
   No tocar globalmente .select2-container porque Select2
   también utiliza esa clase para su dropdown flotante.
*/
select.izzy-select2 + .select2-container {
    width: 100% !important;
    max-width: 100% !important;
}

.select2-container .select2-selection--single {
    height: 42px !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    border: 1px solid #d3dde8 !important;
    border-radius: 9px !important;
    background: #fff !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    width: 100% !important;
    padding: 0 42px 0 14px !important;
    line-height: 40px !important;
    color: #253858 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    width: 38px !important;
    top: 0 !important;
    right: 2px !important;
}

.select2-search--dropdown {
    padding: 8px !important;
    box-sizing: border-box !important;
}

.select2-search--dropdown .select2-search__field {
    width: 100% !important;
    max-width: 100% !important;
    height: 38px !important;
    box-sizing: border-box !important;
    border: 1px solid #d3dde8 !important;
    border-radius: 7px !important;
    padding: 6px 10px !important;
}

.select2-dropdown {
    box-sizing: border-box !important;
    border: 1px solid #cfd9e4 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 24px rgba(31, 47, 67, .14) !important;
}

.select2-results__option {
    padding: 8px 10px !important;
    font-size: 13px !important;
}

.select2-results__option--highlighted[aria-selected] {
    background: #2f9ddd !important;
    color: #fff !important;
}

/* El control original conserva su valor y validación sin interceptar el puntero. */
select.select2-hidden-accessible {
    pointer-events: none !important;
}

.select2-container .select2-search--dropdown .select2-search__field:focus {
    outline: 2px solid #176394;
    outline-offset: 1px;
}


/* Presentación compartida por los controles de cantidad de registros. */
select.izzy-select2 + .select2-container.izzy-page-size {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    flex: 0 0 72px;
}

.select2-container.izzy-page-size .select2-selection--single {
    height: 42px !important;
    border-color: #cbdce8 !important;
    border-radius: 8px !important;
    box-shadow: none;
}

.select2-container.izzy-page-size .select2-selection--single .select2-selection__rendered {
    padding: 0 22px 0 12px !important;
    color: #173d56 !important;
    font-size: 12px;
}

.select2-container.izzy-page-size .select2-selection--single .select2-selection__arrow {
    width: 20px !important;
    right: 8px !important;
}
