;
    }

    // Add Device to Case Modal
    function showAddDeviceToCase(caseID) {
        // Close other modals if open
        closeCaseModal();
        closeEditCaseModal();
        closeCaseDevicesModal();
        
        const modal = document.getElementById('addDeviceToCaseModal');
        const content = document.getElementById('addDeviceToCaseContent');
        
        // Show modal with loading state
        modal.style.display = 'flex';
        content.innerHTML = `
            <div class="rc-t