fix(membership): comprehensive print CSS — hide staging banner, registry panel, PWA prompt, nav
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions

This commit is contained in:
Maciej Pienczyn 2026-03-30 11:54:14 +02:00
parent d889444fab
commit a6d6186cc2

View File

@ -540,39 +540,63 @@
/* Print styles */
@media print {
/* Hide navigation, sidebar actions, admin bar, buttons, modals */
nav, .admin-bar, .sidebar, .action-buttons, .action-help,
.modal, .modal-overlay, .alert, .btn-action, .btn-back,
/* Hide EVERYTHING non-essential */
nav, header, .admin-bar, .sidebar, .action-buttons, .action-help,
.modal, .modal-overlay, .alert, .btn-action, .btn-back, .back-link,
footer, .notifications-menu, .user-menu, .breadcrumb,
.workflow-timeline, .detail-header .status-badge { display: none !important; }
.workflow-timeline, .detail-header .status-badge,
.staging-banner, .announcement-banner, .pwa-install-prompt,
.registry-lookup, .registry-info, .registry-panel, .registry-actions,
.registry-result, .registry-info-box, .lookup-status,
.fluent-command-bar, .fluent-header, .banner,
[class*="staging"], [class*="pwa"], [class*="install"],
.info-section .registry-lookup-widget,
.info-section .registry-help { display: none !important; }
/* Hide the "Weryfikacja w rejestrze" section */
.registry-section, h3:has(+ .registry-help) { display: none !important; }
/* Full width for main content */
.content-grid { display: block !important; }
.main-content { width: 100% !important; max-width: 100% !important; }
.main-content { width: 100% !important; max-width: 100% !important; padding: 0 !important; }
.container, .fluent-container { max-width: 100% !important; padding: 0 !important; }
/* Clean print header */
body { font-size: 11pt; color: #000; background: #fff; }
/* Clean print styles */
body { font-size: 11pt; color: #000; background: #fff !important; margin: 0; padding: 0; }
* { box-shadow: none !important; }
.detail-header h1 { font-size: 16pt; margin-bottom: 4pt; }
/* Print header with logo and title */
/* Print header */
.print-header {
display: block !important;
text-align: center;
margin-bottom: 20pt;
margin-bottom: 16pt;
padding-bottom: 10pt;
border-bottom: 2px solid #2E4872;
}
.print-header h2 { font-size: 14pt; color: #2E4872; margin: 0; }
.print-header p { font-size: 10pt; color: #666; margin: 4pt 0 0; }
.print-header p { font-size: 10pt; color: #444; margin: 3pt 0 0; }
/* Data sections clean */
.info-section { break-inside: avoid; margin-bottom: 12pt; border: 1px solid #ddd; padding: 8pt; }
.info-section h2 { font-size: 12pt; color: #2E4872; border-bottom: 1px solid #2E4872; padding-bottom: 4pt; }
.info-row { padding: 2pt 0; }
.info-label { font-weight: bold; }
/* Data sections */
.info-section {
break-inside: avoid;
margin-bottom: 10pt;
border: 1px solid #ccc;
padding: 8pt 12pt;
border-radius: 0;
}
.info-section h2 {
font-size: 12pt;
color: #2E4872;
border-bottom: 1px solid #2E4872;
padding-bottom: 3pt;
margin-bottom: 6pt;
}
.info-row { padding: 2pt 0; font-size: 10pt; }
.info-label { font-weight: bold; min-width: 120pt; display: inline-block; }
/* Page setup */
@page { margin: 15mm; }
@page { margin: 15mm; size: A4; }
}
/* Hidden in screen, visible in print */