{
	"Type": "Window",
	"Id": "geological_survey_report",
	"Title": "Geological Survey Report",
	"State": "Maximized",
	"Children": [
		{
			"Type": "Grid",
			"Id": "geological_survey_report_root",
			"Width": "100%",
			"Height": "100%",
			"HorizontalAlignment": "Stretch",
			"VerticalAlignment": "Stretch",
			"Classes": ["ps-save-browser"],
			"Children": [
				{
					"Type": "Panel",
					"Id": "geological_survey_report_panel",
					"HorizontalAlignment": "Center",
					"VerticalAlignment": "Center",
					"Padding": "16px",
					"Width": "980px",
					"Height": "680px",
					"Classes": ["ps-panel--accent-strip"],
					"Children": [
						{
							"Type": "Grid",
							"Id": "geological_survey_report_layout",
							"Height": "100%",
							"RowDefinitions": ["Auto", "Auto", "Auto", "*", "Auto"],
							"Children": [
								{
									"Type": "StackPanel",
									"Id": "survey_report_header",
									"Orientation": "Vertical",
									"Gap": 6,
									"Grid.Row": 0,
									"Margin": "0 0 16px 0",
									"Children": [
										{
											"Type": "Label",
											"Id": "survey_report_title",
											"Text": "Geological Survey Report",
											"Style": "Label.Heading"
										},
										{
											"Type": "Label",
											"Id": "survey_report_helper",
											"Text": "Browse known mineral deposits across all surveyed bodies for the active faction.",
											"Classes": ["ps-text-secondary"]
										}
									]
								},
								{
									"Type": "Grid",
									"Id": "survey_report_filters",
									"Grid.Row": 1,
									"Margin": "0 0 12px 0",
									"ColumnDefinitions": ["*", "180px", "180px"],
									"Children": [
										{
											"Type": "StackPanel",
											"Id": "survey_report_search_group",
											"Grid.Column": 0,
											"Orientation": "Vertical",
											"Gap": 4,
											"Margin": "0 0 12px 0",
											"Children": [
												{
													"Type": "Label",
													"Id": "survey_report_search_label",
													"Text": "Quick Search"
												},
												{
													"Type": "Input",
													"Id": "survey_report_search_input",
													"Width": "100%",
													"Value": "",
													"InputType": "text",
													"Placeholder": "Search system, body, or mineral",
													"ShowClearButton": true,
													"CommitOnInput": true,
													"Command": "protostar4x.core.survey.report.set_search"
												}
											]
										},
										{
											"Type": "StackPanel",
											"Id": "survey_report_amount_group",
											"Grid.Column": 1,
											"Orientation": "Vertical",
											"Gap": 4,
											"Margin": "0 0 12px 0",
											"Children": [
												{
													"Type": "Label",
													"Id": "survey_report_amount_label",
													"Text": "Min Amount"
												},
												{
													"Type": "Input",
													"Id": "survey_report_min_amount_input",
													"Width": "100%",
													"Value": "",
													"InputType": "number",
													"Placeholder": "0",
													"ShowClearButton": true,
													"CommitOnInput": true,
													"Command": "protostar4x.core.survey.report.set_min_amount"
												}
											]
										},
										{
											"Type": "StackPanel",
											"Id": "survey_report_accessibility_group",
											"Grid.Column": 2,
											"Orientation": "Vertical",
											"Gap": 4,
											"Children": [
												{
													"Type": "Label",
													"Id": "survey_report_accessibility_label",
													"Text": "Min Accessibility %"
												},
												{
													"Type": "Input",
													"Id": "survey_report_min_accessibility_input",
													"Width": "100%",
													"Value": "",
													"InputType": "number",
													"Placeholder": "0",
													"ShowClearButton": true,
													"CommitOnInput": true,
													"Command": "protostar4x.core.survey.report.set_min_accessibility"
												}
											]
										}
									]
								},
								{
									"Type": "Label",
									"Id": "survey_report_empty",
									"Grid.Row": 2,
									"Margin": "0 0 12px 0",
									"Text": "No surveyed mineral deposits are available for this faction.",
									"IsVisible": false,
									"Classes": ["ps-text-secondary"]
								},
								{
									"Type": "DataGrid",
									"Id": "survey_report_grid",
									"Grid.Row": 3,
									"Width": "100%",
									"Height": "100%",
									"EnableVerticalScroll": true,
									"UseZebraStriping": true,
									"AllowSorting": true,
									"Columns": [
										{
											"Header": "System",
											"Field": "systemName",
											"Width": "170px"
										},
										{
											"Header": "Body",
											"Field": "bodyName",
											"Width": "180px"
										},
										{
											"Header": "Mineral",
											"Field": "mineralType",
											"Flex": 1
										},
										{
											"Header": "Amount",
											"Field": "amount",
											"SortField": "amountSort",
											"Width": "140px",
											"Align": "Right"
										},
										{
											"Header": "Accessibility",
											"Field": "accessibility",
											"SortField": "accessibilitySort",
											"Width": "150px",
											"Align": "Right"
										}
									],
									"Rows": []
								},
								{
									"Type": "Grid",
									"Id": "survey_report_footer",
									"Grid.Row": 4,
									"Margin": "16px 0 0 0",
									"ColumnDefinitions": ["*", "Auto"],
									"Children": [
										{
											"Type": "Label",
											"Id": "survey_report_summary",
											"Grid.Column": 0,
											"Text": "",
											"VerticalAlignment": "Center",
											"Classes": ["ps-text-secondary"]
										},
										{
											"Type": "StackPanel",
											"Id": "survey_report_footer_actions",
											"Grid.Column": 1,
											"Orientation": "Horizontal",
											"Gap": 8,
											"HorizontalAlignment": "Right",
											"Children": [
												{
													"Type": "Button",
													"Id": "btn_survey_report_back",
													"Text": "Back",
													"Command": "core.navigation.back"
												}
											]
										}
									]
								}
							]
						}
					]
				}
			]
		}
	]
}