/* ==========================================================================
   zada4ko.com — Print layer (A4 worksheets)
   ========================================================================== */
@page { size: A4 portrait; margin: 12mm 12mm 10mm; }

@media print {
  html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11.5pt;
  }
  body { overflow: visible; }

  .topbar, .foot, .noprint, .toast-wrap, .modal-bg, canvas { display: none !important; }
  .view { display: none !important; padding: 0 !important; }
  .view.on { display: block !important; }
  .wrap { max-width: none; padding: 0; }
  .studio { display: block; }
  .panel-sticky, .panel, .tools { display: none !important; }
  .paper-scroll { overflow: visible; }

  /* undo the on-screen fit-to-width scaling */
  .sheet-fit {
    overflow: visible !important;
    height: auto !important;
    margin: 0 !important;
  }
  .sheet {
    width: auto; min-height: 0; margin: 0; padding: 0;
    border: 0 !important; border-radius: 0; box-shadow: none !important;
    transform: none !important;
    zoom: 1 !important;
  }
  .sheet-fit + .sheet-fit { break-before: page; page-break-before: always; }

  /* Let a long section flow onto the next page, but never split a single task,
     and never leave a section heading stranded at the foot of a page.
     WebKit needs the legacy property names as well as the modern ones. */
  .sh-sec { break-inside: auto; page-break-inside: auto; }
  .sh-sec-hd, .sh-instr { break-after: avoid; page-break-after: avoid; }
  .sh-row, .sh-cell, .qcard, .sh-key {
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
  }
  .sh-head { border-bottom: 2pt solid #000; }
  .sh-foot { border-top: 1.5pt solid #000; }

  a { color: #000; text-decoration: none; }
  a[href]::after { content: ""; }
}
