           <div class="rc-spinner"></div>
                    <p class="rc-text-muted rc-mt-md">Loading case form...</p>
                </div>
            </div>
        </div>
    </div>

    <!-- Case Devices Modal -->
    <div id="caseDevicesModal" class="rc-modal" style="display: none;">
        <div class="rc-modal-overlay" onclick="closeCaseDevicesModal()"></div>
        <div class="rc-modal-content" style="max-width: min(95vw, 1100px); width: 100%;">
            <div class="rc-modal-header">
       