/*
 * PICMAN — feuille d'impression.
 *
 * Chargée en dernier par l'en-tête commun (head.xhtml) avec media="print" : rien ici ne
 * touche l'écran. Conventions, marqueurs (print-only, print-hide, print-landscape,
 * print-title-source) et pièges connus : docs/PRINT.md.
 *
 * Principe : le papier ne reçoit que la donnée. Tout ce qui sert à agir (navigation, saisie,
 * boutons, filtres, pagination, dialogues) disparaît ; ce qui reste est mis en forme pour
 * l'encre — texte foncé, filets fins, aucune information portée par un fond seul.
 */

/* ==========================================================================
   1. Jetons
   ========================================================================== */

:root {
	/* Palette du papier, indépendante du mode sombre de l'écran */
	--print-ink: #111827;
	--print-muted: #4B5563;
	--print-rule: #9CA3AF;
	--print-rule-light: #D1D5DB;
	--print-zebra: #F3F4F6;
	--print-accent: #1D4ED8;
	--print-success: #15803D;
	--print-warning: #B45309;
	--print-danger: #B91C1C;
	--print-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
	--print-size-body: 9.5pt;
	--print-size-table: 8.5pt;
	--print-size-small: 7.5pt;
	--print-size-title: 15pt;
	--print-size-section: 11pt;
	--print-gap: 4mm;
}

/* ==========================================================================
   2. Pages : format, marges, pied numéroté, orientation
   ========================================================================== */

@page {
	size: A4 portrait;
	margin: 14mm 12mm 16mm;

	@bottom-left {
		content: "PICMAN · Centre de Vol à Voile de Montpellier";
		font-family: var(--print-font);
		font-size: 7pt;
		color: #6B7280;
	}

	@bottom-right {
		content: "Page " counter(page) " sur " counter(pages);
		font-family: var(--print-font);
		font-size: 7pt;
		color: #6B7280;
	}
}

@page landscape {
	size: A4 landscape;
	margin: 12mm 12mm 14mm;
}

/* Un écran (ou l'onglet actif d'un écran) à tableau large passe tout le document en paysage */
body:has(.print-landscape:not(.ui-helper-hidden .print-landscape)) {
	page: landscape;
}

/* ==========================================================================
   3. Chrome de l'application : rien de ce qui sert à agir ne s'imprime
   ========================================================================== */

.side,
.side-scrim,
.topbar,
.tabbar,
.app-progress,
.icon-sprite,
.pagehead__actions,
.skip-link,
.dl-overlay,
.ui-growl,
.ui-dialog,
.ui-widget-overlay,
.ui-dialog-mask,
.ui-confirm-dialog,
.ui-confirmdialog,
.ui-tooltip,
.ui-overlaypanel,
.ui-autocomplete-panel,
.ui-selectonemenu-panel,
.ui-datepicker,
.ui-datepicker-trigger,
.ui-calendar .ui-button,
.ui-autocomplete-dropdown,
.ui-ajax-status,
.ui-spacer,
.ui-message,
.ui-messages,
.ui-paginator,
.ui-sortable-column-icon,
.ui-column-filter,
.ui-column-customfilter,
.ui-row-toggler,
.ui-panel-titlebar-icon,
.ui-button,
button,
.print-hide {
	display: none !important;
}

/* Même liste sous #page : la spécificité d'un identifiant l'emporte sur les règles
   « display … !important » à plusieurs classes des écrans */
#page :is(.pagehead__actions, .ui-dialog, .ui-widget-overlay, .ui-tooltip, .ui-overlaypanel, .ui-datepicker,
	.ui-datepicker-trigger, .ui-autocomplete-dropdown, .ajax-status, .ui-spacer, .ui-message, .ui-messages,
	.ui-paginator, .ui-sortable-column-icon, .ui-column-filter, .ui-row-toggler, .ui-panel-titlebar-icon,
	.ui-button, button, .print-hide) {
	display: none !important;
}

/* ==========================================================================
   4. Fond, typographie, surfaces
   ========================================================================== */

#page *,
#page *::before,
#page *::after {
	box-shadow: none !important;
	background-image: none !important;
	-webkit-text-fill-color: currentcolor !important;
	text-shadow: none !important;
	animation: none !important;
	transition: none !important;
}

html,
body {
	background: #FFFFFF !important;
	color: var(--print-ink) !important;
	font-family: var(--print-font) !important;
	font-size: var(--print-size-body) !important;
	line-height: 1.35;
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	overflow: visible !important;
}

#page .ui-widget,
#page .ui-widget input,
#page .ui-widget select,
#page .ui-widget textarea,
#page .ui-widget button {
	font-family: var(--print-font) !important;
	font-size: inherit;
}

#page,
#content,
main#content {
	display: block !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
	background: none !important;
}

/* Rien de collant ni de fixe parmi ce qui s'imprime : sur papier, un élément fixe se répète
   sur chaque page (le dock de menu s'imprimait au milieu de chacune) */
#page .ui-datatable-sticky,
#page .ui-datatable thead th {
	position: static !important;
}

a,
a:visited {
	color: inherit !important;
	text-decoration: none !important;
}

img {
	max-width: 100% !important;
}

h1,
h2,
h3,
h4,
.ui-panel-titlebar {
	break-after: avoid;
	page-break-after: avoid;
}

p {
	orphans: 3;
	widows: 3;
}

/* Cartes et panneaux : fond blanc, filet fin, plus d'ombre ni de dégradé */
#page .ui-panel,
#page .ui-panel-content,
#page .ui-widget-content,
#page .ui-tabs,
#page .ui-tabs-panel,
#page .pilot-status {
	background: #FFFFFF !important;
	background-image: none !important;
	color: var(--print-ink) !important;
	border-color: var(--print-rule-light) !important;
	overflow: visible !important;
	max-height: none !important;
	height: auto !important;
}

#page .ui-panel {
	border: none !important;
	border-radius: 0 !important;
	margin: 0 0 var(--print-gap) !important;
	padding: 0 !important;
}

#page .ui-panel .ui-panel-content {
	padding: 1.5mm 0 0 !important;
	border: none !important;
}

#page .ui-panel .ui-panel-footer {
	display: none !important;
}

/* Titre de panneau : texte encre, filet d'accent (le dégradé bleu et le texte blanc disparaissent au papier) */
#page .ui-panel .ui-panel-titlebar {
	background: none !important;
	color: var(--print-ink) !important;
	border: none !important;
	border-bottom: 1.2pt solid var(--print-accent) !important;
	border-radius: 0 !important;
	padding: 0 0 1mm !important;
	margin: 0 0 1.5mm !important;
	font-size: var(--print-size-section) !important;
	font-weight: 700 !important;
}

#page .ui-panel .ui-panel-title {
	color: var(--print-ink) !important;
	font-weight: 700 !important;
}

#page .ui-separator,
#page hr {
	border: none !important;
	border-top: 0.5pt solid var(--print-rule-light) !important;
	margin: 2mm 0 !important;
	background: none !important;
}

/* ==========================================================================
   5. En-tête du document
   ========================================================================== */

.print-masthead {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 6mm;
	padding: 0 0 2.5mm;
	margin: 0 0 4mm;
	border-bottom: 0.75pt solid var(--print-ink);
	break-inside: avoid;
}

.print-masthead-brand {
	display: flex;
	align-items: center;
	gap: 3mm;
}

.print-masthead-logo {
	width: 24mm;
	height: 12mm;
	object-fit: contain;
}

.print-masthead-club,
.print-masthead-meta {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.print-masthead-name {
	font-size: 12pt;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: var(--print-ink);
}

.print-masthead-org {
	font-size: 8pt;
	color: var(--print-muted);
}

.print-masthead-meta {
	align-items: flex-end;
	text-align: right;
	font-size: 8pt;
	color: var(--print-muted);
}

.print-masthead-date {
	color: var(--print-ink);
	font-weight: 600;
}

/* En-tête de page (shell.xhtml) : le titre devient celui du document, la rubrique et les actions
   n'apportent rien au papier */
#page .pagehead {
	display: block !important;
	margin: 0 0 3mm !important;
}

#page .pagehead__group {
	display: none !important;
}

#page .pagehead__titles {
	position: static !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	overflow: visible !important;
	clip-path: none !important;
	white-space: normal !important;
}

/* Le gabarit écran laisse la place de la barre latérale : le papier prend toute la largeur */
.shell__main {
	margin-left: 0 !important;
}

/* Les deux accueils s'impriment sous leur propre titre (« Activité de la saison 2026 », « Accueil
   administratif, mercredi 18 novembre 2026 ») : « Accueil » n'y ajoute rien */
#page:has(.home__print-title) .pagehead,
#page:has(.desk__print-title) .pagehead {
	display: none !important;
}

#page .page-title {
	font-size: var(--print-size-title) !important;
	font-weight: 700 !important;
	color: var(--print-ink) !important;
	margin: 0 !important;
	letter-spacing: 0 !important;
}

/* Mention « Extrait » posée par print.js sur un tableau resté partiel */
.print-excerpt {
	display: block !important;
	margin: 0 0 1.5mm !important;
	padding: 1mm 2mm !important;
	border-left: 2pt solid var(--print-warning);
	font-size: var(--print-size-small) !important;
	color: var(--print-muted) !important;
	font-style: italic;
}

/* Ligne de contexte imprimée (critères d'un écran : date, période…) */
.print-context {
	display: block !important;
	margin: 0 0 2mm !important;
	font-size: 9pt !important;
	color: var(--print-muted) !important;
}

.print-context strong {
	color: var(--print-ink);
}

/* ==========================================================================
   6. Saisies : les formulaires d'action sont masqués écran par écran (section 9) ;
      un champ qui reste imprimé porte une donnée (montant d'une grille, membre
      consulté) et se lit comme du texte
   ========================================================================== */

#page input,
#page select,
#page textarea,
#page .ui-inputfield,
#page .ui-inputtext,
#page .ui-inputnumber input,
#page .ui-selectonemenu,
#page .ui-selectonemenu-label {
	background: none !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	min-height: 0 !important;
	height: auto !important;
	width: auto !important;
	color: var(--print-ink) !important;
	font: inherit !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

#page input::placeholder,
#page textarea::placeholder {
	color: transparent !important;
}

#page .ui-selectonemenu-trigger,
#page .ui-inputnumber .ui-inputnumber-button,
#page .ui-spinner-button {
	display: none !important;
}

/* Cases à cocher PrimeFaces : petit carré, coche à l'encre (la coche blanche sur fond bleu disparaîtrait) */
#page .ui-chkbox {
	display: inline-flex !important;
	vertical-align: middle;
}

#page .ui-chkbox .ui-chkbox-box {
	width: 3.2mm !important;
	height: 3.2mm !important;
	min-width: 0 !important;
	background: #FFFFFF !important;
	border: 0.75pt solid var(--print-muted) !important;
	border-radius: 0.6mm !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
}

#page .ui-chkbox .ui-chkbox-box.ui-state-active {
	border-color: var(--print-ink) !important;
}

#page .ui-chkbox .ui-chkbox-icon {
	color: var(--print-ink) !important;
	font-size: 2.6mm !important;
	font-weight: 700 !important;
	visibility: visible !important;
}

#page .ui-chkbox .ui-chkbox-box:not(.ui-state-active) .ui-chkbox-icon {
	visibility: hidden !important;
}

/* PrimeFaces masque les colonnes à « priority » hors @media screen : à l'impression, toutes disparaissaient */
#page th[class*="ui-column-p-"]:not(.ui-helper-hidden),
#page td[class*="ui-column-p-"]:not(.ui-helper-hidden) {
	display: table-cell !important;
}

#page .ui-datatable,
#page .ui-datatable-tablewrapper,
#page .ui-datatable-scrollable-body {
	overflow: visible !important;
	max-height: none !important;
	height: auto !important;
	width: 100% !important;
	transform: none !important;
	border: none !important;
	border-radius: 0 !important;
	background: none !important;
}

#page .ui-datatable table {
	width: 100% !important;
	table-layout: auto !important;
	border-collapse: collapse !important;
	font-size: var(--print-size-table) !important;
	font-variant-numeric: tabular-nums;
}

#page .ui-datatable thead {
	display: table-header-group !important;
}

#page .ui-datatable tfoot {
	display: table-footer-group !important;
}

#page .ui-datatable tr {
	break-inside: avoid;
	page-break-inside: avoid;
}

#page .ui-datatable thead th,
#page .ui-datatable thead th.ui-state-default,
#page .ui-datatable thead th.ui-sortable-column,
#page .ui-datatable thead th.ui-state-active {
	background: none !important;
	color: var(--print-ink) !important;
	font-weight: 700 !important;
	font-size: var(--print-size-small) !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	white-space: normal !important;
	vertical-align: bottom !important;
	text-align: left;
	padding: 1mm 1.5mm !important;
	border: none !important;
	border-bottom: 0.9pt solid var(--print-ink) !important;
	height: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	width: auto !important;
}

#page .ui-datatable thead th,
#page .ui-datatable thead th * {
	font-family: var(--print-font) !important;
}

#page .ui-datatable thead th .ui-column-title {
	color: var(--print-ink) !important;
}

#page .ui-datatable tbody td,
#page .ui-datatable .ui-datatable-data > tr > td {
	font-size: var(--print-size-table) !important;
	background: none !important;
	color: var(--print-ink) !important;
	padding: 0.8mm 1.5mm !important;
	border: none !important;
	border-bottom: 0.4pt solid var(--print-rule-light) !important;
	vertical-align: top !important;
	white-space: normal !important;
	overflow: visible !important;
	text-overflow: clip !important;
	max-width: none !important;
	height: auto !important;
	min-width: 0 !important;
	word-break: normal !important;
	overflow-wrap: break-word;
}

#page .ui-datatable .ui-datatable-data > tr,
#page .ui-datatable .ui-datatable-data > tr.ui-state-highlight,
#page .ui-datatable .ui-datatable-data > tr.ui-state-hover {
	background: none !important;
	color: var(--print-ink) !important;
	border: none !important;
}

/* Lignes alternées : seul fond conservé, pour suivre une ligne d'un bord à l'autre */
#page .ui-datatable .ui-datatable-data > tr:nth-child(even) > td {
	background: var(--print-zebra) !important;
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}

#page .ui-datatable .ui-datatable-data > tr > td * {
	white-space: normal !important;
	overflow: visible !important;
	text-overflow: clip !important;
	max-width: none !important;
}

/* Une adresse e-mail n'a pas d'espace : sans coupure possible, elle impose sa largeur au tableau */
#page a[href^="mailto:"] {
	overflow-wrap: anywhere !important;
	word-break: break-all;
}

#page .ui-datatable .ui-datatable-empty-message td {
	font-style: italic;
	color: var(--print-muted) !important;
}

/* Tableau en mode « reflow » (empilé sur mobile) : toujours rendu en tableau sur papier */
#page .ui-datatable-reflow thead th:not(.ui-helper-hidden),
#page .ui-datatable-reflow tfoot td:not(.ui-helper-hidden) {
	display: table-cell !important;
}

#page .ui-datatable-reflow .ui-datatable-data > tr > td:not(.ui-helper-hidden) {
	display: table-cell !important;
	width: auto !important;
	float: none !important;
	clear: none !important;
}

#page .ui-datatable-reflow .ui-datatable-data > tr > td .ui-column-title {
	display: none !important;
}

#page .ui-datatable-reflow .ui-datatable-data > tr {
	display: table-row !important;
}

#page .ui-datatable-reflow thead {
	display: table-header-group !important;
}

/* Colonne masquée (visible="false") : elle doit le rester malgré les règles ci-dessus */
#page .ui-datatable th.ui-helper-hidden,
#page .ui-datatable td.ui-helper-hidden {
	display: none !important;
}

/* Tables simples (panelGrid des statistiques…) */
#page .ui-panelgrid,
#page .ui-panelgrid table {
	border-collapse: collapse !important;
	background: none !important;
}

#page .ui-panelgrid > tbody > tr,
#page .ui-panelgrid > thead > tr,
#page .ui-panelgrid .ui-panelgrid-cell,
#page .ui-panelgrid td,
#page .ui-panelgrid th {
	background: none !important;
	color: var(--print-ink);
	border: none !important;
	border-bottom: 0.4pt solid var(--print-rule-light) !important;
	padding: 0.6mm 1.5mm !important;
	font-size: var(--print-size-table) !important;
}

#page .ui-panelgrid.ui-noborder td,
#page .ui-panelgrid.ui-noborder .ui-panelgrid-cell {
	border: none !important;
}

/* ==========================================================================
   8. Pastilles et états : la couleur porte une information, elle est conservée
   ========================================================================== */

#page .badge,
#page .pilot-kpi-card {
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}

#page .badge {
	border: 0.5pt solid currentColor !important;
	padding: 0 1.2mm !important;
	border-radius: 1mm !important;
	font-size: var(--print-size-small) !important;
}

/* Navigation, ligne de saisie, suivi OGN/GESASSO et panneau OGN : rien de cela ne s'imprime */
#page .board-head,
#page .ogn-panel {
	display: none !important;
}

/* Synthèse de la journée en une ligne sous le titre */
#page .board-summary__tiles {
	display: flex !important;
	flex-wrap: wrap;
	gap: 1.5mm 7mm !important;
	padding: 0 !important;
	margin: 0 0 2mm !important;
	border: 0 !important;
}

#page .board-tile {
	display: flex !important;
	align-items: baseline;
	gap: 1.2mm;
	padding: 0 !important;
	border: 0 !important;
}

#page .board-tile__label {
	font-size: 8pt !important;
	color: var(--print-muted) !important;
}

#page .board-tile__value {
	font-size: 9.5pt !important;
	font-weight: 700 !important;
	color: var(--print-ink) !important;
}

#page .board-tile__value small {
	font-size: 8pt !important;
	font-weight: 400 !important;
	color: var(--print-muted) !important;
}

/* Le tableau tient sur la largeur du papier, toutes les lignes, sans fond */
#page .board__scroll {
	overflow: visible !important;
}

#page .board-table {
	min-width: 0 !important;
}

/* Le Suivi (OGN, GESASSO) ne s'imprime pas : sa colonne rend sa place à la Note */
#page .board-col--status {
	width: 0 !important;
}

#page .board-col--note {
	width: 12% !important;
}

#page .board-table td,
#page .board-table th {
	background: none !important;
	white-space: normal !important;
}

#page .bill {
	padding: 0 !important;
	box-shadow: none !important;
	background: none !important;
	color: var(--print-ink) !important;
}

/* La liste affichée en entier, recherche et filtres en titre ; sans photos, chevrons ni boutons */
#page .members {
	border: none !important;
}

#page .members__scroll {
	max-height: none !important;
	overflow: visible !important;
}

#page .members-table thead {
	position: static !important;
}

#page .members-table {
	font-size: 8pt !important;
}

/* Colonnes ramenées au papier paysage : le contact prend le reste de la largeur */
#page .members-col--toggle { width: 0 !important; }
#page .members-col--who { width: 58mm !important; }
#page .members-col--season { width: 13mm !important; }
#page .members-col--roles { width: 48mm !important; }
#page .members-col--bundle { width: 30mm !important; }
#page .members-col--balance { width: 34mm !important; }
#page .members-col--actions { width: 0 !important; }

#page .members-table th,
#page .members-table td {
	height: auto !important;
	padding-block: 1mm !important;
	background: none !important;
	box-shadow: none !important;
	white-space: normal !important;
}

#page .members-table td.member__calls {
	display: none !important;
}

#page .member__tel,
#page .member__mail,
#page .member-civil__item a {
	color: var(--print-ink) !important;
}

#page .member__tel .icon,
#page .member__mail .icon {
	display: none !important;
}

#page .role-tag {
	padding: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: var(--print-ink) !important;
}

#page .role-tag + .role-tag::before {
	content: "·\00a0";
}

/* Les en-têtes triables restent lisibles : seul leur bouton d'écran disparaît */
#page .members-table .sort-button {
	display: inline !important;
	padding: 0 !important;
}

#page .members-table .sort-button .icon {
	display: none !important;
}

#page .member__civil td {
	padding: 0 2mm 2mm 4mm !important;
}

/* En-tête du membre en une bande : identité, solde, forfait, situation */
#page .pilot {
	margin: 0 0 3mm !important;
	border: none !important;
	border-bottom: 0.5pt solid var(--print-rule) !important;
	border-radius: 0 !important;
}

#page .pilot__top {
	display: flex !important;
	flex-wrap: wrap;
	gap: 1mm 8mm;
	padding: 0 0 2mm !important;
}

#page .pilot__cell {
	padding: 0 !important;
	border: none !important;
}

#page .pilot__avatar {
	display: none !important;
}

#page .pilot__name {
	font-size: var(--print-size-section) !important;
}

#page .pilot__figure {
	font-size: 12pt !important;
}

#page .pilot__label,
#page .pilot__sub,
#page .pilot__meta {
	color: var(--print-muted) !important;
	font-size: 8.5pt !important;
}

#page .meter {
	display: none !important;
}

#page .chip,
#page .pill {
	padding: 0 !important;
	background: none !important;
	color: var(--print-ink) !important;
}

/* Le relevé : toutes les lignes, sans défilement ni ligne collante */
#page .ledger {
	border: none !important;
}

#page .ledger__scroll {
	max-height: none !important;
	overflow: visible !important;
}

#page .ledger-table thead,
#page .ledger-table tfoot {
	position: static !important;
}

/* Colonnes ramenées au papier : le libellé prend le reste de la largeur */
#page .ledger-col--date { width: 22mm !important; }
#page .ledger-col--type { width: 26mm !important; }
#page .ledger-col--money { width: 21mm !important; }
#page .ledger-col--bundle { width: 16mm !important; }
#page .ledger-col--balance { width: 22mm !important; }
#page .ledger-col--actions { width: 0 !important; }
#page .ledger-col--detail { width: 0 !important; }

#page .ledger-table td,
#page .ledger-table th {
	height: auto !important;
	padding-block: 1mm !important;
	background: none !important;
	white-space: normal !important;
}

#page .ledger-total td {
	border-top: 0.5pt solid var(--print-rule) !important;
}

#page .ledger__print-title {
	margin: 0 0 2mm !important;
	font-size: var(--print-size-section) !important;
}

/* Période, filtres et totaux en tête, puis le tableau du carnet en entier */
#page .logbook-summary,
#page .logbook-board {
	border: none !important;
	padding: 0 !important;
}

#page .logbook-tiles {
	display: flex !important;
	flex-wrap: wrap;
	gap: 1mm 6mm !important;
}

#page .logbook-tile {
	padding: 0 !important;
	border: none !important;
	background: none !important;
}

#page .logbook-tile__value {
	font-size: 11pt !important;
	color: var(--print-ink) !important;
}

#page .logbook-board__scroll {
	overflow: visible !important;
}

#page .logbook-table {
	min-width: 0 !important;
}

/* Colonnes ramenées au papier : l'aéronef prend le reste de la largeur */
#page .logbook-col--date { width: 27mm !important; }
#page .logbook-col--type { width: 14mm !important; }
#page .logbook-col--role { width: 31mm !important; }
#page .logbook-col--hours { width: 19mm !important; }
#page .logbook-col--count { width: 9mm !important; }

#page .logbook-table td.logbook-row__aircraft {
	display: table-cell !important;
}

#page .logbook-table th {
	overflow: visible !important;
	text-overflow: clip !important;
}
#page .logbook-col--delete { width: 0 !important; }

#page .logbook-table th,
#page .logbook-table td {
	height: auto !important;
	padding-block: 1mm !important;
	background: none !important;
	white-space: normal !important;
}

#page .logbook-month th,
#page .logbook-month td {
	border-bottom: 0.5pt solid var(--print-rule) !important;
}

/* ---------- Tarifs et Forfaits : la grille de l'exercice et ses règles, l'offre de forfaits ---------- */

#page .rates-card,
#page .bundles-card {
	border: 0 !important;
	box-shadow: none !important;
}

#page .rates-table thead th,
#page .bundles-table thead th {
	background: none !important;
	border-bottom: 0.75pt solid var(--print-rule) !important;
}

#page .rates-line > th,
#page .rates-line > td,
#page .bundles-row > th,
#page .bundles-row > td {
	padding: 0.8mm 2mm !important;
	border-bottom: 0.5pt solid var(--print-rule-light) !important;
	background: none !important;
	break-inside: avoid;
}

#page .rates-family th {
	padding-top: 2.5mm !important;
	color: var(--print-ink) !important;
	break-after: avoid;
}

/* Un champ de saisie ne déborde pas de sa boîte : sans largeur minimale, la colonne se
   resserre sur le montant et rogne le symbole de l'unité */
#page .rates-amount-input,
#page .rates-amount-input input {
	text-align: right !important;
	width: 100% !important;
	min-width: 24mm !important;
}

#page .rates-origin,
#page .rates-note {
	background: none !important;
	border: 0.5pt solid var(--print-rule-light) !important;
	color: var(--print-ink) !important;
}

#page .rates-origin--undefined {
	border-style: dashed !important;
}

/* Règles de la politique tarifaire : picman-rates.js les déplie à l'impression */
#page .rates-rules > summary {
	padding: 4mm 0 2mm !important;
	color: var(--print-ink) !important;
}

#page .rates-rules > summary .icon {
	display: none !important;
}

#page .rates-rules__groups {
	display: block !important;
	column-count: 2;
	column-gap: 7mm;
	padding: 0 !important;
}

#page .rates-rules__group {
	margin: 0 0 4mm !important;
	break-inside: avoid;
}

#page .rates-rules__title {
	padding-bottom: 0.8mm !important;
	border-bottom: 0.9pt solid var(--print-accent) !important;
	font-size: 9.5pt !important;
}

#page .rates-rules__title .pi {
	display: none !important;
}

#page .rates-rules__list {
	font-size: 8pt !important;
}

/* ---------- Vols d'initiation (vpf.xhtml) : les journées réservées et leur encadrement, sur une colonne ---------- */

#page .vi-cols {
	display: block !important;
}

#page .vi-lead {
	display: none !important;
}

#page .vi-group {
	break-inside: avoid;
}

#page .vi-staff {
	background: none !important;
	border: 0.5pt solid var(--print-rule-light) !important;
}

/* ---------- Planeurs et Remorqueurs : la liste filtrée, en mots, sans recherche ni boutons ---------- */

#page .fleet {
	border: 0 !important;
	box-shadow: none !important;
}

#page .fleet-table thead th {
	background: none !important;
	border-bottom: 0.75pt solid var(--print-rule) !important;
}

#page .fleet-row > th,
#page .fleet-row > td {
	padding: 1mm 2mm !important;
	border-bottom: 0.5pt solid var(--print-rule-light) !important;
	break-inside: avoid;
}

#page .fleet-tag {
	background: none !important;
	border: 0.5pt solid var(--print-rule-light) !important;
	color: var(--print-ink) !important;
}

#page .fleet-tag--off {
	border-style: dashed !important;
	color: var(--print-muted) !important;
}

#page .fleet-generic {
	break-inside: avoid;
}

/* ---------- Export GNAV (gnav.xhtml) : les lignes de la période, les aéronefs à zéro résumés par journée ---------- */

#page .gnav {
	border: 0 !important;
	box-shadow: none !important;
}

#page .gnav-table thead th {
	background: none !important;
	border-bottom: 0.75pt solid var(--print-rule) !important;
}

#page .gnav-line > th,
#page .gnav-line > td,
#page .gnav-day__head th,
#page .gnav-day__idle > td {
	padding: 0.6mm 2mm !important;
	border-bottom: 0.5pt solid var(--print-rule-light) !important;
}

#page .gnav-day {
	break-inside: avoid;
}

/* La journée imprimée : les rôles et leurs inscrits, sans semaine, boutons ni commentaire à saisir */
#page .png {
	display: block !important;
}

#page .png__side,
#page .png-role__action,
#page .png-person__avatar {
	display: none !important;
}

#page .png-group__cards {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 2mm 6mm !important;
}

#page .png-role {
	break-inside: avoid;
	padding: 0 0 1.5mm !important;
	border: none !important;
	border-bottom: 0.5pt solid var(--print-rule-light) !important;
	border-radius: 0 !important;
}

#page .png-attention__item,
#page .png-person__check {
	padding: 0 !important;
	background: none !important;
	color: var(--print-ink) !important;
}

/* Situation du pilote : imprimée seulement si elle est dépliée à l'écran */
#page .pilot-status.is-collapsed,
#page .pilot-status__links,
#page .pilot-status__chevron,
#page .pilot-status__head .chip {
	display: none !important;
}

#page .pilot-status {
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	margin: 0 0 4mm !important;
}

#page .pilot-status__head {
	padding: 0 0 1mm !important;
	margin: 0 0 1.5mm !important;
	border: none !important;
	border-bottom: 1.2pt solid var(--print-accent) !important;
}

#page .pilot-status__toggle {
	min-height: 0 !important;
	padding: 0 !important;
	color: var(--print-ink) !important;
	font-size: var(--print-size-section) !important;
	font-weight: 700 !important;
}

#page .pilot-status__toggle .icon {
	display: none !important;
}

#page .pilot-status__body {
	padding: 0 !important;
	background: none !important;
}

#page .pilot-kpi-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 1.5mm 3mm !important;
}

#page .pilot-kpi-card {
	display: flex !important;
	align-items: center;
	gap: 1.5mm;
	background: none !important;
	border: 0.5pt solid var(--print-rule-light) !important;
	border-left-width: 2pt !important;
	border-radius: 0 1mm 1mm 0 !important;
	padding: 1mm 1.5mm !important;
	min-height: 0 !important;
	break-inside: avoid;
}

#page .pilot-kpi-card--ok { border-left-color: var(--print-success) !important; }
#page .pilot-kpi-card--warning { border-left-color: var(--print-warning) !important; }
#page .pilot-kpi-card--alert { border-left-color: var(--print-danger) !important; }

#page .pilot-kpi-icon,
#page .pilot-kpi-status {
	display: none !important;
}

#page .pilot-kpi-label {
	display: block;
	font-size: var(--print-size-small) !important;
	color: var(--print-muted) !important;
	text-transform: none !important;
}

#page .pilot-kpi-value {
	font-size: 9pt !important;
	font-weight: 700 !important;
}

/* La fiche FFVP, les qualifications puis l'état de chaque mail en mots ; la photo et les
   interrupteurs sont des gestes */
#page .profile {
	display: flex !important;
	flex-direction: column;
	gap: 5mm;
}

#page .profile__col,
#page .profile__form {
	display: contents !important;
}

#page .profile-fiche { order: 1; }
#page .profile-quals { order: 2; }
#page .profile-mails { order: 3; }

#page .profile-card {
	padding: 0 !important;
	border: none !important;
	break-inside: avoid;
}

#page .profile-fiche__groups {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 3mm 6mm !important;
}

#page .profile-fiche__row {
	grid-template-columns: 30mm minmax(0, 1fr) !important;
}

#page .profile-fiche__authority {
	padding: 0 !important;
	border: none !important;
	background: none !important;
}

#page .profile-fiche__authority .icon,
#page .profile-mails__none .icon {
	display: none !important;
}

#page .mail-option {
	padding-block: 1.5mm !important;
}

#page .mail-option__print {
	font-weight: 700;
}

/* Portrait : les chiffres clés, le graphe avec son tableau, les listes complètes, les quatre
   populations et les trois vues du bilan à la suite ; ni bande d'état, ni boutons, ni menus */
#page .home-tiles {
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 2mm !important;
}

#page .home-tile {
	padding: 1.5mm 2mm !important;
	transform: none !important;
	break-inside: avoid;
}

#page .home-tile__value {
	font-size: 14pt !important;
}

#page .home-grid,
#page .home-grid--halves,
#page .home-stack {
	display: block !important;
}

#page .home-card {
	margin: 0 0 5mm !important;
	padding: 0 !important;
	border: none !important;
}

#page .home-chart__svg {
	width: 100% !important;
}

#page .home-chart__tip {
	display: none !important;
}

#page .home-chart__table,
#page .home-panel {
	display: block !important;
	margin-bottom: 3mm;
}

#page .home-table th,
#page .home-table td {
	padding-block: 0.6mm !important;
}

#page .home-panel__print-title {
	margin: 2mm 0 1mm;
	font-size: 9.5pt;
}

#page .home-fleet {
	columns: 2 !important;
}

#page .home-tows,
#page .home-card__head {
	break-inside: avoid;
}

#page .home-card__head {
	break-after: avoid;
}

/* ==========================================================================
   Accueil administratif (desk.xhtml) : portrait, le secrétariat puis la trésorerie, tous les débiteurs
   et les anciens membres dépliés ; ni recherche, ni bascule, ni boutons
   ========================================================================== */

#page .desk__cols,
#page .desk__col {
	display: block !important;
}

#page .desk__col-head {
	position: static !important;
	width: auto !important;
	height: auto !important;
	margin: 3mm 0 2mm !important;
	clip: auto !important;
}

#page .desk-card {
	margin: 0 0 4mm !important;
	box-shadow: none !important;
}

#page .desk-card__head,
#page .desk-gap,
#page .desk-vi__day,
#page .desk-debtor,
#page .desk-payment {
	break-inside: avoid;
}

#page .desk-card__head {
	break-after: avoid;
}

#page .desk-loading,
#page .desk-skeleton,
#page .desk-former__chevron {
	display: none !important;
}

#page .desk-channel {
	transform: none !important;
}

#page .desk-former,
#page .desk-channel,
#page .desk-free {
	background: none !important;
	box-shadow: none !important;
	border: 0.5pt solid var(--print-rule-light) !important;
}

/* ==========================================================================
   Annuaire (directory.xhtml) : portrait, une ligne par membre affiché, l'avertissement de
   confidentialité en tête ; ni cartes, ni photos, ni recherche, ni fenêtre des secteurs
   ========================================================================== */

#page .directory__list > .directory__group,
#page .directory__empty {
	display: none !important;
}

#page .directory__print-title {
	margin: 0 0 2mm !important;
	font-size: 12pt !important;
}

#page .directory__print-confidential {
	display: flex !important;
	align-items: center;
	gap: 1.5mm;
	margin: 0 0 3mm !important;
	padding: 1mm 2mm !important;
	border: 0.5pt solid var(--print-ink) !important;
	border-radius: 1mm;
	font-size: 8.5pt !important;
	font-weight: 600;
}

#page .directory-print {
	width: 100% !important;
	border-collapse: collapse !important;
	font-size: 7.5pt !important;
	table-layout: auto !important;
}

#page .directory-print th,
#page .directory-print td {
	padding: 0.8mm 1.2mm !important;
	border-bottom: 0.4pt solid var(--print-rule-light) !important;
	text-align: left;
	vertical-align: top;
}

#page .directory-print th,
#page .directory-print td:nth-child(3),
#page .directory-print td:nth-child(5) {
	white-space: nowrap;
}

#page .directory-print td:nth-child(6) {
	overflow-wrap: anywhere;
}

#page .directory-print thead th {
	border-bottom: 0.8pt solid var(--print-ink) !important;
	font-size: 7pt !important;
	text-transform: uppercase;
}

#page .directory-print tr[hidden] {
	display: none !important;
}

#page .directory-print__name {
	font-weight: 700;
}

#page .directory__print-note {
	margin: 2mm 0 0 !important;
	font-size: 7.5pt !important;
}

/* ==========================================================================
   Planches de vol (boards.xhtml) : paysage, toutes les journées affichées avec leurs totaux ;
   ni recherche, ni filtres, ni boutons de trace ; « Toi » reste écrit
   ========================================================================== */

#page .boards__period {
	display: block !important;
}

#page .boards__sub {
	display: none !important;
}

#page .boards__print-title {
	margin: 0 0 2mm !important;
	font-size: 12pt !important;
}

#page .bill + .bill {
	margin-left: 1.5mm !important;
}

#page .boards-band {
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	border: 0.5pt solid var(--print-rule-light) !important;
	box-shadow: none !important;
}

#page .boards-band__cell {
	padding: 1mm 3mm !important;
	background: none !important;
}

#page .boards-band__value {
	font-size: 12pt !important;
}

#page .boards__scroll {
	overflow: visible !important;
	border: none !important;
	box-shadow: none !important;
}

#page .boards-table {
	min-width: 0 !important;
	font-size: 7.5pt !important;
}

#page .boards-table thead th {
	position: static !important;
	background: none !important;
	border-bottom: 0.8pt solid var(--print-ink) !important;
}

#page .boards-col--trace {
	width: 0 !important;
}

#page .boards-table th,
#page .boards-table td {
	height: auto !important;
	padding-block: 0.6mm !important;
	background: none !important;
	box-shadow: none !important;
}

#page .boards-day {
	break-inside: auto;
}

#page .boards-day__head th {
	padding-top: 2mm !important;
	border-bottom: 0.6pt solid var(--print-ink) !important;
	color: var(--print-ink) !important;
	break-after: avoid;
}

#page .boards-row {
	break-inside: avoid;
}

#page .me-tag {
	padding: 0 1mm !important;
	background: none !important;
	box-shadow: none !important;
	border: 0.5pt solid var(--print-ink) !important;
	color: var(--print-ink) !important;
}

#page .boards__legend {
	color: var(--print-ink) !important;
	font-size: 7pt !important;
}
