 // Update the display text without full re-render
        e.target.parentElement.childNodes[0].textContent = operatorDisplay[filter.operator] || filter.operator;
      }
    }
  });
  
  // Filter badge value click
  document.addEventListener('click', (e) => {
    if (e.target.classList.contains('filter-badge-value')) {
      const id = parseInt(e.target.dataset.id);
      activeFilter = filters.find(f => f.id === id);
      showValuePopover(e.target);
    }
  });
  
  // Filter badge value keyboard
  docu