/* ===== طباعة العقود — A4 ===== */
@page { size: A4; margin: 12mm 10mm 14mm; }
.print-shell { background: #eef1f4; min-height: 100vh; padding: 16px 0 40px; }
.print-bar { max-width: 210mm; margin: 0 auto 12px; display: flex; gap: 10px; align-items: center; }
.pdoc { --pc: #005b52; --pc2: #e3ece8; --pline: #c9d6d1; background: #fff; max-width: 210mm; margin: 0 auto; padding: 14mm 10mm;
        box-shadow: 0 4px 24px rgba(0,0,0,.08); font-family: 'Cairo', Tahoma, sans-serif; color: #1d2b28; font-size: 10.5pt; }
.pdoc.general { --pc: #19528d; --pc2: #e6eef7; --pline: #cdd9e6; }
.pdoc-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--pc); padding-bottom: 10px; margin-bottom: 10px; }
.pdoc-title .t-ar { font-size: 22pt; font-weight: 800; color: var(--pc); letter-spacing: 1px; }
.pdoc-title .t-en { font-size: 11pt; font-weight: 700; color: #7c8d88; direction: ltr; text-align: right; }
.pdoc-brand { display: flex; gap: 10px; align-items: center; }
.pdoc-brand .logo { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, #19528d, #40c7f4); color: #fff;
                    display: grid; place-items: center; font-size: 20pt; font-weight: 800; }
.pdoc-brand b { display: block; font-size: 11pt; } .pdoc-brand small { color: #6b7a76; }
.pdoc-banner { color: #b3261e; text-align: center; font-weight: 700; margin: 4px 0 10px; font-size: 9.5pt; }
.psec { margin-bottom: 8px; break-inside: auto; }
.psec-head { display: grid; grid-template-columns: 34px 1fr 1fr; align-items: center; background: var(--pc); color: #fff; font-weight: 800;
             padding: 7px 10px; font-size: 11.5pt; break-after: avoid; }
.psec-head .num { text-align: center; font-size: 13pt; }
.psec-head .en { direction: ltr; text-align: left; font-size: 10.5pt; }
table.pairs { width: 100%; border-collapse: collapse; }
table.pairs tr:nth-child(even) td { background: var(--pc2); }
table.pairs td { padding: 5px 8px; vertical-align: middle; border-bottom: 1px solid #f0f3f2; }
table.pairs td.lab { color: #3b4a46; width: 15%; font-size: 9.5pt; }
table.pairs td.val { font-weight: 700; text-align: center; width: 20%; }
table.pairs td.val[dir=ltr] { unicode-bidi: plaintext; }
table.pairs td.en { direction: ltr; text-align: left; color: #5e6e6a; font-size: 8.5pt; width: 16%; }
table.ptable { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 9pt; }
table.ptable th { background: #5b6b67; color: #fff; padding: 5px 6px; font-weight: 600; border: 1px solid #fff; }
.pdoc.general table.ptable th { background: #3b5f86; }
table.ptable th small { display: block; font-weight: 400; direction: ltr; opacity: .85; font-size: 7.5pt; }
table.ptable td { border: 1px solid var(--pline); padding: 5px 6px; text-align: center; white-space: nowrap; }
.ppara { margin: 4px 6px; line-height: 1.85; font-size: 9.5pt; text-align: justify; }
.pnote { margin: 6px 8px; color: #3b4a46; }
.sign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; padding: 10px 4px; }
.sign { border: 1px dashed var(--pline); border-radius: 8px; padding: 8px 10px; text-align: center; min-height: 92px; }
.sign .role { color: var(--pc); font-weight: 800; font-size: 9pt; } .sign .name { font-weight: 700; margin-top: 2px; }
.sign .line { border-bottom: 1px solid #9aa9a5; margin: 26px 10px 4px; } .sign small { color: #6b7a76; font-size: 8pt; }
.pdoc-foot { margin-top: 12px; border-top: 1px solid var(--pline); padding-top: 6px; text-align: center; color: #7c8d88; font-size: 8pt; }
@media print {
  .no-print { display: none !important; }
  .print-shell { background: #fff; padding: 0; }
  .pdoc { box-shadow: none; padding: 0; max-width: none; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; background: #fff !important; }
  .app-shell, .sidebar, .topbar { display: none !important; }
}
