@media print {
  @page { size: A4 portrait; margin: 8mm; }
  html, body { width: 210mm; margin: 0 !important; padding: 0 !important; background: #fff !important; }
  #main, main, .main, .section { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
  .a4-wrapper { display: block !important; width: 100% !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; background: #fff !important; }
  .a4-sheet { width: 100% !important; max-width: none !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; }
  .official-document { width: 100% !important; margin: 0 !important; }
  .invoice-lines-table { width: 100% !important; table-layout: fixed !important; }
  .invoice-security-block { width: 100% !important; box-sizing: border-box !important; page-break-inside: avoid !important; }
  .document-footer { page-break-inside: avoid !important; }
}
