{
  "template": {
    "ir": "0.1.0",
    "meta": {
      "name": "certified-poa",
      "version": "1.0.0",
      "description": "Certified Power of Attorney — modeled on the SAK certifiedDocumentPOA Jasper report, rebuilt as IR"
    },
    "page": {
      "size": "A4",
      "margins": "18mm 16mm",
      "direction": "rtl",
      "pageNumbers": {
        "enabled": true,
        "position": "footer-center"
      }
    },
    "styles": {
      "orgAr": {
        "font": "Cairo",
        "weight": 700,
        "size": "12pt"
      },
      "orgEn": {
        "font": "Noto Sans",
        "size": "9pt",
        "direction": "ltr",
        "color": "#444444"
      },
      "docTitle": {
        "font": "Cairo",
        "size": "18pt",
        "weight": 700,
        "align": "center",
        "color": "#5C0A18"
      },
      "docNo": {
        "font": "Cairo",
        "size": "11pt",
        "align": "center",
        "color": "#555555"
      },
      "body": {
        "font": "Noto Naskh Arabic",
        "size": "12pt",
        "lineHeight": 2,
        "align": "justify"
      },
      "clause": {
        "font": "Noto Naskh Arabic",
        "size": "12pt",
        "lineHeight": 2
      },
      "label": {
        "font": "Cairo",
        "weight": 700,
        "size": "10.5pt"
      },
      "th": {
        "font": "Cairo",
        "weight": 700,
        "background": "#F4EFE6",
        "size": "10.5pt",
        "align": "center"
      },
      "td": {
        "font": "Noto Naskh Arabic",
        "size": "11pt"
      },
      "sigName": {
        "font": "Cairo",
        "weight": 700,
        "size": "11pt",
        "align": "center"
      },
      "sigRole": {
        "font": "Noto Naskh Arabic",
        "size": "10pt",
        "align": "center",
        "color": "#555555"
      },
      "notice": {
        "font": "Noto Naskh Arabic",
        "size": "9.5pt",
        "color": "#666666"
      }
    },
    "masters": {
      "default": {
        "headerHeight": "24mm",
        "footerHeight": "10mm",
        "header": [
          {
            "type": "row",
            "align": "space-between",
            "children": [
              {
                "type": "text",
                "style": "orgAr",
                "text": "دولة قطر — وزارة العدل\nإدارة التوثيق"
              },
              {
                "type": "text",
                "style": "orgEn",
                "text": "State of Qatar — Ministry of Justice"
              },
              {
                "type": "qrcode",
                "bind": "$.verificationUrl",
                "size": "18mm"
              }
            ]
          },
          {
            "type": "divider"
          }
        ],
        "footer": [
          {
            "type": "divider"
          },
          {
            "type": "text",
            "style": "notice",
            "text": "للتحقق من صحة هذا المستند، امسح رمز الاستجابة السريعة أعلى الصفحة."
          }
        ]
      }
    },
    "watermark": {
      "when": "$.isDraft",
      "text": "غير معتمد",
      "opacity": 0.09,
      "angle": -35
    },
    "components": {
      "signatureBlock": [
        {
          "type": "row",
          "align": "space-between",
          "children": [
            {
              "type": "text",
              "style": "sigName",
              "bind": "notaryName"
            },
            {
              "type": "text",
              "style": "sigName",
              "bind": "principalName"
            }
          ]
        },
        {
          "type": "row",
          "align": "space-between",
          "children": [
            {
              "type": "text",
              "style": "sigRole",
              "text": "الموثِّق"
            },
            {
              "type": "text",
              "style": "sigRole",
              "text": "الموكِّل"
            }
          ]
        }
      ]
    },
    "body": [
      {
        "type": "heading",
        "style": "docTitle",
        "bind": "$.title"
      },
      {
        "type": "text",
        "style": "docNo",
        "runs": [
          {
            "text": "رقم المعاملة: "
          },
          {
            "bind": "$.requestSerial",
            "format": {
              "digits": "arabic-indic"
            }
          },
          {
            "text": " — سنة "
          },
          {
            "bind": "$.year",
            "format": {
              "digits": "arabic-indic"
            }
          }
        ]
      },
      {
        "type": "spacer",
        "height": "5mm"
      },
      {
        "type": "text",
        "style": "body",
        "runs": [
          {
            "text": "في يوم "
          },
          {
            "bind": "$.issuedAt",
            "format": {
              "kind": "date",
              "dateStyle": "full",
              "locale": "ar-QA",
              "digits": "arabic-indic"
            }
          },
          {
            "text": " الموافق "
          },
          {
            "bind": "$.issuedAt",
            "format": {
              "kind": "date",
              "calendar": "hijri",
              "dateStyle": "long",
              "locale": "ar-QA",
              "digits": "arabic-indic"
            }
          },
          {
            "text": "، حضر أمامي أنا الموثِّق المختص بإدارة التوثيق بوزارة العدل، الأطرافُ المبيَّنة بياناتهم أدناه:"
          }
        ]
      },
      {
        "type": "spacer",
        "height": "3mm"
      },
      {
        "type": "table",
        "bind": "$.parties",
        "headerStyle": "th",
        "cellStyle": "td",
        "widths": [
          "7%",
          "31%",
          "17%",
          "17%",
          "28%"
        ],
        "columns": [
          {
            "header": "م",
            "cell": {
              "bind": "index1",
              "format": {
                "digits": "arabic-indic"
              }
            }
          },
          {
            "header": "الاسم",
            "cell": {
              "bind": "item.name"
            }
          },
          {
            "header": "الصفة",
            "cell": {
              "bind": "item.role"
            }
          },
          {
            "header": "الجنسية",
            "cell": {
              "bind": "item.nationality"
            }
          },
          {
            "header": "رقم الهوية / السجل",
            "cell": {
              "bind": "item.qid",
              "format": {
                "digits": "arabic-indic"
              }
            }
          }
        ]
      },
      {
        "type": "spacer",
        "height": "4mm"
      },
      {
        "type": "heading",
        "level": 3,
        "text": "موضوع التوكيل"
      },
      {
        "type": "text",
        "style": "body",
        "bind": "$.subject"
      },
      {
        "type": "spacer",
        "height": "3mm"
      },
      {
        "type": "heading",
        "level": 3,
        "text": "الصلاحيات الممنوحة"
      },
      {
        "type": "table",
        "bind": "$.powers",
        "headerStyle": "th",
        "cellStyle": "td",
        "widths": [
          "8%",
          "92%"
        ],
        "columns": [
          {
            "header": "م",
            "cell": {
              "bind": "index1",
              "format": {
                "digits": "arabic-indic"
              }
            }
          },
          {
            "header": "البند",
            "cell": {
              "bind": "item"
            }
          }
        ]
      },
      {
        "type": "spacer",
        "height": "4mm"
      },
      {
        "type": "keyValue",
        "columns": 2,
        "labelStyle": "label",
        "valueStyle": "clause",
        "items": [
          {
            "label": "مدة التوكيل",
            "bind": "$.duration"
          },
          {
            "label": "الرسوم المسددة",
            "bind": "$.fees",
            "format": {
              "kind": "currency",
              "currency": "QAR",
              "locale": "ar-QA",
              "digits": "arabic-indic"
            }
          }
        ]
      },
      {
        "type": "spacer",
        "height": "10mm"
      },
      {
        "type": "component",
        "ref": "signatureBlock",
        "with": {
          "notaryName": "$.notary.name",
          "principalName": "$.parties[0].name"
        }
      }
    ]
  },
  "data": {
    "isDraft": false,
    "title": "توكيل رسمي عام",
    "requestSerial": 784512,
    "year": 2026,
    "issuedAt": "2026-08-04",
    "verificationUrl": "https://verify.sak.gov.qa/doc?uuid=3c9d8e7f-6a5b-4c3d-b2a1-0f9e8d7c6b5a",
    "subject": "تفويض الوكيل المذكور أعلاه في إدارة كافة شؤون الموكِّل العقارية داخل دولة قطر، بما في ذلك البيع والشراء والرهن والتأجير، وتمثيله أمام كافة الجهات الحكومية وغير الحكومية فيما يتصل بذلك.",
    "powers": [
      "تمثيل الموكِّل أمام وزارة العدل وإدارة التسجيل العقاري والتوثيق في كافة المعاملات.",
      "التوقيع نيابةً عن الموكِّل على عقود البيع والشراء والرهن وفكِّه.",
      "استلام وتسليم المبالغ والصكوك والمستندات المتعلقة بالعقارات محل التوكيل.",
      "توكيل الغير في كل أو بعض ما ذُكر أعلاه."
    ],
    "duration": "سنتان من تاريخ التوثيق",
    "fees": 255,
    "notary": {
      "name": "سعد بن علي المري"
    },
    "parties": [
      {
        "name": "عبدالله بن محمد بن راشد الدوسري",
        "role": "موكِّل",
        "nationality": "قطري",
        "qid": "28412345678"
      },
      {
        "name": "فاطمة بنت أحمد الكواري",
        "role": "وكيل",
        "nationality": "قطرية",
        "qid": "29087654321"
      }
    ]
  }
}