From 592abf03a1ed7b4010fa9fc6db9d54e9593db656 Mon Sep 17 00:00:00 2001 From: Sidharth Prabhu Date: Mon, 20 Apr 2026 10:24:47 +0530 Subject: [PATCH] Purchase Bills Data Export made functional. --- frontend/src/index.css | 62 ++++++++++++++++++++++++++++++++++++ frontend/src/pages/Bills.tsx | 27 ++++++++++++++-- 2 files changed, 87 insertions(+), 2 deletions(-) diff --git a/frontend/src/index.css b/frontend/src/index.css index 85506385..94fab899 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -111,3 +111,65 @@ font-weight: 800 !important; font-size: 0.85rem !important; } + +@media print { + .no-print, + header, + aside, + nav, + button, + .w-64, + .ml-64, + .fixed, + input, + select, + .recharts-responsive-container { + display: none !important; + } + + main, + .flex-1, + .ml-64 { + margin-left: 0 !important; + padding: 0 !important; + width: 100% !important; + display: block !important; + } + + body { + background: white !important; + margin: 0 !important; + padding: 20px !important; + } + + .bg-white, + .bg-slate-50\/50, + .premium-card { + background: transparent !important; + border: none !important; + box-shadow: none !important; + padding: 0 !important; + } + + h1 { + font-size: 24pt !important; + margin-bottom: 20px !important; + } + + table { + width: 100% !important; + border-collapse: collapse !important; + } + + th { + background-color: #f8fafc !important; + -webkit-print-color-adjust: exact; + color: black !important; + } + + td, th { + border: 1px solid #e2e8f0 !important; + padding: 10px !important; + font-size: 10pt !important; + } +} diff --git a/frontend/src/pages/Bills.tsx b/frontend/src/pages/Bills.tsx index 17fcbd67..144cbe88 100644 --- a/frontend/src/pages/Bills.tsx +++ b/frontend/src/pages/Bills.tsx @@ -108,15 +108,38 @@ const Bills: React.FC = () => {