From b9acbce048e465c264cf8e4af0527760d5a5772c Mon Sep 17 00:00:00 2001 From: KONE SOREL Date: Tue, 6 Jan 2026 13:26:06 +0000 Subject: [PATCH] d --- Vue/Ajaxsyntheseconsopolice/index.php | 45 ++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/Vue/Ajaxsyntheseconsopolice/index.php b/Vue/Ajaxsyntheseconsopolice/index.php index e32ca5e..ec726af 100644 --- a/Vue/Ajaxsyntheseconsopolice/index.php +++ b/Vue/Ajaxsyntheseconsopolice/index.php @@ -17,7 +17,9 @@ } } ?> - +
@@ -73,4 +75,45 @@ .sticky-top { position: sticky; top: 0; z-index: 1020; } .sticky-bottom { position: sticky; bottom: 0; z-index: 1020; } tfoot td { border-top: 2px solid #333 !important; } + + @media print { + /* Masquer les éléments inutiles (menus, boutons, filtres) */ + nav, .navbar, .btn, .footer, .no-print, .card-body.bg-light { + display: none !important; + } + + /* Forcer le mode Paysage pour ce rapport large */ + @page { + size: A4 landscape; + margin: 1cm; + } + + /* Forcer l'affichage des couleurs de fond (Primes/Consos) */ + body { + -webkit-print-color-adjust: exact !important; + print-color-adjust: exact !important; + } + + /* Ajuster le tableau pour qu'il tienne sur la largeur de la page */ + .table-responsive { + overflow: visible !important; + max-height: none !important; + } + + table { + width: 100% !important; + border-collapse: collapse !important; + font-size: 7pt !important; /* Réduction légère pour l'impression */ + } + + /* Garder les en-têtes sur chaque page si le tableau est long */ + thead { + display: table-header-group; + } + + /* Empêcher de couper une ligne d'adhérent entre deux pages */ + tr { + page-break-inside: avoid; + } + } \ No newline at end of file