Return focus to the value element that opened it
  if (activeFilter) {
    const valueId = `filter-value-${activeFilter.id}`;
    const valueElement = document.getElementById(valueId);
    if (valueElement) {
      valueElement.focus();
      lastFocusedElementId = valueId;
    }
  }
}

// Apply value change
function applyValueChange() {
  const valueInput = document.getElementById('valueInput');
  if (activeFilter) {
    activeFilter.value = valueInput.value;
    
    // Update the display text without ful