/* تنسيق الوثيقة الرسمية — يُستخدم في المعاينة والطباعة */
.paper {
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 2;
  color: #000;
  font-variant-numeric: lining-nums;
  background: #fff;
  direction: rtl;
  text-align: justify;
}
.paper .to { font-weight: 700; font-size: 1.15em; margin-bottom: .4em; }
.paper .ref { margin-bottom: .6em; }
.paper .parties { margin: .6em 0 .8em; }
.paper .parties p { margin: .15em 0; }
.paper h1.title { text-align: center; font-size: 1.6em; margin: .2em 0 .6em; text-decoration: underline; text-underline-offset: 8px; }
.paper h2.subject { font-size: 1.1em; margin: .8em 0 .4em; text-decoration: underline; text-underline-offset: 6px; }
.paper .center { text-align: center; }
.paper .preamble { margin: .6em 0; }
.paper ol.clauses { padding-right: 1.6em; margin: .4em 0; counter-reset: c; list-style: none; }
.paper ol.clauses > li { counter-increment: c; position: relative; margin: .25em 0; }
.paper ol.clauses > li::before { content: counter(c, arabic-indic) ". "; position: absolute; right: -1.6em; font-weight: 700; }
.paper ul { margin: .2em 0; padding-right: 1.4em; }
.paper .request { margin: .8em 0 .4em; }
.paper .attach { margin: .4em 0; font-size: .95em; }
.paper .greet { text-align: center; margin: 1em 0 .4em; }
.paper .sigs { display: flex; justify-content: space-around; gap: 1.5em; margin-top: 1.4em; break-inside: avoid; flex-wrap: wrap; }
.paper .sig { text-align: center; min-width: 200px; }
.paper .sig-label { font-weight: 700; }
.paper .witnesses { margin-top: 1em; font-size: .92em; }
.paper .blank { letter-spacing: 1px; color: #444; }
.paper .blank-lines .bl { border-bottom: 1px dotted #555; height: 2em; }
.paper ol.clauses li .bl { border-bottom: 1px dotted #555; height: 1.6em; }
.paper .bill { border: 2px solid #111; padding: 1.2em 1.6em; border-radius: 6px; }
.paper .bill-head { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.25em; border-bottom: 1px solid #111; margin-bottom: .6em; padding-bottom: .3em; }

/* ترويسة الورقة */
.letterhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #12355b; color: #fff; border-radius: 10px; padding: 12px 18px; font-family: 'Cairo', sans-serif; font-size: 12.5px; line-height: 1.7; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.letterhead .lh-brand { display: flex; align-items: center; gap: 10px; }
.letterhead img { width: 40px; height: 40px; }
.letterhead .lh-word { font-weight: 800; font-size: 24px; line-height: 1.2; }
.letterhead .lh-meta { text-align: left; opacity: .92; }
.lh-basmala { font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 15px; text-align: center; margin: 14px 0 20px; }

/* ورقة دليل الإجراءات */
.guide-page { font-family: 'Cairo', sans-serif; font-size: 14px; line-height: 1.9; }
.guide-page h2 { margin: 0 0 .3em; font-size: 1.3em; }
.guide-page ol { padding-right: 1.4em; }
.guide-page .warn { background: #fff7e0; border-right: 4px solid #d99a00; padding: .5em .9em; margin: .8em 0; }
.guide-page .meta { color: #333; }

.doc-footer { font-family: 'Cairo', sans-serif; font-size: 10.5px; color: #555; border-top: 1px solid #ccc; margin-top: 2em; padding-top: .6em; display: flex; gap: 1em; align-items: center; }
.doc-footer .qr { flex: none; }
.doc-footer .qr img, .doc-footer .qr canvas { width: 78px !important; height: 78px !important; }
