
/* Estilo personalizado para o Select2 dentro de .bselectcheck */
.bselectcheck .select2-container--default .select2-selection--multiple {
    border: 2px solid #4CAF50;  /* Exemplo: borda verde */
    background-color: #f9f9f9;  /* Cor de fundo personalizada */
    min-height: 38px;           /* Altura mínima fixa */
    height: 38px;               /* Altura fixa */
    max-width: 300px;           /* Largura máxima */
    overflow: hidden;           /* Ocultar overflow */
    display: flex;
    align-items: center;        /* Centraliza o conteúdo verticalmente */
}

/* Estilo para o texto renderizado */
.bselectcheck .select2-selection__rendered {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.bselectcheck{
    background-color: var(--field-background);
    border: 1px solid var(--field-border-color);
    border-top: unset;
    z-index: 10000;
}

.bselectcheck .select2-search--inline {
    display: none !important;
}

 .bselectcheck-custom-search-input {
    height: var(--field-height);
    border-radius: var(--field-border-radius);
    padding-left: 10px;
    padding-right: 21px;
    color: var(--field-color);
    width: 100%;
    margin-bottom: 10px;
}

.bselectcheck-custom-dropdown-header {
    padding: 5px;
}

.bselectcheck-container .select2-selection--multiple{
    height: var(--field-height) !important;
}

.bselectcheck-container .select2-selection__rendered {
    height: var(--field-height) !important;
    line-height: 27px;
}

.bselectcheck-container .select2-search--inline .select2-search__field {
    color: var(--text-color-light);
    font-size: var(--font-size);
    border: none !important;
    cursor: pointer;
    display: none;
}

.bselectcheck-container .select2-selection__placeholder {
    color: #999 !important;
    font-size: var(--font-size);
    margin-top: 3px;
}

.bselectcheck-container .select2-selection__rendered {
    padding: var(--field-padding);
    line-height: 32px;
    color: var(--text-color) !important;
    font-size: var(--font-size) !important;
}

.bselectcheck-container .select2-search--inline .select2-search__field::placeholder{
    color: var(--text-color-light);
    font-size: var(--font-size);
}


.bselectcheck-container .select2-selection__choice{
    margin: 2px 0 0 -5px !important;
    border: 0px !important;
}

.bselectcheck-container .select2-selection--multiple .select2-selection__clear{
    margin-top: 3px !important;
}

.bselectcheck-container .select2-selection--multiple .select2-selection__arrow b {
    border-color: #888 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: -2px;
    position: absolute;
    top: 50%;
    width: 0;
}

.bselectcheck-container .select2-selection__arrow{
    display: inline-block;
    width: 20px;
    height: var(--field-height);
    padding: 0;
    position: relative;
    margin-right: 10px;
}

.bselectcheck .select2-results__option:not([role="group"]) {
    padding: 5px 7px !important;
    border-radius: calc(var(--field-border-radius) / 2);
}

.bselectcheck .select2-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bselectcheck .select2-result-item__text {
    flex: 1;
    justify-content: flex-start;
    align-items: center;
    display: flex;
    min-height: 25px;
}

.bselectcheck-container .select2-selection--multiple .select2-selection__rendered {
    width: calc(100% - 30px);
}

.bselectcheck-container .select2-selection{
    cursor: pointer;
}

.bselectcheck-buttons-container {
    display: flex;
    gap: 5px;
    margin-left: 5px;
}

.bselectcheck-btn {
    margin-right: 5px;
    background: var(--button-background);
    border: 1px solid var(--button-border);
    color: var(--button-text-color);
    padding: 5px !important;
    min-height: unset;
    min-width: unset;
    margin-right: 0px !important;
    width: 35px;
}

.bselectcheck-btn i {
    padding-right: unset !important;
}