nter.textContent = `${count} device${count !== 1 ? 's' : ''} selected`;
        }
    }

    function updateAddSelectedButton() {
        const addBtn = document.getElementById('addSelectedDevicesBtn');
        const addBtnText = document.getElementById('addSelectedButtonText');
        
        if (!addBtn || !addBtnText) return;
        
        if (window.selectedDevicesForCase.length === 0) {
            addBtn.style.display = 'none';
            return;
        }
        
        addBtn.style.display =