
        if (!window.availableDevicesForCase || window.availableDevicesForCase.length === 0) {
            container.innerHTML = '<div class="rc-text-center rc-py-lg rc-text-muted">No devices available</div>';
            return;
        }

        let html = '';
        window.availableDevicesForCase.forEach(device => {
            const isSelected = window.selectedDevicesForCase.includes(device.deviceID);
            html += `
                <div class="rc-card device-card" style="cursor: pointer; border