           document.body.style.overflow = 'hidden';
        }).catch(error => {
            console.error('Error loading cable details:', error);
            alert('Error loading cable information');
        });
    }

    function closeSelectiveDeleteModal() {
        document.getElementById('selectiveDeleteModal').style.display = 'none';
        document.body.style.overflow = 'auto';
        currentCableIds = [];
        groupInfo = {};
    }

    function selectAllCables() {
        const checkboxes = do