alNumber ? `<span class="device-serial">• ${device.serialNumber}</span>` : ''}
                        ${statusBadge}
                        ${caseInfo}
                    </div>
                </div>
            </div>
        `;
    }
    
    function toggleModalTreeNode(nodeId) {
        const content = document.getElementById(nodeId);
        const chevron = document.getElementById(`chevron-${nodeId}`);
        
        if (content.style.display === 'none') {
            content.style.display = 'b