/* NME · Hoja para tu médico (lote 55) · impresión A4 (media="print"). Solo sale la hoja. Mínimo 8,5 pt. */
@page { size: A4; margin: 14mm; }
body.nme-hoja-pagina { background: #fff !important; }
/* Fuera todo lo que no es la hoja: web, menú, migas, título, imagen, selector, botones, preguntas, cookies, asistente */
body.nme-hoja-pagina > :not(:has(.nme-hoja)), .wp-site-blocks > :not(:has(.nme-hoja)), .nme-main > :not(:has(.nme-hoja)),
.wp-block-post-content > :not(.nme-hoja), .nme-hoja > :not(.nme-hoja__paso--revisa),
.nme-hoja__paso--revisa > :not(.nme-hoja__papel), #wpadminbar, #cmplz-cookiebanner-container, #cmplz-manage-consent { display: none !important; }
.nme-hoja-pagina :is(.wp-site-blocks, .nme-main, .wp-block-post-content, .nme-hoja, .nme-hoja__paso, .nme-hoja__papel) {
	margin: 0 !important; padding: 0 !important; max-width: none !important; width: auto !important;
	border: 0 !important; box-shadow: none !important; background: #fff !important;
}
.nme-hoja { color: #10212B; font: 10pt/1.3 var(--wp--preset--font-family--inter, Inter, Arial, sans-serif); }
.nme-hoja * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.nme-hoja p, .nme-hoja figure, .nme-hoja h3, .nme-hoja h4 { margin: 0; }
.nme-hoja h3, .nme-hoja h4 { color: #224E66; line-height: 1.2; font-family: var(--wp--preset--font-family--poppins, Poppins, Arial, sans-serif); font-weight: 600; }
.nme-hoja a { color: inherit; text-decoration: none; }
.nme-hoja__cab { display: flex; align-items: center; gap: 5mm; padding-bottom: 2.5mm; border-bottom: 1pt solid #224E66; }
.nme-hoja__logo { width: 20mm; height: auto; }
.nme-hoja__titulo { font-size: 13pt; }
.nme-hoja__subtitulo { font-size: 9pt; color: #4D6372; }
/* Producto: un bloque que no se parte. Izquierda, nombre y tabla; derecha, QR, dosis, modo y conservación */
.nme-hoja__producto {
	display: grid; grid-template-columns: minmax(0, 1fr) 62mm; grid-template-areas: "izq der" "textos textos" "pie pie";
	gap: .9mm 6mm; padding: 1.8mm 0 1.8mm; border-bottom: .5pt solid #5EACB5; break-inside: avoid; page-break-inside: avoid;
}
.nme-hoja__prod-izq { grid-area: izq; min-width: 0; }
.nme-hoja__prod-der { grid-area: der; min-width: 0; }
.nme-hoja__prod-nombre { font-size: 12pt; }
.nme-hoja__denominacion { font-size: 9.5pt; }
.nme-hoja__presentacion { font-size: 9pt; color: #4D6372; }
.nme-hoja__qr { display: flex; flex-direction: row-reverse; align-items: center; gap: 2.5mm; margin-bottom: 1.5mm !important; text-align: right; }
.nme-hoja__qr-svg { display: block; flex: none; width: 20mm; height: 20mm; }
.nme-hoja__qr figcaption { flex: 1 1 auto; min-width: 0; font-size: 8.5pt; line-height: 1.2; color: #4D6372; overflow-wrap: anywhere; }
.nme-hoja__qr-dom, .nme-hoja__qr-ruta { display: block; }
.nme-hoja__prod-tabla { margin-top: 1.5mm; }
.nme-hoja .nme-hoja__tabla { display: table; width: 100%; margin: 0; overflow: visible; border-collapse: collapse; font-size: 9pt; line-height: 1.22; }
.nme-hoja__tabla caption { caption-side: top; padding-bottom: .8mm; text-align: left; font-size: 8.5pt; font-weight: 600; color: #224E66; }
.nme-hoja .nme-hoja__tabla th, .nme-hoja .nme-hoja__tabla td {
	padding: .5mm 1.2mm; border: 0; border-bottom: .5pt solid #7C95A4; background: none; text-align: left; vertical-align: top; font-weight: 400;
}
.nme-hoja .nme-hoja__tabla thead th { font-size: 8.5pt; font-weight: 600; color: #224E66; border-bottom: .75pt solid #224E66; }
.nme-hoja .nme-hoja__tabla tbody th { font-weight: 500; }
.nme-hoja .nme-hoja__tabla td { text-align: right; white-space: nowrap; }
.nme-hoja .nme-hoja__sangria th { padding-left: 4mm; font-weight: 400; }
.nme-hoja__nota { margin-top: .6mm !important; font-size: 8.5pt; line-height: 1.2; color: #4D6372; }
.nme-hoja__uso, .nme-hoja__textos { font-size: 9pt; line-height: 1.22; }
.nme-hoja__uso p + p, .nme-hoja__textos p + p { margin-top: .9mm; }
.nme-hoja__textos { grid-area: textos; }
.nme-hoja__rot { font-weight: 600; color: #224E66; }
.nme-hoja__alergeno { font-weight: 700; }
.nme-hoja__prod-pie { grid-area: pie; font-size: 8.5pt; line-height: 1.22; color: #4D6372; }
.nme-hoja__lote { margin: .5mm 0 !important; color: #10212B; }
.nme-hoja__raya { display: inline-block; width: 38mm; height: 3.5mm; margin: 0 5mm 0 2mm; border-bottom: .5pt solid #10212B; vertical-align: bottom; }
.nme-hoja__suma { padding: 1.5mm 0; border-bottom: .5pt solid #5EACB5; break-inside: avoid; }
.nme-hoja .nme-hoja__suma-tit { padding-bottom: .8mm; font: 600 10pt/1.2 var(--wp--preset--font-family--poppins, Poppins, Arial, sans-serif); color: #224E66; }
.nme-hoja .nme-hoja__suma td { text-align: left; white-space: normal; }
/* Recuadros para escribir a mano, juntos al final y con el pie */
.nme-hoja__mano {
	display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2mm 5mm; padding-top: 2mm;
	break-inside: avoid; page-break-inside: avoid; break-after: avoid;
}
.nme-hoja__recuadro { padding: 1.5mm 3mm .6mm; border: .75pt solid #7C95A4; border-radius: 1.5mm; }
.nme-hoja .nme-hoja__recuadro-tit { font: 600 9pt/1.2 var(--wp--preset--font-family--inter, Inter, Arial, sans-serif); }
.nme-hoja__linea { display: block; height: 6mm; border-bottom: .5pt solid #7C95A4; }
.nme-hoja__firma { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 2mm; font-size: 9.5pt; }
.nme-hoja__firma .nme-hoja__raya { flex: 1 1 auto; width: auto; margin: 0 5mm 0 0; }
.nme-hoja__firma .nme-hoja__raya--corta { flex: 0 0 40mm; margin-right: 0; }
.nme-hoja__pie { margin-top: 1.5mm; padding-top: 1.5mm; border-top: .5pt solid #5EACB5; font-size: 8.5pt; line-height: 1.25; color: #4D6372; break-inside: avoid; }
.nme-hoja__firma-nme { font-weight: 600; color: #224E66; white-space: nowrap; }
/* Contador agregado de hojas impresas: esta imagen solo la pide el navegador al imprimir o guardar en PDF */
.nme-hoja__contador { display: block; height: 0; overflow: hidden; }
.nme-hoja__contador::after { content: var(--nme-hoja-contador); }
