tElementById('deactivateModal').classList.add('hidden');
  }
  
  // Handle deactivate job button
  document.addEventListener('click', function(e) {
    if (e.target.closest('.deactivate-job')) {
      e.preventDefault();
      deactivateUrl = e.target.closest('.deactivate-job').getAttribute('data-href');
      document.getElementById('deactivateModal').classList.remove('hidden');
    }
  });
  
  // Confirm deactivation
  document.getElementById('confirmDeactivate').addEventListener('click', function() {
 