/* =========================================================
   SELECT2 — Visual igual aos inputs (padrao.css / dashboards)
   Sugestão: salvar em /assets/css/novo/select2.css
   ========================================================= */

/* base container */
.select2-container {
    width: 100% !important;
    font-size: 13px;
}

/* seleção (single e multiple) */
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    height: 36px !important;
    min-height: 36px !important;
    border-radius: 10px !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    outline: none !important;
    box-shadow: none !important;
}

/* texto do single */
.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 34px !important;
    padding-left: 10px !important;
    padding-right: 34px !important; /* espaço da setinha */
    color: #333 !important;
}

/* placeholder */
.select2-container .select2-selection__placeholder {
    color: #888 !important;
}

/* setinha */
.select2-container .select2-selection--single .select2-selection__arrow {
    height: 34px !important;
    right: 8px !important;
}
.select2-container .select2-selection--single .select2-selection__arrow b {
    border-color: #777 transparent transparent transparent !important;
}

/* multiple: área dos itens */
.select2-container .select2-selection--multiple {
    padding: 2px 8px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}
.select2-container .select2-selection--multiple .select2-selection__rendered {
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

/* múltiplo: input de busca interno */
.select2-container .select2-selection--multiple .select2-search__field {
    margin: 0 !important;
    height: 28px !important;
    line-height: 28px !important;
    font-size: 13px !important;
}

/* tags (multiple) */
.select2-container .select2-selection--multiple .select2-selection__choice {
    border: 1px solid rgba(0,0,0,.10) !important;
    background: #f6f6f6 !important;
    border-radius: 999px !important;
    padding: 3px 10px !important;
    margin: 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #333 !important;
}
.select2-container .select2-selection--multiple .select2-selection__choice__remove {
    margin-right: 6px !important;
    border: 0 !important;
    color: #777 !important;
    font-weight: 900 !important;
}
.select2-container .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #d9534f !important;
    background: transparent !important;
}

/* focus igual input */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #008CE1 !important;
    box-shadow: 0 0 0 2px rgba(0,140,225,0.12) !important;
}

/* dropdown */
.select2-dropdown {
    border-radius: 12px !important;
    border: 1px solid rgba(0,0,0,.10) !important;
    overflow: hidden !important;
    box-shadow: 0 12px 26px rgba(0,0,0,.12) !important;
}

/* lista e itens */
.select2-results__options {
    font-size: 13px !important;
}
.select2-results__option {
    padding: 10px 12px !important;
}
.select2-results__option--highlighted[aria-selected] {
    background: #f5f8fc !important;
    color: #111 !important;
}
.select2-results__option[aria-selected="true"] {
    background: #eef6ff !important;
}

/* campo de busca do dropdown */
.select2-search--dropdown .select2-search__field {
    border: 1px solid #ddd !important;
    border-radius: 10px !important;
    padding: 8px 10px !important;
    outline: none !important;
}
.select2-search--dropdown .select2-search__field:focus {
    border-color: #008CE1 !important;
    box-shadow: 0 0 0 2px rgba(0,140,225,0.12) !important;
}

/* desabilitado */
.select2-container--default.select2-container--disabled .select2-selection--single,
.select2-container--default.select2-container--disabled .select2-selection--multiple {
    background: #f2f2f2 !important;
    cursor: not-allowed !important;
    opacity: .85 !important;
}

/* corrige corte em modais/facebox/iframe */
.select2-container { z-index: 1 !important; }
.select2-dropdown { z-index: 1 !important; }
