ById('agent-sections-collapse-all');
    if (agentSectionsCollapseAllButton) {
        agentSectionsCollapseAllButton.addEventListener('click', () => {
            document.querySelectorAll('.agent-section').forEach(section => {
                const alpineData = Alpine.$data(section);
                if (alpineData) {
                    alpineData.open = false;
                }
            });
        });
    }
});
</script>

{% endblock %}
