feat: enhance report on-screen, PDF print layout, and Excel exports with executive styling and audit sign-off

This commit is contained in:
Atharv1705
2026-11-16 12:02:47 +05:30
parent 13fd84a53c
commit ee9390a2a0
5 changed files with 408 additions and 69 deletions
@@ -219,7 +219,7 @@ export function DataTable<TData>({
return (
<div className="space-y-3">
{/* Toolbar */}
<div className="flex flex-col sm:flex-row sm:items-center gap-2">
<div className="no-print flex flex-col sm:flex-row sm:items-center gap-2">
<div className="relative flex-1 min-w-0">
<Search className="absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400" />
<input
@@ -301,7 +301,7 @@ export function DataTable<TData>({
value={(header.column.getFilterValue() as string) ?? ""}
onChange={(e) => header.column.setFilterValue(e.target.value)}
placeholder="Filter..."
className="w-full px-2 py-0.5 text-xs border border-gray-200 rounded focus:outline-none focus:ring-1 focus:ring-blue-400"
className="no-print w-full px-2 py-0.5 text-xs border border-gray-200 rounded focus:outline-none focus:ring-1 focus:ring-blue-400"
onClick={(e) => e.stopPropagation()}
/>
)}
@@ -357,7 +357,7 @@ export function DataTable<TData>({
{/* Pagination */}
{!loading && visibleRows.length > 0 && (
<div className="flex flex-col sm:flex-row items-start sm:items-center justify-between gap-2 px-3 sm:px-4 py-3 border-t border-gray-200 bg-gray-50 text-sm text-gray-600">
<div className="no-print flex flex-col sm:flex-row items-start sm:items-center justify-between gap-2 px-3 sm:px-4 py-3 border-t border-gray-200 bg-gray-50 text-sm text-gray-600">
<span>
{filteredRows.length} record{filteredRows.length !== 1 ? "s" : ""}
{globalFilter || columnFilters.length ? " (filtered)" : ""}