
// Fix for client names and table layout
document.addEventListener('DOMContentLoaded', function() {
    // Add client-name class to client name cells
    const clientNameCells = document.querySelectorAll('td:nth-child(2)');
    clientNameCells.forEach(cell => {
        cell.classList.add('client-name');
    });
    
    // Ensure all tables have responsive class
    const tables = document.querySelectorAll('table');
    tables.forEach(table => {
        if (!table.classList.contains('table-responsive')) {
            const wrapper = document.createElement('div');
            wrapper.classList.add('table-responsive');
            table.parentNode.insertBefore(wrapper, table);
            wrapper.appendChild(table);
        }
    });
});
