feat: enhance report on-screen, PDF print layout, and Excel exports with executive styling and audit sign-off
This commit is contained in:
@@ -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)" : ""}
|
||||
|
||||
Reference in New Issue
Block a user