/*
 * CampoSelectSugestao — Select2 com busca nas alternativas (tema alinhado ao CampoSelect).
 */
/* CampoSelectSugestao: mesmo alinhamento visual do CampoSelect + Select2 (único uso com select2 no MtSelect) */
.field_body:not(.sem_bordas) > .input-field.campo-select-sugestao {
    position: relative;
    box-sizing: border-box;
}

.field_body:not(.sem_bordas) > .input-field.campo-select-sugestao .select2-container {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

/* Altura alinhada a .field_body>.input-field.field_container input (height: 2Em, padding: 0 8px) */
.field_body:not(.sem_bordas) > .input-field.campo-select-sugestao .select2-container {
    font-size: 1em;
}

/* Fechado: fundo igual ao do contentor (grelha, linha, etc.) */
.field_body:not(.sem_bordas) > .input-field.campo-select-sugestao .select2-container .select2-selection--single {
    border: 1px solid rgba(99, 9, 57, 0.4);
    border-radius: 2px;
    min-height: 0;
    height: 2em !important;
    padding: 0 8px !important;
    box-sizing: border-box;
    background-color: transparent !important;
    background-image: none !important;
}

.field_body:not(.sem_bordas) > .input-field.campo-select-sugestao .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 2em;
    padding-left: 0;
    padding-right: 1.5rem;
    color: #000;
    font-size: 1em;
}

.field_body:not(.sem_bordas) > .input-field.campo-select-sugestao .select2-selection__placeholder {
    color: #757575 !important;
}

.field_body:not(.sem_bordas) > .input-field.campo-select-sugestao .select2-container .select2-selection--single .select2-selection__arrow {
    height: 2em;
    min-height: 0;
    right: 8px;
    top: 0;
}

.field_body:not(.sem_bordas) > .input-field.campo-select-sugestao .select2-container .select2-selection--single .select2-selection__arrow b {
    border-color: #888 transparent transparent transparent;
    margin-top: -0.2em;
}

/* Campo fechado: foco alinhado ao tema dos inputs */
.field_body:not(.sem_bordas) > .input-field.campo-select-sugestao .select2-container--focus .select2-selection--single,
.field_body:not(.sem_bordas) > .input-field.campo-select-sugestao .select2-container--open .select2-selection--single {
    border-color: #82b856;
    box-shadow: 0 1px 0 0 rgba(80, 80, 80, 0.25);
}

/* Aberto: painel em branco (lista + pesquisa) */
.select2-dropdown-ehip-sugestao.select2-dropdown {
    border: 1px solid rgba(99, 9, 57, 0.35);
    border-radius: 2px;
    font-size: 0.9rem;
    box-sizing: border-box;
    background-color: #fff !important;
    background-image: none !important;
}

.select2-dropdown-ehip-sugestao .select2-search--dropdown {
    padding: 0.25rem 0.35rem 0.2rem;
    background: #fff;
    border-bottom: 1px solid rgba(99, 9, 57, 0.1);
}

/* Campo de filtro: altura de linha única, mesmo “peso” visual dos outros inputs */
.select2-dropdown-ehip-sugestao .select2-search--dropdown .select2-search__field {
    margin: 0 !important;
    padding: 0.25rem 0.4rem !important;
    font-size: 0.85rem !important;
    line-height: 1.25 !important;
    height: 1.85rem !important;
    min-height: 1.85rem !important;
    max-height: 1.85rem !important;
    border: 1px solid rgba(99, 9, 57, 0.22) !important;
    border-radius: 2px;
    box-sizing: border-box;
    background-color: #fff !important;
    color: #000;
}

.select2-dropdown-ehip-sugestao .select2-search--dropdown .select2-search__field::placeholder {
    color: #757575;
    opacity: 1;
}

.select2-dropdown-ehip-sugestao .select2-results > .select2-results__options {
    background-color: #fff;
}

.select2-dropdown-ehip-sugestao .select2-results__option {
    padding: 0.35rem 0.5rem;
    font-size: 0.88rem;
    background-color: #fff;
}

.select2-dropdown-ehip-sugestao .select2-results__option--highlighted {
    background-color: #e8e8e8 !important;
    color: #000 !important;
}

/* Garante 2em também em telas com .sem_bordas (regra acima usa :not(.sem_bordas)) */
.field_body > .input-field.campo-select-sugestao .select2-container .select2-selection--single {
    min-height: 0;
    height: 2em !important;
    padding: 0 8px !important;
    box-sizing: border-box;
    background-color: transparent !important;
    background-image: none !important;
}

.field_body > .input-field.campo-select-sugestao .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 2em;
    font-size: 1em;
}

.field_body > .input-field.campo-select-sugestao .select2-container .select2-selection--single .select2-selection__arrow {
    height: 2em;
}
