.pp-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: .8rem; }
.pp-items label { display: flex; align-items: center; min-height: 44px; gap: .6rem; }
.pp-preview { overflow: auto; max-height: 70vh; background: #eee; }
.pp-preview:empty { display: none; }
body .pp-page.a4 {
  position: relative; box-sizing: border-box; width: 210mm; height: 296mm; min-height: 0; margin: 0 auto;
  padding: 12mm 14mm 16mm; border: 0; color: #000; background: #fff;
  font: 11pt/1.5 "Noto Naskh Arabic", "Noto Kufi Arabic", sans-serif;
}
.pp-page .dp-head { text-align: center; border-block-end: 1px solid; margin-block-end: 4mm; }
.pp-page .dp-head p { margin: 0; }
.pp-page.a4 .dp-title { font-size: 16pt; margin: 2mm 0; }
.pp-page .dp-info { display: flex; justify-content: space-between; gap: 4mm; }
.pp-page .pp-line { min-height: 1.5em; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pp-page table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pp-page th, .pp-page td { border: 1px solid #555; color: #000; background: #fff; padding: 1mm; overflow-wrap: anywhere; }
.pp-page .pp-foot { position: absolute; inset: auto 14mm 7mm; border-block-start: 1px solid; display: flex; justify-content: space-between; }
.pp-half { min-height: 107mm; position: relative; padding: 2mm 1mm 2mm 28mm; }
.pp-half + .pp-half { border-block-start: 1px dashed; }
.pp-half h2, .pp-half p, .pp-half ol { margin: 0; }
.pp-half ol { padding-inline-start: 5mm; }
.pp-half .pp-write { color: #333; margin-block-end: 1mm; }
.pp-qr { width: 24mm; position: absolute; bottom: 2mm; left: 0; }
.pp-qr svg { display: block; width: 100%; height: auto; }
@media print {
  @page pnPack { size: A4 portrait; margin: 0; }
  body.pp-printing #printArea { page: pnPack; }
  html, body.printing { margin: 0; padding: 0; background: white; }
  body #printArea .pp-page.a4 { margin: 0; box-shadow: none; break-inside: avoid; break-after: page; }
  body #printArea .pp-page.a4:last-child { break-after: auto; }
}
.pp-slip { border-block-end: 1px dashed; min-height: 52mm; padding-block: 2mm; overflow-wrap: anywhere; }
.pp-slip p { margin: 0 0 1mm; white-space: pre-wrap; }
.pp-page th:first-child { width: 9mm; }
.pp-page th:nth-child(2) { width: 42mm; }
.pp-page .pq-eq, .pp-page .pq-n { direction: ltr; unicode-bidi: isolate; }
.pp-page .pq-blank { display: inline-block; min-width: 1.5em; border-bottom: 1px solid; }
.pp-page .pq-frac { display: inline-flex; vertical-align: middle; flex-direction: column; text-align: center; line-height: 1.1; }
.pp-page .pq-fn { border-bottom: 1px solid; }
.pp-page .pq-coin, .pp-page .pq-note { display: inline-block; padding-inline: .2em; border: 1px solid; }
.pp-page .pq-coin { border-radius: 50%; }
