ext-center rc-py-xl">
                <div class="rc-spinner"></div>
                <p class="rc-text-muted rc-mt-md">Loading available devices...</p>
            </div>
        `;
        
        // Store current case ID for multi-select
        window.currentCaseID = caseID;
        window.selectedDevicesForCase = [];
        
        // Fetch available devices (devices not in any case)
        fetch('/api/v1/devices?available=true')
            .then(response => {
                if (!response.ok) {
  