{
  "id": "address-label-template",
  "name": "Mailing Address Label",
  "description": "Mailing Address Label layout with mapped Recipient Name, Street Address, Address Line 2, City fields, XLSX sample data, and print-ready sizing.",
  "category": "Shipping & Logistics",
  "thumbnail": "/templates/thumbnails/address-label-template.svg",
  "settings": {
    "width": 76,
    "height": 50,
    "unit": "mm",
    "dpi": 203,
    "name": "Mailing Address Label",
    "type": "mailing_address_label"
  },
  "elements": [
    {
      "id": "border",
      "type": "RECTANGLE",
      "x": 1,
      "y": 1,
      "width": 74,
      "height": 48,
      "fill": "#ffffff",
      "stroke": "#111827",
      "strokeWidth": 0.4,
      "borderRadius": 1
    },
    {
      "id": "title",
      "type": "TEXT",
      "x": 3,
      "y": 3,
      "width": 70,
      "height": 8,
      "content": "Mailing Address Label",
      "fontSize": 8,
      "fontWeight": "bold",
      "textAlign": "center",
      "textFitMode": "shrink",
      "color": "#111827"
    },
    {
      "id": "main",
      "type": "TEXT",
      "x": 4,
      "y": 13,
      "width": 68,
      "height": 11,
      "content": "{{Recipient Name}}",
      "fontSize": 9,
      "fontWeight": "bold",
      "textAlign": "center",
      "textFitMode": "shrink",
      "color": "#111827"
    },
    {
      "id": "secondary",
      "type": "TEXT",
      "x": 4,
      "y": 25,
      "width": 68,
      "height": 8,
      "content": "{{Street Address}}",
      "fontSize": 7,
      "textAlign": "center",
      "textFitMode": "shrink",
      "color": "#111827"
    },
    {
      "id": "detail",
      "type": "TEXT",
      "x": 4,
      "y": 38,
      "width": 68,
      "height": 6,
      "content": "{{Address Line 2}}",
      "fontSize": 5,
      "textAlign": "center",
      "textFitMode": "shrink",
      "color": "#111827"
    },
    {
      "id": "mapped-details",
      "type": "TEXT",
      "x": 3,
      "y": 44,
      "width": 70,
      "height": 4,
      "content": "City: {{City}} | Postal Code: {{Postal Code}} | Country: {{Country}} | Reference: {{Reference}}",
      "fontSize": 4,
      "textFitMode": "shrink",
      "textAlign": "center",
      "color": "#374151"
    }
  ],
  "columns": [
    {
      "key": "recipient_name",
      "label": "Recipient Name",
      "required": true
    },
    {
      "key": "street_address",
      "label": "Street Address",
      "required": true
    },
    {
      "key": "address_line_2",
      "label": "Address Line 2",
      "required": true
    },
    {
      "key": "city",
      "label": "City",
      "required": false
    },
    {
      "key": "postal_code",
      "label": "Postal Code",
      "required": false
    },
    {
      "key": "country",
      "label": "Country",
      "required": false
    },
    {
      "key": "reference",
      "label": "Reference",
      "required": false
    }
  ],
  "files": {
    "xlsx": "/label-templates/address-label-template.xlsx",
    "json": "/templates/address-label-template.json",
    "svg": "/templates/thumbnails/address-label-template.svg"
  }
}