/* =====================================================================
   جمعية الجود العبادية — تنسيقات الطباعة المباشرة (Ctrl+P / طباعة الجهاز)
   عند الطباعة يُخفى التطبيق بالكامل ولا تظهر إلا أوراق A4 المُعدّة.
   ===================================================================== */
@page { size: A4 portrait; margin: 0; }

@media print {
  html, body { background: #fff !important; height: auto !important; }
  body { margin: 0 !important; }

  /* إخفاء كل شيء ما عدا حاوية الطباعة */
  #login-screen, #app-screen, #sheet-root, #dialog-root, #toast-root,
  #boot, .page-hd, .page-foot, .scrim, .menu-pop, .busy { display: none !important; }

  #pages, .page { position: static !important; inset: auto !important; transform: none !important;
    max-width: none !important; background: #fff !important; display: block !important; }
  .page-body { overflow: visible !important; padding: 0 !important; }

  /* كل ما هو خارج المعاينة يُخفى */
  .no-print { display: none !important; }

  .a4-scroll { background: #fff !important; border: 0 !important; padding: 0 !important;
    max-height: none !important; overflow: visible !important; }

  .a4 {
    width: 210mm !important; min-height: 297mm !important; height: 297mm !important;
    margin: 0 !important; padding: 14mm 12mm !important; box-shadow: none !important;
    page-break-after: always; break-after: page; overflow: hidden;
  }
  .a4:last-child { page-break-after: auto; break-after: auto; }

  .a4-holder { width: auto !important; height: auto !important; overflow: visible !important;
    margin: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
  .a4-holder > .a4 { position: static !important; transform: none !important; }
  .a4-holder.skip, .a4-pick { display: none !important; }

  .a4 thead { display: table-header-group; }
  .a4 tr, .a4 img { page-break-inside: avoid; break-inside: avoid; }

  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}
