[
	{
		"child_id": [
			2
		],
		"content": [
			{
				"child_id": [
					3,
					14
				],
				"parent_id": [
					1
				],
				"id": 2,
				"type": "ma-row",
				"class": [
					"ma-border-all"
				],
				"height": "1/1",
				"content": [
					{
						"child_id": [
							4,
							7
						],
						"parent_id": [
							2
						],
						"id": 3,
						"type": "ma-row",
						"class": [
							"ma-border-bottom"
						],
						"height": "6/10",
						"content": [
							{
								"child_id": [
									5,
									6
								],
								"parent_id": [
									3
								],
								"id": 4,
								"type": "ma-col",
								"class": [
									"ma-border-right"
								],
								"content": [
									{
										"parent_id": [
											4
										],
										"value": "Toimitusosoite",
										"type": "ma-label",
										"class": [
											"ma-nospace"
										],
										"id": 5,
										"ng-model": "hdr.dn_delivery_address"
									},
									{
										"attribute": {
											"rows": "4"
										},
										"parent_id": [
											4
										],
										"id": 6,
										"type": "ma-textarea",
										"class": [
											"delivery_address"
										],
										"ng-model": "rec.dn_delivery_address"
									}
								],
								"width": "7/10"
							},
							{
								"child_id": [
									8,
									11
								],
								"parent_id": [
									3
								],
								"id": 7,
								"type": "ma-col",
								"content": [
									{
										"child_id": [
											9,
											10
										],
										"parent_id": [
											7
										],
										"id": 8,
										"type": "ma-row",
										"class": [
											"ma-border-bottom"
										],
										"height": "1/2",
										"content": [
											{
												"parent_id": [
													8
												],
												"value": "Til. Nro",
												"type": "ma-label",
												"class": [
													"ma-nospace"
												],
												"id": 9,
												"ng-model": "hdr.dn_dispatch_note"
											},
											{
												"parent_id": [
													8
												],
												"value": "110283",
												"type": "ma-label",
												"class": [
													"delivery_address ma-center-h"
												],
												"id": 10,
												"ng-model": "hdr.dn_dispatch_note"
											}
										]
									},
									{
										"child_id": [
											12,
											13
										],
										"parent_id": [
											7
										],
										"id": 11,
										"type": "ma-row",
										"height": "1/2",
										"content": [
											{
												"parent_id": [
													11
												],
												"value": "Lähetyslista",
												"type": "ma-label",
												"class": [
													"ma-nospace"
												],
												"id": 12,
												"ng-model": "hdr.dn_dispatch_note"
											},
											{
												"parent_id": [
													11
												],
												"value": "060026",
												"type": "ma-input",
												"class": [
													"delivery_address ma-center-h"
												],
												"id": 13,
												"ng-model": "rec.dn_dispatch_note"
											}
										]
									}
								],
								"width": "3/10"
							}
						]
					},
					{
						"child_id": [
							15,
							36
						],
						"parent_id": [
							2
						],
						"id": 14,
						"type": "ma-row",
						"height": "4/10",
						"content": [
							{
								"child_id": [
									16,
									21,
									26,
									31
								],
								"parent_id": [
									14
								],
								"id": 15,
								"type": "ma-col",
								"class": [
									"ma-border-right"
								],
								"content": [
									{
										"child_id": [
											17,
											19
										],
										"parent_id": [
											15
										],
										"id": 16,
										"type": "ma-row",
										"class": [
											"ma-border-bottom"
										],
										"height": "2.5/10",
										"content": [
											{
												"child_id": [
													18
												],
												"parent_id": [
													16
												],
												"id": 17,
												"type": "ma-col",
												"class": [
													"ma-center-v"
												],
												"content": [
													{
														"parent_id": [
															17
														],
														"value": "Mark",
														"type": "ma-label",
														"id": 18,
														"ng-model": "hdr.dn_mark"
													}
												],
												"width": "1/6"
											},
											{
												"child_id": [
													20
												],
												"parent_id": [
													16
												],
												"id": 19,
												"type": "ma-col",
												"class": [
													"ma-center-v"
												],
												"content": [
													{
														"type": "ma-input",
														"parent_id": [
															19
														],
														"ng-model": "rec.dn_mark",
														"id": 20
													}
												],
												"width": "5/6"
											}
										]
									},
									{
										"child_id": [
											22,
											24
										],
										"parent_id": [
											15
										],
										"id": 21,
										"type": "ma-row",
										"class": [
											"ma-border-bottom"
										],
										"height": "2.5/10",
										"content": [
											{
												"child_id": [
													23
												],
												"parent_id": [
													21
												],
												"id": 22,
												"type": "ma-col",
												"class": [
													"ma-center-v"
												],
												"content": [
													{
														"parent_id": [
															22
														],
														"value": "Til. Nro:",
														"type": "ma-label",
														"id": 23,
														"ng-model": "hdr.dn_mark"
													}
												],
												"width": "1/6"
											},
											{
												"child_id": [
													25
												],
												"parent_id": [
													21
												],
												"id": 24,
												"type": "ma-col",
												"class": [
													"ma-center-v"
												],
												"content": [
													{
														"parent_id": [
															24
														],
														"value": "as. til nro 123321",
														"type": "ma-input",
														"id": 25,
														"ng-model": "rec.dn_mark"
													}
												],
												"width": "5/6"
											}
										]
									},
									{
										"child_id": [
											27,
											29
										],
										"parent_id": [
											15
										],
										"id": 26,
										"type": "ma-row",
										"class": [
											"ma-border-bottom"
										],
										"height": "2.5/10",
										"content": [
											{
												"child_id": [
													28
												],
												"parent_id": [
													26
												],
												"id": 27,
												"type": "ma-col",
												"class": [
													"ma-center-v"
												],
												"content": [
													{
														"parent_id": [
															27
														],
														"value": "Viite:",
														"type": "ma-label",
														"id": 28,
														"ng-model": "hdr.dn_mark"
													}
												],
												"width": "1/6"
											},
											{
												"child_id": [
													30
												],
												"parent_id": [
													26
												],
												"id": 29,
												"type": "ma-col",
												"class": [
													"ma-center-v"
												],
												"content": [
													{
														"parent_id": [
															29
														],
														"value": "viitteenne KK",
														"type": "ma-input",
														"id": 30,
														"ng-model": "rec.dn_mark"
													}
												],
												"width": "5/6"
											}
										]
									},
									{
										"child_id": [
											32,
											34
										],
										"parent_id": [
											15
										],
										"id": 31,
										"type": "ma-row",
										"height": "2.5/10",
										"content": [
											{
												"child_id": [
													33
												],
												"parent_id": [
													31
												],
												"id": 32,
												"type": "ma-col",
												"class": [
													"ma-center-v"
												],
												"content": [
													{
														"parent_id": [
															32
														],
														"value": "Tilaaja:",
														"type": "ma-label",
														"id": 33,
														"ng-model": "hdr.dn_mark"
													}
												],
												"width": "1/6"
											},
											{
												"child_id": [
													35
												],
												"parent_id": [
													31
												],
												"id": 34,
												"type": "ma-col",
												"class": [
													"ma-center-v"
												],
												"content": [
													{
														"parent_id": [
															34
														],
														"value": "ABC Moottori Oyj",
														"type": "ma-input",
														"id": 35,
														"ng-model": "rec.dn_mark"
													}
												],
												"width": "5/6"
											}
										]
									}
								],
								"width": "8/10"
							},
							{
								"child_id": [
									37,
									44
								],
								"parent_id": [
									14
								],
								"id": 36,
								"type": "ma-col",
								"content": [
									{
										"child_id": [
											38,
											40,
											42
										],
										"parent_id": [
											36
										],
										"id": 37,
										"type": "ma-row",
										"class": [
											"ma-border-bottom"
										],
										"height": "6/10",
										"content": [
											{
												"child_id": [
													39
												],
												"parent_id": [
													37
												],
												"id": 38,
												"type": "ma-col",
												"class": [
													"ma-center-v"
												],
												"content": [
													{
														"parent_id": [
															38
														],
														"value": "12",
														"type": "ma-label",
														"class": [
															"number_of_pallets ma-center-h"
														],
														"id": 39,
														"ng-model": "hdr.dn_mark"
													}
												],
												"width": "4/7"
											},
											{
												"child_id": [
													41
												],
												"parent_id": [
													37
												],
												"id": 40,
												"type": "ma-col",
												"class": [
													"ma-center-v"
												],
												"content": [
													{
														"parent_id": [
															40
														],
														"value": "/",
														"type": "ma-label",
														"class": [
															"number_of_pallets_hdr ma-center-h"
														],
														"id": 41,
														"ng-model": "hdr.dn_mark"
													}
												],
												"width": "1/7"
											},
											{
												"child_id": [
													43
												],
												"parent_id": [
													37
												],
												"id": 42,
												"type": "ma-col",
												"class": [
													"ma-center-v"
												],
												"content": [
													{
														"parent_id": [
															42
														],
														"value": "18",
														"type": "ma-label",
														"class": [
															"number_of_pallets_total ma-center-h"
														],
														"id": 43,
														"ng-model": "hdr.dn_mark"
													}
												],
												"width": "2/7"
											}
										]
									},
									{
										"child_id": [
											45
										],
										"parent_id": [
											36
										],
										"id": 44,
										"type": "ma-row",
										"class": [
											"ma-center-h ma-center-v"
										],
										"height": "4/10",
										"content": [
											{
												"parent_id": [
													44
												],
												"value": "Ferrum",
												"type": "ma-label",
												"id": 45,
												"ng-model": "hdr.dn_mark"
											}
										]
									}
								],
								"width": "2/10"
							}
						]
					}
				]
			}
		],
		"id": 1,
		"type": "ma-xmlroot",
		"extra_data": [
			{
				"name": "style",
				"value": "<style>\n  /* http://stackoverflow.com/questions/1720320/how-to-dynamically-create-css-class-in-javascript-and-apply\n  var style = document.createElement('style');\n  style.type = 'text/css';\n  style.innerHTML = '.cssClass { color: #F00; }';\n  document.getElementsByTagName('head')[0].appendChild(style);\n  http://stackoverflow.com/questions/524696/how-to-create-a-style-tag-with-javascript\n  */\n\n  .delivery_address {\n    font-size: 36px;\n    // text-align: center;\n    // vertical-align: middle; // does not work\n  }\n  .number_of_pallets {\n    font-size: 72px;\n    font-weight: bold;\n  }\n  .number_of_pallets_hdr {\n    font-size: 40px;\n  }\n  .number_of_pallets_total {\n    font-size: 30px;\n    font-weight: bold;\n  }\n\n  .default_text, .delivery_address_hdr, .row_hdr, .sales_order_id, .box_hdr {\n    font_name: \"sans-serif\";\n    font_size: 12;\n    fit_text: \"height\";\n  }\n  .default_pict {\n    margin: \"draw.margin(4)\";\n    scaling: \"fit\";\n    horizontal_align: \"center\";\n    vertical_align: \"middle\";\n    stroke_width: 3;\n  },\n  .default_line {\n    stroke_color: \"black\";\n    stroke_width: 1;\n  },\n  .default_rect, .paper_rect: {\n    stroke_color: \"black\";\n    stroke_width: 1;\n  },\n  .delivery_address_hdr, .delivery_address, .sales_order_id_hdr, .dispatch_hdr: {\n    parent: \"default_text\";\n    margin: \"\";\n    margin.left: 2;\n  },\n  .delivery_address: {\n    /*parent: \"delivery_address_hdr\";*/\n    font_size: \"36\";\n    margin.top: \"\";\n    text_wrap: \"word\"\n  },\n  .row_hdr, .row: {\n    /*parent: \"default_text\";*/\n    vertical_align: \"middle\";\n    margin: \"\";\n    margin.left: \"2\";\n  },\n  .row: {\n    /*parent: \"row_hdr\";*/\n    margin.left: \"60\";\n    font_size: \"16\";\n  },\n  .sales_order_id_hdr: {\n    /*parent: \"delivery_address_hdr\"*/\n  },\n  .sales_order_id: {\n    /*parent: \"default_text\";*/\n    font_size: \"50\";\n    font_weight: bold;\n    horizontal_align: \"center\";\n    vertical_align: \"middle\";\n  },\n  .dispatch_hdr: {\n    /*parent: \"delivery_address_hdr\";*/\n  },\n  .dispatch: {\n    parent: \"default_text\";\n    font_size: 42;\n    font_weight: bold;\n    horizontal_align: \"center\";\n    vertical_align: \"middle\";\n  },\n  .paper_rect: {\n    /*parent: \"default_rect\"*/;\n    stroke_color: {\n      \"r\": 0;\n      \"b\": 0.9;\n      \"g\": 0;\n      \"a\": 0.9;\n    }\n  },\n  .box2, .box1: {\n    /*parent: \"box_hdr\";*/\n    font_size: 28;\n  },\n  .box1: {\n    /*parent: \"box2\";*/\n    font_size: 40;\n    font_weight: bold;\n  }\n  .font-size-36px {\n    font-size: 36px;\n    font-weight: bold;\n    margin-top: 0.75em;\n  }\n\n</style>\n"
			}
		]
	}
]