<div class="space-y-6">
  <div class="af-card"><div class="mb-4 flex items-center justify-between"><div><h3 class="text-lg font-semibold text-slate-900">Client Pending / Blocked Work</h3><p class="text-sm text-slate-500">Tasks delayed due to client documents, data or clarifications.</p></div><a href="/alerts" class="af-btn af-btn-primary">Alerts</a></div>{% set rows = client_pending %}{% include 'modules/manager_dashboard/templates/manager_dashboard/partials/_task_table.html' %}</div>
  <div class="af-card"><h3 class="mb-4 text-lg font-semibold text-slate-900">Client-wise Pending View</h3><div class="overflow-x-auto"><table class="min-w-full text-sm"><thead class="bg-slate-50 text-xs uppercase text-slate-500"><tr><th class="px-4 py-3 text-left">Client</th><th class="px-4 py-3 text-right">Open</th><th class="px-4 py-3 text-right">Client Pending</th><th class="px-4 py-3 text-right">Overdue</th><th class="px-4 py-3 text-right">Action</th></tr></thead><tbody>{% for c in clients if c.client_pending or c.overdue %}<tr class="border-t"><td class="px-4 py-3 font-semibold">{{ c.client_name }}</td><td class="px-4 py-3 text-right">{{ c.open }}</td><td class="px-4 py-3 text-right">{{ c.client_pending }}</td><td class="px-4 py-3 text-right">{{ c.overdue }}</td><td class="px-4 py-3 text-right"><a href="{{ c.href }}" class="text-brand-700 font-semibold">Open</a></td></tr>{% else %}<tr><td colspan="5" class="px-4 py-8 text-center text-slate-500">No client pending clients found.</td></tr>{% endfor %}</tbody></table></div></div>
</div>
