﻿/* ===== print.css – Feuille de style pour impression ===== */

/* Réinitialisation générale */
* {
  background: transparent !important;
  color: #000 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}

/* Cacher les éléments non pertinents */
header,
footer,
nav,
aside,
.video,
object,
embed,
button,
input,
select,
textarea,
form,
.no-print,
.print-hide {
  display: none !important;
}

/* Supprimer les marges inutiles */
body {
  margin: 0;
  padding: 0;
  line-height: 1.4;
  font-size: 12pt;
  color: #000;
  background: #fff;
  visibility: hidden;
}

.map-container,
.map-container iframe,
iframe {
  display: block;
  height: 20em;
  width: 100%;
  max-width: 100%;
}

/* Garantir une mise en page propre */
main,
article,
section,
div {
  page-break-inside: avoid;
}

/* Gérer les sauts de page */
h1, h2, h3, h4, h5, h6,
p,
blockquote,
pre,
table,
ul, ol, dl,
figure {
  page-break-inside: avoid;
  page-break-after: auto;
}

/* Lien : afficher l'URL entre parenthèses */
a[href]:after {
  content: " (" attr(href) ")";
  font-size: 90%;
}

/* Supprimer les liens inutiles */
a[href^="#"]:after,
a[href^="javascript:"]:after {
  content: "";
}

/* Tableaux propres */
table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  border: 1px solid #ccc;
  padding: 4px;
}

/* Images imprimables */
img {
  max-width: 100% !important;
  height: auto !important;
  page-break-inside: avoid;
}

/* Titres */
h1, h2, h3 {
  font-weight: bold;
  margin-top: 1em;
}

/* Saut de page forcé (si besoin via classe .page-break) */
.page-break {
  page-break-before: always;
}

/* Supprimer tous les effets visuels */
.shadow,
.card,
.box,
.elevation,
.mat-elevation-z4,
.mat-elevation-z8,
[class*="shadow"],
[class*="elevation"],
[class*="box-shadow"] {
  box-shadow: none !important;
}

.adminDashboard {
  &.container {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  &.container > div > h1,
  .bodyHistorique.general,
  .bodyHistorique.services,
  .bodyHistorique.statistique,
  .bodyHistorique.utilisateurs,
  .bodyHistorique.equipe {
    display: none;
    margin: 0;
    padding: 0;
  }
  .historiqueSection {
    &> h2,
    .headerHistorique {
      display: none;
    }
  }
}

.historiqueSectionWrapper {
  overflow: visible;
}

#printArea, 
#printArea * {
  visibility: visible !important;
}

#printArea{
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Optimiser les impressions couleur uniquement si nécessaire */
@media print and (color) {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}


