/* ASWAN V19.28 - report-only print pagination/legibility patch.
   Does not affect the application screens, forms, dashboards, data or financial calculations.
   Dedicated to the isolated report print popup (body.v20-report-print). */
@page aswan-report-v1928 { size: A4 portrait; margin: 0; }
@media print {
  body.v20-clean-print.v20-report-print {
    margin:0 !important; padding:0 !important;
    background:#fff !important; color:#193b30 !important;
    print-color-adjust:exact !important; -webkit-print-color-adjust:exact !important;
  }
  body.v20-report-print #v20-print-root {
    page:aswan-report-v1928;
    display:block !important; position:static !important;
    width:210mm !important; max-width:210mm !important;
    padding:7mm 10mm 7mm !important; margin:0 !important;
    border:0 !important; box-shadow:none !important;
    box-sizing:border-box !important; overflow:visible !important;
  }
  body.v20-report-print #v20-print-root .v10-report-letterhead {
    min-height:22mm !important; padding:1mm 23mm 2mm !important;
    margin:0 0 2mm !important; border-bottom:1px solid #4e7866 !important;
  }
  body.v20-report-print #v20-print-root .v10-report-letterhead img {
    width:19mm !important; height:19mm !important; top:0 !important;
    object-fit:contain !important;
  }
  body.v20-report-print #v20-print-root .v10-report-letterhead strong {font-size:11pt !important;}
  body.v20-report-print #v20-print-root .v10-report-letterhead h3 {font-size:16pt !important; margin:0!important;line-height:1.15!important;}
  body.v20-report-print #v20-print-root .v10-report-letterhead p {font-size:8.2pt !important;margin:0!important;line-height:1.2!important;}
  body.v20-report-print #v20-print-root .v13-report-section {
    display:block !important; margin:2.5mm 0 2.8mm !important;
    padding:0 !important; height:auto !important;
    break-inside:auto !important;
  }
  body.v20-report-print #v20-print-root .v13-report-section h3,
  body.v20-report-print #v20-print-root .v14-centers-register h4 {
    font-size:11.4pt !important;line-height:1.15!important;
    margin:2mm 0 1.2mm!important;padding:1mm 2mm!important;
    break-after:avoid-page!important;
  }
  body.v20-report-print #v20-print-root .v13-report-table,
  body.v20-report-print #v20-print-root .v14-centers-register table {
    table-layout:fixed !important;min-width:0!important;width:100%!important;
    margin:0!important;border-collapse:collapse!important;
  }
  body.v20-report-print #v20-print-root .v13-report-table th,
  body.v20-report-print #v20-print-root .v13-report-table td,
  body.v20-report-print #v20-print-root .v14-centers-register th,
  body.v20-report-print #v20-print-root .v14-centers-register td {
    font-family:'Sakkal Majalla','Traditional Arabic',Tahoma,Arial,sans-serif!important;
    font-size:9.5pt!important; line-height:1.16!important;
    font-weight:400; padding:2.15mm 1mm!important;
    box-sizing:border-box!important; min-width:0!important;
    white-space:normal!important;overflow-wrap:break-word!important;
    vertical-align:middle!important;
  }
  body.v20-report-print #v20-print-root .v13-report-table th,
  body.v20-report-print #v20-print-root .v14-centers-register th {
    font-weight:700!important; font-size:9.3pt!important;line-height:1.20!important;
  }
  body.v20-report-print #v20-print-root .v13-report-table th:nth-child(1),
  body.v20-report-print #v20-print-root .v13-report-table td:nth-child(1) {width:7%!important;}
  body.v20-report-print #v20-print-root .v13-report-table th:nth-child(2),
  body.v20-report-print #v20-print-root .v13-report-table td:nth-child(2) {width:33%!important;}
  body.v20-report-print #v20-print-root .v13-report-table th:nth-child(3),
  body.v20-report-print #v20-print-root .v13-report-table td:nth-child(3) {width:12%!important;}
  body.v20-report-print #v20-print-root .v13-report-table th:nth-child(4),
  body.v20-report-print #v20-print-root .v13-report-table td:nth-child(4) {width:13%!important;}
  body.v20-report-print #v20-print-root .v13-report-table th:nth-child(5),
  body.v20-report-print #v20-print-root .v13-report-table td:nth-child(5) {width:13%!important;}
  body.v20-report-print #v20-print-root .v13-report-table th:nth-child(6),
  body.v20-report-print #v20-print-root .v13-report-table td:nth-child(6) {width:12%!important;}
  body.v20-report-print #v20-print-root .v13-report-table th:nth-child(7),
  body.v20-report-print #v20-print-root .v13-report-table td:nth-child(7) {width:10%!important;}
  /* Center summary has five fields, not the seven-field indicator table. */
  body.v20-report-print #v20-print-root .v14-centers-register table th,
  body.v20-report-print #v20-print-root .v14-centers-register table td {width:auto!important;}
  body.v20-report-print #v20-print-root .v14-centers-register th:first-child,
  body.v20-report-print #v20-print-root .v14-centers-register td:first-child {width:27%!important;}
  body.v20-report-print #v20-print-root .v14-centers-register {margin:2.6mm 0!important;}
  body.v20-report-print #v20-print-root .v14-centers-register tr,
  body.v20-report-print #v20-print-root .v13-report-table tr {break-inside:avoid!important;page-break-inside:avoid!important;}
  /* Begin the financial block on page 2; avoid orphaned signatures/page 3. */
  body.v20-report-print #v20-print-root .v13-report-section:last-of-type {
    break-before:page!important;page-break-before:always!important;
  }
  body.v20-report-print #v20-print-root .v28-finance-audit {
    break-inside:avoid!important;margin:2mm 0 1.4mm!important;
    padding:1.8mm 2mm!important;
  }
  body.v20-report-print #v20-print-root .v28-finance-audit h4 {font-size:10pt!important;margin:0 0 1mm!important;}
  body.v20-report-print #v20-print-root .v28-finance-audit p {font-size:7.4pt!important;line-height:1.1!important;margin:1mm 0!important;}
  body.v20-report-print #v20-print-root .v28-finance-audit-cards {display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:1.4mm!important;margin:2mm 0!important;}
  body.v20-report-print #v20-print-root .v28-finance-audit-cards>div {padding:1mm!important;}
  body.v20-report-print #v20-print-root .v28-finance-audit-cards span {font-size:8pt!important;min-height:0!important;line-height:1.15!important;}
  body.v20-report-print #v20-print-root .v28-finance-audit-cards strong {font-size:9.6pt!important;}
  body.v20-report-print #v20-print-root .v10-report-approvals {
    margin:3mm 0 0!important;padding:3mm 0 0!important;
    display:grid!important;grid-template-columns:1fr 1fr!important;
    gap:8mm!important;break-inside:avoid!important;
  }
  body.v20-report-print #v20-print-root .v10-report-approvals>div {
    border:1px solid #c4d4cc!important;min-height:17mm!important;
    padding:2mm!important;gap:1mm!important;
  }
  body.v20-report-print #v20-print-root .v10-report-approvals b,
  body.v20-report-print #v20-print-root .v10-report-approvals strong,
  body.v20-report-print #v20-print-root .v10-report-approvals span {font-size:9pt!important;line-height:1.14!important;}
  body.v20-report-print .v20-print-controls,
  body.v20-report-print #v20-print-root button {display:none!important;}
}
