-- Update Case Details view to table layout
UPDATE detail_views
SET config = '{"name": "Case Details", "items": [{"type": "html", "html": "<table class=''table table-sm w-full''><tr><td><div class=''card bg-base-100 shadow mb-4''><div class=''card-body space-y-1''><h2 class=''card-title''>Client Information</h2><p><a id=''dvClientName'' class=''link'' href=''#''></a></p><p>Phone: <span id=''dvClientPhone''></span></p><p>Email: <span id=''dvClientEmail''></span></p><p><span id=''dvClientAddress''></span></p><p><span id=''dvClientCity''></span>, <span id=''dvClientCountry''></span></p><p><span id=''dvClientNotes''></span></p><div id=''dvClientDocs''></div></div></div></td><td><div class=''card bg-base-100 shadow mb-4''><div class=''card-body space-y-1''><h2 class=''card-title''>Case Overview</h2><p><span id=''dvCaseNumber''></span> - <span id=''dvTitle''></span></p><p>Status: <span id=''dvStatus''></span></p><p>Lead Rep: <span id=''dvLeadRep''></span></p><p>Opened: <span id=''dvOpenedAt''></span></p><p>Closed: <span id=''dvClosedAt''></span></p><div class=''card-actions''><button id=''dvEditCase'' class=''btn btn-sm''>Edit Case</button><button id=''dvAddEntry'' class=''btn btn-sm''>Add Entry</button><button id=''dvCloseCase'' class=''btn btn-sm''>Close Case</button></div></div></div></td><td><div class=''space-y-1''>Total Hours: <span id=''dvTotalHours''></span><br>Total Expenses: <span id=''dvTotalExpenses''></span></div></td><td><span id=''dvInitialInstructions''></span></td></tr></table>"}]}'
WHERE id = 2;
