{
  "id": "ship-hazmat",
  "name": "Hazmat Warning Label",
  "description": "Hazmat Warning Label layout with mapped Hazard Class, UN Number, Material Name, Emergency Contact fields, XLSX sample data, and print-ready sizing.",
  "category": "Shipping & Logistics",
  "thumbnail": "/templates/thumbnails/ship-hazmat.svg",
  "settings": {
    "width": 76,
    "height": 50,
    "unit": "mm",
    "dpi": 203,
    "name": "Hazmat Warning Label",
    "type": "hazmat_warning_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": "Hazmat Warning Label",
      "fontSize": 8,
      "fontWeight": "bold",
      "textAlign": "center",
      "textFitMode": "shrink",
      "color": "#111827"
    },
    {
      "id": "main",
      "type": "TEXT",
      "x": 4,
      "y": 13,
      "width": 68,
      "height": 11,
      "content": "{{Hazard Class}}",
      "fontSize": 9,
      "fontWeight": "bold",
      "textAlign": "center",
      "textFitMode": "shrink",
      "color": "#111827"
    },
    {
      "id": "secondary",
      "type": "TEXT",
      "x": 4,
      "y": 25,
      "width": 68,
      "height": 8,
      "content": "{{UN Number}}",
      "fontSize": 7,
      "textAlign": "center",
      "textFitMode": "shrink",
      "color": "#111827"
    },
    {
      "id": "detail",
      "type": "TEXT",
      "x": 4,
      "y": 38,
      "width": 68,
      "height": 6,
      "content": "{{Material Name}}",
      "fontSize": 5,
      "textAlign": "center",
      "textFitMode": "shrink",
      "color": "#111827"
    },
    {
      "id": "mapped-details",
      "type": "TEXT",
      "x": 3,
      "y": 44,
      "width": 70,
      "height": 4,
      "content": "Emergency Contact: {{Emergency Contact}} | Reference: {{Reference}}",
      "fontSize": 4,
      "textFitMode": "shrink",
      "textAlign": "center",
      "color": "#374151"
    }
  ],
  "columns": [
    {
      "key": "hazard_class",
      "label": "Hazard Class",
      "required": true
    },
    {
      "key": "un_number",
      "label": "UN Number",
      "required": true
    },
    {
      "key": "material_name",
      "label": "Material Name",
      "required": true
    },
    {
      "key": "emergency_contact",
      "label": "Emergency Contact",
      "required": false
    },
    {
      "key": "reference",
      "label": "Reference",
      "required": false
    }
  ],
  "files": {
    "xlsx": "/label-templates/ship-hazmat.xlsx",
    "json": "/templates/ship-hazmat.json",
    "svg": "/templates/thumbnails/ship-hazmat.svg"
  }
}