ValueButton').addEventListener('click', () => {
    applyValueChange();
  });
  
  // Cancel button
  document.getElementById('cancelButton').addEventListener('click', () => {
    closeValuePopover();
  });
  
  // Enter key in value input
  document.getElementById('valueInput').addEventListener('keydown', (e) => {
    if (e.key === 'Enter') {
      e.preventDefault();
      applyValueChange();
    }
    if (e.key === 'Escape') {
      closeValuePopover();
    }
  });
  
  // Close popovers when clicking ou