/*
 * PICMAN : règles propres à un écran, une section par écran (docs/UI.md § 9 et § 10).
 * Une règle n'entre ici que si aucun composant de picman-components.css ne convient.
 */

/* ---------- Banc d'essai du thème (uikit.xhtml, hors production) ---------- */
.uikit-lead {
	margin: -0.75rem 0 1.25rem;
	color: var(--muted);
}

.uikit-muted {
	margin: 4px 0 0;
	color: var(--muted);
}

.uikit-section {
	display: grid;
	gap: 14px;
	margin-bottom: 20px;
	padding: 20px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-1);
}

.uikit-section__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
}

.uikit-sample-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--navy);
}

.uikit-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.uikit-card {
	padding: 1rem 1.25rem;
	color: var(--slate);
}

.uikit-stack {
	display: grid;
	gap: 8px;
}

.uikit-swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.uikit-swatch {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.75rem;
	color: var(--slate);
}

.uikit-swatch__chip {
	flex: none;
	width: 36px;
	height: 36px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
}

.uikit-swatch__chip--blue { background: var(--blue); }
.uikit-swatch__chip--blue-deep { background: var(--blue-deep); }
.uikit-swatch__chip--navy { background: var(--navy); }
.uikit-swatch__chip--sky { background: var(--sky); }
.uikit-swatch__chip--blue-soft { background: var(--blue-soft); }
.uikit-swatch__chip--blue-mist { background: var(--blue-mist); }
.uikit-swatch__chip--blue-line { background: var(--blue-line); }
.uikit-swatch__chip--green { background: var(--green); }
.uikit-swatch__chip--green-soft { background: var(--green-soft); }
.uikit-swatch__chip--amber { background: var(--amber); }
.uikit-swatch__chip--amber-ink { background: var(--amber-ink); }
.uikit-swatch__chip--amber-soft { background: var(--amber-soft); }
.uikit-swatch__chip--red { background: var(--red); }
.uikit-swatch__chip--red-soft { background: var(--red-soft); }
.uikit-swatch__chip--violet { background: var(--violet); }
.uikit-swatch__chip--violet-soft { background: var(--violet-soft); }
.uikit-swatch__chip--ink { background: var(--ink); }
.uikit-swatch__chip--slate { background: var(--slate); }
.uikit-swatch__chip--muted { background: var(--muted); }
.uikit-swatch__chip--line { background: var(--line); }
.uikit-swatch__chip--line-strong { background: var(--line-strong); }
.uikit-swatch__chip--paper { background: var(--paper); }
.uikit-swatch__chip--paper-2 { background: var(--paper-2); }
.uikit-swatch__chip--ground { background: var(--ground); }
.uikit-swatch__chip--field-bg { background: var(--field-bg); }
.uikit-swatch__chip--hover { background: var(--hover); }

.uikit-form {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px 16px;
	align-items: end;
}

.uikit-field {
	display: grid;
	gap: 6px;
}

.uikit-field--wide {
	grid-column: 1 / -1;
}

.uikit-field .ui-autocomplete,
.uikit-field .ui-autocomplete-input,
.uikit-field .ui-inputfield,
.uikit-field .ui-selectonemenu,
.uikit-field .ui-datepicker,
.uikit-field .ui-password,
.uikit-field .ui-spinner,
.uikit-field .ui-inputnumber {
	width: 100%;
}

.uikit-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
}

/* ==========================================================================
   Planche de vol (flights.xhtml) : saisie en série sur le PC du club (≥ 1920 px), consultation
   en cartes sur téléphone.
   ========================================================================== */

.board-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.day-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
}

.day-nav__date .ui-inputfield {
	width: 8.5rem;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
}

.board-summary {
	display: grid;
	gap: 0.625rem;
	margin-bottom: 1rem;
}

.board-summary__title {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--ink);
}

.board-summary__tiles {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-1);
}

.board-tile {
	display: grid;
	gap: 0.0625rem;
	padding: 0.625rem 1.375rem;
	border-right: 1px solid var(--line);
}

.board-tile__label {
	font-size: 0.75rem;
	font-weight: 560;
	color: var(--muted);
}

.board-tile__label--reg {
	font-weight: 680;
	letter-spacing: 0.02em;
	color: var(--slate);
}

.board-tile__value {
	font-size: 1.1875rem;
	font-weight: 720;
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
}

.board-tile__value small {
	margin-left: 0.375rem;
	font-size: 0.8125rem;
	font-weight: 560;
	color: var(--slate);
}

.board-tile__value small::before {
	content: "· ";
	color: var(--muted);
}

.board-tile__value small:empty {
	display: none;
}

.board {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-1);
}

.board__scroll {
	position: relative;
	overflow-x: auto;
	border-radius: var(--radius) var(--radius) 0 0;
	container-type: inline-size;
}

/* 15 colonnes sur une ligne dès 1 596 px de large (le PC du club, en 1 920 px) ; en deçà, la
   présentation compacte plus bas, et sous 1 024 px d'écran les cartes. La barre de saisie (titre et « Enregistrer ») reste dans la partie visible,
   n° et commandant de bord restent à gauche. */
.board-table {
	width: 100%;
	min-width: 1596px;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
	font-size: 0.84375rem;
}

.board-col--no { width: 46px; }
.board-col--person { width: 172px; }
.board-col--reg { width: 92px; }
.board-col--time { width: 88px; }
.board-col--dur { width: 58px; }
.board-col--bill { width: 118px; }
.board-col--tow-pilot { width: 140px; }
.board-col--student { width: 96px; }
.board-col--min { width: 70px; }
.board-col--status { width: 136px; }
.board-col--note { width: 110px; }

.board-table th {
	height: 2.125rem;
	padding: 0 0.5rem;
	overflow: hidden;
	background: var(--paper-2);
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 650;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.board-table__groups th {
	height: 1.625rem;
	color: var(--blue);
	font-size: 0.75rem;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.board-table .tow-start {
	border-left: 2px solid var(--blue-line);
}

.board-table td {
	height: var(--row-h);
	padding: 0 0.5rem;
	overflow: hidden;
	border-bottom: 1px solid var(--line);
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Ligne de saisie, alignée sur les colonnes du tableau */

.board-entry td {
	height: auto;
	padding: 0.5rem 0.1875rem 0.375rem;
	overflow: visible;
	vertical-align: top;
	background: var(--entry-bg);
	border-top: 2px solid var(--blue);
	border-bottom: 0;
	white-space: normal;
}

.board-entry td:first-child {
	padding-left: 0.5rem;
}

.is-fixing .board-entry td,
.is-fixing .board-entry-bar td {
	background: var(--amber-soft);
}

.is-fixing .board-entry td {
	border-top-color: var(--amber);
}

.board-entry__badge {
	display: inline-grid;
	place-items: center;
	min-width: 1.875rem;
	height: 1.625rem;
	margin-top: 0.3125rem;
	border-radius: var(--radius-xs);
	background: var(--fill-primary);
	color: var(--on-accent);
	font-size: 0.8125rem;
	font-weight: 720;
	font-variant-numeric: tabular-nums;
}

.is-fixing .board-entry__badge {
	background: var(--fill-warning);
	color: var(--on-warning);
}

.board-entry__dur [data-board-duration] {
	display: grid;
	place-items: center;
	height: var(--control-h);
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius-sm);
	color: var(--slate);
	font-weight: 650;
	font-variant-numeric: tabular-nums;
}

.cell-label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.board-entry .ui-autocomplete,
.board-entry .ui-autocomplete-input,
.board-entry .ui-selectonemenu,
.board-entry .ui-inputfield {
	width: 100%;
	min-width: 0;
}

.board-entry .ui-inputfield {
	padding-inline: 0.5rem;
	font-weight: 560;
}

.board-entry .ui-selectonemenu .ui-selectonemenu-label {
	padding-inline: 0.5rem;
}

/* Champ visé par une règle du vol : il garde sa valeur (pas de composant invalide) et se borde de rouge */
.board-entry td:has(.ui-message-error) :is(.ui-inputfield, .ui-selectonemenu) {
	border-color: var(--red);
	box-shadow: 0 0 0 1px var(--red);
}

.cell-input--num {
	font-variant-numeric: tabular-nums;
}

.cell-input--kept .ui-autocomplete-input {
	border-color: var(--blue-line);
	background: var(--paper);
}

.board-entry-bar td {
	height: auto;
	padding: 0.125rem 0.625rem 0.625rem;
	overflow: visible;
	background: var(--entry-bg);
	border-bottom: 1px solid var(--line-strong);
	white-space: normal;
}

.entry-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	min-height: 2.5rem;
}

.board__scroll .entry-bar {
	position: sticky;
	left: 0.5rem;
	max-width: calc(100cqw - 1rem);
}

@media screen and (min-width: 1024px) {
	.board-table__labels > th:nth-child(-n+2),
	.board-entry > td:nth-child(-n+2),
	.board-row > td:nth-child(-n+2) {
		position: sticky;
		z-index: 1;
		background: var(--paper);
	}

	.board-table__labels > th:nth-child(-n+2) {
		background: var(--paper-2);
	}

	.board-entry > td:nth-child(-n+2) {
		background: var(--entry-bg);
	}

	.is-fixing .board-entry > td:nth-child(-n+2) {
		background: var(--amber-soft);
	}

	.board-table__labels > th:nth-child(1),
	.board-entry > td:nth-child(1),
	.board-row > td:nth-child(1) {
		left: 0;
	}

	.board-table__labels > th:nth-child(2),
	.board-entry > td:nth-child(2),
	.board-row > td:nth-child(2) {
		left: 46px;
		box-shadow: 1px 0 0 var(--line);
	}
}

.entry-bar__title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin-right: auto;
	font-size: 0.875rem;
}

.entry-bar__errors {
	color: var(--red);
	font-size: 0.8125rem;
	font-weight: 650;
}

.entry-bar__keys {
	color: var(--muted);
	font-size: 0.78125rem;
}

/* Vols de la journée */

.board-row {
	cursor: pointer;
}

.board-row[data-flight-id=""] {
	cursor: default;
}

.board-row:hover td {
	background: var(--row-hover);
}

.board-row:focus-visible {
	outline: 2px solid var(--focus-color);
	outline-offset: -2px;
}

.board-row.is-fixing td {
	background: var(--amber-soft);
}

.board-row.is-fixing td:first-child {
	box-shadow: inset 3px 0 0 var(--amber);
}

.board-row__no {
	color: var(--muted);
	font-size: 0.78125rem;
	font-variant-numeric: tabular-nums;
}

.board-row__pilot {
	font-weight: 650;
}

/* Un nom long (« KANSTEINER Wolf Theodor ») passe sur deux lignes plutôt que d'être tronqué */
.board-table .board-row > td:is(:nth-child(2), :nth-child(3), :nth-child(10), :nth-child(11)) {
	line-height: 1.25;
	white-space: normal;
}

.board-row__reg {
	font-weight: 650;
	letter-spacing: 0.02em;
}

.board-row__time {
	font-variant-numeric: tabular-nums;
}

.board-row__dur {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.board-row__note,
.board-table td.is-empty {
	color: var(--muted);
}

.board-table .board-row__status {
	overflow: visible;
	text-overflow: clip;
	white-space: nowrap;
}

.status {
	display: inline-flex;
	align-items: center;
	gap: 0.1875rem;
	height: 1.375rem;
	margin-right: 0.25rem;
	padding: 0 0.375rem;
	border-radius: var(--radius-xs);
	font-size: 0.75rem;
	font-weight: 650;
	vertical-align: middle;
}

.status .icon {
	width: 0.8125rem;
	height: 0.8125rem;
	stroke-width: 2.2;
}

.status--ok {
	background: var(--green-soft);
	color: var(--green-deep);
}

.status--pending {
	background: var(--amber-soft);
	color: var(--amber-ink);
}

/* Aucune trace OGN pour un planeur : une anomalie à regarder, pas un « sans objet » */
.status--missing {
	background: var(--amber-soft);
	color: var(--amber-ink);
}

.status--none {
	background: var(--paper-2);
	color: var(--muted);
	box-shadow: inset 0 0 0 1px var(--line);
}

.board-empty__phone,
.board-foot__hint--touch {
	display: none;
}

@media screen and (max-width: 767.98px) {
	.board-empty__desk {
		display: none;
	}

	.board-empty__phone {
		display: inline;
	}
}

@media screen and (pointer: coarse) {
	.board-foot__hint--fine {
		display: none;
	}

	.board-foot__hint--touch {
		display: inline;
	}
}

.board-foot__pair {
	white-space: nowrap;
}

.board-empty td {
	height: auto;
	padding: 2rem 1rem;
	color: var(--muted);
	text-align: center;
	white-space: normal;
}

.board-empty__title {
	margin: 0 0 0.25rem;
	color: var(--ink);
	font-size: 0.9375rem;
	font-weight: 650;
}

.board-empty__text {
	margin: 0;
}

/* Le lien suit le texte : le thème donne à tout composant la taille de texte de la page ; la date
   ne se coupe pas */
.board-empty__text .ui-commandlink {
	font-size: inherit;
	white-space: nowrap;
}

.board-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	padding: 0.5625rem 0.875rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.78125rem;
}

.board-foot__legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem 0.875rem;
	margin-left: auto;
}

/* Panneau des vols OGN */

.ogn-panel.ui-sidebar {
	width: min(32.5rem, 100vw);
	padding: 0;
}

.ogn {
	display: grid;
	gap: 0.75rem;
	padding: 1.25rem 1.25rem 1.5rem;
}

.ogn__title {
	margin: 0;
	padding-right: 2.5rem;
	font-size: 1.0625rem;
	font-weight: 720;
}

.ogn__intro,
.ogn__foot {
	margin: 0;
	color: var(--muted);
	font-size: 0.8125rem;
}

.ogn__foot {
	display: grid;
	gap: 0.375rem;
}

.ogn__list {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ogn-row {
	display: grid;
	grid-template-columns: 4.75rem 1fr auto;
	align-items: center;
	gap: 0.25rem 0.75rem;
	padding: 0.625rem 0.5rem;
	border-bottom: 1px solid var(--line);
}

.ogn-row--todo {
	margin: 0.25rem 0;
	border-bottom-color: transparent;
	border-radius: var(--radius-sm);
	background: var(--amber-soft);
}

.ogn-row__reg {
	font-weight: 680;
}

.ogn-row__times {
	color: var(--slate);
	font-variant-numeric: tabular-nums;
}

.ogn__empty {
	padding: 1rem 0;
	color: var(--muted);
}

/* Cartes des vols : affichées à la place du tableau sur téléphone */

.board-cards {
	display: none;
	margin: 0;
	padding: 0;
	list-style: none;
}

.board-card {
	display: grid;
	gap: 0.25rem;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--line);
	cursor: pointer;
}

.board-card.is-fixing {
	background: var(--amber-soft);
	box-shadow: inset 3px 0 0 var(--amber);
}

.board-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.5rem;
}

.board-card__no {
	min-width: 1.5rem;
	color: var(--muted);
	font-size: 0.8125rem;
	font-variant-numeric: tabular-nums;
}

.board-card__reg {
	font-weight: 700;
	letter-spacing: 0.02em;
}

.board-card__times {
	margin-left: auto;
	color: var(--slate);
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.board-card__dur {
	color: var(--ink);
	font-weight: 720;
}

/* Les deux suivis (OGN, GESASSO) passent à la ligne ensemble, jamais l'un sans l'autre */
.board-card__status {
	display: inline-flex;
	gap: 0.375rem;
}

.board-card__crew,
.board-card__tow {
	padding-left: 2rem;
}

.board-card__tow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
	color: var(--muted);
	font-size: 0.875rem;
}

/* Téléphone : la planche en cartes, la ligne de saisie en formulaire ouvert par « + » */

/* Téléphone et tablette : les vols en cartes, la saisie en formulaire. Au téléphone elle s'ouvre
   par « + » ; sur tablette, sans barre supérieure, elle reste ouverte. Son titre et ses boutons
   passent au-dessus des champs, comme l'en-tête d'une feuille. */
/* En-têtes de la présentation compacte : cachés tant que le tableau tient sur une ligne */
.board-table .board-table__compact {
	display: none;
}

/* Portable : tableau de moins de 1 596 px. Chaque vol tient sur une ligne à deux étages
   (équipage, puis passager et note ; remorquage regroupé) et la saisie passe sur deux lignes,
   Planeur puis Remorquage, dans le même ordre de tabulation ; rien ne défile de côté
   (docs/UI.md fiche 10.2, maquette validée le 16/11/2026). */
@media screen and (min-width: 1024px) {
	@container (max-width: 1595.98px) {
		.board-table,
		.board-table thead,
		.board-table tbody {
			display: block;
			min-width: 0;
		}

		.board-table colgroup,
		.board-table .board-table__groups,
		.board-table .board-table__labels {
			display: none;
		}

		.board-table .board-entry-bar,
		.board-table .board-entry-bar > td,
		.board-table .board-empty,
		.board-table .board-empty > td {
			display: block;
		}

		.board-table .board-table__compact,
		.board-row {
			display: grid;
			grid-template-columns: 2.5rem minmax(0, 1.3fr) 5rem 3.25rem 4rem 3.25rem 6.75rem 4.75rem minmax(0, 1fr) 8.25rem;
			align-items: start;
		}

		.board-table__compact th:nth-child(4),
		.board-table__compact th:nth-child(7) {
			grid-column: span 2;
		}

		.board-table__compact th:nth-child(5) {
			justify-content: flex-end;
		}

		.board-table__compact th {
			display: flex;
			align-items: center;
			border-bottom: 1px solid var(--line);
		}

		/* Un vol : n°, équipage (commandant de bord, passager ou élève, note), planeur, heures,
		   durée, régime, remorquage (avion et pilote, puis minutes, régime et élève), suivi */
		.board-row {
			grid-template-rows: auto auto auto;
			padding-block: 0.3125rem;
			border-bottom: 1px solid var(--line);
		}

		.board-table .board-row > td {
			height: auto;
			padding: 0 0.5rem;
			overflow: visible;
			border-bottom: 0;
			line-height: 1.35;
			overflow-wrap: anywhere;
			white-space: normal;
		}

		.board-table .board-row > td:nth-child(-n+2) {
			position: static;
			background: transparent;
			box-shadow: none;
		}

		.board-row > td:nth-child(1) { grid-area: 1 / 1; }
		.board-row > td:nth-child(2) { grid-area: 1 / 2; }
		.board-row > td:nth-child(3) { grid-area: 2 / 2; }
		.board-row > td:nth-child(14) { grid-area: 3 / 2; }
		.board-row > td:nth-child(4) { grid-area: 1 / 3; }
		.board-row > td:nth-child(5) { grid-area: 1 / 4; }
		.board-row > td:nth-child(6) { grid-area: 1 / 5; }
		.board-row > td:nth-child(7) { grid-area: 1 / 6; text-align: right; }
		.board-row > td:nth-child(8) { grid-area: 1 / 7; }
		.board-row > td:nth-child(9) { grid-area: 1 / 8; }
		.board-row > td:nth-child(10) { grid-area: 1 / 9; }
		.board-row > td:nth-child(12) { grid-area: 2 / 8; }
		.board-row > td:nth-child(13) { grid-area: 2 / 9; }
		.board-row > td:nth-child(11) { grid-area: 3 / 9; }
		.board-row > td:nth-child(15) { grid-area: 1 / 10 / span 3; }

		.board-table .board-row > td:nth-child(3),
		.board-table .board-row > td:nth-child(11),
		.board-table .board-row > td:nth-child(12),
		.board-table .board-row > td:nth-child(13),
		.board-table .board-row > td:nth-child(14) {
			color: var(--slate);
			font-size: 0.78125rem;
		}

		.board-table .board-row > td.board-row__tow-min:not(.is-empty)::after {
			content: "\00a0" attr(data-unit);
		}

		.board-table .board-row > td:nth-child(5) {
			padding-right: 0;
		}

		.board-table .board-row > td:nth-child(6) {
			padding-left: 0.25rem;
		}

		.board-table .board-row > td:nth-child(6)::before {
			content: "–\00a0";
			color: var(--muted);
		}

		.board-table .board-row > td:nth-child(11)::before,
		.board-table .board-row > td:nth-child(14)::before {
			content: attr(data-label) "\00a0: ";
			color: var(--muted);
		}

		.board-table .board-row > td:nth-child(14) {
			font-style: italic;
		}

		.board-table .board-row > td:nth-child(11).is-empty,
		.board-table .board-row > td:nth-child(14):empty {
			display: none;
		}

		.board-table .board-row > .tow-start {
			border-left: 0;
		}

		.board-table .board-row__status {
			display: flex;
			flex-wrap: wrap;
			gap: 0.25rem;
			white-space: normal;
		}

		.board-table .board-row__status .status {
			margin-right: 0;
		}

		/* Le survol et la correction colorent la ligne entière, pas chaque cellule */
		.board-row:hover {
			background: var(--row-hover);
		}

		.board-table .board-row:hover > td {
			background: transparent;
		}

		.board-row.is-fixing {
			background: var(--amber-soft);
			box-shadow: inset 3px 0 0 var(--amber);
		}

		.board-table .board-row.is-fixing > td,
		.board-table .board-row.is-fixing > td:first-child {
			background: transparent;
			box-shadow: none;
		}

		/* La saisie : deux lignes, « Vol planeur » puis « Remorquage », chacune en tête de sa ligne.
		   Chaque champ a sa largeur minimale (un nom entier, « 13:10 » au doigt) et prend sa part du
		   reste ; une ligne trop étroite passe à la ligne plutôt que de déborder. Le n° du vol est
		   dans la barre de saisie, le suivi n'a rien à saisir. */
		.board-table .board-entry {
			display: flex;
			flex-wrap: wrap;
			align-items: flex-start;
			gap: 0.375rem;
			padding: 0.5rem 0.75rem 0.75rem;
			background: var(--entry-bg);
			border-top: 2px solid var(--blue);
		}

		.is-fixing .board-table .board-entry {
			background: var(--amber-soft);
			border-top-color: var(--amber);
		}

		.board-entry::before,
		.board-entry::after {
			flex: 1 1 100%;
			color: var(--blue);
			font-size: 0.75rem;
			font-weight: 700;
			letter-spacing: 0.07em;
			line-height: 1.2;
			text-transform: uppercase;
		}

		.board-entry::before {
			content: attr(data-glider);
			order: 0;
		}

		.board-entry::after {
			content: attr(data-tow);
			order: 2;
			margin-top: 0.375rem;
			padding-top: 0.5rem;
			border-top: 1px dashed var(--blue-line);
		}

		.is-fixing .board-entry::before,
		.is-fixing .board-entry::after {
			color: var(--amber-ink);
		}

		.is-fixing .board-entry::after {
			border-top-color: color-mix(in srgb, var(--amber) 45%, transparent);
		}

		.board-table .board-entry > td,
		.board-table .board-entry > td:first-child,
		.board-table .board-entry > td:nth-child(-n+2),
		.is-fixing .board-table .board-entry > td {
			position: static;
			display: block;
			height: auto;
			min-width: 0;
			padding: 0;
			border: 0;
			background: transparent;
			box-shadow: none;
		}

		.board-table .board-entry > td:nth-child(1),
		.board-table .board-entry > td:nth-child(15) {
			display: none;
		}

		.board-entry > td:nth-child(-n+8) { order: 1; }
		.board-entry > td:nth-child(n+9) { order: 3; }

		.board-table .board-entry > td:nth-child(2),
		.board-table .board-entry > td:nth-child(3) { flex: 5 0 12rem; }
		.board-table .board-entry > td:nth-child(4) { flex: 3 0 5.5rem; }
		.board-table .board-entry > td:nth-child(5),
		.board-table .board-entry > td:nth-child(6) { flex: 2 0 5.5rem; }
		.board-table .board-entry > td:nth-child(7) { flex: 1.5 0 3.25rem; }
		.board-table .board-entry > td:nth-child(8) { flex: 4 0 8rem; }
		.board-table .board-entry > td:nth-child(9) { flex: 3 0 5.5rem; }
		.board-table .board-entry > td:nth-child(10) { flex: 5 0 10rem; }
		.board-table .board-entry > td:nth-child(11) { flex: 4 0 8rem; }
		.board-table .board-entry > td:nth-child(12) { flex: 2 0 4.5rem; }
		.board-table .board-entry > td:nth-child(13) { flex: 4 0 8.5rem; }
		.board-table .board-entry > td:nth-child(14) { flex: 4 0 7rem; }

		.board-entry > .tow-start {
			border-left: 0;
		}

		/* Libellés visibles, sur deux lignes au plus : les champs d'une ligne restent alignés */
		.board-entry .cell-label {
			position: static;
			display: flex;
			align-items: flex-end;
			width: auto;
			height: auto;
			min-height: 2.4em;
			margin: 0 0 0.1875rem;
			overflow: visible;
			clip-path: none;
			color: var(--slate);
			font-size: 0.75rem;
			font-weight: 600;
			line-height: 1.2;
			white-space: normal;
		}

		.board-entry__status {
			display: none;
		}
	}
}

@media screen and (max-width: 1023.98px) {
	.board-tile {
		flex: 1 1 33%;
		padding: 0.5rem 0.75rem;
		border-bottom: 1px solid var(--line);
	}

	.board-tile__value {
		font-size: 1.0625rem;
	}

	.board-table {
		min-width: 0;
	}

	.board-table,
	.board-table thead,
	.board-table tbody,
	.board-table tr,
	.board-table td {
		display: block;
		width: 100%;
	}

	.board-table colgroup,
	.board-table .board-table__groups,
	.board-table .board-table__labels,
	.board-table .board-entry,
	.board-table .board-entry-bar {
		display: none;
	}

	.board--entry-open .board-table .board-entry,
	.board--entry-open .board-table .board-entry-bar,
	.is-fixing .board-table .board-entry,
	.is-fixing .board-table .board-entry-bar {
		display: grid;
	}

	.board-entry {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem;
		padding: 1rem;
		background: var(--blue-mist);
		border-top: 2px solid var(--blue);
	}

	.board-entry td,
	.board-entry td:first-child,
	.is-fixing .board-entry td {
		padding: 0;
		border: 0;
		background: transparent;
	}

	.is-fixing .board-entry,
	.is-fixing .board-entry-bar {
		background: var(--amber-soft);
	}

	.is-fixing .board-entry {
		border-top-color: var(--amber);
	}

	.board-table thead {
		display: flex;
		flex-direction: column;
	}

	.board-table .board-entry-bar {
		order: -1;
	}

	.board-entry td:nth-child(2),
	.board-entry td:nth-child(3),
	.board-entry td:nth-child(14) {
		grid-column: 1 / -1;
	}

	.board-entry__status {
		display: none;
	}

	.board-entry .tow-start {
		border-left: 0;
	}

	.board-entry .cell-label {
		position: static;
		width: auto;
		height: auto;
		margin: 0 0 0.25rem;
		overflow: visible;
		clip-path: none;
		display: block;
		color: var(--slate);
		font-size: 0.8125rem;
		font-weight: 600;
		white-space: normal;
	}

	.board-entry-bar {
		background: var(--blue-mist);
		border-top: 2px solid var(--blue);
	}

	.board-entry-bar td {
		padding: 0.75rem 1rem;
	}

	.board-entry {
		border-top: 0;
	}

	.is-fixing .board-entry-bar {
		border-top-color: var(--amber);
	}

	.entry-bar__keys {
		display: none;
	}

	.entry-bar .ui-button {
		flex: 1 1 auto;
	}

	.board-table .board-row {
		display: none;
	}

	.board-empty td {
		padding: 1.5rem 1rem;
	}

	.board-cards {
		display: grid;
	}

	.board-table .tow-start {
		border-left: 0;
	}

	.board-foot__legend {
		margin-left: 0;
	}
}

@media screen and (min-width: 768px) and (max-width: 1023.98px) {
	.board-table .board-entry,
	.board-table .board-entry-bar {
		display: grid;
	}

	.board-entry {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ==========================================================================
   Pic'n Glide (picnglide.xhtml) : téléphone d'abord ; sur ordinateur, la journée à gauche,
   la semaine et ta journée à droite.
   ========================================================================== */

/* Rappel de la photo manquante, au-dessus de la journée (« Plus tard » le masque pour la session) */
.png-reminder .notice {
	margin-bottom: 1.25rem;
}

.png {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 22rem;
	grid-template-areas: "main side";
	gap: 1.5rem;
	align-items: start;
}

.png__main {
	grid-area: main;
	display: grid;
	gap: 1rem;
	min-width: 0;
}

.png__side {
	grid-area: side;
	display: grid;
	gap: 0.75rem;
	position: sticky;
	top: 1rem;
}

.png__day {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 700;
}

.png-attention {
	display: grid;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.png-attention__item {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	border-radius: var(--radius-sm);
	background: var(--amber-soft);
	color: var(--amber-ink);
	font-size: 0.875rem;
	font-weight: 560;
}

.png-attention__item .icon {
	width: 1rem;
	height: 1rem;
	margin-top: 0.125rem;
}

.png-attention__item--ok {
	background: var(--green-soft);
	color: var(--green-deep);
}

.png-attention__item--note {
	background: var(--paper-2);
	color: var(--slate);
	font-weight: 500;
}

.png-group {
	display: grid;
	gap: 0.5rem;
}

.png-group__title {
	margin: 0;
	padding-top: 0.25rem;
	color: var(--blue);
	font-size: 0.75rem;
	font-weight: 680;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Chaque carte à sa hauteur : étirée sur sa voisine, une carte vide laissait un grand blanc */
.png-group__cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
	align-items: start;
	gap: 0.625rem;
}

.png-role {
	display: grid;
	gap: 0.5rem;
	align-content: start;
	padding: 0.75rem 0.875rem;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.png-role--me {
	border-color: var(--blue);
	box-shadow: inset 3px 0 0 var(--blue);
}

/* Au téléphone, l'export passe dans la barre supérieure : l'inscription reste en tête de page */
@media screen and (max-width: 767.98px) {
	.png-export {
		display: none;
	}
}

/* Le titre passe à la ligne, jamais le bouton : il reste à droite sur toutes les cartes */
.png-role__head {
	display: flex;
	align-items: center;
	gap: 0.5rem 0.75rem;
}

.png-role__label {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.125rem 0.5rem;
	min-width: 0;
}

.png-role__title {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 680;
}

.png-role__count {
	color: var(--muted);
	font-size: 0.78125rem;
	font-variant-numeric: tabular-nums;
}

.png-role__action {
	flex: none;
	margin-left: auto;
}

.png-role__btn--in.ui-button {
	background: var(--green-soft);
	border-color: var(--green);
	color: var(--green-deep);
}

.png-role__empty,
.png-role__rule {
	margin: 0;
	color: var(--muted);
	font-size: 0.8125rem;
}

.png-role__empty--needed {
	color: var(--amber-ink);
	font-weight: 600;
}

.png-people {
	display: grid;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.png-person {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.png-person__avatar {
	display: grid;
	place-items: center;
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--avatar-a), var(--avatar-b));
	color: var(--avatar-ink);
	font-size: 0.75rem;
	font-weight: 700;
}

.png-person__avatar img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

.png-person__body {
	display: grid;
	gap: 0.125rem;
	min-width: 0;
}

.png-person__name {
	font-weight: 600;
	font-size: 0.875rem;
}

.png-person--me .png-person__name {
	color: var(--blue);
}

.png-person__meta {
	color: var(--muted);
	font-size: 0.75rem;
	font-variant-numeric: tabular-nums;
}

.png-person--waiting .png-person__avatar,
.png-person--inactive .png-person__avatar {
	background: var(--line-strong);
	color: var(--ink);
}

.png-person--inactive .png-person__name {
	color: var(--muted);
	text-decoration: line-through;
}

.png-person__check {
	justify-self: start;
	white-space: normal;
}

.png-person__call {
	display: inline-flex;
	align-items: center;
	justify-self: start;
	gap: 0.375rem;
	min-height: 2rem;
	color: var(--blue);
	font-size: 0.875rem;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
}

.png-person__call:hover {
	text-decoration: underline;
}

@media screen and (pointer: coarse) {
	.png-person__call {
		min-height: 2.75rem;
	}
}

.png-person__comment {
	color: var(--slate);
	font-size: 0.8125rem;
	overflow-wrap: anywhere;
}

.png-visitors {
	display: grid;
	gap: 0.375rem;
	margin: 0;
	padding: 0.75rem 0.875rem;
	list-style: none;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.png-visitor {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.75rem;
	font-size: 0.875rem;
}

.png-visitor__phone {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	white-space: nowrap;
}

.png-visitor__time {
	color: var(--blue);
	font-variant-numeric: tabular-nums;
}

@media screen and (pointer: coarse) {
	.png-visitor {
		align-items: center;
	}

	.png-visitor__phone {
		display: inline-flex;
		align-items: center;
		min-height: 2.75rem;
	}
}

/* Semaine affichée : flèches et dates au-dessus des sept jours, qui gardent toute la largeur */
.png-weeknav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.375rem;
}

.png-weeknav__label {
	color: var(--ink);
	font-size: 0.875rem;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
}

body .png-weeknav__btn.ui-commandlink {
	display: inline-grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--paper);
	color: var(--ink);
}

body .png-weeknav__btn.ui-commandlink.ui-state-disabled {
	visibility: hidden;
}

@media screen and (pointer: coarse) {
	body .png-weeknav__btn.ui-commandlink {
		width: 2.75rem;
		height: 2.75rem;
	}
}

.png-week {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 0.25rem;
}

/* Au téléphone, l'écart se resserre : sept jours de 44 px tiennent dès 360 px de large */
@media screen and (max-width: 767.98px) {
	.png-week {
		gap: 0.125rem;
	}
}

/* Tes prochaines inscriptions : chaque journée ouvre sa semaine */
.png-upcoming {
	display: grid;
	gap: 0.375rem;
	padding: 0.75rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
}

.png-upcoming__title {
	margin: 0;
	color: var(--slate);
	font-size: 0.8125rem;
	font-weight: 650;
}

.png-upcoming__list {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

body .png-upcoming__item.ui-commandlink {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "date go" "roles go";
	align-items: center;
	gap: 0.0625rem 0.625rem;
	min-height: 2.5rem;
	padding: 0.375rem 0.25rem;
	border-top: 1px solid var(--line);
	color: var(--ink);
	font-size: 0.875rem;
	text-decoration: none;
}

.png-upcoming__list li:first-child .png-upcoming__item {
	border-top: 0;
}

.png-upcoming__item strong {
	grid-area: date;
	font-weight: 650;
}

.png-upcoming__item span {
	grid-area: roles;
	overflow-wrap: anywhere;
	color: var(--slate);
	font-size: 0.8125rem;
	line-height: 1.35;
}

.png-upcoming__item .icon {
	grid-area: go;
	width: 1rem;
	height: 1rem;
	color: var(--muted);
}

/* Tablette en portrait : la liste a toute la largeur, chaque inscription tient sur une ligne */
@media screen and (min-width: 768px) and (max-width: 1023.98px) and (min-height: 501px) {
	body .png-upcoming__item.ui-commandlink {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "date roles go";
	}
}

@media screen and (pointer: coarse) {
	body .png-upcoming__item.ui-commandlink {
		min-height: 2.75rem;
	}
}

.png-day.ui-commandlink {
	display: grid;
	justify-items: center;
	gap: 0.125rem;
	min-height: 4.375rem;
	padding: 0.375rem 0;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--paper);
	color: var(--ink);
	text-decoration: none;
}

.png-day[aria-pressed="true"] {
	border-color: var(--blue);
	background: var(--blue-soft);
	box-shadow: inset 0 0 0 1px var(--blue);
}

.png-day__name {
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 600;
}

.png-day__number {
	font-size: 1.0625rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.png-day__marks {
	display: flex;
	gap: 0.1875rem;
}

.png-day__mark {
	display: inline-grid;
	place-items: center;
	width: 0.875rem;
	height: 0.875rem;
	border-radius: 0.25rem;
}

.png-day__mark .icon {
	width: 0.6875rem;
	height: 0.6875rem;
	stroke-width: 2.4;
}

.png-day__mark--ok {
	color: var(--green-deep);
}

.png-day__mark--missing {
	background: var(--amber-soft);
	color: var(--amber-ink);
}

.png-day__mark--me {
	border-radius: 50%;
	background: var(--fill-primary);
	color: var(--on-accent);
}

.png-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.75rem;
	margin: 0;
	color: var(--muted);
	font-size: 0.75rem;
}

.png-legend > span {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.png-mine {
	display: grid;
	gap: 0.5rem;
	padding: 0.75rem;
	background: var(--paper);
	border: 1px solid var(--blue-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-1);
}

.png-mine__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-size: 0.875rem;
}

.png-mine__title .icon {
	color: var(--blue);
}

.png-mine__none,
.png-mine__roles {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin: 0;
	color: var(--muted);
	font-size: 0.875rem;
}

.png-mine__comment {
	display: flex;
	gap: 0.375rem;
}

.png-mine__comment .ui-inputfield {
	flex: 1;
	min-width: 0;
}

.png-situation {
	margin-top: 1.5rem;
}

.png-situation--first {
	margin: 0 0 1.25rem;
}

.png-after__list {
	margin: 0.5rem 0;
	padding-left: 1.25rem;
}

@media screen and (max-width: 1023.98px) {
	.png {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "side" "main";
	}

	.png__side {
		position: static;
	}
}

/* Téléphone en paysage : la semaine à gauche, ta journée et tes prochaines inscriptions à droite,
   pour que la journée et ses « M'inscrire » montent dans l'écran */
@media screen and (min-width: 768px) and (max-width: 1023.98px) and (max-height: 500px) {
	.png__side {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		align-items: start;
		column-gap: 1rem;
	}

	.png-weeknav {
		grid-area: 1 / 1;
	}

	.png-week {
		grid-area: 2 / 1;
	}

	.png-legend {
		grid-area: 3 / 1;
	}

	.png-mine {
		grid-area: 1 / 2 / 2 / 3;
	}

	.png-upcoming {
		grid-area: 2 / 2 / 5 / 3;
	}
}

/* ==========================================================================
   Facturation (billings.xhtml) : le compte d'un membre et la saisie de ses règlements sur le
   PC du club ; consultation en cartes et saisie par « + » sur téléphone.
   ========================================================================== */

.ledger-screen {
	display: grid;
	gap: 1rem;
}

/* Recherche du membre, dans l'en-tête de page */

.ledger-search {
	position: relative;
	width: 30rem;
	max-width: 100%;
}

.ledger-search > .icon {
	position: absolute;
	top: 50%;
	left: 0.75rem;
	z-index: 1;
	color: var(--muted);
	transform: translateY(-50%);
	pointer-events: none;
}

.ledger-search__field,
.ledger-search__field .ui-autocomplete-input {
	width: 100%;
}

.ledger-search__field .ui-autocomplete-input {
	padding-left: 2.5rem;
	padding-right: 2.5rem;
}

.ledger-search__key {
	position: absolute;
	top: 50%;
	right: 0.75rem;
	transform: translateY(-50%);
	pointer-events: none;
}

.ledger-search:focus-within .ledger-search__key {
	display: none;
}

/* Suggestions de personnes : plus larges que la colonne, un nom tient sur sa ligne */
.ui-autocomplete-panel.ac-wide {
	min-width: 20rem;
}

.ac-meta {
	color: var(--muted);
	font-size: 0.8125rem;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.ledger-empty {
	display: grid;
	justify-items: center;
	gap: 0.375rem;
	padding: 3rem 1.5rem;
	text-align: center;
}

.ledger-empty > .icon {
	width: 2rem;
	height: 2rem;
	color: var(--blue);
}

.ledger-empty__title {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 700;
}

.ledger-empty__text {
	max-width: 32rem;
	margin: 0;
	color: var(--slate);
}

/* En-tête du membre : identité, solde, forfait, situation */

.pilot__top {
	display: flex;
	flex-wrap: wrap;
}

.pilot__cell {
	display: grid;
	align-content: center;
	gap: 0.25rem;
	min-width: 0;
	padding: 0.875rem 1.375rem;
	border-right: 1px solid var(--line);
}

.pilot__cell > .chip {
	justify-self: start;
}

.pilot__cell:last-child {
	border-right: 0;
}

.pilot__id {
	display: flex;
	align-items: center;
	gap: 0.875rem;
}

.pilot__avatar {
	display: grid;
	flex: none;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	background: var(--blue-soft);
	color: var(--blue);
	font-size: 1.125rem;
	font-weight: 760;
}

.pilot__who {
	display: grid;
	gap: 0.125rem;
	min-width: 0;
}

.pilot__name {
	margin: 0;
	font-size: 1.3125rem;
	font-weight: 740;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

.pilot__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1rem;
	margin: 0;
	color: var(--slate);
	font-size: 0.8125rem;
}

.pilot__meta a {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	color: inherit;
	text-decoration: none;
}

.pilot__meta a:hover {
	color: var(--blue);
	text-decoration: underline;
}

.pilot__meta .icon {
	width: 0.9375rem;
	height: 0.9375rem;
	color: var(--muted);
}

.pilot__label {
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 560;
}

.pilot__figure {
	font-size: 1.5625rem;
	font-weight: 760;
	letter-spacing: -0.02em;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.pilot__figure--none {
	color: var(--muted);
}

.pilot__sep {
	display: none;
}

.pilot__sub {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--slate);
	font-size: 0.78125rem;
	white-space: nowrap;
}

.meter {
	width: 7.5rem;
	height: 0.375rem;
	border: 0;
	border-radius: 999px;
	background: var(--line);
	color: var(--blue);
	appearance: none;
	overflow: hidden;
}

.meter::-webkit-progress-bar {
	border-radius: 999px;
	background: var(--line);
}

.meter::-webkit-progress-value {
	border-radius: 999px;
	background: var(--blue);
}

.meter::-moz-progress-bar {
	border-radius: 999px;
	background: var(--blue);
}

.pilot__situation {
	flex: 1 1 18rem;
}

.pilot__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
}

/* Une pastille longue (« Formateur: Personnel de certification , Plieur de parachutes jusqu’au
   15 févr. 2027 », « Débiteur : à régler » dans la demi-colonne du solde) passe à la ligne dans sa
   cellule plutôt que de sortir de la carte */
.pilot__cell > .chip,
.pilot__chips .chip {
	max-width: 100%;
	padding-block: 0.1875rem;
	white-space: normal;
}

.pilot__toggle {
	padding-inline: 1rem;
}

.pilot__profile {
	display: grid;
	/* La colonne Compte partage la largeur : ses boutons passent à la ligne au lieu d'écraser les deux autres */
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(15rem, 1.1fr);
	border-top: 1px solid var(--line);
	border-radius: 0 0 var(--radius) var(--radius);
	background: var(--paper-2);
}

.pilot__group {
	display: grid;
	align-content: start;
	gap: 0.625rem;
	padding: 0.875rem 1.375rem 1rem;
	border-right: 1px solid var(--line);
}

.pilot__group:last-child {
	border-right: 0;
}

.pilot__group-title {
	margin: 0;
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 680;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.pilot__checks {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem 1.25rem;
}

.pilot__field {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
}

.pilot__field-label {
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 560;
}

.pilot__bundle {
	min-width: 11rem;
}

.pilot__hint {
	margin: 0;
	color: var(--muted);
	font-size: 0.78125rem;
}

.pilot__buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.pilot__link {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0 0.5rem;
	color: var(--slate);
	font-size: 0.84375rem;
	font-weight: 600;
	text-decoration: none;
}

.pilot__link:hover {
	color: var(--blue);
}

@media screen and (pointer: coarse) {
	.pilot__link {
		min-height: 44px;
	}
}

/* Relevé : barre d'outils, tableau, ligne de saisie */

.ledger {
	display: flex;
	flex-direction: column;
	container: ledger / inline-size;
}

.ledger__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.625rem 0.875rem;
	padding: 0.625rem 0.875rem;
	border-bottom: 1px solid var(--line);
}

.ledger__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
}

.ledger__count {
	margin-left: auto;
	color: var(--muted);
	font-size: 0.8125rem;
}

/* Le nombre d'écritures et l'export passent ensemble à la ligne */
.ledger__end {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	margin-left: auto;
}

.ledger-switch.ui-selectonebutton .ui-button .icon {
	width: 0.875rem;
	height: 0.875rem;
	margin-right: 0.25rem;
}

.ledger__scroll {
	max-height: max(26rem, calc(100dvh - 22rem));
	overflow: auto;
}

.ledger-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
	font-size: 0.84375rem;
}

.ledger-col--date { width: 148px; }
.ledger-col--type { width: 204px; }
.ledger-col--money { width: 124px; }
.ledger-col--bundle { width: 88px; }
.ledger-col--balance { width: 136px; }
.ledger-col--actions { width: 156px; }
.ledger-col--detail { width: 104px; }

.ledger-table thead {
	position: sticky;
	top: 0;
	z-index: 3;
}

.ledger-table tfoot {
	position: sticky;
	bottom: 0;
	z-index: 2;
}

.ledger-table th {
	height: 2.125rem;
	padding: 0 0.5rem;
	overflow: hidden;
	background: var(--paper-2);
	border-bottom: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 650;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ledger-table td {
	height: var(--row-h);
	padding: 0 0.5rem;
	overflow: hidden;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ledger-table .num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.ledger-entry td {
	height: auto;
	padding: 0.5rem 0.25rem 0.375rem;
	overflow: visible;
	vertical-align: top;
	background: var(--entry-bg);
	border-top: 2px solid var(--blue);
	border-bottom: 0;
	white-space: normal;
}

.ledger-entry td:first-child {
	padding-left: 0.625rem;
}

.ledger-entry td.num {
	padding-top: 1.0625rem;
	padding-right: 0.625rem;
}

/* « Solde après : −1 234,31 € » passe à la ligne plutôt que de déborder sur la colonne voisine */
.ledger-entry td.num .cell-hint {
	white-space: normal;
}

.ledger-entry-bar td {
	height: auto;
	padding: 0.125rem 0.625rem 0.625rem;
	overflow: visible;
	background: var(--entry-bg);
	border-bottom: 1px solid var(--line-strong);
	white-space: normal;
}

.is-fixing .ledger-entry td,
.is-fixing .ledger-entry-bar td {
	background: var(--amber-soft);
}

.is-fixing .ledger-entry td {
	border-top-color: var(--amber);
}

.ledger-entry .ui-inputfield,
.ledger-entry .ui-selectonemenu {
	width: 100%;
	min-width: 0;
}

.ledger-entry .ui-message-error + .cell-hint {
	display: none;
}

.ledger-entry__wording {
	display: flex;
	gap: 0.375rem;
}

.ledger-entry__mode {
	flex: none;
	width: 11.25rem;
}

.ledger-entry__detail {
	flex: 1;
	min-width: 0;
}

/* Libellé : une ligne de la hauteur d'un champ, texte centré, puis jusqu'à trois lignes en grandissant
   (autosize de PrimeFaces), au-delà il défile ; aucune poignée de redimensionnement */
.ledger-entry textarea.ledger-entry__text {
	display: block;
	max-height: calc(var(--control-h) + 2.5em);
	padding-block: calc((var(--control-h) - 2px - 1.25em) / 2);
	line-height: 1.25;
	resize: none;
}

.ledger-sens.ui-selectonebutton {
	display: flex;
}

.ledger-sens.ui-selectonebutton .ui-button {
	flex: 1 1 auto;
	min-width: 0;
	padding-inline: 0;
}

.ledger-sens.ui-selectonebutton .ui-button .ui-button-text {
	padding-inline: 0.375rem;
}

.ledger-sens.ui-selectonebutton .ui-button:first-child.ui-state-active {
	background: var(--green-soft);
	border-color: var(--green);
	box-shadow: inset 0 0 0 1px var(--green);
	color: var(--green-deep);
}

.ledger-sens.ui-selectonebutton .ui-button:last-child.ui-state-active {
	background: var(--red-soft);
	border-color: var(--red);
	box-shadow: inset 0 0 0 1px var(--red);
	color: var(--red);
}

.ledger-amount {
	position: relative;
}

.ledger-amount__sign,
.ledger-amount__unit {
	position: absolute;
	top: 0;
	display: flex;
	align-items: center;
	height: var(--control-h);
	pointer-events: none;
}

.ledger-amount__sign {
	left: 0.625rem;
	font-size: 0.9375rem;
	font-weight: 760;
}

.ledger-amount__sign--credit {
	color: var(--green-deep);
}

.ledger-amount__sign--debit {
	color: var(--red);
}

.ledger-amount__unit {
	right: 0.625rem;
	color: var(--muted);
	font-weight: 600;
}

.ledger-entry .ledger-amount__input {
	padding-inline: 1.625rem;
	font-weight: 680;
	text-align: right;
}

/* Relevé de moins de 1 400 px (portable, barre latérale dépliée ou rail) : colonnes resserrées pour
   tenir sans défilement dès 902 px (écran de 1 024 px avec le rail). Dans la saisie, Règlement et Débit
   s'empilent et le mode de paiement passe au-dessus du libellé. Placé après les règles de la saisie,
   qu'il remplace. */
@media screen and (min-width: 1024px) and (pointer: fine), screen and (min-width: 1367px) {
	@container ledger (max-width: 1399.98px) {
		.ledger-table { min-width: 56.375rem; }
		.ledger-col--date { width: 7.25rem; }
		.ledger-col--type { width: 7.5rem; }
		.ledger-col--money { width: 6.5rem; }
		.ledger-col--bundle { width: 4.25rem; }
		.ledger-col--balance { width: 6.25rem; }
		.ledger-col--actions { width: 7.125rem; }
		.ledger-col--detail { width: 5.5rem; }

		.ledger-table .ledger-row--REPORT td.ledger-row__date {
			white-space: normal;
		}

		.ledger-entry .ui-inputfield:not(.ledger-amount__input) {
			padding-inline: 0.5rem;
		}

		.ledger-sens.ui-selectonebutton {
			flex-direction: column;
		}

		body .ledger-sens.ui-selectonebutton > div.ui-button:first-child {
			border-right-width: 1px;
			border-bottom-width: 0;
			border-radius: var(--radius-sm) var(--radius-sm) 0 0;
		}

		body .ledger-sens.ui-selectonebutton > div.ui-button:last-child {
			border-radius: 0 0 var(--radius-sm) var(--radius-sm);
		}

		.ledger-entry__wording {
			flex-direction: column;
		}

		.ledger-entry__mode {
			width: auto;
		}

		/* Le libellé passe sous le mode et s'étend jusqu'au bord droit de la colonne Solde (marge
		   intérieure de la cellule, Débit, Crédit, Forfait, Solde, moins sa marge droite), au-dessous
		   du montant et du solde après l'écriture : 542 px au lieu de 166 à 1 024 px. L'ordre de frappe
		   ne change pas (maquette validée le 16/11/2026). */
		.ledger-entry__detail {
			--spans-cells: 1; /* débordement voulu, déclaré au balayage géométrique (skill picman-ui) */
			flex: none;
			width: calc(100% + 23.125rem);
		}

		/* La première ligne tient au-dessus du libellé : le sens se lit au signe et à sa couleur (le
		   lecteur d'écran l'entend avec le montant), le solde après l'écriture remonte en deux lignes */
		.ledger-entry [data-ledger-sens-hint] {
			position: absolute;
			width: 1px;
			height: 1px;
			overflow: hidden;
			clip-path: inset(50%);
			white-space: nowrap;
		}

		.ledger-entry td.num:has([data-ledger-after]) {
			padding-top: 0.5rem;
			line-height: 1.25;
		}

		/* Un montant refusé : son message (deux lignes au plus) reste au-dessus du libellé. Le bloc du
		   mode en prend la hauteur au moins ; s'il porte lui-même un message plus long, il garde la sienne */
		.ledger-entry:has(.ledger-amount + .ui-message-error) .ledger-entry__mode {
			min-height: calc(var(--control-h) + 2.125rem);
		}
	}
}

.ledger-lock td {
	height: auto;
	padding: 0.875rem 1rem;
	background: var(--paper-2);
	border-bottom: 1px solid var(--line-strong);
	color: var(--slate);
	white-space: normal;
}

.ledger-lock .icon {
	margin-right: 0.625rem;
	color: var(--slate);
}

/* Lignes du relevé */

.ledger-row.is-clickable {
	cursor: pointer;
}

.ledger-row.is-clickable:hover td {
	background: var(--row-hover);
}

.ledger-row:focus-visible {
	outline: 2px solid var(--focus-color);
	outline-offset: -2px;
}

.ledger-row--REPORT td,
.ledger-row--MONTH td {
	background: var(--paper-2);
	color: var(--slate);
}

.ledger-row--REPORT td {
	font-weight: 650;
}

.ledger-row.is-new td {
	background: var(--green-soft);
}

.ledger-row.is-new td:first-child {
	box-shadow: inset 3px 0 0 var(--green);
}

.ledger-row.is-fixing td {
	background: var(--amber-soft);
}

.ledger-row.is-fixing td:first-child {
	box-shadow: inset 3px 0 0 var(--amber);
}

.ledger-row__date {
	color: var(--slate);
	font-variant-numeric: tabular-nums;
}

.ledger-table td.ledger-row__wording {
	padding-block: 0.375rem;
	line-height: 1.3;
	white-space: normal;
	overflow-wrap: anywhere;
}

.ledger-row__credit {
	color: var(--green-deep);
	font-weight: 650;
}

.ledger-row__balance {
	font-weight: 650;
}

.ledger-table td.ledger-row__actions {
	overflow: visible;
	text-align: right;
}

.ledger-none td {
	height: 4rem;
	color: var(--muted);
	text-align: center;
	white-space: normal;
}

.ledger-total td {
	height: 2.5rem;
	background: var(--paper-2);
	border-top: 1px solid var(--line-strong);
	border-bottom: 0;
	font-weight: 700;
}

.pill {
	display: inline-flex;
	align-items: center;
	height: 1.375rem;
	padding: 0 0.5rem;
	border-radius: var(--radius-xs);
	background: var(--paper-2);
	color: var(--slate);
	box-shadow: inset 0 0 0 1px var(--line);
	font-size: 0.75rem;
	font-weight: 640;
	white-space: nowrap;
}

.pill--glider,
.pill--month {
	background: var(--blue-soft);
	color: var(--blue);
	box-shadow: none;
}

.pill--tow {
	background: var(--violet-soft);
	color: var(--violet);
	box-shadow: none;
}

.pill--bundle {
	background: var(--paper);
	color: var(--blue);
	box-shadow: inset 0 0 0 1px var(--blue-line);
}

.pill--credit {
	background: var(--green-soft);
	color: var(--green-deep);
	box-shadow: none;
}

.pill--debit {
	color: var(--muted);
	box-shadow: inset 0 0 0 1px var(--line-strong);
}

.ledger__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.125rem;
	padding: 0.5625rem 0.875rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.78125rem;
}

.ledger__foot-end {
	margin-left: auto;
}

/* Fenêtres : détail d'une écriture de vol, confirmation d'un geste qui rejoue l'année */

.ledger-detail {
	color: var(--slate);
	line-height: 1.6;
}

.ledger-detail p {
	margin: 0;
}

.ledger-detail b,
.ledger-detail strong {
	color: var(--ink);
}

.ledger-detail__amount {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 0.875rem 0 0;
	padding-top: 0.75rem;
	border-top: 1px solid var(--line);
}

.ledger-detail__amount strong {
	font-size: 1.125rem;
	font-variant-numeric: tabular-nums;
}

.ledger-detail__part + .ledger-detail__part {
	margin-top: 0.875rem;
	padding-top: 0.75rem;
	border-top: 1px dashed var(--line);
}

.ledger-detail__head {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.375rem;
}

.ledger-detail__wording {
	flex: 1;
	min-width: 0;
	color: var(--ink);
	font-weight: 600;
}

.ledger-detail__head strong {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.ledger-detail__bundle {
	margin: 0.625rem 0 0;
	padding: 0.5rem 0.75rem;
	border-radius: var(--radius-sm);
	background: var(--blue-mist);
	color: var(--slate);
	font-size: 0.875rem;
}

.ledger-detail__hint {
	margin: 0.5rem 0 0;
	color: var(--muted);
	font-size: 0.8125rem;
}

.ledger-pending {
	display: grid;
	gap: 0.625rem;
	color: var(--slate);
}

.ledger-pending p,
.ledger-pending ul {
	margin: 0;
}

.ledger-pending ul {
	display: grid;
	gap: 0.25rem;
	padding-left: 1.25rem;
}

.ledger-pending__note {
	padding: 0.625rem 0.75rem;
	border-radius: var(--radius-sm);
	background: var(--amber-soft);
	color: var(--amber-ink);
}

/* Cartes des écritures : affichées à la place du tableau sur téléphone */

.ledger-cards {
	display: none;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.5rem;
	margin: 0;
	padding: 0.75rem;
	list-style: none;
}

.ledger-card {
	display: grid;
	gap: 0.1875rem;
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
}

.ledger-card--REPORT,
.ledger-card--MONTH {
	background: var(--paper-2);
}

.ledger-card.is-new {
	border-color: var(--green);
	background: var(--green-soft);
}

.ledger-card.is-fixing {
	border-color: var(--amber);
	background: var(--amber-soft);
}

.ledger-card__head {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	color: var(--slate);
	font-size: 0.875rem;
}

/* « mer. 30 sept. », « Cotisation du jour » et « −12 499,75 € » ne tiennent pas côte à côte sous
   360 px : le type passe sous la date, le montant reste en haut à droite, dans l'axe des autres */
.ledger-card__when {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.5rem;
	min-width: 0;
}

.ledger-card__amount {
	flex: none;
	color: var(--ink);
	font-size: 1rem;
	font-weight: 740;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.ledger-card__wording {
	font-size: 0.9375rem;
}

.ledger-card__meta {
	color: var(--muted);
	font-size: 0.8125rem;
	font-variant-numeric: tabular-nums;
}

.ledger-card__more {
	justify-self: start;
}

/* Une carte qui s'ouvre (détail d'un vol, correction d'un règlement) le dit par un chevron */
.ledger-card[data-ledger-view],
.ledger-card[data-ledger-fix] {
	position: relative;
	padding-right: 2rem;
	cursor: pointer;
}

.ledger-card[data-ledger-view]::after,
.ledger-card[data-ledger-fix]::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0.875rem;
	width: 0.5rem;
	height: 0.5rem;
	border-top: 2px solid var(--muted);
	border-right: 2px solid var(--muted);
	transform: translateY(-50%) rotate(45deg);
}

.ledger-card[data-ledger-view]:hover,
.ledger-card[data-ledger-fix]:hover {
	border-color: var(--blue-line);
}

.ledger__hint {
	display: none;
	margin: 0;
	padding: 0.625rem 0.875rem 0;
	color: var(--slate);
	font-size: 0.8125rem;
}

.ledger-card--none {
	color: var(--slate);
}

/* Facturation du membre (account.xhtml) : en-tête de son compte et note d'exercice */

/* « · voir 2027 » ne se sépare jamais : le point ne commence pas une ligne */
.pilot__more {
	white-space: nowrap;
}

.pilot__sub .account__link {
	color: var(--blue);
	font: inherit;
	font-weight: 600;
}

@media screen and (max-width: 767.98px) {
	.account-actions {
		display: none;
	}
}

.account__note {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0;
	padding: 0.625rem 0.875rem;
	border-bottom: 1px solid var(--line);
	background: var(--blue-mist);
	color: var(--slate);
	font-size: 0.84375rem;
}

.account__note .icon {
	width: 1rem;
	height: 1rem;
	margin-top: 0.125rem;
	color: var(--blue);
}

@media screen and (max-width: 1279.98px) {
	.pilot__profile {
		grid-template-columns: minmax(0, 1fr);
	}

	.pilot__group {
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.pilot__group:last-child {
		border-bottom: 0;
	}
}

/* Téléphone et tablette, et toute tablette tactile jusqu'à 1 366 px (à l'horizontale, le tableau
   serait trop serré pour le doigt et les champs de 16 px) : l'en-tête en blocs, le relevé en cartes.
   Au téléphone la saisie s'ouvre par « + » ; sur tablette, elle reste ouverte au-dessus des cartes.
   picman-ledger.js reprend la même condition (CARDS). */

@media screen and (max-width: 1023.98px), screen and (pointer: coarse) and (max-width: 1366.98px) {
	.ledger-search {
		width: 100%;
	}

	.ledger-search__key {
		display: none;
	}

	.pilot__top {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.pilot__cell {
		padding: 0.625rem 1rem;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.pilot__id,
	.pilot__situation,
	.pilot__toggle {
		grid-column: 1 / -1;
	}

	.pilot__id + .pilot__cell {
		border-right: 1px solid var(--line);
	}

	.pilot__avatar {
		width: 2.5rem;
		height: 2.5rem;
		font-size: 0.875rem;
	}

	.pilot__name {
		font-size: 1.125rem;
	}

	.pilot__figure {
		font-size: 1.3125rem;
	}

	.pilot__figure--none {
		font-size: 1.0625rem;
		white-space: normal;
	}

	.pilot__sub {
		flex-wrap: wrap;
		white-space: normal;
	}

	.account .pilot__cell {
		border-bottom: 0;
	}

	.account .pilot__cell:first-child {
		border-right: 1px solid var(--line);
	}

	.account__payment {
		grid-column: 1 / -1;
		border-top: 1px solid var(--line);
	}

	.pilot__sub .meter {
		display: none;
	}

	/* Sans la jauge, « restantes » et « volées » se séparent d'un point */
	.pilot__sep {
		display: inline;
	}

	.pilot__toggle {
		padding-block: 0.5rem;
		border-bottom: 0;
	}

	.pilot__toggle .ui-button {
		width: 100%;
	}

	.ledger-entry {
		scroll-margin-top: calc(var(--topbar-h) + 0.5rem);
	}

	.ledger__count,
	.ledger__end {
		margin-left: 0;
	}

	.ledger__scroll {
		max-height: none;
	}

	.ledger-table,
	.ledger-table thead,
	.ledger-table tbody,
	.ledger-table tr,
	.ledger-table td {
		display: block;
		width: 100%;
	}

	.ledger-table colgroup,
	.ledger-table .ledger-table__labels,
	.ledger-table .ledger-entry,
	.ledger-table .ledger-entry-bar,
	.ledger-table .ledger-row,
	.ledger-table tfoot {
		display: none;
	}

	.ledger--entry-open .ledger-table .ledger-entry,
	.ledger--entry-open .ledger-table .ledger-entry-bar,
	.is-fixing .ledger-table .ledger-entry,
	.is-fixing .ledger-table .ledger-entry-bar {
		display: grid;
	}

	.ledger-table thead {
		position: static;
		display: flex;
		flex-direction: column;
	}

	/* Le titre de la saisie (« Nouvelle écriture pour… ») et ses boutons passent au-dessus des champs */
	.ledger-table .ledger-entry-bar {
		order: -1;
	}

	.ledger-entry {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.75rem;
		padding: 1rem;
		background: var(--blue-mist);
		border-top: 2px solid var(--blue);
	}

	.ledger-entry td,
	.ledger-entry td:first-child,
	.ledger-entry td.num,
	.is-fixing .ledger-entry td {
		padding: 0;
		border: 0;
		background: transparent;
		text-align: left;
	}

	/* En correction, tout le bloc de saisie passe à l'ambre, pas seulement chaque champ */
	.is-fixing .ledger-entry {
		background: var(--amber-soft);
	}

	.ledger-entry td:nth-child(5),
	.ledger-entry td:nth-child(7) {
		display: none;
	}

	.ledger-entry td:nth-child(1) {
		order: 5;
	}

	.ledger-entry td:nth-child(2) {
		order: 1;
	}

	.ledger-entry td:nth-child(3) {
		order: 3;
	}

	.ledger-entry td:nth-child(4) {
		order: 2;
	}

	.ledger-entry td:nth-child(6) {
		order: 4;
	}

	.ledger-entry__wording {
		flex-direction: column;
	}

	.ledger-entry__mode {
		width: auto;
	}

	.ledger-entry .cell-label {
		position: static;
		display: block;
		width: auto;
		height: auto;
		margin: 0 0 0.25rem;
		overflow: visible;
		clip-path: none;
		color: var(--slate);
		font-size: 0.8125rem;
		font-weight: 600;
	}

	.ledger-entry-bar td {
		padding: 0.75rem 1rem 0.25rem;
		border-top: 2px solid var(--blue);
		border-bottom: 0;
	}

	.is-fixing .ledger-entry-bar td {
		border-top-color: var(--amber);
	}

	.ledger-table .ledger-entry {
		border-top: 0;
	}

	.ledger-entry-bar .entry-bar__keys {
		display: none;
	}

	.ledger-entry-bar .entry-bar .ui-button {
		flex: 1 1 auto;
	}

	.ledger-cards {
		display: grid;
	}

	.ledger__hint {
		display: block;
	}

	body .ledger-switch.ui-selectonebutton > div.ui-button:nth-child(n),
	body .ledger-sens.ui-selectonebutton > div.ui-button:nth-child(n) {
		border-bottom-width: 1px;
		border-radius: 0;
	}

	body .ledger-switch.ui-selectonebutton > div.ui-button:first-child,
	body .ledger-sens.ui-selectonebutton > div.ui-button:first-child {
		border-radius: var(--radius-sm) 0 0 var(--radius-sm);
	}

	body .ledger-switch.ui-selectonebutton > div.ui-button:last-child,
	body .ledger-sens.ui-selectonebutton > div.ui-button:last-child {
		border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	}

	.ledger__foot {
		display: none;
	}
}

@media screen and (min-width: 768px) and (max-width: 1023.98px), screen and (pointer: coarse) and (min-width: 768px) and (max-width: 1366.98px) {
	.ledger-table .ledger-entry,
	.ledger-table .ledger-entry-bar {
		display: grid;
	}

	.ledger-entry {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.875rem 1rem;
	}

	.ledger-entry td:nth-child(2),
	.ledger-entry td:nth-child(3) {
		grid-column: 1 / -1;
	}

	/* La date se range à côté du montant, avant le mode et le libellé */
	.ledger-entry td:nth-child(1) {
		order: 3;
	}

	.ledger-entry-bar .entry-bar .ui-button {
		flex: none;
	}
}

/* ==========================================================================
   Carnet de vol (logbook.xhtml) : les heures de la période en tête, les vols ensuite ;
   tableau de carnet sur ordinateur, cartes par mois sur téléphone.
   ========================================================================== */

.logbook-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.logbook {
	display: grid;
	gap: 1rem;
}

.logbook__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.625rem 1.25rem;
}

.logbook__filter {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.logbook__filter-label {
	color: var(--muted);
	font-size: 0.78125rem;
	font-weight: 600;
}

/* Type et rôle : en ligne avec la période sur tablette et ordinateur, repliés au téléphone */
.logbook__more,
.logbook__more-body {
	display: contents;
}

.logbook__more-toggle {
	display: none;
}

.logbook-summary {
	container: logbook-summary / inline-size;
	display: grid;
	gap: 0.75rem;
	padding: 0.875rem 1.125rem 1rem;
}

.logbook-summary__caption {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.75rem;
	margin: 0;
	color: var(--slate);
	font-size: 0.875rem;
}

.logbook-summary__caption strong {
	color: var(--ink);
	font-size: 1rem;
}

.logbook-link {
	color: var(--blue);
	font-weight: 600;
}

/* Au doigt, « Effacer les filtres » prend une cible de 44 px sans écarter les lignes voisines */
@media screen and (pointer: coarse) {
	.logbook-link {
		position: relative;
	}

	.logbook-link::before {
		content: "";
		position: absolute;
		inset: -0.8125rem 0;
	}
}

.logbook-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
	gap: 0.625rem;
}

.logbook-tile {
	display: grid;
	align-content: start;
	gap: 0.125rem;
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--paper-2);
	cursor: help;
}

.logbook-tile--main {
	border-color: var(--blue-line);
	background: var(--blue-mist);
}

.logbook-tile--types {
	grid-column: span 2;
	cursor: default;
}

.logbook-tile__label {
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 600;
}

.logbook-tile__abbr {
	display: none;
}

.logbook-tile__value {
	font-size: 1.375rem;
	font-weight: 750;
	letter-spacing: -0.015em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.logbook-tile--main .logbook-tile__value {
	color: var(--blue);
}

.logbook-tile__sub {
	color: var(--slate);
	font-size: 0.75rem;
}

.logbook-share {
	display: grid;
	grid-template-columns: 4rem minmax(3rem, 1fr) auto;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8125rem;
}

.logbook-share .meter {
	width: 100%;
}

/* Au plus étroit, le nombre de vols passe sous les heures plutôt que de sortir de la tuile */
.logbook-share__value {
	font-weight: 650;
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.logbook-share__value small {
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 500;
	white-space: nowrap;
}

.logbook-note {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	color: var(--slate);
	font-size: 0.8125rem;
}

.logbook-note .icon {
	color: var(--blue);
}

.logbook-empty {
	display: grid;
	justify-items: center;
	gap: 0.375rem;
	padding: 2.5rem 1.5rem;
	text-align: center;
}

.logbook-empty > .icon {
	width: 2rem;
	height: 2rem;
	color: var(--blue);
}

.logbook-empty__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
}

.logbook-empty__text {
	margin: 0;
	color: var(--slate);
}

.logbook-empty__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.logbook-board__scroll {
	position: relative;
	overflow-x: auto;
}

.logbook-table {
	width: 100%;
	min-width: 60rem;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
	font-size: 0.84375rem;
}

/* « mer. 30 sept. 2026 » et « Commandant de bord » tiennent entiers */
.logbook-col--date { width: 150px; }
.logbook-col--type { width: 92px; }
.logbook-col--role { width: 172px; }
.logbook-col--hours { width: 100px; }
.logbook-col--count { width: 64px; }
.logbook-col--delete { width: 52px; }

.logbook-table th,
.logbook-table td {
	height: var(--row-h);
	padding: 0 0.625rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.logbook-table thead th {
	height: 2.125rem;
	white-space: normal;
	line-height: 1.2;
	background: var(--paper-2);
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 650;
}

.logbook-table .num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.logbook-month th,
.logbook-month td {
	background: var(--blue-mist);
	color: var(--navy);
	font-weight: 700;
}

.logbook-row.is-new td {
	background: var(--green-soft);
}

.logbook-row.is-new td:first-child {
	box-shadow: inset 3px 0 0 var(--green);
}

.logbook-row__date {
	color: var(--slate);
}

.logbook-table td.logbook-row__aircraft {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
}

.logbook-row__aircraft strong {
	letter-spacing: 0.02em;
}

.logbook-row__note {
	min-width: 0;
	overflow: hidden;
	color: var(--muted);
	text-overflow: ellipsis;
}

.logbook-table td.logbook-row__delete {
	overflow: visible;
	text-align: right;
}

.logbook-total th,
.logbook-total td {
	height: 2.5rem;
	background: var(--paper-2);
	border-top: 1px solid var(--line-strong);
	border-bottom: 0;
	font-weight: 700;
}

.logbook__foot {
	margin: 0;
	padding: 0.625rem 0.875rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.78125rem;
}

/* Cartes par mois : affichées à la place du tableau sur téléphone */

.logbook-cards {
	display: none;
	padding: 0.75rem;
}

.logbook-cards__title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 0 0 0.5rem;
	font-size: 1rem;
	font-weight: 700;
}

.logbook-cards__title span,
.logbook-cards__month-title span {
	color: var(--muted);
	font-size: 0.8125rem;
	font-weight: 560;
}

.logbook-cards__month-title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 0.75rem 0 0.375rem;
	color: var(--navy);
	font-size: 0.875rem;
	font-weight: 700;
}

.logbook-cards__list {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.logbook-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.125rem 0.625rem;
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
}

.logbook-card.is-new {
	border-color: var(--green);
	background: var(--green-soft);
}

.logbook-card > .icon {
	grid-row: span 2;
	color: var(--blue);
}

.logbook-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
}

.logbook-card__type {
	color: var(--slate);
	font-size: 0.875rem;
}

.logbook-card__duration {
	font-weight: 740;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.logbook-card__meta {
	color: var(--slate);
	font-size: 0.875rem;
}

.logbook-card__note {
	grid-column: 2 / -1;
	color: var(--muted);
	font-size: 0.8125rem;
}

/* Vol extérieur : règles en tête, formulaire en deux colonnes */

.logbook-rules {
	display: flex;
	gap: 0.625rem;
	margin-bottom: 1rem;
	padding: 0.75rem 0.875rem;
	border-radius: var(--radius-sm);
	background: var(--blue-mist);
	color: var(--slate);
	font-size: 0.84375rem;
}

.logbook-rules .icon {
	color: var(--blue);
}

.logbook-rules ul {
	margin: 0.25rem 0 0;
	padding-left: 1.125rem;
}

.logbook-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0.875rem 1rem;
}

.logbook-form__field {
	display: grid;
	align-content: start;
	gap: 0.3125rem;
}

.logbook-form__field--wide {
	grid-column: 1 / -1;
}

.logbook-form__label,
.logbook-form__field > .ui-outputlabel {
	color: var(--slate);
	font-size: 0.8125rem;
	font-weight: 600;
}

.logbook-form .ui-inputfield {
	width: 100%;
}

/* Les vols en cartes par mois dès que le tableau (60 rem, colonnes à la donnée la plus longue) ne
   tient plus dans sa carte : téléphone, tablette, portable avec le rail */
.logbook-board {
	container: logbook / inline-size;
}

@media screen {
	@container logbook (max-width: 59.99rem) {
		.logbook-board__scroll {
			display: none;
		}

		.logbook-cards {
			display: block;
		}
	}
}

@media screen and (max-width: 767.98px) {
	/* Téléphone : la période sur une ligne de quatre parts ; type et rôle repliés derrière une
	   ligne qui dit le filtre en cours ; le résumé en une carte compacte. Les vols remontent sous
	   la moitié de l'écran (maquette validée le 16/11/2026). */
	.logbook__tools {
		display: grid;
		gap: 0.5rem;
	}

	.logbook__tools > .logbook-switch.ui-selectonebutton {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 2px;
		padding: 3px;
		border: 1px solid var(--line);
		border-radius: 999px;
		background: var(--paper);
	}

	body .logbook__tools > .logbook-switch.ui-selectonebutton > div.ui-button:nth-child(n) {
		position: relative;
		min-height: 2.375rem;
		margin: 0;
		padding: 0 0.25rem;
		border: 0;
		border-radius: 999px;
		background: transparent;
		color: var(--slate);
		box-shadow: none;
	}

	body .logbook__tools > .logbook-switch.ui-selectonebutton > div.ui-button.ui-state-active {
		background: var(--fill-primary);
		color: var(--on-accent);
	}

	/* Cibles de 44 px sans grossir la pilule ni les puces : la période déborde jusqu'au bord de la
	   pilule, une puce de 4 px dans l'écart de 8 px entre deux rangées */
	.logbook__tools .logbook-switch .ui-button::before {
		content: "";
		position: absolute;
		inset: -3px 0;
	}

	.logbook__more .logbook-switch .ui-button::before {
		inset: -4px 0;
	}

	/* Période et puces : le thème donne 0,5 rem × 1 rem au texte d'un bouton */
	body .logbook__tools .logbook-switch .ui-button .ui-button-text {
		padding: 0;
		font-size: 0.875rem;
		font-weight: 600;
	}

	.logbook__more {
		display: block;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		background: var(--paper);
	}

	.logbook__more-toggle {
		display: flex;
		align-items: center;
		gap: 0.5rem;
		width: 100%;
		min-height: 2.75rem;
		padding: 0 0.75rem;
		border: 0;
		border-radius: var(--radius);
		background: transparent;
		color: var(--slate);
		font: inherit;
		font-size: 0.875rem;
		text-align: left;
		cursor: pointer;
	}

	.logbook__more-toggle:focus-visible {
		outline: none;
		box-shadow: var(--focus-ring);
	}

	.logbook__more-toggle .icon {
		flex: none;
		width: 1.125rem;
		height: 1.125rem;
		color: var(--muted);
	}

	.logbook__more-label {
		flex: none;
		color: var(--ink);
		font-weight: 650;
	}

	.logbook__more-value {
		flex: 1;
		min-width: 0;
		color: var(--muted);
		overflow-wrap: anywhere;
	}

	.logbook__more-value.is-on {
		color: var(--blue);
		font-weight: 650;
	}

	.logbook__more-chevron {
		transition: transform 0.2s;
	}

	.logbook__more.is-collapsed .logbook__more-chevron {
		transform: rotate(-90deg);
	}

	.logbook__more-body {
		display: grid;
		gap: 0.625rem;
		padding: 0.625rem 0.75rem 0.75rem;
		border-top: 1px solid var(--line);
	}

	.logbook__more.is-collapsed .logbook__more-body {
		display: none;
	}

	.logbook__filter {
		display: grid;
		gap: 0.375rem;
	}

	.logbook__more .logbook-switch.ui-selectonebutton {
		display: flex;
		flex-wrap: wrap;
		gap: 0.5rem 0.375rem;
	}

	body .logbook__more .logbook-switch.ui-selectonebutton > div.ui-button:nth-child(n) {
		position: relative;
		min-height: 2.25rem;
		margin: 0;
		padding: 0 0.75rem;
		border: 1px solid var(--line-strong);
		border-radius: 999px;
		background: var(--paper);
		color: var(--slate);
	}

	body .logbook__more .logbook-switch.ui-selectonebutton > div.ui-button.ui-state-active {
		border-color: var(--fill-primary);
		background: var(--blue-soft);
		color: var(--blue);
	}

	.logbook-summary {
		gap: 0.5rem;
		padding: 0.625rem 0.75rem;
	}

	.logbook-summary__caption {
		font-size: 0.8125rem;
	}

	.logbook-summary__caption strong {
		font-size: 0.9375rem;
	}

	/* Trois chiffres sur une ligne ; avec l'instruction, deux par ligne. Le nombre de vols est
	   dit au-dessus de la liste (« Tes vols · 151 vols ») */
	.logbook-tiles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.375rem;
	}

	.logbook-tiles:has(> .logbook-tile--fi) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Carte de moins de 300 px (téléphone de 320 px) : « Commandant » ne tient plus dans un tiers ;
	   les rôles prennent l'abréviation du carnet réglementaire, le nom entier reste lu */
	@container logbook-summary (max-width: 18.74rem) {
		.logbook-tile__label:has(> .logbook-tile__abbr) {
			position: relative;
		}

		.logbook-tile__label:has(> .logbook-tile__abbr) > .logbook-tile__full {
			position: absolute;
			width: 1px;
			height: 1px;
			overflow: hidden;
			clip-path: inset(50%);
			white-space: nowrap;
		}

		.logbook-tile__abbr {
			display: inline;
		}
	}

	/* Libellé en haut, chiffre en bas : les chiffres d'une rangée restent alignés quand un libellé
	   passe sur deux lignes */
	.logbook-tile {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		padding: 0.375rem 0.5rem;
	}

	.logbook-tile__label {
		font-size: 0.75rem;
		line-height: 1.25;
	}

	.logbook-tile__value {
		font-size: 1rem;
	}

	.logbook-tile__sub,
	.logbook-tile--count {
		display: none;
	}

	.logbook-tile--types {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: flex-start;
		grid-column: 1 / -1;
		gap: 0.125rem 0.75rem;
		padding: 0;
		border: 0;
		background: none;
		box-shadow: none;
	}

	.logbook-tile--types .logbook-tile__label,
	.logbook-tile--types .meter {
		display: none;
	}

	.logbook-tile--types .logbook-share {
		display: inline-flex;
		gap: 0.375rem;
		font-size: 0.78125rem;
	}

	.logbook-tile--types .logbook-share > span:first-child {
		color: var(--ink);
		font-weight: 650;
	}

	.logbook-form {
		grid-template-columns: minmax(0, 1fr);
	}

	.logbook-actions {
		display: none;
	}
}

/* ==========================================================================
   Membres (persons.xhtml) : l'effectif sur le PC du club, une ligne par membre, contact et
   suivi côte à côte ; une carte par membre sur téléphone, « Appeler » et « Écrire » en pied.
   ========================================================================== */

.members-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.members {
	display: flex;
	flex-direction: column;
	min-width: 0;
	container: members / inline-size;
}

.members__tools {
	display: grid;
	gap: 0.625rem;
	padding: 0.75rem 0.875rem;
	border-bottom: 1px solid var(--line);
}

.members__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.625rem 1rem;
}

.members__bar .search-box {
	flex: 0 1 30rem;
}

.members__count {
	margin: 0;
	color: var(--slate);
	font-size: 0.84375rem;
}

.members__count b {
	color: var(--ink);
	font-variant-numeric: tabular-nums;
}

.members__end {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
}

.members__clear {
	min-height: 2.125rem;
	padding: 0 0.75rem;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--blue);
	font: inherit;
	font-size: 0.84375rem;
	font-weight: 600;
	cursor: pointer;
}

@media screen and (pointer: coarse) {
	.members__clear,
	.directory__clear,
	.boards__clear {
		min-height: 2.75rem;
	}
}

.members__clear:hover {
	background: var(--blue-mist);
}

.members__clear:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
}

.members__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
}

.members__filters-label {
	margin-right: 0.25rem;
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 650;
}

.members__sep {
	width: 1px;
	height: 1.375rem;
	margin: 0 0.375rem;
	background: var(--line-strong);
}

.members__scroll {
	position: relative;
	max-height: max(26rem, calc(100dvh - 17rem));
	overflow: auto;
}

.members-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
	font-size: 0.84375rem;
}

.members-col--toggle { width: 44px; }
.members-col--who { width: 280px; }
.members-col--season { width: 76px; }
.members-col--roles { width: 196px; }
.members-col--bundle { width: 164px; }
.members-col--balance { width: 184px; }
.members-col--actions { width: 124px; }

.members-table thead {
	position: sticky;
	top: 0;
	z-index: 3;
}

.members-table th {
	height: 2.125rem;
	padding: 0 0.5rem;
	overflow: hidden;
	background: var(--paper-2);
	border-bottom: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 650;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.members-table th.num {
	text-align: right;
}

.sort-button {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0 -0.25rem;
	padding: 0.125rem 0.25rem;
	border: 0;
	border-radius: var(--radius-xs);
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.sort-button:hover,
th[aria-sort] .sort-button {
	color: var(--ink);
}

.sort-button:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
}

.sort-button .icon {
	width: 0.8125rem;
	height: 0.8125rem;
	stroke-width: 2.2;
}

.members-table td {
	height: var(--row-h);
	padding: 0 0.5rem;
	overflow: hidden;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.members-table td.num {
	text-align: right;
}

.member__row:hover td {
	background: var(--row-hover);
}

.member.is-open .member__row td {
	background: var(--paper-2);
	border-bottom-color: transparent;
}

.member--new .member__row td {
	background: var(--green-soft);
}

.member--new .member__row td:first-child {
	box-shadow: inset 3px 0 0 var(--green);
}

.member__toggle {
	padding-right: 0;
}

.member__expand {
	display: inline-grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	padding: 0;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--slate);
	cursor: pointer;
}

.member__expand:hover {
	background: var(--blue-mist);
	color: var(--ink);
}

.member__expand:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
}

.member__expand .icon {
	width: 1rem;
	height: 1rem;
	transform: rotate(-90deg);
	transition: transform 0.2s;
}

.member__expand[aria-expanded="true"] .icon {
	transform: none;
}

/* Un nom long renvoie la licence à la ligne plutôt que de la rogner */
.members-table td.member__who {
	display: table-cell;
	white-space: normal;
}

.member__license {
	white-space: nowrap;
}

.member__avatar {
	display: inline-grid;
	place-items: center;
	width: 1.625rem;
	height: 1.625rem;
	margin-right: 0.625rem;
	overflow: hidden;
	vertical-align: middle;
	border-radius: 50%;
	background: var(--blue-soft);
	color: var(--blue);
	font-size: 0.75rem;
	font-weight: 740;
	letter-spacing: 0.02em;
}

.member__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.member__name {
	color: var(--ink);
	font-weight: 650;
	text-decoration: none;
	vertical-align: middle;
}

.member__name:hover {
	color: var(--blue);
	text-decoration: underline;
}

.member__license {
	margin-left: 0.5rem;
	color: var(--muted);
	font-size: 0.78125rem;
	font-variant-numeric: tabular-nums;
	vertical-align: middle;
}

.member__contact-line {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-width: 0;
}

.member__tel,
.member__mail {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	max-width: 100%;
	color: var(--blue);
	text-decoration: none;
	vertical-align: middle;
}

/* Un téléphone en texte libre trop long finit en « … » comme le mail : il prend au plus 60 % de la
   ligne, le mail garde le reste et au moins son pictogramme */
.member__tel {
	flex: 0 1 auto;
	min-width: 0;
	max-width: 60%;
	font-variant-numeric: tabular-nums;
	font-weight: 580;
}

.member__mail {
	flex: 1 1 0;
	min-width: 2.5rem;
}

.member__tel span,
.member__mail span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.member__tel:hover span,
.member__mail:hover span {
	text-decoration: underline;
}

.member__tel .icon,
.member__mail .icon {
	width: 0.9375rem;
	height: 0.9375rem;
	color: var(--muted);
}

.member__tel small {
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 500;
}

/* Au doigt (tableau des tablettes) : mail et téléphone prennent la hauteur de la ligne (44 px),
   le tri et l'état civil une cible de 44 px sans grossir l'en-tête ni la ligne */
@media screen and (pointer: coarse) {
	.member__tel,
	.member__mail {
		min-height: 2.75rem;
	}

	.sort-button,
	.member__expand {
		position: relative;
	}

	.sort-button::before {
		content: "";
		position: absolute;
		inset: -0.6875rem 0;
	}

	.member__expand::before {
		content: "";
		position: absolute;
		inset: -0.5rem;
	}
}

.member__none,
.member__dash,
.member__muted {
	color: var(--muted);
}

/* Trois rôles et plus passent à la ligne plutôt que d'être rognés */
.members-table td.member__roles {
	white-space: normal;
}

.member__roles .chip {
	margin-right: 0.25rem;
}

/* Contact replié sous le nom, quand le tableau n'a pas la place d'une colonne Contact */
.member__who-contact {
	display: none;
}

.member__bundle-text {
	font-variant-numeric: tabular-nums;
}

.member__bundle-text--out {
	color: var(--amber-ink);
	font-weight: 620;
}

.member-balance {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
}

.member-balance__state {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 650;
}

.member-balance__state .icon {
	width: 0.875rem;
	height: 0.875rem;
	stroke-width: 2.2;
}

.member-balance__amount {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.member-balance--debit .member-balance__state,
.member-balance--debit .member-balance__amount {
	color: var(--red);
}

.member__actions {
	padding-right: 0.625rem;
	text-align: right;
}

.member__actions .row-action {
	box-shadow: inset 0 0 0 1px var(--line-strong);
}

.members-table td.member__calls,
.members-table .member__billing {
	display: none;
}

.member__civil td {
	height: auto;
	padding: 0.125rem 1rem 0.875rem 3.25rem;
	background: var(--paper-2);
	white-space: normal;
}

.member-civil {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem 2.5rem;
	margin: 0;
}

.member-civil__item {
	display: grid;
	gap: 0.125rem;
	align-content: start;
	font-size: 0.84375rem;
}

.member-civil__item dt {
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 560;
}

.member-civil__item dd {
	margin: 0;
}

.member-civil__item a {
	color: var(--blue);
}

.member-civil__item .row-action {
	margin-left: 0.375rem;
}

.member-civil__note {
	margin: 0.625rem 0 0;
	color: var(--muted);
	font-size: 0.78125rem;
}

.members-table__empty td {
	height: auto;
	padding: 3rem 1.5rem;
	white-space: normal;
}

.members-empty {
	display: grid;
	justify-items: center;
	gap: 0.5rem;
	text-align: center;
}

.members-empty__title {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 700;
}

.members-empty__text {
	max-width: 40rem;
	margin: 0;
	color: var(--slate);
}

.members-empty__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.members__foot {
	margin: 0;
	padding: 0.5625rem 0.875rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.78125rem;
}

/* Fenêtres « Ajouter une licence » et « Synchroniser avec la FFVP » */

.licence {
	display: grid;
	gap: 0.75rem;
	color: var(--slate);
}

.licence p {
	margin: 0;
}

.licence__title {
	margin: 0;
	color: var(--ink);
	font-size: 1.0625rem;
	font-weight: 720;
}

.licence__title:focus {
	outline: none;
}

.licence__field {
	display: grid;
	gap: 0.3125rem;
}

.licence__field label {
	color: var(--slate);
	font-size: 0.84375rem;
	font-weight: 620;
}

.licence__field .ui-inputfield {
	width: 100%;
}

.licence__results {
	display: grid;
	gap: 0.5rem;
}

.licence__state {
	color: var(--slate);
	font-size: 0.84375rem;
}

.licence__hint {
	color: var(--muted);
	font-size: 0.8125rem;
}

.licence__list {
	display: grid;
	gap: 0.375rem;
	max-height: 18.75rem;
	margin: 0;
	padding: 0;
	overflow: auto;
	list-style: none;
}

.licence__item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.125rem 0.75rem;
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--paper);
	color: var(--ink);
	text-decoration: none;
	transition: border-color 0.2s, background-color 0.2s;
}

.licence__item:hover {
	border-color: var(--blue);
	background: var(--blue-mist);
}

.licence__item:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
}

.licence__name {
	font-weight: 650;
}

.licence__meta {
	grid-column: 1 / -1;
	color: var(--muted);
	font-size: 0.78125rem;
	font-variant-numeric: tabular-nums;
}

.licence__steps {
	display: grid;
	gap: 0.3125rem;
	margin: 0;
	padding-left: 1.25rem;
	font-size: 0.875rem;
}

.licence__steps b {
	color: var(--ink);
}

.licence__balance {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--paper-2);
}

.licence__balance div {
	display: grid;
}

.licence__balance span {
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 560;
}

.licence__balance b {
	color: var(--ink);
	font-size: 1rem;
	font-variant-numeric: tabular-nums;
}

.licence__balance b.is-debit {
	color: var(--red);
}

.licence__note {
	padding: 0.625rem 0.75rem;
	border-radius: var(--radius-sm);
	background: var(--amber-soft);
	color: var(--amber-ink);
	font-size: 0.84375rem;
}

.licence__note--bad {
	background: var(--red-soft);
	color: var(--red);
}

.licence__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem;
	margin-top: 0.25rem;
}

.sync__bar {
	width: 100%;
	height: 0.5rem;
	overflow: hidden;
	border: 0;
	border-radius: 999px;
	background: var(--line);
	appearance: none;
}

.sync__bar::-webkit-progress-bar {
	background: var(--line);
}

.sync__bar::-webkit-progress-value {
	background: var(--blue);
	transition: width 0.15s linear;
}

.sync__bar::-moz-progress-bar {
	background: var(--blue);
}

/* Tableau de moins de 1 400 px (portable, tablette, barre latérale dépliée) : le contact passe sous
   le nom, « Facturation » devient une icône ; la colonne Contact n'apparaît qu'avec la place d'une
   adresse mail entière. La règle suit la largeur réelle du tableau, pas l'écran. */
@media screen and (min-width: 768px) {
	@container members (max-width: 1399.98px) {
		.members-table {
			min-width: 53.25rem;
		}

		.members-table col:nth-child(4),
		.members-table thead th:nth-child(4),
		.members-table td.member__contact {
			display: none;
		}

		.members-col--who { width: 15.5rem; }
		.members-col--roles { width: 12rem; }
		.members-col--bundle { width: 10.25rem; }
		.members-col--balance { width: 11.5rem; }
		.members-col--actions { width: 3.5rem; }

		.members-table td.member__who {
			height: auto;
			padding-block: 0.3125rem;
			white-space: normal;
		}

		.member__name {
			display: inline-block;
			max-width: calc(100% - 2.5rem);
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
		}

		/* Le mail passe sous le téléphone quand il n'a pas la place à côté, plutôt que d'être tronqué */
		.member__who-contact {
			display: flex;
			flex-wrap: wrap;
			gap: 0 0.75rem;
			min-width: 0;
			margin: 0.0625rem 0 0 2.25rem;
			font-size: 0.78125rem;
			white-space: nowrap;
		}

		.member__who-contact .member__tel,
		.member__who-contact .member__mail {
			display: block;
			max-width: 100%;
			overflow: hidden;
			text-overflow: ellipsis;
		}

		.member__who-contact .member__mail {
			flex: 0 0 auto;
		}

		.member__actions .row-action {
			justify-content: center;
			width: 2.25rem;
			padding: 0;
		}

		.member__actions-label {
			position: absolute;
			width: 1px;
			height: 1px;
			overflow: hidden;
			clip-path: inset(50%);
			white-space: nowrap;
		}
	}
}

/* Au toucher, l'icône « Facturation » a sa cible de 44 px : la colonne la loge avec le retrait de
   la cellule (0,5 + 0,625 rem) au lieu de la rogner quand le tableau n'a pas de place à répartir */
@media screen and (min-width: 768px) and (pointer: coarse) {
	@container members (max-width: 1399.98px) {
		.members-col--actions { width: 3.875rem; }
	}
}

.members__filters-toggle {
	display: none;
}

@media screen and (max-width: 767.98px) {
	.members-actions {
		display: none;
	}

	.members__filters-toggle {
		display: inline-flex;
		align-items: center;
		min-height: 2.75rem;
		padding: 0 0.875rem;
		border: 1px solid var(--line-strong);
		border-radius: 999px;
		background: var(--paper);
		color: var(--ink);
		font: inherit;
		font-weight: 600;
		cursor: pointer;
	}

	.members__filters-toggle[aria-expanded="true"] {
		border-color: var(--blue);
		background: var(--blue-soft);
		color: var(--blue);
	}

	.members__filters {
		display: none;
	}

	.members__filters.is-open {
		display: flex;
	}

	.members {
		border: 0;
		background: transparent;
		box-shadow: none;
	}

	.members__tools {
		padding: 0 0 0.75rem;
		border-bottom: 0;
	}

	.members__bar .search-box {
		flex: 1 1 100%;
	}

	.members__filters-label,
	.members__sep,
	.filter-pill__count,
	.members__foot {
		display: none;
	}

	.members__count {
		flex: 1 1 auto;
	}

	.members__end .ui-button {
		display: none;
	}
}

/* Les membres en cartes dès que le tableau compact (970 px au toucher : colonnes à la donnée la plus
   longue, forfait « 200 h · reste 199 h 55 », solde « Débiteur −12 499,75 € » et cible de 44 px de
   « Facturation » compris)
   ne tient plus dans sa carte : téléphone, tablette en portrait, portable à barre latérale dépliée.
   Placé après le tableau compact, qu'il remplace : ni largeur minimale, ni contact sous le nom (les
   boutons Appeler et Écrire le portent). */
@media screen {
	@container members (max-width: 60.62rem) {
		.members-table {
			min-width: 0;
		}

		.member__who-contact {
			display: none;
		}

		.members__scroll {
			max-height: none;
			overflow: visible;
		}

		.members-table,
		.members-table tbody,
		.members-table tr,
		.members-table td {
			display: block;
			width: auto;
			height: auto;
		}

		.members-table colgroup,
		.members-table thead {
			display: none;
		}

		.members-table tbody.member {
			margin-bottom: 0.625rem;
			overflow: hidden;
			border: 1px solid var(--line);
			border-radius: var(--radius);
			background: var(--paper);
			box-shadow: var(--shadow-1);
		}

		.members-table tbody.member[hidden],
		.members-table tbody[hidden] {
			display: none;
		}

		.member--new {
			border-color: var(--green);
		}

		.members-table tr.member__row {
			display: flex;
			flex-wrap: wrap;
			align-items: center;
			gap: 0.5rem 0.625rem;
			padding: 0.75rem;
		}

		.member__row:hover td,
		.member--new .member__row td {
			background: transparent;
		}

		.member--new .member__row td:first-child {
			box-shadow: none;
		}

		.members-table .member__row td {
			padding: 0;
			overflow: visible;
			border: 0;
			background: transparent;
			white-space: normal;
		}

		.members-table .member__toggle,
		.members-table .member__contact,
		.members-table .member__actions,
		.members-table .member__civil {
			display: none;
		}

		.members-table td.member__who {
			display: grid;
			flex: 1 1 calc(100% - 4.5rem);
			grid-template-columns: auto minmax(0, 1fr);
			align-items: center;
			column-gap: 0.75rem;
			min-width: 0;
		}

		.member__avatar {
			grid-row: span 2;
			width: 2.75rem;
			height: 2.75rem;
			margin: 0;
			font-size: 0.9375rem;
		}

		.member__name {
			display: inline;
			max-width: none;
			overflow: visible;
			font-size: 1.03125rem;
			line-height: 1.3;
			white-space: normal;
			overflow-wrap: anywhere;
		}

		.member__license {
			margin: 0;
			font-size: 0.8125rem;
		}

		.members-table td.member__season {
			flex: none;
			align-self: flex-start;
		}

		.members-table td.member__roles,
		.members-table td.member__bundle {
			flex: 0 1 auto;
			color: var(--slate);
		}

		.members-table td.member__roles:has(.member__dash),
		.members-table td.member__bundle:has(.member__dash) {
			display: none;
		}

		.members-table td.member__balance {
			display: flex;
			flex: 1 1 100%;
			align-items: center;
			justify-content: space-between;
			gap: 0.5rem;
			padding-top: 0.5rem;
			border-top: 1px solid var(--line);
			text-align: left;
		}

		.member-balance {
			justify-content: flex-start;
		}

		.member-balance__amount {
			font-size: 1rem;
		}

		.members-table .member__billing {
			display: inline-flex;
			height: 2.75rem;
			padding: 0 0.375rem 0 0.75rem;
			font-size: 0.875rem;
		}

		.members-table td.member__calls {
			display: grid;
			flex: 1 1 100%;
			grid-template-columns: repeat(2, minmax(0, 1fr));
			gap: 0.5rem;
		}

		.member__call {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			gap: 0.5rem;
			height: 3rem;
			border-radius: var(--radius-sm);
			background: var(--blue-soft);
			color: var(--blue);
			font-size: 0.9375rem;
			font-weight: 650;
			text-decoration: none;
		}

		.member__call--none {
			background: transparent;
			color: var(--muted);
			box-shadow: inset 0 0 0 1px var(--line-strong);
		}

		.members-table__empty {
			border: 1px dashed var(--line-strong);
			border-radius: var(--radius);
			background: var(--paper);
		}

		.members-table__empty td {
			padding: 1.25rem 1rem;
		}
	}
}

/* Sur tablette, les cartes restent dans le cadre de la liste : elles s'en écartent au lieu d'en
   toucher les bords (au téléphone, le cadre disparaît) */
@media screen and (min-width: 768px) {
	@container members (max-width: 60.62rem) {
		.members__scroll {
			padding: 0.75rem;
		}
	}
}

/* ==========================================================================
   Mes données (profile.xhtml) : téléphone d'abord, une colonne dans l'ordre de ce qu'on y fait
   (photo, mails, fiche FFVP, qualifications) ; sur ordinateur, la photo et les qualifications à
   gauche, les mails et la fiche à droite.
   ========================================================================== */

.profile {
	display: grid;
	grid-template-columns: minmax(0, 23.25rem) minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
}

.profile__col,
.profile__form {
	display: grid;
	gap: 1rem;
	align-content: start;
	min-width: 0;
}

.profile-card {
	display: grid;
	gap: 0.75rem;
	align-content: start;
	padding: 1rem 1.125rem;
}

.profile-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.75rem;
}

.profile-card__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
}

.profile-card__aside {
	color: var(--muted);
	font-size: 0.78125rem;
	overflow-wrap: anywhere;
}

.profile-card__aside--end {
	margin-left: auto;
}

.profile-card__empty {
	margin: 0;
	color: var(--slate);
	font-size: 0.84375rem;
}

.profile-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.3125rem;
	justify-self: start;
	color: var(--blue);
	font-weight: 620;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.profile-card__link .icon {
	width: 0.875rem;
	height: 0.875rem;
}

@media screen and (pointer: coarse) {
	.profile-card__link {
		min-height: 2.75rem;
	}
}

/* Avatar rond : la photo, ou les initiales du membre */

.profile-avatar {
	position: relative;
	display: inline-grid;
	place-items: center;
	flex: none;
	overflow: hidden;
	border-radius: 50%;
	background: var(--blue-soft);
	box-shadow: 0 0 0 1px var(--line);
	color: var(--blue);
	font-weight: 720;
	letter-spacing: 0.02em;
}

.profile-avatar__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.profile-avatar--large {
	width: 10.5rem;
	height: 10.5rem;
	font-size: 3.5rem;
}

.profile-avatar--none {
	box-shadow: inset 0 0 0 2px var(--blue-line), 0 0 0 4px var(--paper), 0 0 0 5px var(--blue-line);
}

/* La photo */

.profile-photo {
	justify-items: center;
	text-align: center;
}

.profile-photo--none {
	border-left: 4px solid var(--blue);
	background: linear-gradient(var(--blue-mist), var(--paper) 70%);
}

.profile-photo__title,
.profile-photo__why {
	justify-self: stretch;
	text-align: left;
}

.profile-photo__why {
	margin: 0;
	color: var(--slate);
	font-size: 0.84375rem;
}

.profile-photo__drop {
	position: relative;
	display: inline-grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.profile-photo__drop:hover {
	transform: scale(1.02);
}

.profile-photo__drop:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
}

.profile-photo__badge {
	position: absolute;
	right: 0.25rem;
	bottom: 0.25rem;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--fill-primary);
	box-shadow: 0 0 0 3px var(--paper);
	color: var(--on-accent);
}

.profile-photo__badge .icon {
	width: 1.0625rem;
	height: 1.0625rem;
}

.profile-photo__over {
	position: absolute;
	inset: -0.375rem;
	display: none;
	place-items: center;
	border: 2px dashed var(--blue);
	border-radius: 50%;
	background: var(--blue-soft);
	color: var(--blue);
	font-size: 0.8125rem;
	font-weight: 680;
}

.profile-photo__drop.is-over .profile-photo__over {
	display: grid;
}

.profile-photo__who {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.25rem 0.5rem;
	color: var(--muted);
	font-size: 0.8125rem;
}

.profile-photo__name {
	flex-basis: 100%;
	color: var(--ink);
	font-size: 1.0625rem;
	font-weight: 720;
}

.profile-photo__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.profile-photo__cam[hidden] {
	display: none;
}

.profile-photo__hint {
	margin: 0;
	color: var(--muted);
	font-size: 0.78125rem;
}

/* Toujours dans l'arbre d'accessibilité : un refus s'annonce dès qu'il s'écrit */
.profile-photo__error {
	justify-self: stretch;
	color: var(--ink);
	font-size: 0.84375rem;
	text-align: left;
}

.profile-photo__error:empty {
	margin-block: -0.375rem;
}

.profile-photo__error:not(:empty) {
	padding: 0.5625rem 0.75rem;
	border: 1px solid var(--red);
	border-left-width: 4px;
	border-radius: var(--radius-sm);
	background: var(--red-soft);
}

.profile-photo__tips {
	display: grid;
	gap: 0.375rem;
	justify-self: stretch;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.profile-photo__tips li {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	color: var(--slate);
	font-size: 0.8125rem;
}

.profile-photo__tips .icon {
	width: 1rem;
	height: 1rem;
	margin-top: 0.125rem;
	color: var(--blue);
}

/* Spécificité relevée : le thème colore tout lien de commande (body .ui-commandlink) */
.profile-photo .profile-photo__remove {
	color: var(--slate);
	font-size: 0.8125rem;
	font-weight: 620;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.profile-photo .profile-photo__remove:hover {
	color: var(--red);
}

@media screen and (pointer: coarse) {
	.profile-photo .profile-photo__remove {
		display: inline-flex;
		align-items: center;
		min-height: 2.75rem;
	}
}

/* Les qualifications */

.profile-quals__list {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.profile-quals__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.375rem 0.625rem;
	min-height: 2.25rem;
	padding: 0.375rem 0;
	border-top: 1px solid var(--line);
	font-size: 0.875rem;
}

.profile-quals__item:first-child {
	border-top: 0;
}

.profile-quals__item strong {
	font-weight: 620;
}

/* Renvoyée sous un nom long, la pastille reste à droite, alignée sur celles des autres lignes */
.profile-quals__item .chip {
	margin-inline-start: auto;
}

/* Les mails du club */

.profile-mails__none {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0;
	padding: 0.5625rem 0.75rem;
	border-radius: var(--radius-sm);
	background: var(--amber-soft);
	color: var(--amber-ink);
	font-size: 0.84375rem;
}

.profile-mails__none .icon {
	width: 1rem;
	height: 1rem;
	margin-top: 0.125rem;
}

.profile-mails__list {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mail-option {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.25rem 0.875rem;
	padding: 0.75rem 0;
	border-top: 1px solid var(--line);
}

.mail-option:first-child {
	padding-top: 0.125rem;
	border-top: 0;
}

.mail-option__name {
	display: flex;
	align-items: center;
	align-self: center;
	gap: 0.5rem;
	font-size: 0.90625rem;
	font-weight: 660;
}

.mail-option__name .icon {
	width: 1.0625rem;
	height: 1.0625rem;
	color: var(--blue);
}

.mail-option__toggle,
.mail-option__print {
	grid-column: 2;
	grid-row: 1;
	align-self: center;
}

.mail-option__toggle {
	margin-block: -0.375rem;
}

.mail-option__desc {
	grid-column: 1 / -1;
	margin: 0;
	color: var(--slate);
	font-size: 0.8125rem;
	line-height: 1.45;
}

.mail-option__note {
	display: block;
	margin-top: 0.25rem;
	color: var(--muted);
	font-size: 0.78125rem;
}

/* La fiche FFVP, en lecture seule ; les coordonnées d'un administratif, qu'il tient lui-même */

.profile-fiche__groups {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
	gap: 0.875rem 1.75rem;
}

.profile-fiche__group {
	display: grid;
	gap: 0.375rem;
	align-content: start;
	min-width: 0;
}

.profile-fiche__group-title {
	margin: 0;
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 680;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.profile-fiche__list {
	display: grid;
	gap: 0.4375rem;
	margin: 0;
	font-size: 0.875rem;
}

.profile-fiche__row {
	display: grid;
	grid-template-columns: 7.5rem minmax(0, 1fr);
	gap: 0.125rem 0.875rem;
}

.profile-fiche__row dt {
	color: var(--muted);
	font-weight: 560;
}

.profile-fiche__row dd {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.5rem;
	min-width: 0;
	margin: 0;
	overflow-wrap: anywhere;
}

/* Une pastille d'état (« Licence 2026 à souscrire ») passe à la ligne dans sa cellule plutôt que de
   déborder sur la colonne voisine quand les deux groupes sont côte à côte */
.profile-fiche__row dd .chip {
	max-width: 100%;
	padding-block: 0.1875rem;
	white-space: normal;
}

.profile-fiche__address {
	display: grid;
}

.profile-fiche__unknown {
	color: var(--muted);
	font-style: italic;
}

.profile-mark {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	min-height: 1.25rem;
	padding: 0 0.4375rem;
	border: 1px solid var(--blue-line);
	border-radius: 999px;
	background: var(--blue-mist);
	color: var(--blue);
	font-size: 0.75rem;
	font-style: normal;
	font-weight: 620;
	white-space: nowrap;
}

.profile-mark .icon {
	width: 0.8125rem;
	height: 0.8125rem;
}

.profile-fiche__note {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
	margin: 0;
	color: var(--muted);
	font-size: 0.78125rem;
}

.profile-fiche__authority {
	display: flex;
	align-items: flex-start;
	gap: 0.5625rem;
	padding: 0.5625rem 0.75rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--paper-2);
	color: var(--slate);
	font-size: 0.8125rem;
}

.profile-fiche__authority .icon {
	width: 1rem;
	height: 1rem;
	margin-top: 0.0625rem;
	color: var(--muted);
}

.profile-fiche__authority p {
	margin: 0;
}

/* Les coordonnées qu'un administratif tient lui-même (access-form) : une largeur de saisie */
.profile-contact {
	max-width: 32rem;
}

.profile-contact__country.ui-selectonemenu {
	width: 100%;
}

/* Recadrage et webcam : l'image glisse sous un cercle fixe (picman-profile.js) */

.profile-dialog .ui-dialog-content {
	display: grid;
	gap: 0.875rem;
}

.profile-crop__sub {
	margin: 0;
	color: var(--muted);
	font-size: 0.8125rem;
	overflow-wrap: anywhere;
}

.profile-crop {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1.25rem;
	align-items: start;
}

.profile-crop__stage {
	position: relative;
	width: 20rem;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--radius-sm);
	background: var(--paper-2);
	cursor: grab;
	touch-action: none;
	user-select: none;
}

.profile-crop__stage:active {
	cursor: grabbing;
}

.profile-crop__stage:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
}

.profile-crop__stage img,
.profile-crop__preview img {
	position: absolute;
	left: 50%;
	top: 50%;
	width: var(--crop-w, 100%);
	height: var(--crop-h, 100%);
	max-width: none;
	transform: translate(-50%, -50%) translate(var(--crop-x, 0px), var(--crop-y, 0px)) rotate(var(--crop-turn, 0deg));
	transform-origin: center;
	pointer-events: none;
	user-select: none;
}

.profile-crop__mask {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	box-shadow: 0 0 0 999px var(--mask);
	outline: 2px solid var(--on-accent);
	outline-offset: -1px;
	pointer-events: none;
}

.profile-crop__side {
	display: grid;
	gap: 0.875rem;
	align-content: start;
	min-width: 0;
}

.profile-crop__previews {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 1rem;
}

.profile-crop__previews figure {
	display: grid;
	justify-items: center;
	gap: 0.25rem;
	margin: 0;
	color: var(--muted);
	font-size: 0.75rem;
}

.profile-crop__preview {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 50%;
	background: var(--blue-soft);
	box-shadow: 0 0 0 1px var(--line);
}

.profile-crop__preview[data-preview-size="96"] {
	width: 6rem;
	height: 6rem;
}

.profile-crop__preview[data-preview-size="48"] {
	width: 3rem;
	height: 3rem;
}

.profile-crop__preview[data-preview-size="32"] {
	width: 2rem;
	height: 2rem;
}

.profile-crop__zoom {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.profile-crop__zoom input {
	flex: 1;
	min-width: 0;
	height: 1.75rem;
	accent-color: var(--fill-primary);
}

@media screen and (pointer: coarse) {
	.profile-crop__zoom input {
		height: 2.75rem;
	}
}

.profile-crop__tools {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.profile-crop__keys {
	margin: 0;
	color: var(--muted);
	font-size: 0.78125rem;
}

.profile-crop__error {
	margin: 0;
	color: var(--red);
	font-size: 0.84375rem;
	font-weight: 600;
}

.profile-dialog__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
}

.profile-dialog__size {
	margin-right: auto;
	color: var(--muted);
	font-size: 0.78125rem;
}

.profile-cam {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius);
	background: var(--paper-2);
}

.profile-cam video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media screen and (min-width: 1024px) {
	.profile-photo__who {
		display: none;
	}
}

@media screen and (max-width: 1023.98px) {
	.profile {
		grid-template-columns: minmax(0, 1fr);
	}

	.profile__col,
	.profile__form {
		display: contents;
	}

	.profile-photo { order: 1; }
	.profile-mails { order: 2; }
	.profile-fiche { order: 3; }
	.profile-quals { order: 4; }
}

@media screen and (max-width: 767.98px) {
	.profile-photo__tips,
	.profile-photo__drop-hint {
		display: none;
	}

	.profile-avatar--large {
		width: 6.5rem;
		height: 6.5rem;
		font-size: 2.25rem;
	}

	.profile-photo__actions {
		justify-self: stretch;
	}

	.profile-photo__actions .ui-button {
		flex: 1;
	}

	.profile-fiche__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.profile-fiche__row dt {
		font-size: 0.78125rem;
	}

	.profile-crop {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
	}

	.profile-crop__stage {
		width: min(20rem, calc(100vw - 5.5rem));
	}

	.profile-crop__side {
		justify-self: stretch;
	}

	.profile-crop__keys,
	.profile-dialog__size {
		display: none;
	}

	.profile-dialog__footer {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
	}
}

/* ==========================================================================
   Accueil (index.xhtml) : la saison et ses six chiffres, la bande d'état, puis le détail.
   PC du club et ordinateurs du secrétariat d'abord ; sur téléphone, tout en une colonne dans le même ordre.
   ========================================================================== */

.home {
	display: grid;
	gap: 1rem;
}

.home__sub {
	margin: -0.5rem 0 0;
	color: var(--muted);
	font-size: 0.875rem;
}

.home-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
}

.home-menu {
	position: relative;
}

.home-menu__list {
	position: absolute;
	right: 0;
	top: calc(100% + 0.375rem);
	z-index: 20;
	display: grid;
	width: min(24rem, calc(100vw - 2rem));
	padding: 0.375rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	box-shadow: var(--shadow-float);
}

.home-menu__list[hidden] {
	display: none;
}

.home-menu__list hr {
	margin: 0.25rem 0.5rem;
	border: 0;
	border-top: 1px solid var(--line);
}

.home-menu__list .home-menu__item {
	display: grid;
	gap: 0.125rem;
	padding: 0.5rem 0.75rem;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--ink);
	font: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.home-menu__item:hover,
.home-menu__item:focus-visible {
	outline: none;
	background: var(--blue-mist);
}

.home-menu__item strong {
	font-size: 0.875rem;
	font-weight: 640;
}

.home-menu__item span {
	color: var(--muted);
	font-size: 0.78125rem;
}

/* Chiffres clés */

.home-tiles {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 0.75rem;
}

.home-tile {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-content: start;
	gap: 0.25rem;
	padding: 0.875rem 1rem;
	transition: transform 0.2s ease;
}

.home-tile:hover {
	transform: scale(1.02);
}

/* Le titre laisse la place du bouton « ? », posé dans le coin de la tuile */
.home-tile__head {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	padding-right: 1.5rem;
	color: var(--slate);
	font-size: 0.8125rem;
	font-weight: 620;
	line-height: 1.3;
}

.home-tile__head > .icon {
	flex: none;
	width: 1.0625rem;
	height: 1.0625rem;
	color: var(--blue);
}

.home-tile__info {
	position: absolute;
	top: 0.625rem;
	right: 0.5rem;
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
}

.home-tile__info:hover,
.home-tile__info[aria-expanded="true"] {
	background: var(--blue-mist);
	color: var(--blue);
}

.home-tile__info:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
}

.home-tile__info .icon {
	width: 1rem;
	height: 1rem;
}

/* Au toucher, la cible déborde le rond de 0,5 rem de chaque côté (44 px) sans pousser le titre */
@media screen and (pointer: coarse) {
	.home-tile__info::before {
		content: "";
		position: absolute;
		inset: -0.5rem;
	}
}

.home-tile__def {
	position: absolute;
	left: 0.5rem;
	right: 0.5rem;
	top: 2.5rem;
	z-index: 5;
	margin: 0;
	padding: 0.625rem 0.75rem;
	border-radius: var(--radius-sm);
	background: var(--tooltip-bg);
	box-shadow: var(--shadow-float);
	color: var(--tooltip-ink);
	font-size: 0.78125rem;
	line-height: 1.4;
}

.home-tile__value {
	margin: 0.25rem 0 0;
	color: var(--ink);
	font-size: 1.875rem;
	font-weight: 760;
	letter-spacing: -0.02em;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.home-tile__value small {
	margin-left: 0.25rem;
	color: var(--muted);
	font-size: 1rem;
	font-weight: 640;
}

.home-tile__trend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.125rem 0.5rem;
	margin: 0;
	color: var(--muted);
	font-size: 0.78125rem;
	font-variant-numeric: tabular-nums;
}

.trend {
	display: inline-flex;
	align-items: center;
	gap: 0.125rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.trend .icon {
	width: 0.875rem;
	height: 0.875rem;
	stroke-width: 2.4;
}

.trend--up {
	color: var(--green-deep);
}

.trend--down {
	color: var(--red);
}

.trend--stable,
.trend--none {
	color: var(--slate);
}

.home-tile__detail {
	margin: 0;
	color: var(--slate);
	font-size: 0.78125rem;
	font-variant-numeric: tabular-nums;
}

/* Bande d'état : transmissions et sauvegarde */

.home-band {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
}

.home-band__cell {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.25rem 0.625rem;
	align-content: start;
	padding: 0.75rem 1rem;
	border-left: 1px solid var(--line);
}

.home-band__cell:first-child {
	border-left: 0;
}

.home-band__cell--warn {
	background: var(--amber-soft);
}

.home-band__cell--bad {
	background: var(--red-soft);
}

.home-band__icon {
	grid-row: span 3;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--blue-mist);
	color: var(--blue);
}

.home-band__icon .icon {
	width: 1rem;
	height: 1rem;
}

.home-band__title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 700;
}

.home-band__text {
	margin: 0;
	color: var(--slate);
	font-size: 0.8125rem;
}

.home-band__note {
	color: var(--muted);
	font-size: 0.78125rem;
}

.home-link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: var(--blue);
	font-size: 0.8125rem;
	font-weight: 620;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.home-link .icon {
	width: 0.875rem;
	height: 0.875rem;
}

/* Cartes du détail */

.home-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
}

.home-grid--halves {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-stack {
	display: grid;
	gap: 1rem;
	min-width: 0;
}

.home-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem;
	align-content: start;
	padding: 1rem 1.125rem;
}

.home-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.5rem 0.75rem;
}

.home-card__head > div:first-child {
	margin-right: auto;
}

.home-card__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
}

.home-card__sub {
	color: var(--muted);
	font-size: 0.78125rem;
}

.home-card__foot {
	display: grid;
	gap: 0.125rem;
	margin: 0;
	color: var(--muted);
	font-size: 0.75rem;
}

.home-card__foot p {
	margin: 0;
}

.segmented__count {
	color: var(--muted);
	font-weight: 560;
}

.home-card__head .segmented {
	flex-wrap: wrap;
	max-width: 100%;
}

.home-card__head .segmented__option {
	white-space: nowrap;
}

.home-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	min-height: 2rem;
	padding: 0 0.75rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	color: var(--slate);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
}

/* Au doigt, cible de 44 px sans grossir la pastille */
@media screen and (pointer: coarse) {
	.home-toggle::before {
		content: "";
		position: absolute;
		inset: -0.375rem 0;
	}
}

.home-toggle[aria-pressed="true"] {
	border-color: var(--blue-line);
	background: var(--blue-soft);
	color: var(--blue);
}

.home-toggle:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
}

.home-toggle .icon {
	width: 1rem;
	height: 1rem;
}

.home-empty {
	display: grid;
	gap: 0.375rem;
	justify-items: start;
	padding: 1rem;
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius-sm);
	background: var(--paper-2);
	color: var(--slate);
	font-size: 0.875rem;
}

.home-empty p {
	margin: 0;
}

.home-empty--detail {
	padding: 1.25rem;
}

/* Graphe des mois */

.home-chart__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	color: var(--slate);
	font-size: 0.78125rem;
}

.home-chart__legend span {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
}

.home-chart__key {
	display: inline-block;
	width: 0.875rem;
}

.home-chart__key--bar {
	height: 0.75rem;
	border-radius: 3px;
	background: var(--blue);
}

.home-chart__key--ref {
	height: 3px;
	border-radius: 2px;
	background: var(--amber-ink);
}

.home-chart__plot {
	position: relative;
	border-radius: var(--radius-sm);
}

.home-chart__plot:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
}

.home-chart__svg {
	display: block;
	max-width: 100%;
	height: auto;
	font-family: var(--font);
}

.home-chart__grid {
	stroke: var(--line);
	stroke-width: 1;
}

.home-chart__base {
	stroke: var(--line-strong);
	stroke-width: 1;
}

.home-chart__tick,
.home-chart__unit,
.home-chart__note {
	fill: var(--muted);
	font-size: 0.75rem;
	font-variant-numeric: tabular-nums;
}

.home-chart__month {
	fill: var(--slate);
	font-size: 12px;
	font-weight: 600;
}

.home-chart__month.is-future {
	fill: var(--muted);
	font-weight: 500;
}

.home-chart__value {
	fill: var(--ink);
	font-size: 12px;
	font-weight: 700;
}

.home-chart__bar {
	fill: var(--blue);
}

.home-chart__ref {
	fill: var(--amber-ink);
}

.home-chart__hl {
	fill: var(--blue-mist);
}

.home-chart__hit {
	fill: transparent;
	cursor: pointer;
}

.home-chart__tip {
	position: absolute;
	top: 0.5rem;
	left: var(--tip-x, 50%);
	z-index: 4;
	display: grid;
	gap: 0.125rem;
	min-width: 11rem;
	padding: 0.5rem 0.75rem;
	border-radius: var(--radius-sm);
	background: var(--tooltip-bg);
	box-shadow: var(--shadow-float);
	color: var(--tooltip-ink);
	font-size: 0.78125rem;
	pointer-events: none;
	transform: translateX(0.75rem);
}

.home-chart__tip.is-left {
	transform: translateX(calc(-100% - 0.75rem));
}

.home-chart__tip[hidden] {
	display: none;
}

.home-chart__table {
	display: none;
}

.home-chart.is-table .home-chart__table {
	display: block;
	overflow-x: auto;
}

.home-chart.is-table .home-chart__plot,
.home-chart.is-table .home-chart__legend {
	display: none;
}

/* Tableaux de l'Accueil */

.home-table-scroll {
	overflow-x: auto;
}

.home-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.8125rem;
}

.home-table th,
.home-table td {
	padding: 0.375rem 0.5rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
	white-space: nowrap;
}

.home-table thead th {
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 640;
	line-height: 1.25;
	white-space: normal;
	vertical-align: bottom;
}

/* Un nom ou un public passe à la ligne plutôt que de faire défiler le tableau en largeur */
.home-table tbody th {
	font-weight: 600;
	white-space: normal;
}

.home-table .num {
	text-align: right;
}

.home-table__rank {
	width: 2rem;
	color: var(--muted);
}

.home-table__future {
	color: var(--muted);
	text-align: center;
}

.home-table__bar {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

/* Les barres du classement partent toutes du même point, quelle que soit la longueur de la durée */
.home-table__dur {
	min-width: 3.5rem;
	text-align: right;
}

.home-table__bar .meter {
	width: 4.5rem;
}

.home-table__line--sub th,
.home-table__line--sub td {
	background: var(--paper-2);
	font-weight: 640;
}

.home-table__line--total th,
.home-table__line--total td {
	border-bottom: 0;
	border-top: 2px solid var(--line-strong);
	font-weight: 720;
}

.home-panel {
	display: none;
}

.home-panel.is-active {
	display: grid;
	gap: 0.5rem;
}

/* Où vont les heures */

.home-meters {
	display: grid;
	gap: 0.375rem;
}

.home-meters__title {
	margin: 0.25rem 0 0;
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 680;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.home-meter {
	display: grid;
	grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 4.5rem 3rem;
	gap: 0.625rem;
	align-items: center;
	font-size: 0.8125rem;
	font-variant-numeric: tabular-nums;
}

.home-meter__label {
	display: grid;
	min-width: 0;
}

.home-meter__label strong {
	font-weight: 620;
	overflow-wrap: anywhere;
}

.home-meter__label span,
.home-meter__share {
	color: var(--muted);
	font-size: 0.75rem;
}

.home-meter .meter {
	width: 100%;
}

.home-meter__hours,
.home-meter__share {
	text-align: right;
}

.home-meter__hours {
	font-weight: 640;
}

/* Planeurs et remorqueurs */

.home-fleet {
	columns: 2 24rem;
	column-gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-fleet__row {
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr) 4.5rem 4.5rem;
	grid-template-areas: "reg model hours flights" "bar bar bar bar";
	gap: 0.125rem 0.5rem;
	align-items: baseline;
	padding: 0.375rem 0;
	border-bottom: 1px solid var(--line);
	break-inside: avoid;
	font-size: 0.8125rem;
}

.home-fleet__row strong {
	grid-area: reg;
	font-weight: 680;
}

.home-fleet__model {
	grid-area: model;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
	min-width: 0;
	color: var(--slate);
	overflow-wrap: anywhere;
}

.home-fleet__bar {
	grid-area: bar;
	width: 100%;
	height: 0.25rem;
}

.home-fleet__hours {
	grid-area: hours;
	font-weight: 640;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.home-fleet__flights {
	grid-area: flights;
	color: var(--muted);
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.home-tows {
	display: grid;
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-tows__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "id count" "detail detail";
	gap: 0.25rem 0.75rem;
	align-items: center;
	font-size: 0.8125rem;
}

.home-tows__id {
	grid-area: id;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	color: var(--slate);
}

.home-tows__id strong {
	color: var(--ink);
}

.home-tows__count {
	grid-area: count;
	font-size: 1.125rem;
	font-weight: 740;
	font-variant-numeric: tabular-nums;
}

.home-tows__count small {
	margin-left: 0.25rem;
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 560;
}

.home-tows__detail {
	grid-area: detail;
	display: grid;
	gap: 0.25rem;
	color: var(--muted);
	font-size: 0.75rem;
}

.home-tows__detail .meter {
	width: 100%;
}

.home-facts {
	display: grid;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--slate);
	font-size: 0.8125rem;
}

/* Exporter sur une autre période */

.home-period .ui-dialog-content {
	display: grid;
	gap: 0.875rem;
}

.home-period__sub {
	margin: 0;
	color: var(--muted);
	font-size: 0.8125rem;
}

.home-period__shortcuts,
.home-period__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.home-period__footer {
	justify-content: flex-end;
}

.home-period__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

.home-period__field {
	display: grid;
	align-content: start;
	gap: 0.25rem;
	min-width: 0;
}

.home-period__field .ui-inputfield {
	width: 100%;
}


@media screen and (max-width: 1279.98px) {
	.home-tiles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.home-grid,
	.home-grid--halves {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media screen and (max-width: 767.98px) {
	.home-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.5rem;
	}

	.home-tile {
		padding: 0.75rem;
	}

	.home-tile__info {
		top: 0.5rem;
		right: 0.375rem;
	}

	.home-tile__head {
		padding-right: 1.375rem;
	}

	.home-card__head .segmented {
		border-radius: 1.25rem;
	}

	.home-tile__value {
		font-size: 1.5rem;
	}

	.home-band__cell {
		border-left: 0;
		border-top: 1px solid var(--line);
	}

	.home-band__cell:first-child {
		border-top: 0;
	}

	.home-meter {
		grid-template-columns: minmax(0, 1fr) 4rem 2.5rem;
	}

	.home-meter .meter {
		display: none;
	}

	.home-table__bar .meter {
		display: none;
	}

	/* Au téléphone, le classement tient dans l'écran : nom, heures et vols ; le détail reste à l'export */
	.home-table__more {
		display: none;
	}

	.home-period__fields {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Le modèle passe sous l'immatriculation : la colonne était trop étroite pour « VENTUS 2 CX » */
	.home-fleet__row {
		grid-template-columns: minmax(0, 1fr) auto 4.5rem;
		grid-template-areas: "reg hours flights" "model hours flights" "bar bar bar";
		align-items: start;
	}

	.home-fleet__model {
		font-size: 0.75rem;
	}
}

/* Petit téléphone (320 px) : le pictogramme du titre s'efface, « Remorqués » tient avec le « ? » */
@media screen and (max-width: 359.98px) {
	.home-tile__head > .icon {
		display: none;
	}
}

/* ==========================================================================
   Accueil administratif (desk.xhtml, docs/UI.md fiche 10.16) : un membre à trouver, puis le
   secrétariat et la trésorerie côte à côte dès que la page a 62,5 rem ; en deçà, une seule
   colonne choisie par la bascule Secrétariat / Trésorerie. L'impression montre tout.
   ========================================================================== */

.desk {
	display: grid;
	gap: 1.25rem;
	min-width: 0;
	container: desk / inline-size;
}

.desk__sub {
	margin: -0.5rem 0 0;
	color: var(--muted);
	font-size: 0.875rem;
}

.desk__views {
	display: none;
}

.desk__cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
}

.desk__col {
	display: grid;
	gap: 1.25rem;
	align-content: start;
	min-width: 0;
}

.desk__col-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.75rem;
	margin-bottom: -0.375rem;
}

.desk__col-title {
	margin: 0;
	color: var(--slate);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.desk__col-sub {
	color: var(--muted);
	font-size: 0.8125rem;
}

/* Trouver un membre */

.desk-find {
	padding: 1rem 1.25rem 1.125rem;
}

.desk-find__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.75rem;
	margin-bottom: 0.625rem;
}

.desk-find__title {
	margin: 0;
	color: var(--ink);
	font-size: 1rem;
	font-weight: 700;
}

.desk-find__hint {
	color: var(--muted);
	font-size: 0.8125rem;
}

.desk-find__box > .search-box__field {
	height: 3rem;
	padding-left: 2.75rem;
	border-radius: var(--radius);
	font-size: 1rem;
}

.desk-find__box > .icon {
	left: 0.875rem;
	width: 1.25rem;
	height: 1.25rem;
}

/* Les membres trouvés s'ouvrent dans la carte, sous le champ : rien n'est recouvert */
.desk-find__panel {
	margin-top: 0.625rem;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
}

.desk-find__panel[hidden] {
	display: none;
}

.desk-find__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.desk-hit {
	display: flex;
	align-items: center;
	gap: 0.25rem 0.5rem;
	padding: 0.25rem 0.75rem 0.25rem 0.25rem;
	border-bottom: 1px solid var(--line);
}

.desk-hit.is-default {
	background: var(--row-hover);
	box-shadow: inset 3px 0 0 var(--blue);
}

.desk-hit__open {
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 0.25rem 0.875rem;
	min-width: 0;
	padding: 0.5rem 0.75rem;
	border-radius: var(--radius-sm);
	color: var(--ink);
	text-decoration: none;
}

.desk-hit__open:hover {
	color: var(--ink);
	text-decoration: none;
}

.desk-hit__open:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
}

.desk-hit__avatar {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--blue-soft);
	color: var(--blue);
	font-size: 0.78125rem;
	font-weight: 740;
	letter-spacing: 0.02em;
}

.desk-hit__who,
.desk-hit__balance {
	display: grid;
	min-width: 0;
}

.desk-hit__name {
	font-weight: 650;
	overflow-wrap: anywhere;
}

.desk-hit__meta,
.desk-hit__balance span {
	color: var(--muted);
	font-size: 0.78125rem;
}

.desk-hit__balance {
	justify-items: end;
	text-align: right;
}

.desk-hit__go {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: var(--blue);
	font-size: 0.8125rem;
	font-weight: 640;
}

.desk-hit__go .icon {
	width: 0.9375rem;
	height: 0.9375rem;
}

.desk-hit:not(.is-default):not(:hover) .desk-hit__go {
	visibility: hidden;
}

.desk-hit__actions {
	display: flex;
	flex: none;
	gap: 0.25rem;
}

.desk-find__note {
	margin: 0;
	padding: 0.75rem 1rem;
	color: var(--slate);
	font-size: 0.875rem;
}

.desk-find__note[hidden] {
	display: none;
}

.desk-find__keys {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	margin: 0;
	padding: 0.5rem 1rem;
	border-top: 1px solid var(--line);
	background: var(--paper-2);
	color: var(--muted);
	font-size: 0.78125rem;
}

.desk-icon {
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
}

.desk-icon .icon {
	width: 1.125rem;
	height: 1.125rem;
}

/* Cartes */

.desk-card {
	display: flex;
	flex-direction: column;
}

.desk-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.5rem 0.75rem;
	padding: 1.125rem 1.25rem 0.875rem;
}

.desk-card__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: var(--radius-sm);
	background: var(--blue-soft);
	color: var(--blue);
}

.desk-card__icon .icon {
	width: 1.25rem;
	height: 1.25rem;
}

.desk-card__titles {
	flex: 1 1 12rem;
	min-width: 0;
}

.desk-card__title {
	margin: 0;
	color: var(--ink);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.desk-card__sub {
	margin: 0.125rem 0 0;
	color: var(--muted);
	font-size: 0.8125rem;
}

.desk-card__body {
	display: grid;
	gap: 0.875rem;
	min-width: 0;
	padding: 0 1.25rem 1.125rem;
}

.desk-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.125rem;
	margin-top: auto;
	padding: 0.75rem 1.25rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.8125rem;
}

.desk-card__link {
	margin-left: auto;
	font-weight: 600;
}

.desk-meta {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.375rem;
	min-width: 0;
}

.desk-meta .icon {
	flex: none;
	width: 0.9375rem;
	height: 0.9375rem;
	margin-top: 0.125rem;
}

.desk-meta--ok {
	color: var(--green-deep);
}

.desk-meta--warn {
	color: var(--amber-ink);
	font-weight: 560;
}

.desk-note {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	margin: 0;
	padding: 0.625rem 0.75rem;
	border-radius: var(--radius-sm);
	background: var(--blue-soft);
	color: var(--ink);
	font-size: 0.84375rem;
}

.desk-note .icon {
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
	color: var(--blue);
}

.desk-note--warn {
	background: var(--amber-soft);
}

.desk-note--warn .icon {
	color: var(--amber-ink);
}

.desk-done {
	display: grid;
	justify-items: center;
	gap: 0.25rem;
	padding: 0.75rem 0 0.25rem;
	text-align: center;
}

.desk-done .desk-done__icon {
	width: 2.25rem;
	height: 2.25rem;
	padding: 0.5rem;
	border-radius: 50%;
	background: var(--green-soft);
	color: var(--green-deep);
}

.desk-done__title {
	margin: 0.25rem 0 0;
	color: var(--ink);
	font-weight: 650;
}

.desk-done__text,
.desk-empty {
	margin: 0;
	color: var(--muted);
	font-size: 0.84375rem;
}

.desk-loading {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin: 0;
	color: var(--slate);
	font-size: 0.875rem;
}

.desk-loading__dot {
	flex: none;
	width: 0.625rem;
	height: 0.625rem;
	border-radius: 50%;
	background: var(--blue);
	animation: desk-pulse 1.2s ease-in-out infinite;
}

@keyframes desk-pulse {
	50% {
		opacity: 0.25;
	}
}

.desk-skeleton {
	display: grid;
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.desk-skeleton li {
	height: 3.25rem;
	border-radius: var(--radius-sm);
	background: var(--paper-2);
	box-shadow: inset 0 0 0 1px var(--line);
}

/* Bloc de date : jour abrégé, puis jour et mois */

.desk-date {
	display: grid;
	flex: none;
	align-content: center;
	width: 4.25rem;
	padding: 0.375rem 0.25rem;
	border-radius: var(--radius-sm);
	background: var(--blue-soft);
	color: var(--blue);
	line-height: 1.2;
	text-align: center;
}

.desk-date small {
	font-size: 0.75rem;
	font-weight: 600;
}

.desk-date strong {
	font-size: 0.9375rem;
	font-weight: 750;
	white-space: nowrap;
}

.desk-date--warn {
	background: var(--amber-soft);
	color: var(--amber-ink);
}

/* Planches à saisir */

.desk-gaps {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.desk-gap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--line);
}

.desk-gap:first-child {
	padding-top: 0;
}

.desk-gap:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.desk-gap__text {
	display: grid;
	flex: 1 1 14rem;
	min-width: 0;
	color: var(--muted);
	font-size: 0.8125rem;
}

.desk-gap__text strong {
	color: var(--ink);
	font-size: 0.875rem;
	font-weight: 650;
}

/* Vols d'initiation */

.desk-vi__days {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.desk-vi__day {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.75rem 1rem;
	padding: 0.75rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.desk-vi__day--warn {
	border-color: var(--amber);
}

.desk-vi__main {
	display: grid;
	flex: 1 1 16rem;
	gap: 0.5rem;
	min-width: 0;
}

.desk-vi__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem 0.625rem;
}

.desk-vi__when {
	color: var(--muted);
	font-size: 0.8125rem;
}

.desk-vi__visitors {
	display: grid;
	gap: 0.125rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--slate);
	font-size: 0.84375rem;
}

.desk-vi__visitors li {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.625rem;
}

.desk-vi__time {
	min-width: 3rem;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.desk-vi__name {
	color: var(--ink);
	font-weight: 600;
	overflow-wrap: anywhere;
}

/* Licences */

.desk-licences__count {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.5rem;
	margin: 0;
	color: var(--slate);
}

.desk-licences__count strong {
	color: var(--ink);
	font-size: 2.125rem;
	font-weight: 760;
	letter-spacing: -0.02em;
	line-height: 1;
}

.desk .desk-licences__bar {
	width: 100%;
	height: 0.625rem;
}

.desk-licences__bar::-webkit-progress-value {
	background: var(--green);
}

.desk-licences__bar::-moz-progress-bar {
	background: var(--green);
}

.desk-facts {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--slate);
	font-size: 0.875rem;
}

.desk-facts li {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
}

.desk-facts .icon {
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
	margin-top: 0.0625rem;
	color: var(--muted);
}

/* Soldes débiteurs */

.desk-total {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.75rem;
	margin: 0;
	color: var(--slate);
}

.desk-total strong {
	font-size: 1.875rem;
	font-weight: 760;
	letter-spacing: -0.02em;
	line-height: 1.1;
	white-space: nowrap;
}

.desk-amount--debit {
	color: var(--red);
}

.desk-amount--credit {
	color: var(--green-deep);
}

.desk-amount--zero {
	color: var(--slate);
}

.desk-buckets {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.desk-bucket {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 0.125rem 0.75rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--line);
}

.desk-bucket:first-child {
	padding-top: 0;
}

.desk-bucket__label {
	color: var(--ink);
	font-size: 0.84375rem;
	font-weight: 650;
}

.desk-bucket__detail {
	color: var(--slate);
	font-size: 0.8125rem;
	text-align: right;
}

.desk .desk-bucket__bar {
	grid-column: 1 / -1;
	width: 100%;
	margin-top: 0.25rem;
}

.desk-bucket--1 .desk-bucket__bar::-webkit-progress-value {
	background: var(--sky);
}

.desk-bucket--1 .desk-bucket__bar::-moz-progress-bar {
	background: var(--sky);
}

.desk-bucket--2 .desk-bucket__bar::-webkit-progress-value {
	background: var(--amber);
}

.desk-bucket--2 .desk-bucket__bar::-moz-progress-bar {
	background: var(--amber);
}

.desk-bucket--3 .desk-bucket__bar::-webkit-progress-value {
	background: var(--red);
}

.desk-bucket--3 .desk-bucket__bar::-moz-progress-bar {
	background: var(--red);
}

.desk-debts__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 0.75rem;
}

.desk-debts__hint {
	margin: 0;
	color: var(--muted);
	font-size: 0.8125rem;
}

.desk-debtors {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.desk-debtor {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem 0.875rem;
	padding: 0.625rem 0.5rem;
	border-bottom: 1px solid var(--line);
	transition: background-color 0.2s ease;
}

.desk-debtor:hover {
	background: var(--row-hover);
}

.desk-debtor__avatar {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	overflow: hidden;
	border-radius: 50%;
	background: var(--blue-soft);
	color: var(--blue);
	font-size: 0.78125rem;
	font-weight: 740;
	letter-spacing: 0.02em;
}

.desk-debtor__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.desk-debtor__who {
	display: grid;
	flex: 1 1 14rem;
	min-width: 0;
}

.desk-debtor__name {
	color: var(--ink);
	font-weight: 650;
	overflow-wrap: anywhere;
	text-decoration: none;
}

.desk-debtor__name:hover {
	color: var(--blue);
}

.desk-debtor__meta {
	color: var(--muted);
	font-size: 0.78125rem;
}

.desk-debtor__flying {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: var(--amber-ink);
	font-weight: 620;
}

.desk-debtor__flying .icon {
	width: 0.875rem;
	height: 0.875rem;
}

.desk-debtor__amount {
	min-width: 6.5rem;
	margin-left: auto;
	font-size: 0.9375rem;
	font-weight: 720;
	text-align: right;
	white-space: nowrap;
}

.desk-debtor__actions {
	display: flex;
	gap: 0.25rem;
}

.desk-more {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	min-height: 2.5rem;
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--blue);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.desk-more:hover {
	border-color: var(--blue);
	background: var(--row-hover);
}

.desk-more[aria-expanded="true"] .icon {
	transform: rotate(180deg);
}

.desk-former {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper-2);
}

.desk-former__toggle {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	min-height: 2.75rem;
	padding: 0.5rem 0.875rem;
	border: 0;
	border-radius: var(--radius);
	background: transparent;
	color: var(--ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.desk-former__titles {
	display: grid;
	flex: 1 1 auto;
	min-width: 0;
}

.desk-former__titles strong {
	font-weight: 650;
}

.desk-former__titles span {
	color: var(--muted);
	font-size: 0.8125rem;
}

.desk-former__chevron {
	flex: none;
	transition: transform 0.2s ease;
}

.desk-former:not(.is-collapsed) .desk-former__chevron {
	transform: rotate(180deg);
}

.desk-former__body {
	padding: 0 0.875rem 0.75rem;
	color: var(--slate);
	font-size: 0.84375rem;
}

.desk-former__body p {
	margin: 0 0 0.5rem;
}

.desk-former__list {
	display: grid;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.desk-former__list li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.125rem 0.75rem;
}

.desk-former__list a {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.desk-former__season {
	color: var(--muted);
}

.desk-former__list .num {
	margin-left: auto;
	font-weight: 650;
	white-space: nowrap;
}

/* Règlements reçus */

.desk-channels {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.desk-channel {
	display: grid;
	align-content: start;
	padding: 0.625rem 0.75rem;
	border-radius: var(--radius);
	background: var(--paper-2);
	box-shadow: inset 0 0 0 1px var(--line);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.desk-channel:hover {
	box-shadow: inset 0 0 0 1px var(--blue-line), var(--shadow-2);
	transform: scale(1.02);
}

.desk-channel__label,
.desk-channel__count {
	color: var(--muted);
	font-size: 0.78125rem;
}

.desk-channel__amount {
	color: var(--ink);
	font-size: 1rem;
	font-weight: 720;
}

.desk-free {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.125rem 0.625rem;
	margin: 0;
	padding: 0.625rem 0.75rem;
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius);
	color: var(--muted);
	font-size: 0.78125rem;
}

.desk-free__label {
	color: var(--slate);
	font-weight: 600;
}

.desk-free__amount {
	color: var(--ink);
	font-size: 0.9375rem;
	font-weight: 700;
}

.desk-free__hint {
	flex: 1 1 100%;
}

.desk-pay__latest {
	margin: 0.25rem 0 -0.5rem;
	color: var(--slate);
	font-size: 0.8125rem;
	font-weight: 700;
}

.desk-payments {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.desk-payment {
	display: grid;
	grid-template-columns: 7rem minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 0.125rem 0.75rem;
	padding: 0.5625rem 0;
	border-bottom: 1px solid var(--line);
}

.desk-payment:last-child {
	border-bottom: 0;
}

.desk-payment__date {
	display: grid;
	color: var(--muted);
	font-size: 0.8125rem;
}

.desk-payment__date small {
	font-size: 0.75rem;
}

.desk-payment__date--today {
	color: var(--blue);
	font-weight: 650;
}

.desk-payment__who {
	display: grid;
	min-width: 0;
}

.desk-payment__who a {
	color: var(--ink);
	font-weight: 620;
	overflow-wrap: anywhere;
	text-decoration: none;
}

.desk-payment__who a:hover {
	color: var(--blue);
}

.desk-payment__who span {
	color: var(--muted);
	font-size: 0.78125rem;
	overflow-wrap: anywhere;
}

.desk-payment__amount {
	font-weight: 700;
	white-space: nowrap;
}

@media screen {
	.desk-debtors:not(.is-open) .desk-debtor--more,
	.desk-former.is-collapsed .desk-former__body {
		display: none;
	}

	/* Une seule colonne : la bascule choisit le secrétariat ou la trésorerie */
	@container desk (max-width: 62.49rem) {
		.desk__views {
			display: flex;
		}

		.desk__views .segmented__option {
			flex: 1 1 0;
			justify-content: center;
		}

		.desk__col-head {
			position: absolute;
			width: 1px;
			height: 1px;
			overflow: hidden;
			clip: rect(0 0 0 0);
			white-space: nowrap;
		}

		.desk:not(.desk--treasury) [data-desk-col="treasury"],
		.desk--treasury [data-desk-col="office"] {
			display: none;
		}
	}

	@container desk (min-width: 62.5rem) {
		.desk__cols {
			grid-template-columns: repeat(2, minmax(0, 1fr));
		}
	}

	/* Recherche dans une page étroite : solde sous le nom, sans « Facturation » écrit */
	@container desk (max-width: 37.49rem) {
		.desk-hit__open {
			grid-template-columns: auto minmax(0, 1fr);
		}

		.desk-hit__balance {
			grid-column: 2;
			justify-items: start;
			text-align: left;
		}

		.desk-hit__go {
			display: none;
		}

		.desk-payment {
			grid-template-columns: minmax(0, 1fr) auto;
		}

		.desk-payment__date {
			grid-column: 1 / -1;
		}
	}
}

@media screen and (max-width: 767.98px) {
	.desk__sub {
		margin-top: 0;
	}

	.desk-find {
		padding: 0.875rem 0.875rem 1rem;
	}

	.desk-card__head {
		padding: 1rem 0.875rem 0.75rem;
	}

	.desk-card__body {
		padding: 0 0.875rem 1rem;
	}

	.desk-card__foot {
		padding: 0.75rem 0.875rem;
	}
}

@media screen and (pointer: coarse) {
	.desk-icon {
		width: 2.75rem;
		height: 2.75rem;
	}

	.desk-find__box > .search-box__field {
		padding-right: 0.75rem;
	}

	.desk-card__link {
		display: inline-flex;
		align-items: center;
		min-height: 2.75rem;
	}

	.desk-more {
		min-height: 2.75rem;
	}

	/* Le nom mène à la facturation : cible de 44 px sans grandir la ligne */
	.desk-debtor__name,
	.desk-payment__who a,
	.desk-former__list a {
		position: relative;
	}

	.desk-debtor__name::before,
	.desk-payment__who a::before,
	.desk-former__list a::before {
		position: absolute;
		inset: -0.75rem 0;
		content: "";
	}

	.desk-find__keys {
		display: none;
	}

	.desk__views .segmented__option {
		min-height: 2.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.desk-loading__dot {
		animation: none;
	}

	.desk-channel:hover {
		transform: none;
	}
}

/* ==========================================================================
   Annuaire (directory.xhtml, docs/UI.md fiche 10.10)
   ========================================================================== */

.directory {
	display: grid;
	gap: 1rem;
	min-width: 0;
}

.directory__confidential {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--paper-2);
	color: var(--slate);
	font-size: 0.8125rem;
}

.directory__confidential .icon {
	flex: none;
	margin-top: 0.125rem;
	color: var(--muted);
}

.directory__confidential b {
	color: var(--ink);
	font-weight: 650;
}

.directory__tools {
	display: grid;
	gap: 0.625rem;
	padding: 0.75rem 0.875rem;
}

.directory__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.625rem 1rem;
}

.directory__bar .search-box {
	flex: 0 1 30rem;
}

.directory__count {
	margin: 0;
	color: var(--slate);
	font-size: 0.84375rem;
	font-variant-numeric: tabular-nums;
}

.directory__count b {
	color: var(--ink);
}

.directory__clear {
	margin-left: auto;
	padding: 0.375rem 0.625rem;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--blue);
	font: inherit;
	font-size: 0.84375rem;
	font-weight: 600;
	cursor: pointer;
}

.directory__clear:hover {
	background: var(--blue-mist);
}

.directory__clear[hidden] {
	display: none;
}

.directory__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
}

.directory__filters-label {
	margin-right: 0.25rem;
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 650;
}

.directory__letters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.125rem;
	padding-top: 0.5rem;
	border-top: 1px solid var(--line);
}

.directory__letters button {
	width: 1.875rem;
	height: 1.75rem;
	border: 0;
	border-radius: var(--radius-xs);
	background: transparent;
	color: var(--blue);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 680;
	cursor: pointer;
}

.directory__letters button:hover:not(:disabled) {
	background: var(--blue-soft);
}

.directory__letters button:disabled {
	color: var(--line-strong);
	cursor: default;
}

.directory__list {
	display: grid;
	gap: 1.125rem;
}

.directory__group {
	display: grid;
	gap: 0.625rem;
	scroll-margin-top: 1rem;
}

.directory__group[hidden] {
	display: none;
}

.directory__letter {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin: 0;
	color: var(--blue);
	font-size: 0.8125rem;
	font-weight: 760;
	letter-spacing: 0.06em;
}

.directory__letter::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--line);
}

.directory__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr));
	gap: 0.75rem;
}

.dir-card {
	display: grid;
	align-content: start;
	gap: 0.625rem;
	min-width: 0;
	padding: 0.875rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	box-shadow: var(--shadow-1);
	transition: transform 0.2s, box-shadow 0.2s;
}

.dir-card[hidden] {
	display: none;
}

@media (hover: hover) {
	.dir-card:hover {
		transform: scale(1.02);
		box-shadow: var(--shadow-2);
	}
}

.dir-card__head {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.dir-card__avatar {
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	overflow: hidden;
	border-radius: 50%;
	background: var(--blue-soft);
	box-shadow: inset 0 0 0 2px var(--blue-line);
	color: var(--blue);
	font-size: 1.0625rem;
	font-weight: 740;
	letter-spacing: 0.02em;
}

.dir-card__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dir-card__id {
	display: grid;
	flex: 1;
	gap: 0.25rem;
	min-width: 0;
}

.dir-card__name {
	margin: 0;
	font-size: 0.96875rem;
	font-weight: 720;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.dir-card__roles {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin: 0;
}

.dir-card__roles .role-tag {
	margin-right: 0;
}

.dir-card__meta {
	margin: 0;
	color: var(--muted);
	font-size: 0.78125rem;
	font-variant-numeric: tabular-nums;
}

body .dir-card .dir-card__edit {
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	color: var(--slate);
}

body .dir-card .dir-card__edit:hover {
	border-color: var(--blue);
	color: var(--blue);
}

.dir-card__sectors {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.625rem;
	margin: 0;
	padding-top: 0.625rem;
	border-top: 1px solid var(--line);
}

.dir-sector {
	display: grid;
	align-content: start;
	gap: 0.1875rem;
	min-width: 0;
}

.dir-sector dt {
	display: flex;
	align-items: center;
	gap: 0.3125rem;
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 620;
}

.dir-sector dt .icon {
	width: 0.875rem;
	height: 0.875rem;
	color: var(--sky);
}

.dir-sector dd {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.125rem 0.4375rem;
	min-width: 0;
	margin: 0;
}

.dir-sector b {
	font-size: 0.84375rem;
	font-weight: 680;
}

.dir-sector small {
	flex-basis: 100%;
	color: var(--muted);
	font-size: 0.75rem;
	line-height: 1.3;
}

.sector-meter {
	display: inline-flex;
	align-items: center;
	gap: 2px;
}

.sector-meter i {
	width: 0.3125rem;
	height: 0.6875rem;
	border-radius: 2px;
	background: var(--line-strong);
}

.sector-meter i.is-on {
	background: var(--sky);
}

/* Activité, pour les instructeurs : deux tuiles puis trois */
.dir-card__activity dl {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1px;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--blue-line);
	border-radius: var(--radius-sm);
	background: var(--blue-line);
}

.dir-stat {
	display: grid;
	grid-column: span 2;
	align-content: start;
	gap: 0.0625rem;
	min-width: 0;
	padding: 0.375rem 0.5rem 0.4375rem;
	background: var(--blue-mist);
}

.dir-stat:nth-child(-n + 2) {
	grid-column: span 3;
}

.dir-stat dt {
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 650;
}

.dir-stat dd {
	display: grid;
	min-width: 0;
	margin: 0;
	font-variant-numeric: tabular-nums;
}

.dir-stat b {
	color: var(--navy);
	font-size: 0.8125rem;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.dir-stat small {
	color: var(--slate);
	font-size: 0.75rem;
}

.dir-card__contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.875rem;
	margin: 0;
	padding-top: 0.5rem;
	border-top: 1px solid var(--line);
}

.dir-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	min-width: 0;
	max-width: 100%;
	min-height: 1.75rem;
	color: var(--blue);
	font-size: 0.84375rem;
	text-decoration: none;
}

.dir-card__link:hover span {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.dir-card__link .icon {
	flex: none;
	width: 0.9375rem;
	height: 0.9375rem;
	color: var(--muted);
}

.dir-card__link span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dir-card__link .dir-card__phone {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	white-space: normal;
	overflow-wrap: anywhere;
}

.dir-card__link small {
	flex: none;
	color: var(--muted);
	font-size: 0.75rem;
}

@media screen and (pointer: coarse) {
	body .dir-card .dir-card__edit {
		width: 2.75rem;
		height: 2.75rem;
	}

	.dir-card__link {
		min-height: 2.75rem;
	}
}

.directory__empty {
	display: grid;
	justify-items: center;
	gap: 0.5rem;
	padding: 2.5rem 1rem;
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius);
	background: var(--paper);
	text-align: center;
}

.directory__empty[hidden] {
	display: none;
}

.directory__empty-icon {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--blue-soft);
	color: var(--blue);
}

.directory__empty-title {
	max-width: 52ch;
	margin: 0;
	font-weight: 680;
}

.directory__empty-text {
	max-width: 52ch;
	margin: 0;
	color: var(--slate);
	font-size: 0.84375rem;
}

.directory__empty-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.directory__empty-actions .directory__clear {
	margin-left: 0;
}

/* Fenêtre des secteurs */

.sectors {
	display: grid;
	gap: 0.875rem;
}

.sectors__who p {
	margin: 0;
}

.sectors__name {
	font-size: 1.0625rem;
	font-weight: 720;
}

.sectors__sub {
	color: var(--muted);
	font-size: 0.8125rem;
}

.sectors__set {
	display: grid;
	gap: 0.625rem;
	min-width: 0;
	margin: 0;
	padding: 0.75rem 0.875rem 0.875rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.sectors__set legend {
	display: inline-flex;
	align-items: center;
	gap: 0.4375rem;
	margin-left: -0.375rem;
	padding: 0 0.375rem;
	font-size: 0.90625rem;
	font-weight: 700;
}

.sectors__set legend .icon {
	color: var(--sky);
}

.sectors__options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
}

.sectors__now {
	margin: 0;
	color: var(--slate);
	font-size: 0.8125rem;
}

.sectors__change {
	margin: 0;
	padding: 0.4375rem 0.625rem;
	border: 1px solid var(--blue-line);
	border-radius: var(--radius-sm);
	background: var(--blue-mist);
	font-size: 0.8125rem;
}

.sectors__change[hidden] {
	display: none;
}

.sectors__summary {
	flex: 1 1 100%;
	margin: 0;
	color: var(--slate);
	font-size: 0.84375rem;
	text-align: left;
}

.sectors__summary b {
	color: var(--ink);
}

.sectors__footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem;
}

@media screen and (pointer: coarse) {
	.directory__letters button {
		width: 2.75rem;
		height: 2.75rem;
	}
}

/* Au téléphone, la recherche reste sous la barre supérieure pendant le défilement : la carte des
   outils s'efface (display: contents) pour que la barre de recherche colle à la liste entière */
@media screen and (max-width: 767.98px) {
	.directory__tools {
		display: contents;
	}

	.directory__bar {
		position: sticky;
		top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
		z-index: 2;
		margin-inline: -0.25rem;
		padding: 0.5rem 0.25rem;
		background: var(--ground);
		box-shadow: 0 1px 0 var(--line);
	}

	.directory__bar .search-box {
		flex: 1 1 100%;
	}

	.directory__filters-label,
	.directory__letters {
		display: none;
	}

	.directory__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.dir-card__activity dl {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dir-stat,
	.dir-stat:nth-child(-n + 2) {
		grid-column: span 1;
	}

	.dir-stat:last-child {
		grid-column: 1 / -1;
	}

	.dir-card__contact {
		display: grid;
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		gap: 0.5rem;
	}

	.dir-card__link--call,
	.dir-card__link--mail {
		justify-content: center;
		min-height: 2.75rem;
		border: 1px solid var(--line-strong);
		border-radius: var(--radius-sm);
		font-size: 0.9375rem;
	}

	.dir-card__link--call {
		border-color: transparent;
		background: var(--blue-soft);
	}

	.dir-card__link--map {
		grid-column: 1 / -1;
	}

	.sectors__footer > * {
		flex: 1 1 8rem;
	}
}

/* ==========================================================================
   Planches de vol (boards.xhtml, docs/UI.md fiche 10.10)
   ========================================================================== */

.boards-actions {
	display: flex;
	gap: 0.5rem;
}

/* Au téléphone, l'export passe dans la barre supérieure */
@media screen and (max-width: 767.98px) {
	.boards-actions {
		display: none;
	}
}

.boards__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.875rem;
	min-width: 0;
}

.boards__period {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1rem;
}

.boards__sub {
	margin: 0;
	color: var(--slate);
	font-size: 0.875rem;
}

.boards__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
}

body .boards__nav .boards__navlink {
	display: inline-flex;
	align-items: center;
	gap: 0.3125rem;
	min-height: 2rem;
	color: var(--blue);
	font-size: 0.875rem;
	font-weight: 620;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.boards-band {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	overflow: hidden;
}

.boards-band__cell {
	display: grid;
	align-content: start;
	min-width: 0;
	padding: 0.625rem 1.25rem 0.6875rem;
	border-right: 1px solid var(--line);
}

.boards-band__cell:last-child {
	border-right: 0;
}

.boards-band__cell--mine {
	background: var(--blue-mist);
}

.boards-band__label {
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 620;
}

.boards-band__value {
	font-size: 1.375rem;
	font-weight: 740;
	line-height: 1.3;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
}

.boards-band__cell--mine .boards-band__value {
	color: var(--navy);
}

.boards-band__sub {
	color: var(--slate);
	font-size: 0.78125rem;
}

.boards__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.625rem 1rem;
	padding: 0.75rem 0.875rem;
}

.boards__tools .search-box {
	flex: 0 1 26rem;
}

.boards__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
}

.boards__count {
	margin: 0;
	color: var(--slate);
	font-size: 0.84375rem;
	font-variant-numeric: tabular-nums;
}

.boards__count b {
	color: var(--ink);
}

.boards__clear {
	margin-left: auto;
	padding: 0.375rem 0.625rem;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--blue);
	font: inherit;
	font-size: 0.84375rem;
	font-weight: 600;
	cursor: pointer;
}

.boards__clear:hover {
	background: var(--blue-mist);
}

.boards__clear[hidden] {
	display: none;
}

.boards__scroll {
	position: relative;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	box-shadow: var(--shadow-1);
}

.boards-table {
	width: 100%;
	min-width: 56rem;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 0.84375rem;
	table-layout: fixed;
}

.boards-col--number {
	width: 3%;
}

.boards-col--who {
	width: 13%;
}

.boards-col--glider {
	width: 9%;
}

.boards-col--time {
	width: 9.5%;
}

.boards-col--duration {
	width: 5%;
}

.boards-col--launch {
	width: 15%;
}

.boards-col--regime {
	width: 9%;
}

.boards-col--trace {
	width: 14%;
}

.boards-table th,
.boards-table td {
	height: 2.25rem;
	padding: 0.25rem 0.5rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: middle;
}

.boards-table thead th {
	position: sticky;
	top: 0;
	z-index: 2;
	background: var(--paper-2);
	color: var(--muted);
	font-size: 0.78125rem;
	font-weight: 650;
}

.boards-table .num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.boards-day[hidden],
.boards-row[hidden],
.boards-table__empty[hidden] {
	display: none;
}

.boards-day__head th {
	background: var(--blue-mist);
	border-bottom-color: var(--blue-line);
	color: var(--slate);
	font-size: 0.8125rem;
	font-weight: 560;
}

.boards-day__date {
	margin-right: 0.75rem;
	color: var(--navy);
	font-weight: 740;
}

.boards-day__facts {
	font-variant-numeric: tabular-nums;
}

.boards-day__mine {
	margin-left: 0.375rem;
	color: var(--blue);
	font-weight: 650;
}

.boards-day__mine::before {
	content: "· ";
}

.boards-day__mine[hidden] {
	display: none;
}

.boards-row:hover td {
	background: var(--blue-mist);
}

.boards-row--mine td:first-child {
	box-shadow: inset 3px 0 0 var(--blue);
}

.boards-row__name {
	font-weight: 560;
}

.boards-row__role,
.boards-row__glider small,
.boards-row__launch small {
	display: block;
	color: var(--muted);
	font-size: 0.75rem;
	line-height: 1.3;
}

.boards-row__alone {
	color: var(--muted);
}

.boards-row__glider .icon {
	display: none;
}

.reg {
	font-weight: 700;
	letter-spacing: 0.01em;
}

.boards-row__time {
	font-variant-numeric: tabular-nums;
}

.boards-row__duration {
	font-weight: 650;
}

.boards-row__words {
	display: none;
}

.boards-row__launch-label {
	display: none;
}

.boards-row__solo b {
	font-weight: 650;
}

.boards-row__solo small {
	display: inline;
	margin-left: 0.375rem;
	font-style: italic;
}

.boards-row--tow .boards-row__solo .icon {
	display: inline-block;
	margin-right: 0.375rem;
	vertical-align: -0.1875rem;
	color: var(--sky);
}

/* IGC et VisuGPS côte à côte, l'un sous l'autre quand la colonne est étroite (portable) */
.boards-row__traces {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}

body .boards-row .boards-trace {
	display: inline-flex;
	align-items: center;
	gap: 0.3125rem;
	min-height: 1.75rem;
	padding: 0 0.5rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	color: var(--ink);
	font-size: 0.78125rem;
	font-weight: 600;
	text-decoration: none;
}

body .boards-row .boards-trace:hover {
	border-color: var(--blue);
	color: var(--blue);
}

@media screen and (pointer: coarse) {
	body .boards__nav .boards__navlink,
	body .boards-row .boards-trace {
		min-height: 2.75rem;
	}
}

.boards-row__notrace {
	color: var(--muted);
}

.me-tag {
	display: inline-flex;
	align-items: center;
	height: 1.125rem;
	margin-left: 0.375rem;
	padding: 0 0.375rem;
	border-radius: 999px;
	background: var(--blue-soft);
	box-shadow: inset 0 0 0 1px var(--blue-line);
	color: var(--blue);
	font-size: 0.75rem;
	font-weight: 720;
	vertical-align: 1px;
}

.boards__filtered {
	display: grid;
	justify-items: center;
	gap: 0.5rem;
	padding: 2rem 1rem;
	text-align: center;
}

.boards__empty {
	padding: 1.5rem;
}

.boards__empty-title {
	margin: 0;
	font-weight: 680;
}

.boards__empty-text {
	max-width: 56ch;
	margin: 0;
	color: var(--slate);
	font-size: 0.84375rem;
}

.boards__empty-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.boards__empty-actions .boards__clear {
	margin-left: 0;
}

.boards__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem 1.125rem;
	margin: 0;
	color: var(--muted);
	font-size: 0.78125rem;
}

@media screen and (max-width: 1023.98px) {
	.boards-band {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.boards-band__cell:nth-child(2) {
		border-right: 0;
	}

	.boards-band__cell:nth-child(-n + 2) {
		border-bottom: 1px solid var(--line);
	}
}

/* Téléphone et tablette : chaque vol devient une carte, l'en-tête de journée reste au-dessus */
@media screen and (max-width: 1023.98px) {
	.boards__tools .search-box {
		flex: 1 1 100%;
	}

	.boards__scroll {
		overflow: visible;
		border: 0;
		background: transparent;
		box-shadow: none;
	}

	.boards-table,
	.boards-table tbody {
		display: block;
		min-width: 0;
	}

	.boards-table colgroup,
	.boards-table thead {
		display: none;
	}

	.boards-day {
		margin-bottom: 0.75rem;
	}

	.boards-day__head {
		display: block;
	}

	.boards-day__head th {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		gap: 0.125rem 0.5rem;
		height: auto;
		padding: 0.5rem 0.125rem 0.375rem;
		border: 0;
		background: transparent;
		font-size: 0.78125rem;
	}

	.boards-day__date {
		font-size: 0.875rem;
	}

	.boards-row {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"glider duration"
			"time time"
			"launch launch"
			"captain captain"
			"second second"
			"regime regime"
			"trace trace";
		gap: 0.25rem 0.5rem;
		margin-bottom: 0.375rem;
		padding: 0.625rem 0.75rem;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		background: var(--paper);
	}

	.boards-row--mine {
		border-color: var(--blue-line);
		box-shadow: inset 3px 0 0 var(--blue);
	}

	.boards-row td {
		display: block;
		height: auto;
		padding: 0;
		border: 0;
		text-align: left;
	}

	.boards-row:hover td {
		background: transparent;
	}

	.boards-row--mine td:first-child {
		box-shadow: none;
	}

	.boards-row td.boards-row__number {
		display: none;
	}

	.boards-row td.boards-row__glider {
		grid-area: glider;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 0.375rem;
		font-size: 0.96875rem;
	}

	.boards-row__glider .icon {
		display: inline-block;
		color: var(--sky);
	}

	.boards-row__glider small {
		display: inline;
	}

	.boards-row__duration {
		grid-area: duration;
		font-size: 0.9375rem;
		font-weight: 740;
	}

	.boards-row__hm {
		display: none;
	}

	.boards-row__words {
		display: inline;
	}

	.boards-row__takeoff {
		grid-area: time;
		color: var(--slate);
	}

	.boards-row td.boards-row__landing {
		display: none;
	}

	.boards-row__takeoff::after {
		content: " – " attr(data-landing);
	}

	.boards-row__launch {
		grid-area: launch;
		color: var(--slate);
	}

	.boards-row__launch-label {
		display: inline;
	}

	.boards-row__launch small {
		display: inline;
	}

	.boards-row__captain {
		grid-area: captain;
	}

	.boards-row__second {
		grid-area: second;
	}

	.boards-row td.boards-row__captain,
	.boards-row td.boards-row__second {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 0.125rem 0.375rem;
	}

	.boards-row__role {
		display: inline;
	}

	.boards-row__regime {
		grid-area: regime;
	}

	.boards-row__trace {
		grid-area: trace;
	}

	.boards-row td.boards-row__trace:has(.boards-row__notrace) {
		display: none;
	}

	.boards-row__traces {
		gap: 0.5rem;
	}

	body .boards-row .boards-trace {
		flex: 1;
		justify-content: center;
		min-height: 2.75rem;
		font-size: 0.875rem;
	}

	.boards-table__empty,
	.boards-table__empty tr,
	.boards-table__empty td {
		display: block;
	}
}

/* ==========================================================================
   Vols d'initiation (vpf.xhtml, docs/UI.md fiche 10.12)
   ========================================================================== */

.vi-lead {
	max-width: 72ch;
	margin: -0.25rem 0 1rem;
	color: var(--slate);
	font-size: 0.875rem;
}

.vi-open,
/* Les quatorze prochains jours */
.vi-strip {
	display: grid;
	gap: 0.625rem;
	margin-bottom: 1rem;
	padding: 0.875rem 1rem 0.75rem;
}

.vi-strip__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.375rem 1rem;
}

.vi-strip__title {
	margin: 0 auto 0 0;
	font-size: 0.9375rem;
	font-weight: 700;
}

.vi-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem 0.875rem;
	margin: 0;
	color: var(--muted);
	font-size: 0.75rem;
}

.vi-legend > span {
	display: inline-flex;
	align-items: center;
	gap: 0.3125rem;
}

.vi-strip__days {
	display: grid;
	grid-template-columns: repeat(14, minmax(0, 1fr));
	gap: 0.375rem;
}

.vi-day {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 0.125rem;
	padding: 0.5rem 0.125rem 0.4375rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--paper-2);
	color: var(--ink);
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.vi-day:hover {
	transform: scale(1.02);
	border-color: var(--blue-line);
	color: var(--ink);
}

.vi-day[aria-pressed="true"] {
	border-color: var(--blue);
	background: var(--blue-soft);
	box-shadow: inset 0 0 0 1px var(--blue);
}

.vi-day__name {
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 600;
}

.vi-day--weekend .vi-day__name {
	color: var(--blue);
}

.vi-day__number {
	font-size: 1.125rem;
	font-weight: 750;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.vi-day--today .vi-day__number {
	color: var(--blue);
}

.vi-day__marks {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.0625rem 0.375rem;
	min-height: 1rem;
	font-size: 0.75rem;
	font-weight: 650;
}

.vi-mark {
	display: inline-flex;
	align-items: center;
	gap: 0.0625rem;
	color: var(--slate);
	font-variant-numeric: tabular-nums;
}

.vi-mark .icon {
	width: 0.875rem;
	height: 0.875rem;
}

.vi-mark--ok {
	color: var(--green);
}

/* Chef de piste inscrit : drapeau plein. Visiteurs sans chef : alerte. Rien d'attendu : tiret */
.vi-mark--ok .icon {
	fill: currentColor;
}

.vi-mark--missing {
	color: var(--amber-ink);
}

.vi-mark--none {
	color: var(--muted);
	opacity: 0.6;
}

.vi-day__count {
	position: absolute;
	top: -0.4375rem;
	right: -0.3125rem;
	display: grid;
	place-items: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.3125rem;
	border-radius: 999px;
	background: var(--btn-bg);
	box-shadow: 0 0 0 2px var(--paper);
	color: var(--on-accent);
	font-size: 0.75rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.vi-day__count--warn {
	background: var(--amber);
	color: var(--on-warning);
}

.vi-day__count--legend {
	position: static;
	box-shadow: none;
}

/* La liste et la saisie côte à côte */
.vi-cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 23.5rem;
	gap: 1.125rem;
	align-items: start;
}

.vi-plan {
	min-width: 0;
	container: vi-plan / inline-size;
}

.vi-agenda__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.75rem;
	padding: 0.875rem 1.125rem 0.75rem;
	border-bottom: 1px solid var(--line);
}

.vi-agenda__title {
	margin: 0 auto 0 0;
	font-size: 1rem;
	font-weight: 700;
}

.vi-agenda__summary {
	color: var(--muted);
	font-size: 0.8125rem;
	font-variant-numeric: tabular-nums;
}

.vi-empty {
	display: grid;
	justify-items: center;
	gap: 0.375rem;
	padding: 2.25rem 1.5rem;
	color: var(--slate);
	text-align: center;
}

.vi-empty__icon {
	width: 1.875rem;
	height: 1.875rem;
	color: var(--blue);
}

.vi-empty__title {
	margin: 0;
	color: var(--ink);
	font-weight: 700;
}

.vi-empty__text {
	max-width: 48ch;
	margin: 0;
}

.vi-group {
	display: grid;
	gap: 0.625rem;
	padding: 0.875rem 1.125rem 0.625rem;
	border-bottom: 1px solid var(--line);
	scroll-margin-top: 4.5rem;
}

.vi-group:last-child {
	border-bottom: 0;
}

.vi-group--flash {
	animation: vi-flash 1.2s ease-out;
}

@keyframes vi-flash {
	from {
		background: var(--blue-mist);
	}
}

.vi-group__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem 0.75rem;
}

.vi-group__title {
	margin: 0;
	font-size: 0.96875rem;
	font-weight: 740;
}

.vi-group__meta {
	margin-right: auto;
	color: var(--muted);
	font-size: 0.8125rem;
}

.vi-group__states {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
}

/* Chef de piste et animateurs */
.vi-staff {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.25rem 0.75rem;
	margin: 0;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--blue-line);
	border-radius: var(--radius-sm);
	background: var(--blue-mist);
	font-size: 0.84375rem;
}

.vi-staff dt {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	color: var(--muted);
	font-weight: 560;
}

.vi-staff dt .icon {
	width: 0.9375rem;
	height: 0.9375rem;
}

.vi-staff dd {
	display: flex;
	flex-wrap: wrap;
	gap: 0.125rem 0.875rem;
	margin: 0;
}

.vi-staff__none {
	color: var(--amber-ink);
	font-weight: 560;
}

/* Personne d'inscrit, mais la journée n'en a pas besoin (instructeurs libres, pas de visiteur) */
.vi-staff__none--quiet {
	color: var(--muted);
	font-weight: 450;
}

.vi-contact {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 0.375rem;
	font-weight: 600;
}

.vi-contact__phone,
.vi-visitor__phone a {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
	white-space: nowrap;
}

.vi-contact__phone:hover,
.vi-visitor__phone a:hover {
	text-decoration: underline;
}

.vi-contact__phone .icon,
.vi-visitor__phone .icon {
	width: 0.875rem;
	height: 0.875rem;
}

/* Les visiteurs d'une journée */
.vi-visitors {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vi-visitor {
	display: grid;
	grid-template-columns: 3.25rem minmax(7rem, 1fr) 6.25rem 9.75rem minmax(0, 1.3fr) auto;
	align-items: center;
	gap: 0.625rem;
	min-height: 2.5rem;
	padding: 0.125rem 0.25rem 0.125rem 0.5rem;
	font-size: 0.875rem;
}

.vi-visitor + .vi-visitor {
	border-top: 1px solid var(--line);
}

.vi-visitor--editing {
	border-radius: var(--radius-sm);
	background: var(--blue-soft);
	box-shadow: inset 3px 0 0 var(--blue);
}

.vi-visitor__time {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.vi-visitor__name {
	font-weight: 700;
	overflow-wrap: anywhere;
}

.vi-visitor__count {
	color: var(--slate);
	font-variant-numeric: tabular-nums;
}

.vi-visitor__none {
	color: var(--muted);
}

.vi-visitor__remark {
	color: var(--slate);
	overflow-wrap: anywhere;
}

.vi-visitor__actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.125rem;
}

.vi-visitor__edit {
	width: 1.75rem;
	padding: 0;
	justify-content: center;
}

/* Bande des 14 jours plus étroite que 52 rem (tablette, rail) : deux semaines de 7 jours */
.vi-strip {
	container: vi-strip / inline-size;
}

@container vi-strip (max-width: 51.99rem) {
	.vi-strip__days {
		grid-template-columns: repeat(7, minmax(0, 1fr));
		gap: 0.75rem 0.125rem;
	}
}

@media screen and (pointer: coarse) {
	.vi-day::before {
		content: "";
		position: absolute;
		inset: 0 -1px;
	}
}

/* Colonne des réservations (.vi-plan) plus étroite que 40 rem (téléphone, ou saisie à côté sur un
   petit écran) : chaque visiteur sur plusieurs lignes, actions à droite */
@container vi-plan (max-width: 39.99rem) {
	.vi-visitor {
		grid-template-columns: 3.25rem minmax(0, 1fr) auto;
		grid-template-areas:
			"time name actions"
			"time count actions"
			"time phone actions"
			"time remark remark";
		align-items: start;
		gap: 0.125rem 0.625rem;
		padding: 0.625rem 0.125rem 0.625rem 0.375rem;
	}

	.vi-visitor__time {
		grid-area: time;
	}

	.vi-visitor__name {
		grid-area: name;
	}

	.vi-visitor__count {
		grid-area: count;
		font-size: 0.8125rem;
	}

	.vi-visitor__phone {
		grid-area: phone;
	}

	.vi-visitor__remark {
		grid-area: remark;
		font-size: 0.8125rem;
	}

	.vi-visitor__remark:empty {
		display: none;
	}

	.vi-visitor__actions {
		grid-area: actions;
		flex-direction: column;
	}
}

/* La saisie */
.vi-side {
	position: sticky;
	top: 1rem;
	min-width: 0;
}

.vi-side__bar,
.vi-scrim {
	display: none;
}

.vi-entry__body {
	display: grid;
	gap: 0.875rem;
	padding: 1rem 1.125rem 1.125rem;
}

.vi-entry__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
}

.vi-entry__hint {
	display: flex;
	gap: 0.5rem;
	margin: -0.5rem 0 0;
	color: var(--muted);
	font-size: 0.8125rem;
}

.vi-entry__hint .icon {
	flex: none;
	width: 1rem;
	height: 1rem;
	margin-top: 0.125rem;
}

.vi-entry__hint--viewer {
	margin-top: -0.25rem;
	color: var(--slate);
}

.vi-field {
	display: grid;
	gap: 0.3125rem;
	min-width: 0;
}

.vi-field .ui-inputfield {
	width: 100%;
}

.vi-field__optional {
	color: var(--muted);
	font-weight: 450;
}

.vi-field__date {
	display: grid;
	grid-template-columns: 10rem minmax(0, 1fr);
	align-items: center;
	gap: 0.625rem;
}

.vi-field__long {
	font-size: 0.875rem;
	font-weight: 600;
}

.vi-field__upper {
	text-transform: uppercase;
}

.vi-field__upper::placeholder {
	text-transform: none;
}

.vi-field-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
	gap: 0.75rem;
}

/* Passagers : − nombre + sur une ligne (le thème superpose les boutons au champ) */
.vi-field__count.ui-spinner {
	display: flex;
	width: 100%;
	min-width: 0;
}

.vi-field__count .ui-spinner-input.ui-inputfield {
	order: 2;
	flex: 1;
	width: 3rem;
	min-width: 0;
	padding-inline: 0.5rem;
	border-radius: 0;
	text-align: center;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

body .vi-field__count.ui-spinner .ui-spinner-button.ui-button {
	position: relative;
	flex: none;
	width: 2.5rem;
	height: auto;
}

body .vi-field__count.ui-spinner .ui-spinner-down.ui-button {
	order: 1;
	border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

body .vi-field__count.ui-spinner .ui-spinner-up.ui-button {
	order: 3;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Au doigt : boutons de 44 px, chiffre en 16 px (iOS zoome en dessous) */
@media screen and (pointer: coarse) {
	body .vi-field__count.ui-spinner .ui-spinner-button.ui-button {
		width: 2.75rem;
	}

	.vi-field__count .ui-spinner-input.ui-inputfield {
		font-size: 1rem;
	}
}

.vi-day-info {
	display: grid;
	gap: 0.5rem;
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--blue-line);
	border-radius: var(--radius-sm);
	background: var(--blue-mist);
	font-size: 0.84375rem;
}

.vi-day-info__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
}

.vi-day-info__head > span:first-child {
	margin-right: auto;
}

.vi-day-info .vi-staff {
	grid-template-columns: minmax(0, 1fr);
	gap: 0.125rem;
	padding: 0;
	border: 0;
	background: none;
}

.vi-day-info .vi-staff dt:not(:first-child) {
	margin-top: 0.25rem;
}

.vi-day-info__rule {
	margin: 0;
	color: var(--muted);
	font-size: 0.78125rem;
}

.vi-entry__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.vi-entry__save {
	flex: 1;
}

.vi-entry__keys {
	margin: -0.375rem 0 0;
	color: var(--muted);
	font-size: 0.75rem;
}

/* Sous 1024 px : la saisie monte du bas */
@media screen and (max-width: 1023.98px) {
	.vi-open {
		display: block;
	}

	.vi-cols {
		grid-template-columns: minmax(0, 1fr);
	}

	.vi-side {
		position: fixed;
		inset: auto 0 0 0;
		z-index: calc(var(--z-shell) + 20);
		max-height: min(92dvh, 52rem);
		overflow-y: auto;
		padding-bottom: env(safe-area-inset-bottom, 0px);
		border-radius: 1.125rem 1.125rem 0 0;
		background: var(--paper);
		box-shadow: var(--shadow-2);
		transform: translateY(100%);
		visibility: hidden;
		transition: transform 0.25s ease, visibility 0s linear 0.25s;
	}

	.vi-side[data-open] {
		transform: none;
		visibility: visible;
		transition: transform 0.25s ease;
	}

	.vi-side .vi-entry {
		border: 0;
		box-shadow: none;
	}

	/* Dans la feuille, « Enregistrer » reste en bas de l'écran, au-dessus du clavier */
	.vi-side .vi-entry__actions {
		position: sticky;
		bottom: 0;
		z-index: 1;
		padding-block: 0.75rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
		background: var(--paper);
		box-shadow: 0 -1px 0 var(--line);
	}

	.vi-side__bar {
		position: sticky;
		top: 0;
		z-index: 1;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		padding: 0.5rem 0.5rem 0;
		background: var(--paper);
	}

	.vi-side__grip {
		width: 2.5rem;
		height: 0.25rem;
		margin-right: calc(50% - 2.75rem);
		border-radius: 999px;
		background: var(--line-strong);
	}

	.vi-side__close {
		display: grid;
		place-items: center;
		width: 2.75rem;
		height: 2.75rem;
		border: 0;
		border-radius: var(--radius-sm);
		background: transparent;
		color: var(--slate);
		cursor: pointer;
	}

	.vi-side__close:hover {
		background: var(--blue-mist);
	}

	.vi-scrim {
		position: fixed;
		inset: 0;
		z-index: calc(var(--z-shell) + 19);
		display: block;
		background: var(--mask);
	}

	.vi-scrim[hidden] {
		display: none;
	}

	.vi-sheet-open,
	.vi-sheet-open body {
		overflow: hidden;
	}
}

@media screen and (max-width: 767.98px) {
	.vi-open {
		display: none;
	}

	/* Le titre est dans la barre supérieure : rien à rattraper sous l'en-tête */
	.vi-lead {
		margin-top: 0;
	}

	/* Jours de 43 px dès 360 px de large ; leur cible déborde d'un pixel dans l'écart de 2 px */
	.vi-strip {
		padding: 0.75rem 0.375rem 0.625rem;
	}

	.vi-day__number {
		font-size: 1rem;
	}

	.vi-day__marks {
		gap: 0.1875rem;
		font-size: 0.75rem;
	}

	.vi-day__marks .icon {
		width: 0.75rem;
		height: 0.75rem;
	}

	.vi-group {
		padding: 0.75rem 0.75rem 0.5rem;
	}

	.vi-agenda__head {
		padding: 0.75rem;
	}

	.vi-staff {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.125rem;
	}

	.vi-staff dt:not(:first-child) {
		margin-top: 0.25rem;
	}

	.vi-field__date {
		grid-template-columns: 9.5rem minmax(0, 1fr);
	}
}

@media screen and (pointer: coarse) {
	.vi-contact__phone,
	.vi-visitor__phone a {
		min-height: 2.75rem;
	}

	.vi-visitor__edit {
		width: 2.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vi-day,
	.vi-side {
		transition: none;
	}

	.vi-group--flash {
		animation: none;
	}
}

/* ==========================================================================
   Planeurs et Remorqueurs (aircrafts.xhtml, towaircrafts.xhtml, docs/UI.md fiche 10.13)
   ========================================================================== */

.fleet {
	overflow: hidden;
}

.fleet__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.625rem 0.875rem;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--line);
}

.fleet__search {
	flex: 1 1 14rem;
	max-width: 20rem;
}

.fleet__n {
	margin-left: 0.375rem;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.segmented__option[aria-pressed="true"] .fleet__n {
	color: inherit;
}

.fleet__count {
	margin: 0 0 0 auto;
	color: var(--muted);
	font-size: 0.8125rem;
	font-variant-numeric: tabular-nums;
}

.fleet__scroll {
	position: relative;
	overflow-x: auto;
}

.fleet-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.84375rem;
}

.fleet-table thead th {
	padding: 0.5rem 0.75rem;
	border-bottom: 1px solid var(--line);
	background: var(--paper-2);
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 680;
	letter-spacing: 0.05em;
	text-align: left;
	text-transform: uppercase;
	white-space: nowrap;
}

.fleet-table .fleet-table__num {
	text-align: right;
}

.fleet-row > th,
.fleet-row > td {
	padding: 0.5rem 0.75rem;
	border-bottom: 1px solid var(--line);
	vertical-align: middle;
}

.fleet-row > th {
	font-weight: inherit;
	text-align: left;
}

.fleet-row:hover > th,
.fleet-row:hover > td {
	background: var(--blue-mist);
}

.fleet-row__reg {
	display: block;
	font-weight: 720;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.fleet-row__model {
	display: block;
	color: var(--muted);
	font-size: 0.78125rem;
}

.fleet-row--out .fleet-row__reg {
	color: var(--slate);
}

.fleet-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
}

.fleet-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.3125rem;
	padding: 0.125rem 0.5rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	color: var(--slate);
	font-size: 0.75rem;
	font-weight: 620;
	white-space: nowrap;
}

.fleet-tag .icon {
	width: 0.8125rem;
	height: 0.8125rem;
	stroke-width: 2.2;
}

.fleet-tag--club {
	border-color: var(--blue-line);
	background: var(--blue-mist);
	color: var(--blue);
}

.fleet-tag--ok {
	border-color: color-mix(in srgb, var(--green) 35%, transparent);
	background: var(--green-soft);
	color: var(--green-deep);
}

.fleet-tag--off {
	border-style: dashed;
	color: var(--muted);
}

.fleet-row__flights {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.fleet-row__count {
	font-weight: 700;
}

.fleet-row__unit {
	display: none;
}

.fleet-row__last,
.fleet-row__idle {
	display: block;
	font-size: 0.75rem;
	white-space: nowrap;
}

.fleet-row__last {
	color: var(--muted);
}

.fleet-row__idle {
	color: var(--amber-ink);
	font-weight: 560;
}

.fleet-row__actions {
	text-align: right;
	white-space: nowrap;
}

body .fleet-row__actions .row-action {
	font-size: 0.8125rem;
}

body .fleet-row__actions .fleet-row__service--retire {
	color: var(--red);
}

body .fleet-row__actions .fleet-row__service--retire:hover {
	background: var(--red-soft);
	color: var(--red);
}

.fleet__empty {
	margin: 0;
	padding: 1.5rem 1rem;
	color: var(--muted);
	text-align: center;
}

.fleet-generic {
	display: grid;
	gap: 0.25rem;
	padding: 0.75rem 1rem 1rem;
	border-top: 1px solid var(--line);
	color: var(--slate);
	font-size: 0.8125rem;
}

.fleet-generic p {
	margin: 0;
}

.fleet-generic__title {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	color: var(--ink);
	font-weight: 700;
}

.fleet-generic__title .icon {
	color: var(--muted);
}

/* La fiche */
.fleet-form {
	display: grid;
	gap: 0.875rem;
}

.fleet-form__ids {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	gap: 0.75rem;
	align-items: start;
}

.fleet-form__field {
	display: grid;
	align-content: start;
	gap: 0.3125rem;
}

.fleet-form__label,
.fleet-form__field > .ui-outputlabel {
	color: var(--slate);
	font-size: 0.8125rem;
	font-weight: 600;
}

.fleet-form .ui-inputfield {
	width: 100%;
}

.fleet-form__reg.ui-inputfield {
	text-transform: uppercase;
}

.fleet-form .cell-hint {
	white-space: normal;
}

.fleet-choice.ui-selectonebutton {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0.5rem;
}

body .fleet-choice.ui-selectonebutton > div.ui-button:nth-child(n) {
	display: block;
	margin: 0;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	background: var(--paper);
	color: var(--ink);
	text-align: left;
}

body .fleet-choice.ui-selectonebutton > div.ui-button:nth-child(n):hover {
	border-color: var(--blue);
	background: var(--blue-mist);
}

body .fleet-choice.ui-selectonebutton > div.ui-button.ui-state-active:nth-child(n) {
	border-color: var(--blue);
	background: var(--blue-soft);
	box-shadow: inset 0 0 0 1px var(--blue);
	color: var(--ink);
}

body .fleet-choice.ui-selectonebutton > div.ui-button.ui-state-focus:nth-child(n) {
	box-shadow: var(--focus-ring);
}

body .fleet-choice .ui-button.ui-button-text-only .ui-button-text {
	display: grid;
	gap: 0.125rem;
	padding: 0;
	font-size: 0.84375rem;
	font-weight: 650;
	line-height: 1.3;
}

.fleet-choice .ui-button-text small {
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 500;
}

.fleet-form__checks {
	display: grid;
	gap: 0.5rem;
}

.fleet-check {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.125rem 0.625rem;
	align-items: start;
	font-size: 0.84375rem;
	cursor: pointer;
}

.fleet-check input {
	width: 1.125rem;
	height: 1.125rem;
	margin: 0.125rem 0 0;
	accent-color: var(--blue);
}

.fleet-check__label {
	font-weight: 600;
}

.fleet-check__hint {
	grid-column: 2;
	color: var(--muted);
	font-size: 0.75rem;
}

.fleet-form__note,
.fleet-form__impact,
.fleet-form__choose {
	margin: 0;
	font-size: 0.8125rem;
}

.fleet-form__note {
	display: flex;
	gap: 0.5rem;
	color: var(--slate);
}

.fleet-form__note .icon {
	flex: none;
	margin-top: 0.125rem;
	color: var(--muted);
}

.fleet-form__impact {
	display: flex;
	gap: 0.5rem;
	padding: 0.625rem 0.75rem;
	border-radius: var(--radius-sm);
	background: var(--amber-soft);
	color: var(--amber-ink);
}

.fleet-form__impact .icon {
	flex: none;
	margin-top: 0.125rem;
}

.fleet-form__impact-zone:empty {
	display: none;
}

.fleet-form__choose {
	color: var(--muted);
}

/* Collés au bas de la fiche qui défile (téléphone, écran bas) : « Enregistrer » reste à portée,
   même quand l'avertissement de refacturation allonge la fiche */
.fleet-form__actions {
	position: sticky;
	bottom: 0;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem;
	margin-top: 0.25rem;
	padding-block: 0.75rem calc(0.25rem + env(safe-area-inset-bottom, 0px));
	background: var(--paper);
	box-shadow: 0 -1px 0 var(--line);
}

.fleet-form__service.ui-button {
	margin-right: auto;
}

/* Un champ refusé se voit aussi à son bord, pas seulement au texte rouge qui le suit */
.fleet-form__field:has(.ui-message-error) :is(.ui-inputfield, .fleet-choice .ui-button) {
	border-color: var(--red);
}

/* Téléphone et tablette : une carte par aéronef ; « Retirer du service » est dans la fiche */
@media screen and (max-width: 1023.98px) {
	.fleet-table thead {
		display: none;
	}

	.fleet-table,
	.fleet-table tbody {
		display: block;
	}

	.fleet-row {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"name actions"
			"flights flights"
			"sheet sheet"
			"sent sent";
		gap: 0.375rem 0.75rem;
		padding: 0.75rem;
		border-bottom: 1px solid var(--line);
	}

	.fleet-row[hidden] {
		display: none;
	}

	.fleet-row > th,
	.fleet-row > td {
		padding: 0;
		border: 0;
	}

	.fleet-row:hover > th,
	.fleet-row:hover > td {
		background: none;
	}

	.fleet-row__name {
		grid-area: name;
	}

	.fleet-row__flights {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 0 0.375rem;
		grid-area: flights;
		text-align: left;
	}

	.fleet-row__unit {
		display: inline;
		color: var(--slate);
		font-size: 0.8125rem;
	}

	.fleet-row__last,
	.fleet-row__idle {
		display: inline;
	}

	/* « aucun vol en 2026 » dit déjà le zéro */
	.fleet-row__flights--idle .fleet-row__count,
	.fleet-row__flights--idle .fleet-row__unit {
		display: none;
	}

	.fleet-row__sheet {
		grid-area: sheet;
	}

	.fleet-row__sent {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 0.375rem;
		grid-area: sent;
	}

	/* Sans en-tête de colonne, la carte dit à quoi se rapporte la pastille */
	.fleet-row__sent::before {
		content: attr(data-label) "\00a0:";
		color: var(--muted);
		font-size: 0.78125rem;
	}

	.fleet-row__actions {
		grid-area: actions;
		align-self: start;
	}

	.fleet-row__service {
		display: none;
	}
}

/* Petit téléphone : le nombre passe sous le libellé du filtre */
@media screen and (max-width: 419.98px) {
	.fleet .segmented__option {
		flex-direction: column;
		gap: 0;
		padding-block: 0.25rem;
		line-height: 1.2;
	}

	.fleet .fleet__n {
		margin-left: 0;
	}
}

@media screen and (max-width: 767.98px) {
	.fleet-open {
		display: none;
	}

	.fleet__tools {
		padding: 0.625rem 0.75rem;
	}

	.fleet__search {
		flex-basis: 100%;
		max-width: none;
	}

	.fleet__search .search-box__field {
		font-size: 1rem;
	}

	/* Le filtre prend toute la largeur, trois parts égales */
	.fleet .segmented {
		display: flex;
		width: 100%;
	}

	.fleet .segmented__option {
		flex: 1 1 0;
		justify-content: center;
		padding-inline: 0.5rem;
		white-space: nowrap;
	}

	.fleet-form__ids {
		grid-template-columns: minmax(0, 1fr);
	}

	.fleet-form .ui-inputfield {
		font-size: 1rem;
	}

	.fleet-form__actions .ui-button {
		flex: 1 1 auto;
	}
}

@media screen and (pointer: coarse) {
	.fleet-check {
		min-height: 2.75rem;
	}
}

/* ==========================================================================
   Export GNAV (gnav.xhtml, docs/UI.md fiche 10.14) : section à retirer avec l'écran
   ========================================================================== */

.gnav-lead {
	max-width: 80ch;
	margin: -0.25rem 0 1rem;
	color: var(--slate);
	font-size: 0.875rem;
}

.gnav-status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin-bottom: 1rem;
	padding: 0.75rem 1rem;
}

.gnav-status__text {
	margin: 0;
	font-size: 0.875rem;
}

.gnav {
	overflow: hidden;
}

.gnav__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem 1.5rem;
	padding: 0.875rem 1rem;
	border-bottom: 1px solid var(--line);
}

.gnav__field {
	display: grid;
	gap: 0.3125rem;
}

.gnav__label {
	color: var(--slate);
	font-size: 0.8125rem;
	font-weight: 600;
}

.gnav__day.ui-inputfield {
	width: 11rem;
}

.gnav__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	padding: 0.875rem 1rem;
}

.gnav__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
}

.gnav__summary {
	margin: 0.125rem 0 0;
	color: var(--muted);
	font-size: 0.8125rem;
}

.gnav__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.gnav__note {
	flex-basis: 100%;
	margin: 0;
	color: var(--slate);
	font-size: 0.8125rem;
	text-align: right;
}

@media screen and (max-width: 767.98px) {
	.gnav__note {
		text-align: left;
	}

	/* Le titre est dans la barre supérieure : rien à rattraper sous l'en-tête */
	.gnav-lead {
		margin-top: 0;
	}
}

.gnav__scroll {
	position: relative;
	overflow-x: auto;
}

.gnav-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.84375rem;
}

.gnav-table thead th {
	padding: 0.5rem 0.75rem;
	border-bottom: 1px solid var(--line);
	background: var(--paper-2);
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 680;
	letter-spacing: 0.05em;
	text-align: left;
	text-transform: uppercase;
	white-space: nowrap;
}

.gnav-table .gnav-table__num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.gnav-day__head th {
	padding: 0.625rem 0.75rem 0.375rem;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	font-size: 0.8125rem;
	font-weight: 700;
	text-align: left;
}

.gnav-day__head th::first-letter {
	text-transform: uppercase;
}

.gnav-line > th,
.gnav-line > td,
.gnav-day__none > td,
.gnav-day__idle > td {
	padding: 0.375rem 0.75rem;
	border-bottom: 1px solid var(--line);
}

.gnav-line > th {
	font-weight: 650;
	text-align: left;
	white-space: nowrap;
}

.gnav-line__alias {
	margin-left: 0.375rem;
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 500;
}

.gnav-day__none > td {
	color: var(--muted);
}

.gnav-day__idle summary {
	color: var(--slate);
	font-size: 0.8125rem;
	cursor: pointer;
}

@media screen and (pointer: coarse) {
	.gnav-day__idle summary {
		padding-block: 0.75rem;
		line-height: 1.25rem;
	}
}

.gnav-day__names {
	margin: 0.375rem 0 0;
	color: var(--muted);
	font-size: 0.78125rem;
}

.gnav-day__name {
	white-space: nowrap;
}

@media screen and (max-width: 767.98px) {
	.gnav__tools,
	.gnav__head {
		padding: 0.75rem;
	}

	.gnav__day.ui-inputfield {
		width: 100%;
		font-size: 1rem;
	}

	.gnav__field {
		flex: 1 1 100%;
	}

	.gnav__actions,
	.gnav__actions .ui-button {
		flex: 1 1 auto;
	}
}

/* Téléphone et tablette : le tableau défile de côté ; l'aéronef, la journée et les mentions
   restent en vue (à 848 px, les sept colonnes ne tenaient plus dans la carte) */
@media screen and (max-width: 1023.98px) {
	.gnav-table thead th,
	.gnav-line > th,
	.gnav-line > td {
		padding-inline: 0.5rem;
	}

	.gnav-line > th,
	.gnav-table thead th:first-child {
		position: sticky;
		left: 0;
		z-index: 1;
		background: var(--paper);
	}

	.gnav-table thead th:first-child {
		background: var(--paper-2);
	}

	/* Le tableau défile dans sa propre hauteur : l'en-tête des colonnes reste lisible en descendant */
	.gnav__scroll {
		max-height: calc(100dvh - 9rem);
		overflow: auto;
	}

	.gnav-table thead th {
		position: sticky;
		top: 0;
		z-index: 2;
	}

	.gnav-table thead th:first-child {
		z-index: 3;
	}

	.gnav-day__head th,
	.gnav-day__none > td,
	.gnav-day__idle > td {
		padding: 0;
	}

	.gnav-day__head th > *,
	.gnav-day__none > td > *,
	.gnav-day__idle > td > * {
		position: sticky;
		left: 0;
		display: block;
		box-sizing: border-box;
		width: min(100%, calc(100vw - 2.5rem));
		padding: 0.5rem 0.75rem;
		white-space: normal;
	}

}

/* ==========================================================================
   Tarifs et Forfaits (rates.xhtml, bundles.xhtml, docs/UI.md fiche 10.15)
   ========================================================================== */

.rates-years {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.rates-years__closed {
	min-height: 2.25rem;
	padding: 0 0.625rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	background: var(--field-bg);
	color: var(--ink);
	font: inherit;
	font-size: 0.8125rem;
}

/* Au doigt, 16 px : iOS agrandit la page au focus d'un champ plus petit */
@media screen and (pointer: coarse) {
	.rates-years__closed {
		min-height: 2.75rem;
		font-size: var(--control-text-size);
	}
}

.rates-banners:empty {
	display: none;
}

.rates-note {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.5rem 0.75rem;
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--blue-line);
	border-radius: var(--radius);
	background: var(--blue-mist);
	color: var(--ink);
	font-size: 0.875rem;
}

.rates-note > .icon {
	flex: none;
	margin-top: 0.125rem;
	color: var(--blue);
}

.rates-note > span {
	flex: 1 1 12rem;
	min-width: 0;
}

.rates-note--closed {
	border-color: var(--line);
	background: var(--paper-2);
}

.rates-note--closed > .icon {
	color: var(--muted);
}

.rates-note--warn {
	border-color: color-mix(in srgb, var(--amber) 45%, transparent);
	background: var(--amber-soft);
	color: var(--amber-ink);
}

.rates-note--warn > .icon {
	color: var(--amber-ink);
}

.rates-note a {
	margin-left: 0.25rem;
	font-weight: 600;
}

/* clip et non hidden : les coins restent coupés sans faire de la carte un conteneur de défilement,
   qui empêchait la barre d'enregistrement de coller au bas de l'écran. Conteneur : sa largeur décide
   de la présentation de la grille (plus bas) */
.rates-card,
.bundles-card {
	overflow: clip;
	container-type: inline-size;
}

.rates-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.75rem;
	padding: 0.875rem 1rem 0.625rem;
}

.rates-card__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
}

.rates-card__sub {
	color: var(--muted);
	font-size: 0.8125rem;
}

.rates-card__scroll {
	position: relative;
	overflow-x: auto;
}

.rates-table,
.bundles-table,
.rates-confirm__changes {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.84375rem;
}

.rates-table thead th,
.bundles-table thead th,
.rates-confirm__changes thead th {
	padding: 0.5rem 0.75rem;
	border-bottom: 1px solid var(--line);
	background: var(--paper-2);
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 680;
	letter-spacing: 0.05em;
	text-align: left;
	text-transform: uppercase;
	white-space: nowrap;
}

.rates-table .rates-table__num,
.bundles-table .rates-table__num,
.rates-confirm__changes .rates-table__num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.rates-family th {
	padding: 0.75rem 0.75rem 0.375rem;
	border-bottom: 1px solid var(--line);
	color: var(--blue);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-align: left;
	text-transform: uppercase;
}

.rates-line > th,
.rates-line > td,
.bundles-row > th,
.bundles-row > td,
.rates-confirm__changes td {
	padding: 0.375rem 0.75rem;
	border-bottom: 1px solid var(--line);
	vertical-align: middle;
}

.rates-line > th,
.bundles-row > th {
	font-weight: inherit;
	text-align: left;
}

.rates-line--changed > th,
.rates-line--changed > td {
	background: var(--blue-mist);
}

.rates-line__label {
	font-weight: 620;
}

.rates-line__withdrawn {
	margin-left: 0.375rem;
	color: var(--muted);
	font-size: 0.75rem;
}

.rates-line__help-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	margin-left: 0.25rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--muted);
	vertical-align: middle;
	cursor: pointer;
}

.rates-line__help-toggle:hover,
.rates-line__help-toggle[aria-expanded="true"] {
	background: var(--blue-soft);
	color: var(--blue);
}

.rates-line__help-toggle .icon {
	width: 0.9375rem;
	height: 0.9375rem;
}

/* Au doigt, la cible fait 44 px sans agrandir la ligne ni recouvrir les mots voisins : elle déborde
   le rond par ::before, le bouton garde sa taille */
@media screen and (pointer: coarse) {
	.rates-line__help-toggle {
		position: relative;
	}

	.rates-line__help-toggle::before {
		content: "";
		position: absolute;
		inset: -0.625rem;
	}
}

.rates-line__help {
	display: block;
	max-width: 60ch;
	margin-top: 0.25rem;
	color: var(--slate);
	font-size: 0.78125rem;
	font-weight: 450;
}

.rates-line__help[hidden] {
	display: none;
}

.rates-line__unit,
.rates-line__previous {
	color: var(--muted);
	white-space: nowrap;
}

.rates-line__amount {
	white-space: nowrap;
}

.rates-line__amount .ui-inputfield {
	width: 7.5rem;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.rates-delta {
	font-size: 0.78125rem;
	font-weight: 620;
	white-space: nowrap;
}

/* Le dernier mot du libellé et le bouton d'aide passent à la ligne ensemble */
.rates-line__tail {
	white-space: nowrap;
}

.rates-line__error {
	display: block;
	margin-top: 0.25rem;
	color: var(--red);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: left;
	white-space: normal;
}

.rates-line--error .rates-amount-input .ui-inputfield {
	border-color: var(--red);
}

.rates-delta--up {
	color: var(--amber-ink);
}

.rates-delta--down {
	color: var(--green-deep);
}

.rates-delta--same,
.rates-delta--none {
	color: var(--muted);
	font-weight: 500;
}

.rates-origin {
	display: inline-flex;
	align-items: center;
	padding: 0.125rem 0.5rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	color: var(--slate);
	font-size: 0.75rem;
	font-weight: 620;
	white-space: nowrap;
}

.rates-origin--changed {
	border-color: var(--blue-line);
	background: var(--blue-soft);
	color: var(--blue);
}

.rates-origin--inherited {
	border-color: color-mix(in srgb, var(--amber) 45%, transparent);
	background: var(--amber-soft);
	color: var(--amber-ink);
}

.rates-origin--undefined {
	border-style: dashed;
	color: var(--muted);
}

.rates-savebar {
	position: sticky;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem 0.75rem;
	padding: 0.75rem 1rem;
	border-top: 1px solid var(--line);
	background: var(--paper);
	box-shadow: 0 -6px 14px -10px rgb(var(--shadow-rgb) / 0.35);
}

.rates-savebar__count {
	margin-right: auto;
	color: var(--slate);
	font-size: 0.84375rem;
	font-weight: 600;
}

.rates-rules {
	border-top: 1px solid var(--line);
}

.rates-rules > summary {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	color: var(--slate);
	font-size: 0.875rem;
	font-weight: 650;
	cursor: pointer;
	list-style: none;
}

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

.rates-rules > summary .icon {
	transition: transform 0.2s;
}

.rates-rules[open] > summary .icon {
	transform: rotate(180deg);
}

.rates-rules__lead {
	max-width: 80ch;
	margin: 0;
	padding: 0 1rem 0.75rem;
	color: var(--slate);
	font-size: 0.8125rem;
}

.rates-rules__groups {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
	gap: 1rem 1.5rem;
	padding: 0 1rem 1rem;
}

.rates-rules__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.375rem;
	font-size: 0.875rem;
	font-weight: 700;
}

.rates-rules__title .pi {
	color: var(--muted);
}

.rates-rules__list {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding-left: 1.125rem;
	font-size: 0.8125rem;
}

.rates-rules__list strong {
	font-weight: 650;
}

.rates-rule__text {
	display: block;
	color: var(--slate);
}

.rates-rule--outside {
	color: var(--muted);
}

.rates-rules__outside {
	display: inline-flex;
	padding: 0 0.375rem;
	border: 1px dashed var(--line-strong);
	border-radius: 999px;
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 650;
}

/* Fenêtres de l'écran */
.rates-leave__text {
	margin: 0 0 1rem;
}

.rates-dialog__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem;
	margin-top: 1rem;
}

.rates-confirm__scroll {
	max-height: 14rem;
	overflow: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
}

.rates-confirm__facts {
	display: grid;
	gap: 0.375rem;
	margin: 1rem 0 0;
	padding-left: 1.125rem;
	font-size: 0.875rem;
}

.rates-confirm__alert {
	display: flex;
	gap: 0.5rem;
	margin: 0.75rem 0 0;
	padding: 0.625rem 0.75rem;
	border-radius: var(--radius-sm);
	background: var(--amber-soft);
	color: var(--amber-ink);
	font-size: 0.8125rem;
}

.rates-confirm__alert .icon {
	flex: none;
	margin-top: 0.125rem;
}

.rates-confirm__busy {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin: 0.75rem 0 0;
	color: var(--blue);
	font-weight: 600;
}

.rates-confirm__busy[hidden] {
	display: none;
}

.rates-confirm__spinner {
	width: 1rem;
	height: 1rem;
	border: 2px solid var(--blue-line);
	border-top-color: var(--blue);
	border-radius: 999px;
	animation: rates-spin 0.8s linear infinite;
}

@keyframes rates-spin {
	to {
		transform: rotate(360deg);
	}
}

.rates-confirm--busy .ui-dialog-titlebar-close {
	visibility: hidden;
}

/* Forfaits */
.bundles-row--off .bundles-row__label {
	color: var(--slate);
}

.bundles-row__label {
	font-weight: 650;
}

.bundles-row__sub {
	display: block;
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 450;
}

.bundles-row__steps {
	display: flex;
	gap: 0.375rem;
	margin-top: 0.25rem;
	color: var(--amber-ink);
	font-size: 0.75rem;
	font-weight: 560;
}

.bundles-row__steps .icon {
	flex: none;
	width: 0.875rem;
	height: 0.875rem;
	margin-top: 0.0625rem;
}

body .bundles-row__toggle.ui-commandlink {
	color: var(--ink);
	text-decoration: none;
}

.bundles-row__price-link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-weight: 600;
}

.bundles-row__price-link .icon {
	width: 0.875rem;
	height: 0.875rem;
}

.bundles-foot {
	margin: 0;
	padding: 0.75rem 1rem 1rem;
	color: var(--muted);
	font-size: 0.8125rem;
}

.bundles-new {
	display: grid;
	gap: 0.375rem;
}

.bundles-new .ui-inputfield {
	width: 8rem;
}

.bundles-new__note {
	margin: 0.5rem 0 0;
	color: var(--slate);
	font-size: 0.8125rem;
}

@media screen and (max-width: 767.98px) {
	.rates-years {
		width: 100%;
	}

	.rates-line__amount .ui-inputfield {
		font-size: 1rem;
	}

	.rates-savebar {
		bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
	}

	/* Au téléphone, la barre (trois lignes) n'occupe l'écran que lorsqu'elle a quelque chose à faire */
	.rates-savebar:not(:has(.ui-button:not(.ui-state-disabled))) {
		display: none;
	}

	.bundles-open {
		display: none;
	}

	.rates-savebar__count {
		flex-basis: 100%;
	}

	.rates-savebar .ui-button {
		flex: 1 1 auto;
	}

	.bundles-new .ui-inputfield {
		width: 100%;
		font-size: 1rem;
	}
}

/* Grille plus étroite que 46 rem (téléphone, fenêtre étroite, rail) : une ligne par prestation, le
   montant à droite, le reste en dessous ; la grille ne défile jamais en largeur. */
@container (max-width: 45.99rem) {
	.rates-table thead,
	.bundles-table thead {
		display: none;
	}

	.rates-table,
	.rates-table tbody,
	.bundles-table,
	.bundles-table tbody,
	.rates-family,
	.rates-family th {
		display: block;
	}

	.rates-line,
	.bundles-row {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 0.25rem 0.75rem;
		padding: 0.625rem 0.75rem;
		border-bottom: 1px solid var(--line);
	}

	.rates-line > th,
	.rates-line > td,
	.bundles-row > th,
	.bundles-row > td {
		padding: 0;
		border: 0;
		text-align: left;
	}

	.rates-line__item,
	.bundles-row__name {
		flex: 1 1 calc(100% - 9rem);
		min-width: 0;
	}

	/* Au plus la largeur de la ligne : un message d'erreur passe à la ligne sous le montant au lieu
	   de pousser le champ hors de la carte */
	.rates-line__amount,
	.bundles-row__offer {
		order: 1;
		flex: none;
		max-width: 100%;
	}

	.rates-line__unit,
	.rates-line__previous,
	.rates-line__delta,
	.rates-line__origin,
	.bundles-row__duration,
	.bundles-row__price,
	.bundles-row__holders {
		order: 2;
		color: var(--slate);
		font-size: 0.78125rem;
	}

	.rates-line__previous::before,
	.bundles-row__price::before,
	.bundles-row__holders::before {
		content: attr(data-label) "\00a0: ";
		color: var(--muted);
	}

	/* Le nom de la formule dit déjà sa durée */
	.bundles-row__duration {
		display: none;
	}

	.bundles-row__sub {
		display: inline;
		margin-left: 0.25rem;
	}

	/* « 41 · 408 souscriptions » : sans le point, « 41 408 » se lisait quarante et un mille */
	.bundles-row__sub::before {
		content: "·\00a0";
	}

	.rates-line__amount .ui-inputfield {
		width: 7.5rem;
	}

	/* Une ligne modifiée se colore d'un bloc, pas cellule par cellule */
	.rates-line--changed {
		background: var(--blue-mist);
	}

	.rates-line--changed > th,
	.rates-line--changed > td {
		background: transparent;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rates-confirm__spinner {
		animation-duration: 2.4s;
	}

	.rates-rules > summary .icon {
		transition: none;
	}
}

/* ==========================================================================
   Situation du pilote (includes/person_details.xhtml, Pic'n Glide) : en tête de page et dépliée
   quand un point est à régler ; sinon en bas de page, repliée au chargement sur téléphone
   ========================================================================== */

.pilot-status {
	overflow: hidden;
}

.pilot-status__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.75rem;
	padding: 0.25rem 0.875rem 0.25rem 0.375rem;
}

.pilot-status:not(.is-collapsed) .pilot-status__head {
	border-bottom: 1px solid var(--line);
}

.pilot-status__title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.3;
}

.pilot-status__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	padding: 0 0.5rem;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-weight: 680;
	cursor: pointer;
}

.pilot-status__toggle:hover {
	background: var(--blue-mist);
}

.pilot-status__toggle:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
}

.pilot-status__toggle > .icon:first-child {
	color: var(--blue);
}

.pilot-status__chevron {
	color: var(--muted);
	transition: transform 0.2s;
}

.pilot-status.is-collapsed .pilot-status__chevron {
	transform: rotate(-90deg);
}

.pilot-status.is-collapsed .pilot-status__body {
	display: none;
}

.pilot-status__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 0.875rem;
	margin: 0 0 0 auto;
	color: var(--muted);
	font-size: 0.8125rem;
}

.pilot-status__link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	min-height: 2rem;
	color: var(--blue);
	font-weight: 600;
	text-decoration: none;
}

.pilot-status__link:hover {
	text-decoration: underline;
}

.pilot-status__link .icon {
	width: 0.8125rem;
	height: 0.8125rem;
}

.pilot-status__body {
	padding: 0.875rem;
}

.pilot-kpi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pilot-kpi-card {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.5rem 0.875rem;
	border-radius: var(--radius-sm);
	background: var(--paper-2);
}

.pilot-kpi-card--ok {
	box-shadow: inset 4px 0 0 var(--green);
}

.pilot-kpi-card--warning {
	box-shadow: inset 4px 0 0 var(--amber);
	background: var(--amber-soft);
}

.pilot-kpi-card--alert {
	box-shadow: inset 4px 0 0 var(--red);
	background: var(--red-soft);
}

.pilot-kpi-icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: var(--radius-sm);
	background: var(--blue-soft);
	color: var(--blue);
}

.pilot-kpi-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.125rem;
	min-width: 0;
}

.pilot-kpi-label {
	color: var(--slate);
	font-size: 0.75rem;
	font-weight: 650;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
}

.pilot-kpi-value {
	color: var(--ink);
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.pilot-kpi-value--dual {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.75rem;
	font-size: 0.85rem;
}

/* Les qualifications en anomalie, une par ligne ; l'écart sépare une qualification de la suivante
   quand un nom long en prend plusieurs */
.pilot-kpi-value--lines {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.pilot-kpi-value--ok {
	color: var(--green-deep);
}

.pilot-kpi-value--warning {
	color: var(--amber-ink);
}

.pilot-kpi-value--alert {
	color: var(--red);
}

.pilot-kpi-note {
	color: var(--slate);
	font-size: 0.8125rem;
	line-height: 1.3;
}

.pilot-kpi-sub {
	display: inline-flex;
	align-items: center;
	gap: 0.3125rem;
	white-space: nowrap;
}

.pilot-kpi-sub .icon {
	width: 0.875rem;
	height: 0.875rem;
	color: var(--slate);
}

.pilot-kpi-status {
	flex: none;
}

.pilot-kpi-card--ok .pilot-kpi-status {
	color: var(--green-deep);
}

.pilot-kpi-card--warning .pilot-kpi-status {
	color: var(--amber-ink);
}

.pilot-kpi-card--alert .pilot-kpi-status {
	color: var(--red);
}

@media screen and (max-width: 767.98px) {
	.pilot-status__links {
		flex-basis: 100%;
		margin-left: 0.5rem;
	}

	.pilot-status__body {
		padding: 0.625rem;
	}

	.pilot-kpi-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.375rem;
	}
}

@media screen and (pointer: coarse) {
	.pilot-status__link {
		min-height: 2.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pilot-status__chevron {
		transition: none;
	}
}

/* ==========================================================================
   Accès (access.xhtml, docs/UI.md fiche 10.17) : les trois profils, puis une ligne par personne
   qui en a un, en cartes quand la page est étroite (@container) ; dialogues en access-form.
   Changer son mot de passe (dialogue de Mes données) reprend access-form.
   ========================================================================== */

.access {
	display: grid;
	gap: 1.125rem;
}

.access__intro {
	max-width: 72ch;
	margin: 0;
	color: var(--slate);
}

.access-profiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(13.75rem, 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.access-profile {
	display: grid;
	align-content: start;
	gap: 0.25rem;
	padding: 0.75rem 0.875rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
}

.access-profile__name {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	color: var(--navy);
	font-weight: 700;
}

.access-profile__name .icon {
	width: 18px;
	height: 18px;
	color: var(--blue);
}

.access-profile__text {
	margin: 0;
	color: var(--slate);
	font-size: 0.8125rem;
}

.acc {
	container: acc / inline-size;
}

.acc__head,
.acc__row {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3.2fr) minmax(0, 1.4fr) minmax(9.5rem, 1.7fr);
	gap: 0.875rem;
	align-items: center;
	padding: 0.625rem 1rem;
}

.acc__head {
	border-bottom: 1px solid var(--line);
	border-radius: var(--radius) var(--radius) 0 0;
	background: var(--paper-2);
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 650;
}

.acc__row + .acc__row {
	border-top: 1px solid var(--line);
}

.acc__row:hover {
	background: var(--blue-mist);
}

.acc__who {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	min-width: 0;
}

.acc__avatar {
	display: grid;
	place-items: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--blue-soft);
	color: var(--blue);
	font-size: 0.78125rem;
	font-weight: 700;
}

.acc__avatar--plain {
	background: var(--paper-2);
	box-shadow: inset 0 0 0 1px var(--line);
	color: var(--slate);
}

.acc__ident {
	display: grid;
	min-width: 0;
}

.acc__name {
	font-weight: 650;
	overflow-wrap: anywhere;
}

.acc__kind {
	color: var(--muted);
	font-size: 0.78125rem;
	overflow-wrap: anywhere;
}

.acc__mail {
	overflow: hidden;
	color: var(--muted);
	font-size: 0.78125rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.acc__grants {
	display: grid;
	gap: 0.5rem;
	min-width: 0;
}

.acc__grant {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.5rem;
	min-width: 0;
	margin: 0;
}

.acc__grant + .acc__grant {
	padding-top: 0.5rem;
	border-top: 1px dashed var(--line-strong);
}

.acc__when {
	min-width: 0;
	color: var(--ink);
}

.acc__by {
	flex: 1 1 100%;
	min-width: 0;
	color: var(--muted);
	font-size: 0.78125rem;
	overflow-wrap: anywhere;
}

.acc__login {
	display: grid;
	gap: 0.25rem;
	justify-items: start;
	min-width: 0;
	color: var(--slate);
	font-variant-numeric: tabular-nums;
}

.acc__key {
	display: flex;
	align-items: flex-start;
	gap: 0.375rem;
	color: var(--amber-ink);
	font-size: 0.78125rem;
	font-weight: 600;
}

.acc__key .icon {
	flex: none;
	width: 14px;
	height: 14px;
	margin-top: 0.125rem;
}

.acc__key--expired {
	color: var(--red);
}

.acc__k {
	display: none;
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 650;
}

.acc__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.125rem;
}

.acc__self {
	max-width: 15rem;
	color: var(--muted);
	font-size: 0.78125rem;
}

.acc__withdraw.row-action:hover {
	background: var(--red-soft);
	color: var(--red);
}

/* Page étroite (téléphone, barre dépliée, rail) : une carte par personne, chaque valeur nommée */
@container acc (max-width: 51.25rem) {
	.acc__head {
		display: none;
	}

	.acc__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.625rem;
		padding: 0.875rem 1rem;
	}

	.acc__k {
		display: block;
	}

	.acc__actions {
		justify-content: flex-start;
		min-width: 0;
	}

	.acc__actions .row-action {
		box-shadow: inset 0 0 0 1px var(--line-strong);
	}
}

.access-past summary {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	padding: 0 1rem;
	color: var(--navy);
	font-weight: 650;
	cursor: pointer;
	list-style: none;
}

.access-past summary::-webkit-details-marker {
	display: none;
}

.access-past summary .icon {
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}

.access-past[open] summary .icon {
	transform: rotate(90deg);
}

.access-past__list {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.access-past__list li {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.75rem;
	padding: 0.625rem 1rem;
	border-top: 1px solid var(--line);
	color: var(--slate);
}

.access-past__list strong {
	color: var(--ink);
	font-weight: 650;
}

/* ---------- Formulaires des dialogues Accès et du mot de passe, coordonnées de Mes données ---------- */

.access-form {
	display: grid;
	gap: 0.875rem;
}

.access-form__field {
	display: grid;
	align-content: start;
	gap: 0.3125rem;
	min-width: 0;
}

.access-form__label,
.access-form__field > .ui-outputlabel {
	color: var(--slate);
	font-size: 0.8125rem;
	font-weight: 600;
}

.access-form .ui-inputfield,
.access-form .ui-autocomplete,
.access-form__ac .ui-autocomplete-input,
.access-form__date,
.access-form__date .ui-inputfield {
	width: 100%;
}

.access-form .cell-hint {
	white-space: normal;
}

.access-form__pair {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
	gap: 0.75rem;
}

.access-form__text {
	margin: 0;
}

.access-form__known {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-weight: 650;
}

.access-form__known .icon {
	color: var(--blue);
}

.access-form__note,
.access-form__warn {
	display: flex;
	gap: 0.5rem;
	overflow-wrap: anywhere;
	margin: 0;
	padding: 0.625rem 0.75rem;
	border-radius: var(--radius-sm);
	background: var(--blue-soft);
	color: var(--ink);
	font-size: 0.8125rem;
}

.access-form__note .icon {
	flex: none;
	margin-top: 0.0625rem;
	color: var(--blue);
}

.access-form__warn {
	background: var(--amber-soft);
}

.access-form__warn .icon {
	flex: none;
	margin-top: 0.0625rem;
	color: var(--amber-ink);
}

.access-form__note-zone:empty {
	display: none;
}

.access-form__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem;
	margin-top: 0.25rem;
}

/* Un champ refusé se voit aussi à son bord, pas seulement au texte rouge qui le suit */
.access-form__field:has(.ui-message-error) :is(.ui-inputfield, .access-choice .ui-button) {
	border-color: var(--red);
}

.access-choice.ui-selectonebutton {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.5rem;
}

.access-choice--two.ui-selectonebutton {
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

body .access-choice.ui-selectonebutton > div.ui-button:nth-child(n) {
	display: block;
	margin: 0;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	background: var(--paper);
	color: var(--ink);
	text-align: left;
}

body .access-choice.ui-selectonebutton > div.ui-button:nth-child(n):hover {
	border-color: var(--blue);
	background: var(--blue-mist);
}

body .access-choice.ui-selectonebutton > div.ui-button.ui-state-active:nth-child(n) {
	border-color: var(--blue);
	background: var(--blue-soft);
	box-shadow: inset 0 0 0 1px var(--blue);
	color: var(--ink);
}

body .access-choice.ui-selectonebutton > div.ui-button.ui-state-focus:nth-child(n) {
	box-shadow: var(--focus-ring);
}

body .access-choice .ui-button.ui-button-text-only .ui-button-text {
	display: grid;
	gap: 0.125rem;
	padding: 0;
	font-size: 0.84375rem;
	font-weight: 650;
	line-height: 1.3;
	white-space: normal;
}

.access-choice .ui-button-text small {
	color: var(--slate);
	font-size: 0.75rem;
	font-weight: 500;
}

.access-key {
	display: grid;
	justify-items: center;
	gap: 0.375rem;
	padding: 1rem;
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius);
	background: var(--paper-2);
	text-align: center;
}

.access-key__value {
	color: var(--navy);
	font-family: var(--font-mono);
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	overflow-wrap: anywhere;
}

.access-key__meta {
	color: var(--muted);
	font-size: 0.78125rem;
}

/* ---------- Mot de passe : la carte de Mes données et son dialogue ---------- */

.password-card__text {
	margin: 0;
	color: var(--slate);
	font-size: 0.875rem;
}

.access-form .ui-password {
	display: block;
	width: 100%;
}
