/* Variáveis CSS para consistência e fácil manutenção */
:root {
    --gray-50: #f9fafb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --blue-500: #3b82f6;
    --blue-700: #003c63;
    --blue-500-opacity: rgba(59, 130, 246, 0.5);
    --font-sm: 0.875rem;
    --font-xs: 0.75rem;
    --border-radius: 0.375rem;
    --padding-control: 0.100rem;
}

/* Container externo e largura total */
.custom-treeselect {
    width: 100%;
}

.custom-treeselect .vue-treeselect__control {
    background-color: var(--gray-50);
    padding: var(--padding-control);
    color: var(--blue-500);
    font-size: var(--font-sm);
}

/* Campo de entrada interno */
.custom-treeselect .vue-treeselect__input {
    width: 100%;
    height: 40px;
}

/* Placeholder */
.custom-treeselect .vue-treeselect__placeholder {
    pointer-events: none;
    color: var(--gray-900);
}

/* Estado de foco */
.custom-treeselect .vue-treeselect__control:focus-within {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 2px var(--blue-500); /* Corrigido 'ring' inválido */
}

/* Dropdown */
.custom-treeselect .vue-treeselect__menu {
    font-size: var(--font-xs);
    background-color: var(--gray-50);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    color: var(--gray-900);
}

/* Opções desabilitadas */
.custom-treeselect .vue-treeselect__option--disabled {
    color: var(--gray-500);
    font-weight: bold;
    cursor: not-allowed;
    pointer-events: none !important;
    opacity: 0.7;
}

/* Opções habilitadas */
.custom-treeselect .vue-treeselect__option {
    pointer-events: auto;
}

/* Ocultar seta em nós folha */
.custom-treeselect .vue-treeselect__option--is-leaf .vue-treeselect__icon-arrow-down {
    display: none;
}

.vue-treeselect__option-arrow {
  color: black !important; /* Or any other blue color value */
}