{
  "version": 2,
  "assets": {
    "harbor": {
      "mime": "image/png",
      "file": "harbor_logo"
    },
    "meridian": {
      "mime": "image/png",
      "file": "meridian_logo"
    }
  },
  "template": {
    "style": {
      "font_size": 8.5,
      "padding_mm": 2,
      "border_radius_mm": 0,
      "border_color": "#B6C5D4",
      "column_gap_mm": 0,
      "row_gap_mm": 0
    },
    "fields": {
      "ref": {
        "type": "string",
        "label": "Reference"
      },
      "revision": {
        "type": "integer",
        "label": "Revision"
      },
      "status": {
        "type": "string",
        "label": "Status"
      },
      "project": {
        "type": "string",
        "label": "Project"
      },
      "action": {
        "type": "string",
        "label": "Action"
      },
      "issued": {
        "type": "datetime",
        "label": "Issued"
      },
      "due": {
        "type": "date",
        "label": "Response Due"
      },
      "revision_date": {
        "type": "date",
        "label": "Revision Date"
      },
      "effective": {
        "type": "date",
        "label": "Effective Date"
      },
      "activity": {
        "type": "string",
        "label": "Affected Work / Activity"
      },
      "location": {
        "type": "string",
        "label": "Location / Area"
      },
      "scope": {
        "type": "text",
        "label": "Authorized Change / Scope"
      },
      "basis": {
        "type": "text",
        "label": "Justification / Contractual Basis"
      },
      "cost": {
        "type": "number",
        "label": "Agreed Value",
        "format": "currency",
        "currency": "USD"
      },
      "time": {
        "type": "string",
        "label": "Time Effect"
      },
      "related": {
        "type": "string",
        "label": "Source / Supporting Records"
      },
      "issuer": {
        "type": "string",
        "label": "Issued By"
      },
      "issuer_role": {
        "type": "string",
        "label": "Designation"
      },
      "issuer_auth": {
        "type": "string",
        "label": "Signature / Authentication",
        "style": {
          "background": "#E8F4EC",
          "foreground": "#236B50",
          "border_color": null,
          "size": "small"
        }
      },
      "issuer_date": {
        "type": "date",
        "label": "Issue Date"
      },
      "disposition": {
        "type": "choice",
        "label": "Review Disposition",
        "options": [
          {
            "value": "A",
            "label": "Approved",
            "style": {
              "background": "#E0F3E9",
              "foreground": "#18583E",
              "border_color": null,
              "padding_mm": 1.4,
              "font_size": 8
            }
          },
          {
            "value": "B",
            "label": "Approved as noted",
            "style": {
              "background": "#E1ECF9",
              "foreground": "#244C76",
              "border_color": null,
              "padding_mm": 1.4,
              "font_size": 8
            }
          },
          {
            "value": "C",
            "label": "Revise and resubmit",
            "style": {
              "background": "#FFF1D8",
              "foreground": "#795009",
              "border_color": null,
              "padding_mm": 1.4,
              "font_size": 8
            }
          },
          {
            "value": "D",
            "label": "Rejected / Not approved",
            "style": {
              "background": "#F9E0E4",
              "foreground": "#8B2F42",
              "border_color": null,
              "padding_mm": 1.4,
              "font_size": 8
            }
          }
        ]
      },
      "reviewer_comments": {
        "type": "text",
        "label": "Receiver Comments"
      },
      "reviewer": {
        "type": "string",
        "label": "Responded By"
      },
      "reviewer_role": {
        "type": "string",
        "label": "Designation"
      },
      "response_date": {
        "type": "date",
        "label": "Response Date"
      },
      "acknowledgement": {
        "type": "string",
        "label": "Signature / Authentication",
        "style": {
          "background": "#E8F4EC",
          "foreground": "#236B50",
          "border_color": null,
          "size": "small"
        }
      }
    },
    "sections": [
      {
        "rows": [
          {
            "type": "header",
            "repeat": "all",
            "rows": [
              {
                "type": "logos",
                "style": {
                  "border_radius_mm": 0,
                  "padding_mm": 2.4,
                  "font_size": 8.1
                },
                "items": [
                  {
                    "logo": "harbor",
                    "label": "EMPLOYER",
                    "name": "Harbor Development Group"
                  },
                  {
                    "logo": "meridian",
                    "label": "CONTRACTOR",
                    "name": "Meridian Contractors"
                  },
                  {
                    "logo": "harbor",
                    "label": "CONSULTANT",
                    "name": "Harbor Engineering"
                  },
                  {
                    "logo": "meridian",
                    "label": "DESIGNER",
                    "name": "Meridian Design Studio"
                  }
                ]
              },
              {
                "type": "identity",
                "title": "VARIATION ORDER",
                "lines": [
                  "Marina Heights - Tower A",
                  "Structural works / Contract MH-2026-01"
                ],
                "metadata_fields": [
                  "ref",
                  "revision",
                  "status"
                ]
              }
            ]
          },
          {
            "type": "title",
            "text": "Variation to the Level 02 transfer slab",
            "level": 2
          }
        ]
      },
      {
        "title": "Issuance and Distribution",
        "title_style": {
          "background": "#193550",
          "foreground": "#FFFFFF",
          "border_color": null,
          "padding_mm": 1.8,
          "border_radius_mm": 0,
          "font_size": 9
        },
        "rows": [
          {
            "type": "issued_by_to",
            "from_source": "sender",
            "to_source": "recipient"
          },
          {
            "type": "fields",
            "fields": [
              {
                "field": "action",
                "weight": 1
              },
              {
                "field": "issued",
                "weight": 1.6
              },
              {
                "field": "due",
                "weight": 1
              },
              {
                "field": "revision_date",
                "weight": 1
              }
            ],
            "style": {
              "background": "#F2F6FA",
              "border_color": "#B6C5D4"
            }
          }
        ]
      },
      {
        "title": "Variation Details",
        "title_style": {
          "background": "#193550",
          "foreground": "#FFFFFF",
          "border_color": null,
          "padding_mm": 1.8,
          "border_radius_mm": 0,
          "font_size": 9
        },
        "rows": [
          {
            "type": "fields",
            "fields": [
              {
                "field": "effective",
                "weight": 1
              },
              {
                "field": "activity",
                "weight": 1.8
              },
              {
                "field": "location",
                "weight": 1.5
              }
            ],
            "style": {
              "border_color": "#B6C5D4"
            }
          },
          {
            "type": "comment",
            "field": "scope",
            "style": {
              "border_color": "#B6C5D4"
            }
          },
          {
            "type": "comment",
            "field": "basis",
            "style": {
              "border_color": "#B6C5D4"
            }
          },
          {
            "type": "fields",
            "fields": [
              {
                "field": "cost",
                "weight": 1.1,
                "style": {
                  "size": "large",
                  "background": "#EDF4FA",
                  "border_color": null
                }
              },
              {
                "field": "time",
                "weight": 1
              },
              {
                "field": "related",
                "weight": 1.6
              }
            ],
            "style": {
              "border_color": "#B6C5D4"
            }
          }
        ]
      },
      {
        "title": "Originator Authentication",
        "title_style": {
          "background": "#193550",
          "foreground": "#FFFFFF",
          "border_color": null,
          "padding_mm": 1.8,
          "border_radius_mm": 0,
          "font_size": 9
        },
        "rows": [
          {
            "type": "signatory",
            "signatories": [
              {
                "name_field": "issuer",
                "role_field": "issuer_role",
                "acknowledgement_field": "issuer_auth",
                "date_field": "issuer_date"
              }
            ],
            "style": {
              "border_color": "#B6C5D4"
            }
          }
        ],
        "keep_together": true
      },
      {
        "title": "Review Response",
        "title_style": {
          "background": "#193550",
          "foreground": "#FFFFFF",
          "border_color": null,
          "padding_mm": 1.8,
          "border_radius_mm": 0,
          "font_size": 9
        },
        "rows": [
          {
            "type": "approval",
            "choice": "disposition",
            "comments": "reviewer_comments",
            "weights": [
              1,
              1.6
            ],
            "style": {
              "border_color": "#B6C5D4"
            }
          },
          {
            "type": "signatory",
            "signatories": [
              {
                "name_field": "reviewer",
                "role_field": "reviewer_role",
                "date_field": "response_date",
                "acknowledgement_field": "acknowledgement"
              }
            ],
            "style": {
              "border_color": "#B6C5D4"
            }
          },
          {
            "type": "footer",
            "left": "Marina Heights | Sample variation order",
            "center": "Generated by QTypeset",
            "page_number": true
          }
        ],
        "keep_together": true,
        "page_break_before": true
      }
    ],
    "page": {
      "size": "A4",
      "orientation": "portrait",
      "margin_mm": 15,
      "border": {
        "color": "#B6C5D4",
        "width_pt": 0.65,
        "inset_mm": 9,
        "border_radius_mm": 3
      }
    }
  },
  "data": {
    "ref": "VO-0001",
    "revision": 0,
    "status": "Issued",
    "project": "Marina Heights - Tower A",
    "action": "For Review",
    "issued": "2026-10-19T14:30:00+03:00",
    "due": "2026-10-22",
    "revision_date": "2026-10-19",
    "sender": {
      "name": "Harbor Engineering Services Ltd.",
      "lines": [
        "Engineer / Contract Administrator",
        "Attn: Maya Chen - Resident Engineer",
        "maya@example.com"
      ]
    },
    "recipient": {
      "name": "Meridian Contractors S.A.L.",
      "lines": [
        "Main Contractor",
        "Attn: Alex Morgan - Project Manager",
        "alex@example.com"
      ]
    },
    "effective": "2026-10-20",
    "activity": "Transfer slab reinforcement and concrete",
    "location": "Level 02 / Grid B3-C5",
    "scope": "Increase the transfer slab reinforcement at the revised column interface and use the updated concrete strength shown on drawing MH-ST-L02-014 Rev. C.\nInclude revised bar schedules, additional fixing, inspection and associated concrete testing within the affected zone.",
    "basis": "Issued following the coordinated structural revision and RFI-0028 response. The agreed value covers the additional quantities and associated work under the variation provisions of the contract.\nProceed only against the approved drawings and retain supporting measurement sheets.",
    "cost": 18750,
    "time": "No change to completion date",
    "related": "RFI-0028 | EI-0011 | QS-VO-001",
    "issuer": "Maya Chen",
    "issuer_role": "Resident Engineer",
    "issuer_date": "2026-10-19",
    "issuer_auth": "ELECTRONICALLY ISSUED\nmaya@example.com | Demo acknowledgement",
    "disposition": "B",
    "reviewer_comments": "Approved as noted.\n1. Submit the revised reinforcement schedule before placing the additional steel.\n2. Coordinate the inspection hold point with the MEP team.\n3. Confirm the final measured quantities in the next payment submission.\nThe agreed value and stated time effect are recorded for this example.",
    "reviewer": "Alex Morgan",
    "reviewer_role": "Project Manager",
    "response_date": "2026-10-20",
    "acknowledgement": "SECURE-LINK RESPONSE\nalex@example.com | Demo acknowledgement"
  }
}
