/* Impresion del certificado de tratamiento (v0.35.0, FO-CT-01). Hoja aparte y DESHABILITADA por omision
   (<link media="not all"> en index.html; v0.37.0, antes `disabled`): app.js la pone en media=print solo mientras dura window.print() del certificado y la vuelve
   a apagar en afterprint. Va aparte porque @page no admite condicion por clase y esta app imprime tres cosas mas
   (ticket termico de 80 mm, Reportes) que no deben salir en carta horizontal. La CSP (style-src 'self') no deja un
   <style> inline: encender un <link> del mismo origen si esta permitido. */
@page { size: letter landscape; margin: 0; }
@media print {
    /* v0.36.1: el resto de la app, aunque invisible, seguia ocupando alto y paginaba 2 hojas en blanco detras del formato */
    html, body { margin: 0; padding: 0; background: #fff; height: 8.5in; overflow: hidden; }
    body * { visibility: hidden; }
    .cert, .cert * { visibility: visible; }
    /* fixed escapa el overflow del dialogo y de .ct-vista; el dialogo modal sigue en la capa superior y se imprime */
    /* v0.36.1: el viewport de impresion mide 1056 px (< 1100) y encendia el zoom .6 de `.ct-vista .cert` (estilo.css), que gana en
       especificidad a `.cert`: el formato salia al 60 % en la esquina (PDF que bajo Carlos el 22-sep). El selector doble lo iguala. */
    .cert, .ct-vista .cert { zoom: 1; position: fixed; left: 0; top: 0; width: 11in; height: 8.5in; min-height: 0; margin: 0; padding: 28px; box-sizing: border-box; }
    .ct-marco { min-height: 0; height: 100%; }
    .ct-hoja { min-height: 0; height: 100%; }
    .dlg-cert[open] { position: static; border: 0; box-shadow: none; width: auto; max-height: none; padding: 0; overflow: visible; }
    .dlg-cert::backdrop { display: none; }
    .ct-vista { overflow: visible; max-height: none; padding: 0; }
}
