Id);
      if (columnElement) {
        const columnSelect = columnElement.querySelector('select');
        if (columnSelect) {
          columnSelect.focus();
          lastFocusedElementId = columnId;
        }
      }
    }, 50);
  });
  
  // Add keyboard support for "add filter" button
  addFilterBadge.addEventListener('keydown', (e) => {
    if (e.key === 'Enter' || e.key === ' ') {
      e.preventDefault();
      addFilterBadge.click();
    }
  });
  
  // Handle column select change
  document.addEv