#cnpj {
    max-width: 200px; /* define largura fixa */
}
.professional-multiselect {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    background: white;
    min-height: 60px;
    width: 100%;
    max-width: 100%;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.professional-multiselect:focus-within {
    border-color: #2c4964;
    box-shadow: 0 0 0 3px rgba(44, 73, 100, 0.1);
}

.multiselect-display {
    padding: 12px 35px 12px 16px;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.multiselect-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}

.multiselect-placeholder {
    color: #6c757d;
    font-style: italic;
    margin: 4px 0;
}

.multiselect-tag {
    background: linear-gradient(135deg, #2c4964 0%, #3d5a73 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 100%;
    width: auto;
    flex: 1 1 auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 4px;
    border: none;
    box-shadow: 0 2px 8px rgba(44, 73, 100, 0.2);
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.multiselect-tag:hover {
    background: linear-gradient(135deg, #1a3652 0%, #0f2339 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(44, 73, 100, 0.3);
}

.multiselect-tag-text {
    flex: 1;
    line-height: 1.4;
    word-break: break-word;
    hyphens: auto;
    white-space: normal;
    text-align: left;
}

.multiselect-tag-remove {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.multiselect-tag-remove:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    border: 2px solid #2c4964;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 12px 12px;
    max-height: 350px;
    overflow: hidden;
    z-index: 1050;
    box-shadow: 0 8px 32px rgba(44, 73, 100, 0.15);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.professional-multiselect.open .multiselect-dropdown {
    opacity: 1;
    transform: translateY(0);
}

.multiselect-search {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.multiselect-search input {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.multiselect-search input:focus {
    border-color: #2c4964;
}

.multiselect-options {
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #2c4964 #f1f1f1;
}

.multiselect-option {
    padding: 16px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    position: relative;
    background: white;
}

.multiselect-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, #2c4964, #3d5a73);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.multiselect-option:hover {
    background: #f8fafc;
    padding-left: 24px;
    color: #2c4964;
}

.multiselect-option:hover::before {
    width: 4px;
}

.multiselect-option.selected {
    background: linear-gradient(135deg, #e8f4f8 0%, #d1ecf1 100%);
    color: #2c4964;
    font-weight: 600;
    padding-left: 24px;
}

.multiselect-option.selected::before {
    width: 4px;
}

.multiselect-option-check {
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.2s ease;
}

.multiselect-option.selected .multiselect-option-check {
    background: #2c4964;
    border-color: #2c4964;
    color: white;
}

.multiselect-option-text {
    flex: 1;
}

.multiselect-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 12px;
    transition: transform 0.3s ease;
    pointer-events: none;
    z-index: 1;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.professional-multiselect.open .multiselect-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.multiselect-counter {
    background: rgba(44, 73, 100, 0.1);
    color: #2c4964;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin: 4px 0;
}

/* Animações personalizadas */
@keyframes tagSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.multiselect-tag {
    animation: tagSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsividade */
@media (max-width: 768px) {
    .multiselect-tag {
        font-size: 12px;
        padding: 8px 12px;
        margin: 3px;
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .multiselect-option {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .professional-multiselect {
        min-height: 60px;
    }
    
    .multiselect-display {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .multiselect-tag {
        font-size: 11px;
        padding: 6px 10px;
        line-height: 1.3;
    }
    
    .multiselect-tag-remove {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
}

/* Estilos específicos para ODS */
.ods-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
    height: 100%;
    transition: all 0.3s ease;
}

.ods-container:hover {
    box-shadow: 0 2px 8px rgba(44, 73, 100, 0.1);
    border-color: #2c4964;
}

.ods-title {
    color: #2c4964;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.2;
    margin-bottom: 10px;
    min-height: 32px;
    display: flex;
    align-items: center;
}

.professional-multiselect-small {
    min-height: 40px;
    font-size: 12px;
    border-width: 1px;
}

.professional-multiselect-small .multiselect-display {
    padding: 10px 28px 10px 12px;
    min-height: 35px;
}

.professional-multiselect-small .multiselect-tag {
    font-size: 12px;
    padding: 6px 10px;
    margin: 2px;
    border-radius: 8px;
    font-weight: 600;
}

.professional-multiselect-small .multiselect-tag-text {
    line-height: 1.3;
    font-weight: 600;
}

.professional-multiselect-small .multiselect-tag-remove {
    width: 18px;
    height: 18px;
    font-size: 11px;
}

.professional-multiselect-small .multiselect-option {
    padding: 8px 12px;
    font-size: 12px;
}

.professional-multiselect-small .multiselect-option-check {
    width: 18px;
    height: 18px;
}

.professional-multiselect-small .multiselect-dropdown {
    max-height: 280px;
}

.professional-multiselect-small .multiselect-options {
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 5px;
}

.professional-multiselect-small .multiselect-placeholder {
    font-size: 11px;
    margin: 2px 0;
}

.professional-multiselect-small .multiselect-arrow {
    font-size: 10px;
    right: 8px;
    width: 14px;
    height: 14px;
}

/* Estilos personalizados para scrollbar */
.multiselect-options::-webkit-scrollbar {
    width: 8px;
}

.multiselect-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.multiselect-options::-webkit-scrollbar-thumb {
    background: #2c4964;
    border-radius: 4px;
}

.multiselect-options::-webkit-scrollbar-thumb:hover {
    background: #1a3652;
}

.professional-multiselect-small .multiselect-options::-webkit-scrollbar {
    width: 6px;
}