@page {
  size: A4;
  margin: 15mm;
}

body,
body.parcours {
  background: #ffffff;
  color: #000000;
  font-size: 11pt;
}

.evitement,
.entete-site .menu,
.sommaire-dossier,
.dossiers-voisins,
.bouton {
  display: none;
}

.entete-site {
  border-bottom: 1px solid #000000;
  padding: 0 0 2mm;
}

main {
  max-width: none;
  padding: 0;
}

body.parcours main > * {
  max-width: none;
}

details::details-content {
  content-visibility: visible;
  display: block;
}

details > summary {
  list-style: none;
  font-weight: 700;
}

details > summary::-webkit-details-marker {
  display: none;
}

.facsimile > summary {
  color: #000000;
}

.facsimile-lien {
  max-width: none;
}

.facsimile-lien img {
  width: auto;
  max-width: 100%;
  max-height: 190mm;
  margin: 0 auto;
}

.page-origine {
  border-left: 0;
  padding-left: 0;
  margin: 0;
  break-inside: avoid;
}

.page-origine ~ .page-origine {
  break-before: page;
}

.page-origine > h2 {
  border: 1px solid #000000;
  break-after: avoid;
}

a {
  color: #000000;
}

a[href^="http"]::after {
  content: " (" attr(href) ")";
  font-size: 9pt;
  overflow-wrap: anywhere;
}

.pied-site {
  margin-top: 5mm;
  padding: 2mm 0 0;
  border-top: 1px solid #000000;
  font-size: 8pt;
  color: #000000;
}

.pied-site a::after {
  content: none;
}

.sequence-commandes {
  display: none;
}

.etape-cachee {
  display: block !important;
}

.sequence-dessin {
  overflow: visible;
  border: 0;
}

.schema-processus {
  min-width: 0;
  max-height: 180mm;
}

.sequence,
.schema-complet,
.sequence-etapes > li,
table {
  break-inside: avoid;
}

@page fiche-paysage {
  size: A4 landscape;
  margin: 10mm;
}

@page fiche-portrait {
  size: A4 portrait;
  margin: 12mm;
}

body.fiche .entete-site,
body.fiche .fiche-mode-emploi,
body.fiche .pied-site {
  display: none;
}

body.fiche-paysage main {
  page: fiche-paysage;
}

body.fiche-portrait main {
  page: fiche-portrait;
}

.fiche-feuille {
  margin: 0;
  padding: 0;
  border: 0;
  break-inside: avoid;
}

.fiche-decrire .fiche-corps {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: 4mm;
}

.fiche-decrire .schema-processus {
  max-height: 150mm;
}

.fiche-questions {
  font-size: 8pt;
}

.tableau-tri td {
  height: 13mm;
}

.tableau-tri th {
  font-size: 7.5pt;
}

.tableau-tri thead tr:first-child th:first-child {
  width: 30%;
}

.tableau-tri .en-tete-vertical {
  width: 7mm;
}

.tableau-tri .en-tete-vertical span {
  max-height: 28mm;
}

.fiche .fiche-pied {
  font-size: 8pt;
}

.bouton-tout,
.agrandissement {
  display: none;
}

.page-origine.page-visee {
  background: none;
}

.tableau-gabarit td {
  height: 9mm;
}

.note-editoriale {
  border-left: 2px solid #000000;
  background: none;
}

.page-origine[data-restitution="gabarit"] .facsimile {
  break-before: page;
}

@page formulaire-paysage {
  size: A4 landscape;
  margin: 10mm;
}

.page-origine[data-restitution="gabarit"]:has(.formulaire-paysage) {
  page: formulaire-paysage;
}

.formulaire-paysage .tableau-defilant {
  overflow: visible;
  margin-bottom: 3mm;
}

.formulaire-paysage th,
.formulaire-paysage td {
  padding: 1mm 1.5mm;
  font-size: 8.5pt;
}

.formulaire-paysage .tableau-formulaire td {
  height: 8.5mm;
}

.formulaire-paysage .formulaire-planning td {
  height: 7.8mm;
}

.formulaire-paysage .formulaire-titre {
  font-size: 13pt;
}

.formulaire-paysage .formulaire-paire {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5mm;
}

.formulaire-paysage .formulaire-retour {
  margin-top: 25mm;
}

.page-origine[data-restitution="gabarit"]:has(.formulaire-paysage) .facsimile-lien img {
  max-height: 140mm;
}

.section-chapitre > h2,
.chapitre-source {
  break-after: avoid;
}

.organigramme,
.arbre-service {
  break-inside: avoid;
}

.fiche-ligne,
.fiche-instruction-etapes li,
.fiche-sous-rubriques dd {
  min-height: 7.5mm;
}

.formulaire-paysage .formulaire-demi {
  max-width: 50%;
}

.formulaire-paysage .formulaire-demi-droite {
  margin-left: auto;
}

.formulaire-paysage .formulaire-courbe {
  grid-template-columns: 2fr 3fr;
}

.formulaire-paysage .zone-a-remplir {
  min-height: 0;
  height: 120mm;
}

.page-origine[data-restitution="gabarit"] .description-schema {
  break-inside: avoid;
}

.trois-etapes {
  break-inside: avoid;
}

.encadre-instruction {
  break-inside: avoid;
}

.fiche-lignes dd {
  min-height: 11mm;
}

.tableau-suivi th {
  font-size: 8pt;
}

.tableau-suivi td {
  height: 8.5mm;
}

.tableau-suivi .fiche-groupe td {
  height: 7mm;
  background: none;
}

.fiche-indicateur .fiche-lignes dd {
  min-height: 8mm;
}

.fiche-indicateur .fiche-sous-titre {
  margin-top: 1mm;
}

.fiche-consigne {
  font-size: 8pt;
}

.schema-agrandir {
  display: none;
}
