/* Regole di STAMPA (caricate con media="print"): servono soprattutto alla nota provvigioni.
   Le regole per gli schermi piccoli di app.css sono limitate a "screen", quindi qui la pagina
   A4 mantiene l'impaginazione larga (intestazione della nota su tre colonne). */

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

.no-print, .barra, .appbar, .tabbar, .foglio, .dialogo, .salta, .avviso[data-chiudibile] { display: none !important; }

html { font-size: 12px; }
body { background: #fff !important; color: #000; font-size: 10.5pt; }
.guscio-app .contenuto, .contenuto { margin: 0 !important; padding: 0 !important; max-width: none !important; }
.contenuto > * { animation: none !important; }

.card { border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 0 10pt !important; border-radius: 0 !important; background: transparent !important; }
.tbl-wrap { overflow: visible !important; max-height: none !important; border: 0 !important; border-radius: 0 !important; }
.tbl-wrap thead th { position: static !important; }

table { font-size: 8.5pt; }
th, td { padding: 3pt 5pt; }
thead { display: table-header-group; }
/* il piede non deve ripetersi su ogni pagina: il totale compare una volta sola */
tfoot { display: table-row-group; }
tr, .nota-firme, .nota-dicitura { break-inside: avoid; page-break-inside: avoid; }
th, tr.tot td, tfoot td, .badge, .marchio { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
tbody tr:hover td { background: transparent; }

/* documento nota: la pagina e' il foglio */
.documento { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; padding: 0 !important; margin: 0 !important; max-width: none !important; overflow: visible !important; }
.documento__testa { border-bottom: 2pt solid #000; }
.documento__numero { font-size: 18pt; }
.documento__totale { background: #fff !important; color: #000 !important; border: 1.5pt solid #000; break-inside: avoid; page-break-inside: avoid; }
.documento__totale span, .documento__totale strong, .documento__totale small { color: #000 !important; }
.documento__totale strong { font-size: 18pt; }
.documento__filigrana { position: fixed; color: rgba(0, 0, 0, .07) !important; font-size: 90pt; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.documento__firme, .documento__dicitura, .documento__riepilogo { break-inside: avoid; page-break-inside: avoid; }
.iva { border: 0; padding: 0; background: transparent; }
.iva::before { display: none; }

.nota-analitico { break-before: page; page-break-before: always; }

a { color: inherit !important; text-decoration: none !important; }
h1, h2, h3 { break-after: avoid; page-break-after: avoid; }
.documento__logo { height: 15mm; margin-bottom: 3mm; }
