
    // Case Devices Modal
    function showCaseDevices(caseID) {
        // Close other modals if open
        closeCaseModal();
        closeEditCaseModal();
        closeAddDeviceToCaseModal();
        
        const modal = document.getElementById('caseDevicesModal');
        const content = document.getElementById('caseDevicesContent');
        
        // Show modal with loading state
        modal.style.display = 'flex';
        content.innerHTML = `
            <div class="rc-text-center rc-py-xl">
