/* JDT – Favoris : impression de « Ma liste » (chargée avec media="print").
 * Au moment d'imprimer, le script ajoute la feuille .jdt-impression à la fin de <body>
 * et la classe jdt-liste-impression sur <html> : seule cette feuille est imprimée. */

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

html.jdt-liste-impression body > *:not(.jdt-impression) {
	display: none !important;
}

html.jdt-liste-impression,
html.jdt-liste-impression body {
	margin: 0 !important;
	padding: 0 !important;
	background: #fff !important;
}

.jdt-impression {
	display: block !important;
	color: #000;
	font-family: Roboto, Arial, sans-serif;
	font-size: 10.5pt;
	line-height: 1.35;
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}

.jdt-imp__entete {
	display: flex;
	align-items: flex-end;
	gap: 16px;
	margin-bottom: 8mm;
	padding-bottom: 4mm;
	border-bottom: 1.5pt solid #000;
}

.jdt-imp__logo {
	max-width: 45mm;
	max-height: 20mm;
	filter: grayscale(1);
}

.jdt-imp__titre {
	margin: 0;
	font-family: "Inria Serif", Georgia, serif;
	line-height: 1.1;
	font-size: 20pt;
	font-weight: 700;
}

.jdt-imp__date {
	margin: 1mm 0 0;
	line-height: 1.2;
	font-size: 10pt;
}

.jdt-imp__groupe {
	margin-bottom: 6mm;
}

.jdt-imp__categorie {
	margin: 0 0 2mm;
	font-size: 12pt;
	text-transform: uppercase;
	letter-spacing: .04em;
	break-after: avoid;
	page-break-after: avoid;
}

.jdt-imp__table {
	width: 100%;
	border-collapse: collapse;
}

.jdt-imp__table th {
	padding: 1.5mm 2mm;
	border-bottom: 1pt solid #000;
	font-size: 8.5pt;
	font-weight: 700;
	text-align: left;
}

.jdt-imp__table td {
	padding: 2mm;
	border-bottom: .5pt solid #888;
	vertical-align: top;
}

.jdt-imp__table tr {
	break-inside: avoid;
	page-break-inside: avoid;
}

.jdt-imp__case {
	width: 6mm;
}

.jdt-imp__coche {
	display: inline-block;
	width: 3.8mm;
	height: 3.8mm;
	border: 1pt solid #000;
}

.jdt-imp__num {
	width: 18mm;
	text-align: right !important;
	white-space: nowrap;
}

.jdt-imp__note {
	width: 38%;
	font-style: italic;
}

.jdt-imp__bas {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10mm;
	margin-top: 6mm;
	break-inside: avoid;
	page-break-inside: avoid;
}

.jdt-imp__total {
	margin: 0;
	font-size: 12.5pt;
}


.jdt-imp__pied {
	margin-top: 8mm;
	padding-top: 2mm;
	border-top: .5pt solid #000;
	font-size: 9pt;
	text-align: center;
	break-inside: avoid;
}

.jdt-impression .jdt-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.jdt-imp__entete > div {
	padding-bottom: 1mm;
}

.jdt-imp__produit {
	font-family: "Inria Serif", Georgia, serif;
	font-weight: 700;
}

.jdt-imp__logo {
	display: block;
}

/* 1.5.4 : titre et date posés en bas du bloc, juste au-dessus du trait */
html .jdt-impression .jdt-imp__entete {
	display: flex !important;
	align-items: flex-end !important;
	min-height: 20mm;
	padding-bottom: 3mm;
}

html .jdt-impression .jdt-imp__entete > div {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-self: stretch;
	margin: 0 !important;
	padding: 0 !important;
}

html .jdt-impression .jdt-imp__titre {
	margin: 0 !important;
	padding: 0 !important;
}

html .jdt-impression .jdt-imp__date {
	margin: 1mm 0 0 !important;
	padding: 0 !important;
}
