nt
            showCaseDevices(caseID);
        }
        // If modal is not open, don't do anything
    }

    function refreshCaseDevicesModal(caseID) {
        // Refresh ONLY the content without closing/opening modal
        const content = document.getElementById('caseDevicesContent');
        if (!content) return;
        
        // Show loading state
        content.innerHTML = `
            <div class="rc-text-center rc-py-xl">
                <div class="rc-spinner"></div>
                <p class