/* صفحات الطباعة: تقرير تقييم الإجراءات + محضر سماع الأقوال */
body.printview { background: #e9ecea; }
.pv-bar { position: sticky; top: 0; z-index: 30; display: flex; gap: 8px; padding: 10px 12px; background: #fff;
  border-bottom: 1px solid var(--line); flex-wrap: wrap; align-items: center; }
.pv-bar .info { font-size: 12px; color: var(--muted); margin-inline-start: auto; }
.pv-stage { padding: 14px 0 40px; overflow: hidden; }
.pv-scale { transform-origin: top center; margin: 0 auto; width: 210mm; }

.sheet {
  width: 210mm; background: #fff; color: #000; box-shadow: 0 2px 14px rgba(0,0,0,.25);
  font-family: 'Amiri', 'Traditional Arabic', serif; direction: rtl; font-size: var(--fs, 15pt);
}
.sheet.one { height: 296mm; padding: 9mm 13mm 8mm; overflow: hidden; }
.sheet.flow { min-height: 297mm; padding: 11mm 14mm; }

/* الترويسة */
.basmala { text-align: center; font-size: .82em; margin-bottom: .1em; }
.head { display: flex; justify-content: space-between; align-items: flex-start; }
.head .org { text-align: center; font-size: .8em; line-height: 1.42; font-weight: 700; width: 64mm; }
.head .logo { text-align: center; width: 40mm; }
.head .logo img { max-height: 27mm; max-width: 38mm; }
.head .meta { width: 64mm; font-size: .78em; line-height: 1.85; }
.head .meta .row { display: flex; align-items: baseline; }
.head .meta .lbl { font-weight: 700; white-space: nowrap; text-decoration: underline; }
.head .meta .dots { flex: 1; border-bottom: 1px dotted #000; margin-inline-start: 2mm; min-height: 1.2em; padding-inline-start: 1mm; line-height: 1.5; }

.ptitle { text-align: center; font-weight: 700; font-size: 1.07em; margin: .45em 0 .35em; }
.ptitle span { border-bottom: 2px solid #000; padding: 0 4mm .5mm; }

/* أقسام التقرير — مسافات مضغوطة */
.sec { margin-bottom: .3em; }
.sec .h { font-weight: 700; text-decoration: underline; margin-bottom: 0; line-height: 1.6; }
.sec .b { line-height: 1.7; text-align: justify; white-space: pre-wrap; }

/* التوقيعات — الرتبة في سطر فوق الاسم وتنتهي عند بداية الاسم */
.sigs { margin-top: .9em; }
.sig2 { display: flex; justify-content: space-between; }
.sigbox { width: 78mm; text-align: center; line-height: 1.55; }
.sigbox .role { font-weight: 700; text-decoration: underline; }
.sigcenter { text-align: center; margin-top: .5em; line-height: 1.55; }
.sigcenter .role { font-weight: 700; font-size: 1.03em; }
.rn { padding-top: 1.55em; }
.rn .nm { position: relative; display: inline-block; font-weight: 700; min-width: 1em; }
.rn .nm.blank { min-width: 34mm; border-bottom: 1px dotted #000; height: 1.2em; vertical-align: bottom; }
.rn .rk { position: absolute; bottom: 100%; left: 100%; white-space: nowrap; font-weight: 400; }

/* محضر سماع الأقوال */
.intro { line-height: 1.75; text-align: justify; margin-bottom: .3em; }
table.pdata { width: 100%; border-collapse: collapse; margin-bottom: .45em; font-size: .88em; }
table.pdata th, table.pdata td { border: 1px solid #000; padding: 1mm 2.5mm; text-align: center; background: none; color: #000;
  font-weight: 400; border-radius: 0; white-space: normal; font-size: 1em; }
table.pdata th { background: #eee; font-weight: 700; }
table.pdata tr:hover td { background: none; }
.qa { line-height: 1.75; text-align: justify; white-space: pre-wrap; }
.sigrow { display: flex; justify-content: space-between; margin-top: 1.1em; break-inside: avoid; }
.sigrow .sigbox { width: 75mm; }
.sigimg { max-height: 22mm; max-width: 62mm; display: block; margin: 1mm auto 0; }

@media (max-width: 760px) {
  body.printview { padding-bottom: 0; }
  .pv-bar .btn { flex: 1; }
  .pv-bar .info { width: 100%; text-align: center; }
}

@media print {
  html, body, body.printview { background: #fff !important; padding: 0 !important; }
  .topbar, .bottomnav, .pv-bar, .toast { display: none !important; }
  .pv-stage { padding: 0; overflow: visible; }
  .pv-scale { transform: none !important; width: auto; height: auto !important; margin: 0; }
  .sheet { box-shadow: none; margin: 0; }
  .sheet.flow { width: auto; min-height: 0; padding: 0; }
  .sheet .head { break-inside: avoid; }
}

/* الخطابات */
.lt-to { display: flex; justify-content: space-between; font-weight: 700; margin: 1.1em 0 .7em; gap: 6mm; }
.lt-body { line-height: 1.85; text-align: justify; white-space: pre-wrap; }
.lt-sig { width: 88mm; margin-inline-start: auto; text-align: center; margin-top: 1.6em; line-height: 1.6; }
.lt-sig .t { font-weight: 700; }
