/* Elements to hide in the PDF */
.scoped-print-hide {}

/* Base print resets */
@media print {
  html, body { margin: 0 !important; padding: 0 !important; }
}

/* Centering support for mask mode (single-page) */
@media print {
  html.pwsp-center body {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 297mm !important; /* A4 height; adjust if Letter */
  }
}

/* Optional: ensure colors and layout survive */
@media print {
  .scoped-print-section, .scoped-print-section * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .scoped-print-section {
    position: static !important;
    float: none !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
  }
  .scoped-print-section table { border-collapse: collapse !important; width: 100% !important; }
  .scoped-print-section th, .scoped-print-section td { border: 1px solid rgba(0,0,0,.1) !important; padding: 6pt !important; }
  .scoped-print-section thead { display: table-header-group !important; }
  .scoped-print-section tfoot { display: table-footer-group !important; }

  .scoped-print-section img,
  .scoped-print-section svg,
  .scoped-print-section canvas { max-width: 100% !important; height: auto !important; }

  .scoped-print-section * { overflow: visible !important; break-inside: avoid; }

  @page { size: A4; margin: 12mm; }
  a[href]:after { content: "" !important; }
}