{
  "Type": "Window",
  "Id": "colony_management",
  "Title": "Colony Summary",
  "Icon": {
    "Type": "Asset",
    "Id": "UI/Icons/colony.png"
  },
  "Classes": [
    "ps-window-holo"
  ],
  "State": "Maximized",
  "DisplayLocation": "Taskbar",
  "WindowGroup": "static_menu",
  "IsRestorable": false,
  "IsMinimizable": false,
  "Width": "100%",
  "Height": "100%",
  "BackgroundImage": "UI/Backgrounds/colony_management.jpg",
  "Children": [
    {
      "Type": "Grid",
      "Id": "colony_management_layout",
      "Width": "100%",
      "Height": "100%",
      "HorizontalAlignment": "Stretch",
      "VerticalAlignment": "Stretch",
      "ColumnDefinitions": [
        "320px",
        "1fr"
      ],
      "RowDefinitions": [
        "1fr"
      ],
      "Gap": 0,
      "Children": [
        {
          "Type": "Grid",
          "Id": "colony_tree_container",
          "Grid.Column": 0,
          "Grid.Row": 0,
          "Width": "100%",
          "Height": "100%",
          "HorizontalAlignment": "Stretch",
          "VerticalAlignment": "Stretch",
          "RowDefinitions": [
            "Auto",
            "Auto",
            "1fr"
          ],
          "Gap": 8,
          "Children": [
            {
              "Type": "Breadcrumbs",
              "Id": "colony_breadcrumbs",
              "Grid.Row": 0,
              "Width": "100%",
              "SeparatorStyle": "chevron",
              "Classes": [
                "ps-breadcrumbs--compact",
                "ps-breadcrumbs--in-panel"
              ],
              "Path": []
            },
            {
              "Type": "Checkbox",
              "Id": "checkbox_colony_show_abandoned",
              "Grid.Row": 1,
              "Label": "Show Abandoned",
              "Classes": [
                "ps-checkbox--nowrap"
              ],
              "Command": "core.colony_toggle_show_abandoned",
              "Bindings": [
                {
                  "TargetProperty": "IsChecked",
                  "Path": "ColonyManagementUiStateComponent.ShowAbandonedColonies"
                }
              ]
            },
            {
              "Type": "Tree",
              "Id": "colony_tree",
              "Grid.Row": 2,
              "Width": "100%",
              "Height": "100%",
              "HorizontalAlignment": "Stretch",
              "VerticalAlignment": "Stretch",
              "ShowExpandCollapse": true,
              "ShowSearch": true,
              "SearchPlaceholder": "Search colonies...",
              "FilterLeavesOnly": true,
              "Nodes": []
            }
          ]
        },
        {
          "Type": "Panel",
          "Id": "colony_details_panel",
          "Grid.Column": 1,
          "Grid.Row": 0,
          "Width": "100%",
          "Height": "100%",
          "HorizontalAlignment": "Stretch",
          "VerticalAlignment": "Stretch",
          "Children": [
            {
              "Type": "StackPanel",
              "Id": "colony_details_root",
              "Orientation": "Vertical",
              "Width": "100%",
              "Height": "100%",
              "HorizontalAlignment": "Stretch",
              "VerticalAlignment": "Stretch",
              "Children": [
                {
                  "Type": "TabContainer",
                  "Id": "colony_tabs",
                  "Width": "100%",
                  "Height": "100%",
                  "Command": "core.select_colony_tab",
                  "Bindings": [
                    {
                      "TargetProperty": "ActiveIndex",
                      "Path": "ColonyManagementUiStateComponent.SelectedTabIndex"
                    }
                  ],
                  "Children": [
                    {
                      "Type": "TabItem",
                      "Id": "tabitem_colony_summary",
                      "Title": "Summary",
                      "Children": [
                        {
                          "Type": "Panel",
                          "Id": "tab_summary_no_colony",
                          "Width": "100%",
                          "Height": "100%",
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch",
                          "Bindings": [
                            {
                              "TargetProperty": "IsVisible",
                              "Path": "ColonyManagementUiStateComponent.NoColonySelected"
                            }
                          ],
                          "Children": [
                            {
                              "Type": "StackPanel",
                              "Id": "tab_summary_no_colony_stack",
                              "Width": "100%",
                              "Height": "100%",
                              "HorizontalAlignment": "Center",
                              "VerticalAlignment": "Center",
                              "Orientation": "Vertical",
                              "Gap": 16,
                              "Children": [
                                {
                                  "Type": "Image",
                                  "Id": "icon_colony_empty",
                                  "Asset": "UI/Icons/colony.png",
                                  "Width": "96px",
                                  "Height": "96px",
                                  "HorizontalAlignment": "Center",
                                  "Stretch": "Uniform"
                                },
                                {
                                  "Type": "Alert",
                                  "Id": "alert_select_colony_hint_summary",
                                  "HorizontalAlignment": "Center",
                                  "VerticalAlignment": "Center",
                                  "Severity": "Info",
                                  "IsDismissible": false,
                                  "Message": "Select a colony to view details."
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "Type": "Panel",
                          "Id": "tab_summary",
                          "Width": "100%",
                          "Height": "100%",
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch",
                          "Children": [
                            {
                              "Type": "Grid",
                              "Id": "tab_summary_layout",
                              "Width": "100%",
                              "Height": "100%",
                              "HorizontalAlignment": "Stretch",
                              "VerticalAlignment": "Stretch",
                              "RowDefinitions": [
                                "Auto",
                                "1fr"
                              ],
                              "ColumnDefinitions": [
                                "1fr"
                              ],
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Panel",
                                  "Id": "summary_governor_panel",
                                  "Grid.Row": 0,
                                  "Grid.Column": 0,
                                  "Width": "100%",
                                  "Height": "Auto",
                                  "HorizontalAlignment": "Stretch",
                                  "VerticalAlignment": "Top",
                                  "Children": [
                                    {
                                      "Type": "Grid",
                                      "Id": "summary_governors_stack",
                                      "Width": "100%",
                                      "Height": "Auto",
                                      "HorizontalAlignment": "Stretch",
                                      "VerticalAlignment": "Top",
                                      "ColumnDefinitions": [
                                        "Auto",
                                        "Auto",
                                        "1fr",
                                        "Auto",
                                        "Auto",
                                        "Auto"
                                      ],
                                      "RowDefinitions": [
                                        "Auto"
                                      ],
                                      "Gap": 12,
                                      "Children": [
                                        {
                                          "Type": "Label",
                                          "Id": "lbl_planetary_governor",
                                          "Text": "Planetary Governor: none",
                                          "Grid.Row": 0,
                                          "Grid.Column": 0,
                                          "VerticalAlignment": "Center",
                                          "Margin": "0 6 0 6"
                                        },
                                        {
                                          "Type": "Label",
                                          "Id": "lbl_sector_governor",
                                          "Text": "Sector Governor: none",
                                          "Grid.Row": 0,
                                          "Grid.Column": 1,
                                          "VerticalAlignment": "Center",
                                          "Margin": "0 6 0 6"
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "btn_summary_rename_colony",
                                          "Text": "Rename Colony",
                                          "Style": "Default",
                                          "Command": "core.colony.open_rename_dialog",
                                          "IsVisible": false,
                                          "IsEnabled": false,
                                          "Grid.Row": 0,
                                          "Grid.Column": 3,
                                          "VerticalAlignment": "Center"
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "btn_summary_abandon_colony",
                                          "Text": "Abandon Colony",
                                          "Style": "Danger",
                                          "Command": "core.colony.open_abandon_confirm",
                                          "IsVisible": false,
                                          "IsEnabled": false,
                                          "Grid.Row": 0,
                                          "Grid.Column": 4,
                                          "VerticalAlignment": "Center"
                                        },
                                        {
                                          "Type": "Label",
                                          "Id": "lbl_summary_abandoned_hint",
                                          "Text": "Abandoned colonies are view-only until repopulated.",
                                          "Classes": [
                                            "ps-text-secondary"
                                          ],
                                          "Grid.Row": 0,
                                          "Grid.Column": 5,
                                          "VerticalAlignment": "Center",
                                          "Bindings": [
                                            {
                                              "TargetProperty": "IsVisible",
                                              "Path": "ColonyManagementUiStateComponent.SelectedColonyIsAbandoned"
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "Type": "Grid",
                                  "Id": "summary_bottom_grid",
                                  "Grid.Row": 1,
                                  "Grid.Column": 0,
                                  "Width": "100%",
                                  "Height": "100%",
                                  "HorizontalAlignment": "Stretch",
                                  "VerticalAlignment": "Stretch",
                                  "ColumnDefinitions": [
                                    "1fr",
                                    "1fr",
                                    "1fr"
                                  ],
                                  "RowDefinitions": [
                                    "1fr"
                                  ],
                                  "Gap": 8,
                                  "Children": [
                                    {
                                      "Type": "PropertyGrid",
                                      "Id": "summary_metrics_grid",
                                      "Grid.Row": 0,
                                      "Grid.Column": 0,
                                      "Width": "100%",
                                      "Height": "100%",
                                      "Classes": [
                                        "ps-pgrid--scrollable"
                                      ],
                                      "Sections": []
                                    },
                                    {
                                      "Type": "PropertyGrid",
                                      "Id": "summary_industry_grid",
                                      "Grid.Row": 0,
                                      "Grid.Column": 1,
                                      "Width": "100%",
                                      "Height": "100%",
                                      "Classes": [
                                        "ps-pgrid--scrollable"
                                      ],
                                      "Sections": []
                                    },
                                    {
                                      "Type": "PropertyGrid",
                                      "Id": "summary_minerals_grid",
                                      "Grid.Row": 0,
                                      "Grid.Column": 2,
                                      "Width": "100%",
                                      "Height": "100%",
                                      "Classes": [
                                        "ps-pgrid--scrollable"
                                      ],
                                      "Sections": []
                                    }
                                  ]
                                }
                              ]
                            }
                          ],
                          "Classes": [
                            "borderless"
                          ]
                        }
                      ]
                    },
                    {
                      "Type": "TabItem",
                      "Id": "tabitem_colony_industry",
                      "Title": "Industry",
                      "Children": [
                        {
                          "Type": "Panel",
                          "Id": "tab_industry_no_colony",
                          "Width": "100%",
                          "Height": "100%",
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch",
                          "Bindings": [
                            {
                              "TargetProperty": "IsVisible",
                              "Path": "ColonyManagementUiStateComponent.NoColonySelected"
                            }
                          ],
                          "Children": [
                            {
                              "Type": "Grid",
                              "Width": "100%",
                              "Height": "100%",
                              "HorizontalAlignment": "Stretch",
                              "VerticalAlignment": "Stretch",
                              "ColumnDefinitions": [
                                "1fr"
                              ],
                              "RowDefinitions": [
                                "1fr"
                              ],
                              "Children": [
                                {
                                  "Type": "Alert",
                                  "Id": "alert_select_colony_hint_industry",
                                  "Grid.Column": 0,
                                  "Grid.Row": 0,
                                  "HorizontalAlignment": "Center",
                                  "VerticalAlignment": "Center",
                                  "Severity": "Info",
                                  "IsDismissible": false,
                                  "Message": "Select a colony to view details."
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "Type": "Panel",
                          "Id": "tab_industry",
                          "Width": "100%",
                          "Height": "100%",
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch",
                          "Children": [
                            {
                              "Type": "Grid",
                              "Id": "industry_root",
                              "Width": "100%",
                              "Height": "100%",
                              "HorizontalAlignment": "Stretch",
                              "VerticalAlignment": "Stretch",
                              "ColumnDefinitions": [
                                "288px",
                                "1fr"
                              ],
                              "RowDefinitions": [
                                "1fr"
                              ],
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Grid",
                                  "Id": "industry_sidebar",
                                  "Grid.Column": 0,
                                  "Grid.Row": 0,
                                  "Width": "100%",
                                  "Height": "100%",
                                  "HorizontalAlignment": "Stretch",
                                  "VerticalAlignment": "Stretch",
                                  "RowDefinitions": [
                                    "1fr",
                                    "Auto"
                                  ],
                                  "Children": [
                                    {
                                      "Type": "Tree",
                                      "Id": "industry_tree",
                                      "Grid.Row": 0,
                                      "Width": "100%",
                                      "Height": "100%",
                                      "HorizontalAlignment": "Stretch",
                                      "VerticalAlignment": "Stretch",
                                      "ShowExpandCollapse": true,
                                      "ShowSearch": true,
                                      "SearchPlaceholder": "Search projects...",
                                      "FilterLeavesOnly": true,
                                      "Nodes": []
                                    },
                                    {
                                      "Type": "Grid",
                                      "Id": "industry_contextual_add_controls",
                                      "Grid.Row": 1,
                                      "Margin": "8px 0 0 0",
                                      "ColumnDefinitions": [
                                        "1fr",
                                        "1fr"
                                      ],
                                      "Gap": 8,
                                      "IsVisible": false,
                                      "Children": [
                                        {
                                          "Type": "Input",
                                          "Id": "input_industry_contextual_amount",
                                          "Grid.Column": 0,
                                          "InputType": "number",
                                          "Placeholder": "Amount",
                                          "Command": "core.industry_set_add_amount",
                                          "Width": "100%"
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "btn_industry_queue_contextual",
                                          "Grid.Column": 1,
                                          "Text": "Queue",
                                          "Style": "Primary",
                                          "Command": "core.industry_queue_contextual",
                                          "Width": "100%"
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "Type": "Grid",
                                  "Id": "industry_main",
                                  "Grid.Column": 1,
                                  "Grid.Row": 0,
                                  "Width": "100%",
                                  "Height": "100%",
                                  "HorizontalAlignment": "Stretch",
                                  "VerticalAlignment": "Stretch",
                                  "RowDefinitions": [
                                    "Auto",
                                    "1fr",
                                    "Auto"
                                  ],
                                  "Children": [
                                    {
                                      "Type": "WrapPanel",
                                      "Id": "industry_header",
                                      "Grid.Row": 0,
                                      "Width": "100%",
                                      "Orientation": "Horizontal",
                                      "Margin": "0 0 14 0",
                                      "Gap": 0,
                                      "Classes": [
                                        "ps-panel-group",
                                        "ps-panel-group--horizontal"
                                      ],
                                      "Children": [
                                        {
                                          "Type": "Panel",
                                          "Id": "cap_card_construction",
                                          "Title": "Construction",
                                          "Command": "core.industry_select_category",
                                          "CommandPayload": "Construction",
                                          "Classes": [
                                            "ps-panel--card"
                                          ],
                                          "Padding": "6px 8px",
                                          "Children": [
                                            {
                                              "Type": "StackPanel",
                                              "Orientation": "Horizontal",
                                              "Gap": 6,
                                              "HorizontalAlignment": "Stretch",
                                              "Children": [
                                                {
                                                  "Type": "Label",
                                                  "Id": "lbl_industry_construction_rate",
                                                  "Text": "0/y",
                                                  "Classes": [
                                                    "ps-telemetry-value",
                                                    "ps-telemetry-value--large"
                                                  ]
                                                },
                                                {
                                                  "Type": "Label",
                                                  "Id": "lbl_industry_construction_count",
                                                  "Text": "0 Factories"
                                                }
                                              ]
                                            },
                                            {
                                              "Type": "ProgressBar",
                                              "Margin": "6px 0 0 0",
                                              "Id": "bar_industry_utilization_c",
                                              "Width": "100%",
                                              "Min": 0,
                                              "Max": 100,
                                              "Value": 0,
                                              "ShowLabel": true,
                                              "IsCompact": false,
                                              "Variant": "Neutral"
                                            }
                                          ]
                                        },
                                        {
                                          "Type": "Panel",
                                          "Id": "cap_card_ordnance",
                                          "Title": "Ordnance",
                                          "Command": "core.industry_select_category",
                                          "CommandPayload": "Ordnance",
                                          "Classes": [
                                            "ps-panel--card"
                                          ],
                                          "Padding": "6px 8px",
                                          "Children": [
                                            {
                                              "Type": "StackPanel",
                                              "Orientation": "Horizontal",
                                              "Gap": 6,
                                              "HorizontalAlignment": "Stretch",
                                              "Children": [
                                                {
                                                  "Type": "Label",
                                                  "Id": "lbl_industry_ordnance_rate",
                                                  "Text": "0/y",
                                                  "Classes": [
                                                    "ps-telemetry-value",
                                                    "ps-telemetry-value--large"
                                                  ]
                                                },
                                                {
                                                  "Type": "Label",
                                                  "Id": "lbl_industry_ordnance_count",
                                                  "Text": "0 Factories"
                                                }
                                              ]
                                            },
                                            {
                                              "Type": "ProgressBar",
                                              "Margin": "6px 0 0 0",
                                              "Id": "bar_industry_utilization_o",
                                              "Width": "100%",
                                              "Min": 0,
                                              "Max": 100,
                                              "Value": 0,
                                              "ShowLabel": true,
                                              "IsCompact": false,
                                              "Variant": "Neutral"
                                            }
                                          ]
                                        },
                                        {
                                          "Type": "Panel",
                                          "Id": "cap_card_fighter",
                                          "Title": "Fighter",
                                          "Command": "core.industry_select_category",
                                          "CommandPayload": "Fighter",
                                          "Classes": [
                                            "ps-panel--card"
                                          ],
                                          "Padding": "6px 8px",
                                          "Children": [
                                            {
                                              "Type": "StackPanel",
                                              "Orientation": "Horizontal",
                                              "Gap": 6,
                                              "HorizontalAlignment": "Stretch",
                                              "Children": [
                                                {
                                                  "Type": "Label",
                                                  "Id": "lbl_industry_fighter_rate",
                                                  "Text": "0/y",
                                                  "Classes": [
                                                    "ps-telemetry-value",
                                                    "ps-telemetry-value--large"
                                                  ]
                                                },
                                                {
                                                  "Type": "Label",
                                                  "Id": "lbl_industry_fighter_count",
                                                  "Text": "0 Factories"
                                                }
                                              ]
                                            },
                                            {
                                              "Type": "ProgressBar",
                                              "Margin": "6px 0 0 0",
                                              "Id": "bar_industry_utilization_f",
                                              "Width": "100%",
                                              "Min": 0,
                                              "Max": 100,
                                              "Value": 0,
                                              "ShowLabel": true,
                                              "IsCompact": false,
                                              "Variant": "Neutral"
                                            }
                                          ]
                                        },
                                        {
                                          "Type": "Panel",
                                          "Id": "cap_card_refinery",
                                          "Title": "Refinery",
                                          "Command": "core.industry_select_category",
                                          "CommandPayload": "Refinery",
                                          "Classes": [
                                            "ps-panel--card"
                                          ],
                                          "Padding": "6px 8px",
                                          "HeaderActions": [],
                                          "Children": [
                                            {
                                              "Type": "StackPanel",
                                              "Orientation": "Horizontal",
                                              "Gap": 6,
                                              "HorizontalAlignment": "Stretch",
                                              "Children": [
                                                {
                                                  "Type": "Label",
                                                  "Id": "lbl_industry_refinery_rate",
                                                  "Text": "0m/y",
                                                  "Classes": [
                                                    "ps-telemetry-value",
                                                    "ps-telemetry-value--large"
                                                  ]
                                                },
                                                {
                                                  "Type": "Label",
                                                  "Id": "lbl_industry_refinery_count",
                                                  "Text": "0 Refineries"
                                                }
                                              ]
                                            },
                                            {
                                              "Type": "ProgressBar",
                                              "Margin": "6px 0 0 0",
                                              "Id": "bar_industry_utilization_r",
                                              "Width": "100%",
                                              "Min": 0,
                                              "Max": 100,
                                              "Value": 0,
                                              "ShowLabel": true,
                                              "IsCompact": false,
                                              "Variant": "Neutral"
                                            }
                                          ]
                                        },
                                        {
                                          "Type": "Panel",
                                          "Id": "cap_card_maintenance",
                                          "Title": "MSP",
                                          "Command": "core.industry_select_category",
                                          "CommandPayload": "Maintenance",
                                          "Classes": [
                                            "ps-panel--card"
                                          ],
                                          "Padding": "6px 8px",
                                          "HeaderActions": [],
                                          "Children": [
                                            {
                                              "Type": "StackPanel",
                                              "Orientation": "Horizontal",
                                              "Gap": 6,
                                              "HorizontalAlignment": "Stretch",
                                              "Children": [
                                                {
                                                  "Type": "Label",
                                                  "Id": "lbl_industry_maintenance_rate",
                                                  "Text": "0/y",
                                                  "Classes": [
                                                    "ps-telemetry-value",
                                                    "ps-telemetry-value--large"
                                                  ]
                                                },
                                                {
                                                  "Type": "Label",
                                                  "Id": "lbl_industry_maintenance_count",
                                                  "Text": "0 Facilities"
                                                }
                                              ]
                                            },
                                            {
                                              "Type": "ProgressBar",
                                              "Margin": "6px 0 0 0",
                                              "Id": "bar_industry_utilization_m",
                                              "Width": "100%",
                                              "Min": 0,
                                              "Max": 100,
                                              "Value": 0,
                                              "ShowLabel": true,
                                              "IsCompact": false,
                                              "Variant": "Default"
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "Type": "DataGrid",
                                      "Id": "industry_queue_grid",
                                      "Grid.Row": 1,
                                      "Width": "100%",
                                      "Height": "100%",
                                      "HorizontalAlignment": "Stretch",
                                      "VerticalAlignment": "Stretch",
                                      "SelectionMode": "Single",
                                      "AllowReorder": true,
                                      "ShowDragHandle": true,
                                      "OnRowReordered": "core.industry_reorder_queue",
                                      "Columns": [
                                        {
                                          "Header": "Category",
                                          "Field": "type",
                                          "Width": "auto"
                                        },
                                        {
                                          "Header": "Project",
                                          "Field": "project",
                                          "Width": "1fr"
                                        },
                                        {
                                          "Header": "Amount",
                                          "Field": "amount",
                                          "Width": "auto",
                                          "Align": "Right"
                                        },
                                        {
                                          "Header": "Cap%",
                                          "Field": "cap",
                                          "CellType": "progressPercent",
                                          "Width": "auto",
                                          "Align": "Right"
                                        },
                                        {
                                          "Header": "Prod Rate",
                                          "Field": "rate",
                                          "CellType": "buildPoint",
                                          "Width": "auto",
                                          "Align": "Right"
                                        },
                                        {
                                          "Header": "Item Cost",
                                          "Field": "item_cost",
                                          "CellType": "buildPoint",
                                          "Width": "auto",
                                          "Align": "Right"
                                        },
                                        {
                                          "Header": "Completion",
                                          "Field": "eta",
                                          "CellType": "eta",
                                          "Width": "auto",
                                          "Align": "Right"
                                        },
                                        {
                                          "Header": "Status",
                                          "Field": "status",
                                          "Width": "auto"
                                        }
                                      ],
                                      "Rows": []
                                    },
                                    {
                                      "Type": "StackPanel",
                                      "Id": "industry_queue_actions",
                                      "Grid.Row": 2,
                                      "Orientation": "Horizontal",
                                      "HorizontalAlignment": "Right",
                                      "Gap": 8,
                                      "Margin": "10 0 0 0",
                                      "Children": [
                                        {
                                          "Type": "Button",
                                          "Id": "btn_sm_edit_fuel",
                                          "Text": "Edit Fuel",
                                          "Style": "SpaceMaster",
                                          "IsVisible": false,
                                          "Command": "core.industry_sm_edit_fuel"
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "btn_sm_edit_msp",
                                          "Text": "Edit MSP",
                                          "Style": "SpaceMaster",
                                          "IsVisible": false,
                                          "Command": "core.industry_sm_edit_msp"
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "btn_industry_queue_pause",
                                          "Text": "Pause",
                                          "Command": "core.industry_toggle_pause_selected"
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "btn_industry_queue_modify",
                                          "Text": "Modify...",
                                          "Command": "core.industry_open_modify"
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "btn_industry_queue_cancel",
                                          "Text": "Cancel",
                                          "Style": "Warning",
                                          "Command": "core.industry_open_cancel_selected"
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ],
                          "Classes": [
                            "borderless"
                          ]
                        },
                        {
                          "Type": "Modal",
                          "Id": "modal_sm_edit_fuel",
                          "IsVisible": false,
                          "Title": "Edit Fuel",
                          "IsDismissible": true,
                          "CloseCommand": "core.industry_sm_close_fuel_modal",
                          "DisplayMode": "Glow",
                          "Size": "Small",
                          "Bindings": [
                            {
                              "TargetProperty": "IsVisible",
                              "Path": "ColonyManagementUiStateComponent.SmFuelEditModalVisible"
                            }
                          ],
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Set the colony fuel stockpile amount.",
                              "Classes": [
                                "ps-text-secondary"
                              ]
                            },
                            {
                              "Type": "Input",
                              "Id": "input_sm_fuel",
                              "InputType": "number",
                              "Placeholder": "0",
                              "Min": 0,
                              "Step": 1,
                              "CommitOnInput": true,
                              "Command": "core.industry_sm_set_fuel_value",
                              "Bindings": [
                                {
                                  "TargetProperty": "Value",
                                  "Path": "ColonyManagementUiStateComponent.SmFuelEditInput"
                                }
                              ]
                            }
                          ],
                          "FooterChildren": [
                            {
                              "Type": "StackPanel",
                              "Orientation": "Horizontal",
                              "Gap": 8,
                              "HorizontalAlignment": "Right",
                              "Children": [
                                {
                                  "Type": "Button",
                                  "Id": "btn_sm_fuel_apply",
                                  "Text": "Apply",
                                  "Style": "Primary",
                                  "Command": "core.industry_sm_apply_fuel"
                                },
                                {
                                  "Type": "Button",
                                  "Text": "Cancel",
                                  "Command": "core.industry_sm_close_fuel_modal"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "Type": "Modal",
                          "Id": "modal_sm_edit_msp",
                          "IsVisible": false,
                          "Title": "Edit MSP",
                          "IsDismissible": true,
                          "CloseCommand": "core.industry_sm_close_msp_modal",
                          "DisplayMode": "Glow",
                          "Size": "Small",
                          "Bindings": [
                            {
                              "TargetProperty": "IsVisible",
                              "Path": "ColonyManagementUiStateComponent.SmMspEditModalVisible"
                            }
                          ],
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Set the colony maintenance supply stockpile amount.",
                              "Classes": [
                                "ps-text-secondary"
                              ]
                            },
                            {
                              "Type": "Input",
                              "Id": "input_sm_msp",
                              "InputType": "number",
                              "Placeholder": "0",
                              "Min": 0,
                              "Step": 1,
                              "CommitOnInput": true,
                              "Command": "core.industry_sm_set_msp_value",
                              "Bindings": [
                                {
                                  "TargetProperty": "Value",
                                  "Path": "ColonyManagementUiStateComponent.SmMspEditInput"
                                }
                              ]
                            }
                          ],
                          "FooterChildren": [
                            {
                              "Type": "StackPanel",
                              "Orientation": "Horizontal",
                              "Gap": 8,
                              "HorizontalAlignment": "Right",
                              "Children": [
                                {
                                  "Type": "Button",
                                  "Id": "btn_sm_msp_apply",
                                  "Text": "Apply",
                                  "Style": "Primary",
                                  "Command": "core.industry_sm_apply_msp"
                                },
                                {
                                  "Type": "Button",
                                  "Text": "Cancel",
                                  "Command": "core.industry_sm_close_msp_modal"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "Type": "TabItem",
                      "Id": "tabitem_colony_mining",
                      "Title": "Mining",
                      "Children": [
                        {
                          "Type": "Panel",
                          "Id": "tab_mining_no_colony",
                          "Width": "100%",
                          "Height": "100%",
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch",
                          "Bindings": [
                            {
                              "TargetProperty": "IsVisible",
                              "Path": "ColonyManagementUiStateComponent.NoColonySelected"
                            }
                          ],
                          "Children": [
                            {
                              "Type": "Grid",
                              "Width": "100%",
                              "Height": "100%",
                              "HorizontalAlignment": "Stretch",
                              "VerticalAlignment": "Stretch",
                              "ColumnDefinitions": [
                                "1fr"
                              ],
                              "RowDefinitions": [
                                "1fr"
                              ],
                              "Children": [
                                {
                                  "Type": "Alert",
                                  "Id": "alert_select_colony_hint_mining",
                                  "Grid.Column": 0,
                                  "Grid.Row": 0,
                                  "HorizontalAlignment": "Center",
                                  "VerticalAlignment": "Center",
                                  "Severity": "Info",
                                  "IsDismissible": false,
                                  "Message": "Select a colony to view details."
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "Type": "Panel",
                          "Id": "tab_mining",
                          "Width": "100%",
                          "Height": "100%",
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch",
                          "Children": [
                            {
                              "Type": "Grid",
                              "Id": "mining_root",
                              "Width": "100%",
                              "Height": "100%",
                              "HorizontalAlignment": "Stretch",
                              "VerticalAlignment": "Stretch",
                              "ColumnDefinitions": [
                                "1fr"
                              ],
                              "RowDefinitions": [
                                "Auto",
                                "Auto",
                                "1fr"
                              ],
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "DataGrid",
                                  "Id": "mining_grid",
                                  "Grid.Row": 0,
                                  "Grid.Column": 0,
                                  "Width": "100%",
                                  "Height": "Auto",
                                  "HorizontalAlignment": "Stretch",
                                  "VerticalAlignment": "Stretch",
                                  "SelectionMode": "None",
                                  "AllowSorting": false,
                                  "UseZebraStriping": true,
                                  "Columns": [
                                    {
                                      "Header": "Mineral",
                                      "Field": "mineral",
                                      "Width": "1fr",
                                      "CellType": "mineralName"
                                    },
                                    {
                                      "Header": "Quantity",
                                      "Field": "quantity",
                                      "Width": "auto",
                                      "Align": "Right"
                                    },
                                    {
                                      "Header": "Accessibility",
                                      "Field": "accessibility",
                                      "Width": "auto",
                                      "Align": "Right"
                                    },
                                    {
                                      "Header": "Production",
                                      "Field": "production",
                                      "Width": "auto",
                                      "Align": "Right"
                                    },
                                    {
                                      "Header": "Depletion (yrs)",
                                      "Field": "depletion",
                                      "Width": "auto",
                                      "Align": "Right"
                                    },
                                    {
                                      "Header": "Stockpile",
                                      "Field": "stockpile",
                                      "Width": "auto",
                                      "Align": "Right",
                                      "CellType": "supplyBar"
                                    },
                                    {
                                      "Header": "Recent SP",
                                      "Field": "recent_sp",
                                      "Width": "auto",
                                      "Align": "Right"
                                    },
                                    {
                                      "Header": "Mass Driver",
                                      "Field": "mass_driver",
                                      "Width": "auto",
                                      "Align": "Right"
                                    },
                                    {
                                      "Header": "SP + Production",
                                      "Field": "sp_plus_production",
                                      "Width": "auto",
                                      "Align": "Right",
                                      "CellType": "supplyBar"
                                    },
                                    {
                                      "Header": "Projected Usage",
                                      "Field": "projected_usage",
                                      "Width": "auto",
                                      "Align": "Right"
                                    },
                                    {
                                      "Header": "Reserve",
                                      "Field": "reserve",
                                      "Width": "auto",
                                      "Align": "Right",
                                      "Editable": true,
                                      "EditorType": "Number",
                                      "EditCommand": "core.mining_set_reserve"
                                    }
                                  ],
                                  "Rows": []
                                },
                                {
                                  "Type": "StackPanel",
                                  "Id": "mass_driver_destination_row",
                                  "Grid.Row": 1,
                                  "Grid.Column": 0,
                                  "Orientation": "Horizontal",
                                  "Gap": 8,
                                  "Padding": "4 0",
                                  "Children": [
                                    {
                                      "Type": "Label",
                                      "Id": "label_mass_driver_destination",
                                      "Text": "Mass Driver Destination:",
                                      "VerticalAlignment": "Center"
                                    },
                                    {
                                      "Type": "Select",
                                      "Id": "select_mass_driver_destination",
                                      "Width": "220",
                                      "Placeholder": "Select destination colony",
                                      "Command": "core.mining_select_mass_driver_destination",
                                      "Options": []
                                    }
                                  ]
                                },
                                {
                                  "Type": "StackPanel",
                                  "Id": "cmc_controls_row",
                                  "Grid.Row": 1,
                                  "Grid.Column": 0,
                                  "Orientation": "Horizontal",
                                  "Gap": 8,
                                  "Padding": "4 0",
                                  "Classes": [
                                    "ps-cmc-controls"
                                  ],
                                  "Children": [
                                    {
                                      "Type": "Label",
                                      "Id": "label_cmc_annual_amount",
                                      "Text": "",
                                      "VerticalAlignment": "Center",
                                      "Classes": [
                                        "ps-text-success"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "Type": "TabContainer",
                                  "Id": "mining_subtabs",
                                  "Grid.Row": 2,
                                  "Grid.Column": 0,
                                  "Classes": [
                                    "ps-tabcontainer--subtabs"
                                  ],
                                  "Width": "100%",
                                  "Height": "100%",
                                  "Children": [
                                    {
                                      "Type": "TabItem",
                                      "Id": "tabitem_mining_modifiers",
                                      "Title": "Modifiers",
                                      "Children": [
                                        {
                                          "Type": "DataGrid",
                                          "Id": "mining_modifiers_grid",
                                          "Width": "100%",
                                          "Height": "Auto",
                                          "HorizontalAlignment": "Stretch",
                                          "VerticalAlignment": "Stretch",
                                          "SelectionMode": "None",
                                          "AllowSorting": false,
                                          "UseZebraStriping": true,
                                          "Columns": [
                                            {
                                              "Header": "Mining Modifiers",
                                              "Field": "modifier",
                                              "Flex": 2
                                            },
                                            {
                                              "Header": "Amount",
                                              "Field": "amount",
                                              "Flex": 1,
                                              "Align": "Right"
                                            },
                                            {
                                              "Header": "Production",
                                              "Field": "production",
                                              "Flex": 1,
                                              "Align": "Right"
                                            },
                                            {
                                              "Header": "Governor",
                                              "Field": "governor",
                                              "Flex": 1,
                                              "Align": "Right"
                                            },
                                            {
                                              "Header": "Sector",
                                              "Field": "sector",
                                              "Flex": 1,
                                              "Align": "Right"
                                            },
                                            {
                                              "Header": "Colony Eff",
                                              "Field": "colony_eff",
                                              "Flex": 1,
                                              "Align": "Right"
                                            },
                                            {
                                              "Header": "Total Mod",
                                              "Field": "total_mod",
                                              "Flex": 1,
                                              "Align": "Right"
                                            },
                                            {
                                              "Header": "Total Prod",
                                              "Field": "total_prod",
                                              "Flex": 1,
                                              "Align": "Right"
                                            }
                                          ],
                                          "Rows": []
                                        }
                                      ]
                                    },
                                    {
                                      "Type": "TabItem",
                                      "Id": "tabitem_mineral_usage",
                                      "Title": "Usage",
                                      "Children": [
                                        {
                                          "Type": "DataGrid",
                                          "Id": "mineral_usage_grid",
                                          "Width": "100%",
                                          "Height": "Auto",
                                          "HorizontalAlignment": "Stretch",
                                          "VerticalAlignment": "Stretch",
                                          "SelectionMode": "None",
                                          "AllowSorting": false,
                                          "UseZebraStriping": true,
                                          "Columns": [
                                            {
                                              "Header": "Mineral",
                                              "Field": "usage_mineral",
                                              "Flex": 2,
                                              "CellType": "mineralName"
                                            },
                                            {
                                              "Header": "Construction",
                                              "Field": "usage_construction",
                                              "Flex": 1,
                                              "Align": "Right"
                                            },
                                            {
                                              "Header": "Ordnance",
                                              "Field": "usage_ordnance",
                                              "Flex": 1,
                                              "Align": "Right"
                                            },
                                            {
                                              "Header": "SY Tasks",
                                              "Field": "usage_sy_tasks",
                                              "Flex": 1,
                                              "Align": "Right"
                                            },
                                            {
                                              "Header": "Refinery",
                                              "Field": "usage_refinery",
                                              "Flex": 1,
                                              "Align": "Right"
                                            },
                                            {
                                              "Header": "Maintenance",
                                              "Field": "usage_maintenance",
                                              "Flex": 1,
                                              "Align": "Right"
                                            },
                                            {
                                              "Header": "Total",
                                              "Field": "usage_total",
                                              "Flex": 1,
                                              "Align": "Right"
                                            }
                                          ],
                                          "Rows": []
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ],
                          "Classes": [
                            "borderless"
                          ]
                        }
                      ]
                    },
                    {
                      "Type": "TabItem",
                      "Id": "tabitem_colony_shipyards",
                      "Title": "Shipyards",
                      "Children": [
                        {
                          "Type": "Panel",
                          "Id": "tab_shipyards_no_colony",
                          "Width": "100%",
                          "Height": "100%",
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch",
                          "Bindings": [
                            {
                              "TargetProperty": "IsVisible",
                              "Path": "ColonyManagementUiStateComponent.NoColonySelected"
                            }
                          ],
                          "Children": [
                            {
                              "Type": "Grid",
                              "Width": "100%",
                              "Height": "100%",
                              "HorizontalAlignment": "Stretch",
                              "VerticalAlignment": "Stretch",
                              "ColumnDefinitions": [
                                "1fr"
                              ],
                              "RowDefinitions": [
                                "1fr"
                              ],
                              "Children": [
                                {
                                  "Type": "Alert",
                                  "Id": "alert_select_colony_hint_shipyards",
                                  "Grid.Column": 0,
                                  "Grid.Row": 0,
                                  "HorizontalAlignment": "Center",
                                  "VerticalAlignment": "Center",
                                  "Severity": "Info",
                                  "IsDismissible": false,
                                  "Message": "Select a colony to view shipyards."
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "Type": "Panel",
                          "Id": "tab_shipyards_content",
                          "Width": "100%",
                          "Height": "100%",
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch",
                          "Bindings": [
                            {
                              "TargetProperty": "IsVisible",
                              "Path": "ColonyManagementUiStateComponent.ShipyardTabVisible"
                            }
                          ],
                          "Children": [
                            {
                              "Type": "Grid",
                              "Id": "shipyards_layout",
                              "Width": "100%",
                              "Height": "100%",
                              "HorizontalAlignment": "Stretch",
                              "VerticalAlignment": "Stretch",
                              "ColumnDefinitions": [
                                "1fr"
                              ],
                              "RowDefinitions": [
                                "1fr",
                                "Auto",
                                "2fr"
                              ],
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "DataGrid",
                                  "Id": "datagrid_shipyards",
                                  "Grid.Row": 0,
                                  "Grid.Column": 0,
                                  "Width": "100%",
                                  "Height": "100%",
                                  "HorizontalAlignment": "Stretch",
                                  "VerticalAlignment": "Stretch",
                                  "SelectionMode": "Single",
                                  "OnSelectionChanged": "core.shipyard_selection_changed",
                                  "AllowSorting": false,
                                  "UseZebraStriping": true,
                                  "Columns": [
                                    {
                                      "Header": "Name",
                                      "Field": "name",
                                      "Width": "1fr"
                                    },
                                    {
                                      "Header": "Type",
                                      "Field": "type",
                                      "Width": "auto",
                                      "Align": "Left"
                                    },
                                    {
                                      "Header": "Capacity",
                                      "Field": "capacity",
                                      "Width": "90px",
                                      "Align": "Right"
                                    },
                                    {
                                      "Header": "Slipways",
                                      "Field": "slipways",
                                      "Width": "80px",
                                      "Align": "Center",
                                      "CellType": "utilizationBar"
                                    },
                                    {
                                      "Header": "Tooled Class",
                                      "Field": "assigned_class",
                                      "Width": "150px"
                                    },
                                    {
                                      "Header": "Activity",
                                      "Field": "activity",
                                      "Width": "1fr"
                                    },
                                    {
                                      "Header": "Progress",
                                      "Field": "progress",
                                      "Width": "100px",
                                      "CellType": "progressPercent"
                                    },
                                    {
                                      "Header": "Tasks",
                                      "Field": "task_count",
                                      "Width": "60px",
                                      "Align": "Right"
                                    }
                                  ],
                                  "Rows": []
                                },
                                {
                                  "Type": "StackPanel",
                                  "Id": "shipyard_sm_bar",
                                  "Grid.Row": 1,
                                  "Grid.Column": 0,
                                  "Orientation": "Horizontal",
                                  "HorizontalAlignment": "Right",
                                  "Gap": 8,
                                  "Children": [
                                    {
                                      "Type": "Button",
                                      "Id": "btn_sm_add_shipyard",
                                      "Text": "Add SY",
                                      "Style": "SpaceMaster",
                                      "IsVisible": false,
                                      "Command": "core.shipyard.sm_show_create_modal"
                                    }
                                  ]
                                },
                                {
                                  "Type": "Panel",
                                  "Id": "sy_detail_panel",
                                  "Grid.Row": 2,
                                  "Grid.Column": 0,
                                  "Width": "100%",
                                  "Height": "100%",
                                  "IsVisible": false,
                                  "Children": [
                                    {
                                      "Type": "StackPanel",
                                      "Orientation": "Vertical",
                                      "Gap": 12,
                                      "Children": [
                                        {
                                          "Type": "Grid",
                                          "ColumnDefinitions": [
                                            "1fr",
                                            "Auto"
                                          ],
                                          "RowDefinitions": [
                                            "Auto"
                                          ],
                                          "Width": "100%",
                                          "Children": [
                                            {
                                              "Type": "StackPanel",
                                              "Orientation": "Horizontal",
                                              "VerticalAlignment": "Center",
                                              "Gap": 8,
                                              "Children": [
                                                {
                                                  "Type": "Label",
                                                  "Id": "sy_detail_name",
                                                  "Style": "Heading",
                                                  "Text": ""
                                                },
                                                {
                                                  "Type": "Label",
                                                  "Id": "sy_detail_type_badge",
                                                  "Classes": [
                                                    "ps-badge",
                                                    "ps-sy-detail-type-badge"
                                                  ],
                                                  "Text": ""
                                                }
                                              ]
                                            },
                                            {
                                              "Type": "StackPanel",
                                              "Orientation": "Horizontal",
                                              "HorizontalAlignment": "Right",
                                              "VerticalAlignment": "Center",
                                              "Gap": 4,
                                              "Grid.Column": 1,
                                              "Classes": [],
                                              "Children": [
                                                {
                                                  "Type": "Label",
                                                  "Classes": [
                                                    "ps-text-secondary"
                                                  ],
                                                  "Text": "Capacity:"
                                                },
                                                {
                                                  "Type": "Label",
                                                  "Id": "sy_detail_stat_capacity",
                                                  "Classes": [
                                                    "ps-data"
                                                  ],
                                                  "Text": ""
                                                },
                                                {
                                                  "Type": "Label",
                                                  "Classes": [
                                                    "ps-text-secondary"
                                                  ],
                                                  "Text": "Slipways:"
                                                },
                                                {
                                                  "Type": "Label",
                                                  "Id": "sy_detail_stat_slipways",
                                                  "Classes": [
                                                    "ps-data"
                                                  ],
                                                  "Text": ""
                                                },
                                                {
                                                  "Type": "Label",
                                                  "Classes": [
                                                    "ps-text-secondary"
                                                  ],
                                                  "Text": "Available:"
                                                },
                                                {
                                                  "Type": "Label",
                                                  "Id": "sy_detail_stat_available",
                                                  "Classes": [
                                                    "ps-data"
                                                  ],
                                                  "Text": ""
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "Type": "Grid",
                                          "ColumnDefinitions": [
                                            "1fr",
                                            "1fr"
                                          ],
                                          "RowDefinitions": [
                                            "Auto"
                                          ],
                                          "Gap": 16,
                                          "Children": [
                                            {
                                              "Type": "StackPanel",
                                              "Grid.Column": 0,
                                              "Orientation": "Vertical",
                                              "Gap": 12,
                                              "Children": [
                                                {
                                                  "Type": "StackPanel",
                                                  "Id": "sy_activity_section",
                                                  "Orientation": "Vertical",
                                                  "Gap": 8,
                                                  "Children": [
                                                    {
                                                      "Type": "Grid",
                                                      "ColumnDefinitions": [
                                                        "1fr",
                                                        "Auto"
                                                      ],
                                                      "VerticalAlignment": "Center",
                                                      "Children": [
                                                        {
                                                          "Type": "Label",
                                                          "Grid.Column": 0,
                                                          "Text": "Activity",
                                                          "Style": "Heading4",
                                                          "HorizontalAlignment": "Left",
                                                          "VerticalAlignment": "Center"
                                                        },
                                                        {
                                                          "Type": "StackPanel",
                                                          "Id": "sy_activity_select",
                                                          "Orientation": "Horizontal",
                                                          "Grid.Column": 1,
                                                          "IsVisible": true,
                                                          "Classes": [
                                                            "ps-option-group"
                                                          ],
                                                          "Children": [
                                                            {
                                                              "Type": "Button",
                                                              "Id": "sy_btn_slipway",
                                                              "Text": "Add Slipway",
                                                              "Classes": [
                                                                "ps-option"
                                                              ],
                                                              "Command": "core.shipyard_select_upgrade_type",
                                                              "CommandPayload": {
                                                                "upgradeType": 1
                                                              }
                                                            },
                                                            {
                                                              "Type": "Button",
                                                              "Id": "sy_btn_expand",
                                                              "Text": "Expand",
                                                              "Classes": [
                                                                "ps-option"
                                                              ],
                                                              "Command": "core.shipyard_select_upgrade_type",
                                                              "CommandPayload": {
                                                                "upgradeType": 9
                                                              }
                                                            },
                                                            {
                                                              "Type": "Button",
                                                              "Id": "sy_btn_retool",
                                                              "Text": "Retool",
                                                              "Classes": [
                                                                "ps-option"
                                                              ],
                                                              "Command": "core.shipyard_select_upgrade_type",
                                                              "CommandPayload": {
                                                                "upgradeType": 7
                                                              }
                                                            },
                                                            {
                                                              "Type": "Button",
                                                              "Id": "sy_btn_continual",
                                                              "Text": "Continual Expansion",
                                                              "Classes": [
                                                                "ps-option"
                                                              ],
                                                              "Command": "core.shipyard_select_upgrade_type",
                                                              "CommandPayload": {
                                                                "upgradeType": 8
                                                              }
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "Type": "StackPanel",
                                                      "Id": "sy_active_activity",
                                                      "Orientation": "Vertical",
                                                      "Gap": 6,
                                                      "IsVisible": false,
                                                      "Children": [
                                                        {
                                                          "Type": "Grid",
                                                          "ColumnDefinitions": [
                                                            "Auto",
                                                            "1fr"
                                                          ],
                                                          "Children": [
                                                            {
                                                              "Type": "StackPanel",
                                                              "Orientation": "Horizontal",
                                                              "Gap": 6,
                                                              "Grid.Column": 0,
                                                              "VerticalAlignment": "Center",
                                                              "Children": [
                                                                {
                                                                  "Type": "Label",
                                                                  "Id": "sy_activity_badge",
                                                                  "Classes": [
                                                                    "ps-badge"
                                                                  ],
                                                                  "Text": ""
                                                                },
                                                                {
                                                                  "Type": "Button",
                                                                  "Id": "btn_sy_pause_activity",
                                                                  "Text": "Pause",
                                                                  "Style": "Small",
                                                                  "Command": "core.shipyard.pause"
                                                                },
                                                                {
                                                                  "Type": "Button",
                                                                  "Id": "btn_sy_cancel_activity",
                                                                  "Text": "Cancel",
                                                                  "Style": "Danger",
                                                                  "Classes": [
                                                                    "ps-btn--small"
                                                                  ],
                                                                  "Command": "core.shipyard.cancel_activity"
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "Type": "StackPanel",
                                                              "Orientation": "Horizontal",
                                                              "Gap": 6,
                                                              "Grid.Column": 1,
                                                              "VerticalAlignment": "Center",
                                                              "Margin": "0 0 0 16",
                                                              "Children": [
                                                                {
                                                                  "Type": "ProgressBar",
                                                                  "Id": "sy_activity_progress",
                                                                  "Value": 0,
                                                                  "Variant": "default"
                                                                },
                                                                {
                                                                  "Type": "DateTime",
                                                                  "Id": "sy_activity_datetime",
                                                                  "Mode": "date",
                                                                  "Compact": true,
                                                                  "ShowPeriod": false,
                                                                  "ShowBorder": false
                                                                },
                                                                {
                                                                  "Type": "Label",
                                                                  "Id": "sy_activity_separator",
                                                                  "Text": "|",
                                                                  "Classes": [
                                                                    "ps-text-muted"
                                                                  ]
                                                                },
                                                                {
                                                                  "Type": "Label",
                                                                  "Id": "sy_activity_eta",
                                                                  "Classes": [
                                                                    "ps-eta-value"
                                                                  ],
                                                                  "Text": ""
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "Type": "StackPanel",
                                                      "Id": "sy_capacity_row",
                                                      "Orientation": "Horizontal",
                                                      "Gap": 8,
                                                      "IsVisible": false,
                                                      "Children": [
                                                        {
                                                          "Type": "Label",
                                                          "Text": "Amount (tons)",
                                                          "VerticalAlignment": "Center"
                                                        },
                                                        {
                                                          "Type": "Input",
                                                          "Id": "sy_capacity_amount",
                                                          "InputType": "number",
                                                          "Min": 1,
                                                          "Step": 1,
                                                          "Command": "core.shipyard_set_capacity_amount",
                                                          "CommitOnInput": true,
                                                          "Width": "120",
                                                          "Placeholder": "0"
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "Type": "DataGrid",
                                                      "Id": "sy_retool_class_grid",
                                                      "Width": "100%",
                                                      "Height": "200px",
                                                      "Compact": true,
                                                      "ShowSearch": true,
                                                      "SearchPlaceholder": "Filter classes...",
                                                      "EnableVerticalScroll": true,
                                                      "UseZebraStriping": true,
                                                      "SelectionMode": "Single",
                                                      "AllowSorting": true,
                                                      "OnSelectionChanged": "core.shipyard_select_retool_class",
                                                      "IsVisible": false,
                                                      "Columns": [
                                                        {
                                                          "Header": "Class Name",
                                                          "Field": "class_name",
                                                          "Flex": 3
                                                        },
                                                        {
                                                          "Header": "Hull",
                                                          "Field": "hull",
                                                          "Flex": 2
                                                        },
                                                        {
                                                          "Header": "Size",
                                                          "Field": "size_tons",
                                                          "Width": "70px",
                                                          "Align": "Right"
                                                        },
                                                        {
                                                          "Header": "Role",
                                                          "Field": "role",
                                                          "Width": "90px"
                                                        },
                                                        {
                                                          "Header": "Cost (BP)",
                                                          "Field": "build_cost",
                                                          "Width": "80px",
                                                          "Align": "Right"
                                                        }
                                                      ],
                                                      "Rows": []
                                                    },
                                                    {
                                                      "Type": "Alert",
                                                      "Id": "sy_retool_first_hint",
                                                      "IsVisible": false,
                                                      "Severity": "Info",
                                                      "Message": "First retool \u2014 this activity will complete instantly, and the shipyard will be ready to build ships of the selected class.",
                                                      "IsDismissible": false
                                                    },
                                                    {
                                                      "Type": "Panel",
                                                      "Id": "sy_retool_no_classes",
                                                      "IsVisible": false,
                                                      "Classes": [
                                                        "ps-panel--warning"
                                                      ],
                                                      "Children": [
                                                        {
                                                          "Type": "Label",
                                                          "Text": "No classes available to retool to."
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "Type": "StackPanel",
                                                      "Id": "sy_continual_row",
                                                      "Orientation": "Horizontal",
                                                      "Gap": 8,
                                                      "IsVisible": false,
                                                      "Children": [
                                                        {
                                                          "Type": "Label",
                                                          "Text": "Target (tons)",
                                                          "VerticalAlignment": "Center"
                                                        },
                                                        {
                                                          "Type": "Input",
                                                          "Id": "sy_continual_target",
                                                          "InputType": "number",
                                                          "Min": 1,
                                                          "Step": 1,
                                                          "Command": "core.shipyard_set_target_capacity",
                                                          "CommitOnInput": true,
                                                          "Width": "120",
                                                          "Placeholder": "0"
                                                        },
                                                        {
                                                          "Type": "Label",
                                                          "Id": "sy_continual_hint",
                                                          "Text": " ",
                                                          "Width": "auto",
                                                          "Classes": [
                                                            "ps-text-secondary"
                                                          ],
                                                          "FontSize": "11",
                                                          "VerticalAlignment": "Center"
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "Type": "DataGrid",
                                                  "Id": "sy_activity_cost_grid",
                                                  "Width": "100%",
                                                  "Height": "Auto",
                                                  "SelectionMode": "None",
                                                  "AllowSorting": false,
                                                  "UseZebraStriping": true,
                                                  "Columns": [
                                                    {
                                                      "Header": "Resource",
                                                      "Field": "mineral",
                                                      "Flex": 2,
                                                      "CellType": "mineralName"
                                                    },
                                                    {
                                                      "Header": "Required",
                                                      "Field": "required",
                                                      "Flex": 1,
                                                      "Align": "Right"
                                                    },
                                                    {
                                                      "Header": "Available",
                                                      "Field": "available",
                                                      "Flex": 1,
                                                      "Align": "Right"
                                                    }
                                                  ],
                                                  "Rows": []
                                                },
                                                {
                                                  "Type": "Button",
                                                  "Id": "btn_sy_activity_apply",
                                                  "HorizontalAlignment": "Center",
                                                  "Text": "Set Activity",
                                                  "Style": "Success",
                                                  "Classes": [
                                                    "ps-btn--xlarge"
                                                  ],
                                                  "Command": "client.shipyard.apply_activity"
                                                },
                                                {
                                                  "Type": "Separator",
                                                  "Id": "sy_activity_task_separator",
                                                  "Variant": "subtle"
                                                },
                                                {
                                                  "Type": "StackPanel",
                                                  "Id": "sy_task_section",
                                                  "Orientation": "Vertical",
                                                  "Gap": 8,
                                                  "Children": [
                                                    {
                                                      "Type": "Grid",
                                                      "ColumnDefinitions": [
                                                        "1fr",
                                                        "Auto"
                                                      ],
                                                      "VerticalAlignment": "Center",
                                                      "Children": [
                                                        {
                                                          "Type": "Label",
                                                          "Grid.Column": 0,
                                                          "Text": "Task",
                                                          "Style": "Heading4",
                                                          "HorizontalAlignment": "Left",
                                                          "VerticalAlignment": "Center"
                                                        },
                                                        {
                                                          "Type": "StackPanel",
                                                          "Id": "sy_task_type_buttons",
                                                          "Orientation": "Horizontal",
                                                          "Grid.Column": 1,
                                                          "Classes": [
                                                            "ps-option-group"
                                                          ],
                                                          "Children": [
                                                            {
                                                              "Type": "Button",
                                                              "Id": "btn_sy_task_build",
                                                              "Text": "Build",
                                                              "Classes": [
                                                                "ps-option"
                                                              ],
                                                              "Command": "client.shipyard.select_task_type_inline",
                                                              "CommandPayload": {
                                                                "value": 0
                                                              }
                                                            },
                                                            {
                                                              "Type": "Button",
                                                              "Id": "btn_sy_task_repair",
                                                              "Text": "Repair",
                                                              "Classes": [
                                                                "ps-option"
                                                              ],
                                                              "Command": "client.shipyard.select_task_type_inline",
                                                              "CommandPayload": {
                                                                "value": 1
                                                              }
                                                            },
                                                            {
                                                              "Type": "Button",
                                                              "Id": "btn_sy_task_refit",
                                                              "Text": "Refit",
                                                              "Classes": [
                                                                "ps-option"
                                                              ],
                                                              "Command": "client.shipyard.select_task_type_inline",
                                                              "CommandPayload": {
                                                                "value": 2
                                                              }
                                                            },
                                                            {
                                                              "Type": "Button",
                                                              "Id": "btn_sy_task_scrap",
                                                              "Text": "Scrap",
                                                              "Classes": [
                                                                "ps-option"
                                                              ],
                                                              "Command": "client.shipyard.select_task_type_inline",
                                                              "CommandPayload": {
                                                                "value": 3
                                                              }
                                                            },
                                                            {
                                                              "Type": "Button",
                                                              "Id": "btn_sy_task_autorefit",
                                                              "Text": "Auto Refit",
                                                              "Classes": [
                                                                "ps-option"
                                                              ],
                                                              "Command": "client.shipyard.select_task_type_inline",
                                                              "CommandPayload": {
                                                                "value": 4
                                                              }
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "Type": "Button",
                                                      "Id": "btn_sy_task_form_create",
                                                      "HorizontalAlignment": "Center",
                                                      "Text": "Create Task",
                                                      "Style": "Success",
                                                      "Classes": [
                                                        "ps-btn--xlarge"
                                                      ],
                                                      "Command": "client.shipyard.create_task_inline"
                                                    },
                                                    {
                                                      "Type": "StackPanel",
                                                      "Id": "sy_task_form",
                                                      "Orientation": "Vertical",
                                                      "Gap": 8,
                                                      "IsVisible": false,
                                                      "Children": [
                                                        {
                                                          "Type": "StackPanel",
                                                          "Id": "sy_task_form_class",
                                                          "Orientation": "Horizontal",
                                                          "Gap": 8,
                                                          "Children": [
                                                            {
                                                              "Type": "Label",
                                                              "Text": "Class",
                                                              "Width": "60",
                                                              "HorizontalAlignment": "Right",
                                                              "VerticalAlignment": "Center"
                                                            },
                                                            {
                                                              "Type": "Select",
                                                              "Id": "sy_task_class_select",
                                                              "Width": "100%",
                                                              "Placeholder": "Select class",
                                                              "Command": "core.shipyard_select_task_class",
                                                              "Options": []
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "Type": "StackPanel",
                                                          "Id": "sy_task_form_ship",
                                                          "Orientation": "Horizontal",
                                                          "Gap": 8,
                                                          "Children": [
                                                            {
                                                              "Type": "Label",
                                                              "Text": "Ship",
                                                              "Width": "60",
                                                              "HorizontalAlignment": "Right",
                                                              "VerticalAlignment": "Center"
                                                            },
                                                            {
                                                              "Type": "Select",
                                                              "Id": "sy_task_ship_select",
                                                              "Width": "100%",
                                                              "Placeholder": "Select ship",
                                                              "Command": "core.shipyard_select_task_ship",
                                                              "Options": []
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "Type": "StackPanel",
                                                          "Id": "sy_task_form_fleet",
                                                          "Orientation": "Horizontal",
                                                          "Gap": 8,
                                                          "Children": [
                                                            {
                                                              "Type": "Label",
                                                              "Text": "Fleet",
                                                              "Width": "60",
                                                              "HorizontalAlignment": "Right",
                                                              "VerticalAlignment": "Center"
                                                            },
                                                            {
                                                              "Type": "Select",
                                                              "Id": "sy_task_fleet_select",
                                                              "Width": "100%",
                                                              "Placeholder": "Select fleet",
                                                              "Command": "core.shipyard_select_task_fleet",
                                                              "Options": []
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "Type": "StackPanel",
                                                          "Id": "sy_task_form_name",
                                                          "Orientation": "Horizontal",
                                                          "Gap": 8,
                                                          "Children": [
                                                            {
                                                              "Type": "Label",
                                                              "Text": "Name",
                                                              "Width": "60",
                                                              "HorizontalAlignment": "Right",
                                                              "VerticalAlignment": "Center"
                                                            },
                                                            {
                                                              "Type": "Input",
                                                              "Id": "sy_task_name_input",
                                                              "Width": "100%",
                                                              "Placeholder": "Ship Name (Leave blank to auto-name)",
                                                              "ShowClearButton": true,
                                                              "Command": "core.shipyard_input_task_name"
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "Type": "DataGrid",
                                                          "Id": "sy_task_cost_grid",
                                                          "Width": "100%",
                                                          "Height": "Auto",
                                                          "SelectionMode": "None",
                                                          "AllowSorting": false,
                                                          "UseZebraStriping": true,
                                                          "Columns": [
                                                            {
                                                              "Header": "Resource",
                                                              "Field": "mineral",
                                                              "Flex": 2,
                                                              "CellType": "mineralName"
                                                            },
                                                            {
                                                              "Header": "Required",
                                                              "Field": "required",
                                                              "Flex": 1,
                                                              "Align": "Right"
                                                            },
                                                            {
                                                              "Header": "Available",
                                                              "Field": "available",
                                                              "Flex": 1,
                                                              "Align": "Right"
                                                            }
                                                          ],
                                                          "Rows": []
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "Type": "StackPanel",
                                              "Id": "sy_tasks_section",
                                              "Grid.Column": 1,
                                              "Orientation": "Vertical",
                                              "Gap": 8,
                                              "Children": [
                                                {
                                                  "Type": "Label",
                                                  "Text": "Current Tasks",
                                                  "Style": "Heading4"
                                                },
                                                {
                                                  "Type": "DataGrid",
                                                  "Id": "datagrid_shipyard_detail_tasks",
                                                  "Width": "100%",
                                                  "Height": "Auto",
                                                  "HorizontalAlignment": "Stretch",
                                                  "SelectionMode": "Single",
                                                  "OnSelectionChanged": "core.shipyard_task_selection_changed",
                                                  "AllowSorting": false,
                                                  "UseZebraStriping": true,
                                                  "Columns": [
                                                    {
                                                      "Header": "Task / Ship",
                                                      "Field": "task_ship",
                                                      "Width": "200px",
                                                      "CellType": "subtitleText"
                                                    },
                                                    {
                                                      "Header": "Progress",
                                                      "Field": "progress",
                                                      "Width": "100px",
                                                      "CellType": "progressPercent"
                                                    },
                                                    {
                                                      "Header": "ETA",
                                                      "Field": "eta",
                                                      "Width": "120px",
                                                      "CellType": "eta",
                                                      "Align": "Right"
                                                    }
                                                  ],
                                                  "Rows": []
                                                },
                                                {
                                                  "Type": "Alert",
                                                  "Id": "sy_no_tasks_info",
                                                  "IsVisible": false,
                                                  "Severity": "Info",
                                                  "Message": "No tasks in progress.",
                                                  "IsDismissible": false
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "Type": "Modal",
                              "Id": "modal_sm_create_shipyard",
                              "Title": "Add Shipyard",
                              "IsVisible": false,
                              "CloseCommand": "core.shipyard.sm_cancel_create",
                              "Size": "Small",
                              "Children": [
                                {
                                  "Type": "StackPanel",
                                  "Orientation": "Vertical",
                                  "Gap": 12,
                                  "Width": "100%",
                                  "Children": [
                                    {
                                      "Type": "Label",
                                      "Text": "Select the type of shipyard to create."
                                    },
                                    {
                                      "Type": "StackPanel",
                                      "Orientation": "Vertical",
                                      "Gap": 4,
                                      "Width": "100%",
                                      "Children": [
                                        {
                                          "Type": "Button",
                                          "Id": "btn_sm_create_naval",
                                          "Text": "Naval Shipyard",
                                          "Command": "core.shipyard.sm_create",
                                          "CommandPayload": 0,
                                          "Width": "100%"
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "btn_sm_create_commercial",
                                          "Text": "Commercial Shipyard",
                                          "Command": "core.shipyard.sm_create",
                                          "CommandPayload": 1,
                                          "Width": "100%"
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "btn_sm_create_repair",
                                          "Text": "Repair Shipyard",
                                          "Command": "core.shipyard.sm_create",
                                          "CommandPayload": 2,
                                          "Width": "100%"
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "FooterChildren": [
                                {
                                  "Type": "StackPanel",
                                  "Orientation": "Horizontal",
                                  "Gap": 8,
                                  "HorizontalAlignment": "Right",
                                  "Children": [
                                    {
                                      "Type": "Button",
                                      "Text": "Cancel",
                                      "Command": "core.shipyard.sm_cancel_create"
                                    }
                                  ]
                                }
                              ]
                            }
                          ],
                          "Classes": [
                            "borderless"
                          ]
                        }
                      ]
                    },
                    {
                      "Type": "TabItem",
                      "Id": "tabitem_colony_shipyard_tasks",
                      "Title": "SY Tasks",
                      "Children": [
                        {
                          "Type": "Panel",
                          "Id": "tab_sytasks_no_colony",
                          "Width": "100%",
                          "Height": "100%",
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch",
                          "Bindings": [
                            {
                              "TargetProperty": "IsVisible",
                              "Path": "ColonyManagementUiStateComponent.NoColonySelected"
                            }
                          ],
                          "Children": [
                            {
                              "Type": "Grid",
                              "Width": "100%",
                              "Height": "100%",
                              "HorizontalAlignment": "Stretch",
                              "VerticalAlignment": "Stretch",
                              "ColumnDefinitions": [
                                "1fr"
                              ],
                              "RowDefinitions": [
                                "1fr"
                              ],
                              "Children": [
                                {
                                  "Type": "Alert",
                                  "Id": "alert_select_colony_hint_shipyard_tasks",
                                  "Grid.Column": 0,
                                  "Grid.Row": 0,
                                  "HorizontalAlignment": "Center",
                                  "VerticalAlignment": "Center",
                                  "Severity": "Info",
                                  "IsDismissible": false,
                                  "Message": "Select a colony to view shipyard tasks."
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "Type": "Panel",
                          "Id": "tab_sytasks_content",
                          "Width": "100%",
                          "Height": "100%",
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch",
                          "Bindings": [
                            {
                              "TargetProperty": "IsVisible",
                              "Path": "ColonyManagementUiStateComponent.ShipyardTasksTabVisible"
                            }
                          ],
                          "Children": [
                            {
                              "Type": "Grid",
                              "Id": "shipyard_tasks_layout",
                              "Width": "100%",
                              "Height": "100%",
                              "HorizontalAlignment": "Stretch",
                              "VerticalAlignment": "Stretch",
                              "RowDefinitions": [
                                "1fr",
                                "Auto"
                              ],
                              "ColumnDefinitions": [
                                "1fr"
                              ],
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "DataGrid",
                                  "Id": "datagrid_shipyard_tasks",
                                  "Grid.Row": 0,
                                  "Grid.Column": 0,
                                  "Width": "100%",
                                  "Height": "100%",
                                  "HorizontalAlignment": "Stretch",
                                  "VerticalAlignment": "Stretch",
                                  "SelectionMode": "Single",
                                  "OnSelectionChanged": "core.shipyard_task_selection_changed",
                                  "AllowSorting": false,
                                  "UseZebraStriping": true,
                                  "AllowReorder": true,
                                  "ShowDragHandle": true,
                                  "OnRowReordered": "core.shipyard.reorder_tasks",
                                  "Columns": [
                                    {
                                      "Header": "Shipyard",
                                      "Field": "shipyard",
                                      "Width": "180px"
                                    },
                                    {
                                      "Header": "Task",
                                      "Field": "task",
                                      "Width": "180px"
                                    },
                                    {
                                      "Header": "Ship",
                                      "Field": "ship",
                                      "Width": "120px"
                                    },
                                    {
                                      "Header": "Fleet",
                                      "Field": "fleet",
                                      "Width": "120px"
                                    },
                                    {
                                      "Header": "ETA",
                                      "Field": "eta",
                                      "Width": "120px",
                                      "CellType": "eta",
                                      "Align": "Right"
                                    },
                                    {
                                      "Header": "Progress",
                                      "Field": "progress",
                                      "Width": "80px",
                                      "CellType": "progressPercent",
                                      "Align": "Right"
                                    },
                                    {
                                      "Header": "Rate",
                                      "Field": "rate",
                                      "Width": "80px",
                                      "Align": "Right"
                                    }
                                  ],
                                  "Rows": []
                                },
                                {
                                  "Type": "Grid",
                                  "Id": "panel_sytasks_actions",
                                  "Grid.Row": 1,
                                  "Grid.Column": 0,
                                  "Margin": "8px 0 0 0",
                                  "ColumnDefinitions": [
                                    "1fr",
                                    "Auto"
                                  ],
                                  "RowDefinitions": [
                                    "Auto"
                                  ],
                                  "Gap": 8,
                                  "Children": [
                                    {
                                      "Type": "StackPanel",
                                      "Id": "shipyard_task_buttons",
                                      "Grid.Row": 0,
                                      "Grid.Column": 0,
                                      "Orientation": "Horizontal",
                                      "Gap": 8,
                                      "Children": [
                                        {
                                          "Type": "Button",
                                          "Id": "btn_shipyard_delete_task",
                                          "Text": "Delete Task",
                                          "Style": "Warning",
                                          "Command": "core.shipyard.delete_task"
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "btn_shipyard_rename_task_ship",
                                          "Text": "Rename Ship...",
                                          "Command": "client.shipyard.open_rename_task_ship"
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "btn_shipyard_select_name",
                                          "Text": "Select Name...",
                                          "Command": "core.shipyard.select_name"
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "btn_shipyard_pause_task",
                                          "Text": "Pause Task",
                                          "Command": "client.shipyard.pause_task"
                                        }
                                      ]
                                    },
                                    {
                                      "Type": "RadioGroup",
                                      "Id": "radio_shipyard_task_sort",
                                      "Grid.Row": 0,
                                      "Grid.Column": 1,
                                      "Orientation": "Horizontal",
                                      "Command": "core.shipyard_toggle_task_sort",
                                      "Items": [
                                        {
                                          "Label": "Sort by Size",
                                          "Value": "size"
                                        },
                                        {
                                          "Label": "Sort by Date",
                                          "Value": "date"
                                        }
                                      ],
                                      "SelectedValue": "size",
                                      "Bindings": [
                                        {
                                          "TargetProperty": "SelectedValue",
                                          "Path": "ColonyManagementUiStateComponent.ShipyardTaskSortMode"
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ],
                          "Classes": [
                            "borderless"
                          ]
                        }
                      ]
                    },
                    {
                      "Type": "TabItem",
                      "Id": "tabitem_colony_research",
                      "Title": "Research",
                      "Children": [
                        {
                          "Type": "Panel",
                          "Id": "tab_research_no_colony",
                          "Width": "100%",
                          "Height": "100%",
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch",
                          "Bindings": [
                            {
                              "TargetProperty": "IsVisible",
                              "Path": "ColonyManagementUiStateComponent.NoColonySelected"
                            }
                          ],
                          "Children": [
                            {
                              "Type": "Grid",
                              "Width": "100%",
                              "Height": "100%",
                              "HorizontalAlignment": "Stretch",
                              "VerticalAlignment": "Stretch",
                              "ColumnDefinitions": [
                                "1fr"
                              ],
                              "RowDefinitions": [
                                "1fr"
                              ],
                              "Children": [
                                {
                                  "Type": "Alert",
                                  "Id": "alert_select_colony_hint_research",
                                  "Grid.Column": 0,
                                  "Grid.Row": 0,
                                  "HorizontalAlignment": "Center",
                                  "VerticalAlignment": "Center",
                                  "Severity": "Info",
                                  "IsDismissible": false,
                                  "Message": "Select a colony to view research."
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "Type": "Panel",
                          "Id": "tab_research",
                          "Width": "100%",
                          "Height": "100%",
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch",
                          "Children": [
                            {
                              "Type": "StackPanel",
                              "Id": "research_main_layout",
                              "Orientation": "Vertical",
                              "Width": "100%",
                              "Height": "100%",
                              "Gap": 8,
                              "Children": [
{ "Type": "Anchor", "Id": "anchor_research_rail", "AnchorId": "research.rail" },
                                {
                                  "Type": "DataGrid",
                                  "Id": "research_projects_grid",
                                  "Width": "100%",
                                  "Flex": "1",
                                  "SelectionMode": "Single",
                                  "UseZebraStriping": true,
                                  "EnableVerticalScroll": true,
                                  "AllowReorder": true,
                                  "ShowDragHandle": true,
                                  "OnSelectionChanged": "core.research.merged_selection_changed",
                                  "OnRowReordered": "core.research.reorder_merged_queue",
                                  "Columns": [
                                    {
                                      "Header": "Field",
                                      "Field": "field",
                                      "Width": "auto"
                                    },
                                    {
                                      "Header": "Project",
                                      "Field": "research_project",
                                      "Width": "1fr"
                                    },
                                    {
                                      "Header": "Leader",
                                      "Field": "project_leader",
                                      "Width": "auto"
                                    },
                                    {
                                      "Header": "Bonus",
                                      "Field": "bonus",
                                      "Width": "auto",
                                      "Align": "Right"
                                    },
                                    {
                                      "Header": "Mod",
                                      "Field": "bonus_mod",
                                      "Width": "auto",
                                      "Align": "Right"
                                    },
                                    {
                                      "Header": "Labs",
                                      "Field": "labs",
                                      "Width": "auto",
                                      "Align": "Center"
                                    },
                                    {
                                      "Header": "Annual RP",
                                      "Field": "annual_rp",
                                      "Width": "auto",
                                      "Align": "Right",
                                      "CellType": "researchPoint"
                                    },
                                    {
                                      "Header": "RP Remaining",
                                      "Field": "rp_remaining",
                                      "Width": "auto",
                                      "Align": "Right",
                                      "CellType": "researchPoint"
                                    },
                                    {
                                      "Header": "Completion",
                                      "Field": "completion_date",
                                      "Width": "auto",
                                      "Align": "Right",
                                      "CellType": "eta"
                                    },
                                    {
                                      "Header": "Status",
                                      "Field": "status",
                                      "Width": "auto"
                                    }
                                  ],
                                  "Rows": []
                                },
                                {
                                  "Type": "Grid",
                                  "Id": "research_controls_row",
                                  "Margin": "8px 0 0 0",
                                  "ColumnDefinitions": [
                                    "1fr",
                                    "1fr"
                                  ],
                                  "RowDefinitions": [
                                    "Auto"
                                  ],
                                  "Children": [
                                    {
                                      "Type": "StackPanel",
                                      "Id": "research_controls_left",
                                      "Grid.Column": 0,
                                      "Orientation": "Horizontal",
                                      "VerticalAlignment": "Center",
                                      "Gap": 8,
                                      "Children": [
                                        {
                                          "Type": "Select",
                                          "Id": "select_research_category",
                                          "Width": "200",
                                          "VerticalAlignment": "Center",
                                          "Options": [],
                                          "Placeholder": "All Fields",
                                          "IsSearchable": true,
                                          "Command": "core.research_category_changed",
                                          "Bindings": [
                                            {
                                              "TargetProperty": "Value",
                                              "Path": "ColonyManagementUiStateComponent.SelectedResearchCategoryId"
                                            }
                                          ]
                                        },
                                        {
                                          "Type": "RadioGroup",
                                          "Id": "radio_matching_scientists",
                                          "Orientation": "Horizontal",
                                          "Command": "core.research_matching_scientists_toggled",
                                          "Items": [
                                            {
                                              "Label": "All Scientists",
                                              "Value": "all"
                                            },
                                            {
                                              "Label": "Matching Only",
                                              "Value": "matching"
                                            }
                                          ],
                                          "SelectedValue": "all",
                                          "Bindings": [
                                            {
                                              "TargetProperty": "SelectedValue",
                                              "Path": "ColonyManagementUiStateComponent.MatchingScientistsFilter"
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "Type": "StackPanel",
                                      "Id": "research_controls_right",
                                      "Grid.Column": 1,
                                      "Orientation": "Horizontal",
                                      "VerticalAlignment": "Center",
                                      "Gap": 8,
                                      "Children": [
                                        {
                                          "Type": "Label",
                                          "Text": "Assign Research Facilities:",
                                          "Classes": [
                                            "ps-text-secondary"
                                          ],
                                          "VerticalAlignment": "Center"
                                        },
                                        {
                                          "Type": "Input",
                                          "Id": "input_assign_facilities",
                                          "InputType": "number",
                                          "Width": "56",
                                          "VerticalAlignment": "Center",
                                          "Placeholder": "0",
                                          "Min": 0,
                                          "Step": 1,
                                          "Command": "core.research_assign_facilities_changed",
                                          "CommitOnInput": true,
                                          "Bindings": [
                                            {
                                              "TargetProperty": "Value",
                                              "Path": "ColonyManagementUiStateComponent.AssignResearchFacilities"
                                            }
                                          ]
                                        },
                                        {
                                          "Type": "Label",
                                          "Text": "Available Research Facilities:",
                                          "Classes": [
                                            "ps-text-secondary"
                                          ],
                                          "VerticalAlignment": "Center"
                                        },
                                        {
                                          "Type": "Label",
                                          "Id": "label_facilities_available",
                                          "Text": "0",
                                          "Classes": [
                                            "ps-data"
                                          ],
                                          "VerticalAlignment": "Center",
                                          "Bindings": [
                                            {
                                              "TargetProperty": "Text",
                                              "Path": "ColonyManagementUiStateComponent.ResearchFacilitiesAvailable"
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "Type": "Grid",
                                  "Id": "research_tech_scientist_grid",
                                  "Width": "100%",
                                  "Flex": "1",
                                  "ColumnDefinitions": [
                                    "1fr",
                                    "1fr"
                                  ],
                                  "Gap": 8,
                                  "Children": [
                                    {
                                      "Type": "DataGrid",
                                      "Id": "research_available_projects_grid",
                                      "Grid.Column": 0,
                                      "Width": "100%",
                                      "Height": "100%",
                                      "ShowSearch": true,
                                      "SearchPlaceholder": "Search technologies...",
                                      "SelectionMode": "Single",
                                      "AllowSorting": true,
                                      "EnableVerticalScroll": true,
                                      "UseZebraStriping": true,
                                      "OnSelectionChanged": "core.research_available_selection_changed",
                                      "Columns": [
                                        {
                                          "Header": "Technology",
                                          "Field": "technology",
                                          "Width": "auto"
                                        },
                                        {
                                          "Header": "Research Cost",
                                          "Field": "research_cost",
                                          "SortField": "research_cost_value",
                                          "Width": "auto",
                                          "Align": "Right",
                                          "CellType": "researchPoint"
                                        }
                                      ],
                                      "Rows": []
                                    },
                                    {
                                      "Type": "DataGrid",
                                      "Id": "research_available_scientists_grid",
                                      "Grid.Column": 1,
                                      "Width": "100%",
                                      "Height": "100%",
                                      "ShowSearch": true,
                                      "SearchPlaceholder": "Search scientists...",
                                      "SelectionMode": "Single",
                                      "AllowSorting": true,
                                      "EnableVerticalScroll": true,
                                      "UseZebraStriping": true,
                                      "OnSelectionChanged": "core.research_available_scientists_selection_changed",
                                      "Columns": [
                                        {
                                          "Header": "Scientist",
                                          "Field": "scientist",
                                          "Width": "auto"
                                        },
                                        {
                                          "Header": "Specialization",
                                          "Field": "specialization",
                                          "Width": "auto"
                                        },
                                        {
                                          "Header": "Bonus",
                                          "Field": "bonus",
                                          "Width": "auto",
                                          "Align": "Right"
                                        },
                                        {
                                          "Header": "Max Labs",
                                          "Field": "max_labs",
                                          "Width": "auto",
                                          "Align": "Center"
                                        }
                                      ],
                                      "Rows": []
                                    }
                                  ]
                                },
                                {
                                  "Type": "Grid",
                                  "Id": "research_footer_row",
                                  "Width": "100%",
                                  "ColumnDefinitions": [
                                    "Auto",
                                    "1fr",
                                    "Auto"
                                  ],
                                  "Gap": 8,
                                  "Children": [
                                    {
                                      "Type": "StackPanel",
                                      "Id": "research_footer_actions",
                                      "Grid.Column": 0,
                                      "Orientation": "Horizontal",
                                      "Gap": 8,
                                      "Children": [
                                        {
                                          "Type": "Button",
                                          "Id": "btn_create_project",
                                          "Text": "Create Project",
                                          "Style": "Primary",
                                          "IsEnabled": false,
                                          "Command": "core.research.create_project"
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "btn_add_to_queue",
                                          "Text": "Add to Queue",
                                          "IsEnabled": false,
                                          "Command": "core.research.add_to_queue"
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "btn_research_sm_instant",
                                          "Text": "SM Instant",
                                          "Style": "SpaceMaster",
                                          "IsVisible": false,
                                          "Command": "core.research.sm_instant"
                                        }
                                      ]
                                    },
                                    {
                                      "Type": "StackPanel",
                                      "Id": "research_footer_toggles",
                                      "Grid.Column": 2,
                                      "Orientation": "Horizontal",
                                      "Gap": 8,
                                      "HorizontalAlignment": "Right",
                                      "Children": [
                                        {
                                          "Type": "RadioGroup",
                                          "Id": "research_filter_mode_group",
                                          "Style": "segmented",
                                          "Orientation": "Horizontal",
                                          "Items": [
                                            {
                                              "Label": "Available",
                                              "Value": "available"
                                            },
                                            {
                                              "Label": "Completed",
                                              "Value": "completed"
                                            }
                                          ],
                                          "SelectedValue": "available",
                                          "Command": "core.research_filter_mode_changed",
                                          "Bindings": [
                                            {
                                              "TargetProperty": "SelectedValue",
                                              "Path": "ColonyManagementUiStateComponent.ResearchFilterMode"
                                            }
                                          ]
                                        },
                                        {
                                          "Type": "RadioGroup",
                                          "Id": "research_view_mode_group",
                                          "Style": "segmented",
                                          "Orientation": "Horizontal",
                                          "Items": [
                                            {
                                              "Label": "Colony",
                                              "Value": "population"
                                            },
                                            {
                                              "Label": "Empire",
                                              "Value": "empire"
                                            }
                                          ],
                                          "SelectedValue": "population",
                                          "Command": "core.research.view_mode_changed",
                                          "Bindings": [
                                            {
                                              "TargetProperty": "SelectedValue",
                                              "Path": "ColonyManagementUiStateComponent.ResearchViewMode"
                                            }
                                          ]
                                        },
                                        {
                                          "Type": "RadioGroup",
                                          "Id": "research_display_mode_group",
                                          "Style": "segmented",
                                          "Orientation": "Horizontal",
                                          "Items": [
                                            {
                                              "Label": "Normal",
                                              "Value": "normal"
                                            },
                                            {
                                              "Label": "Projects Only",
                                              "Value": "projects_only"
                                            }
                                          ],
                                          "SelectedValue": "normal",
                                          "Command": "core.research.display_mode_changed",
                                          "Bindings": [
                                            {
                                              "TargetProperty": "SelectedValue",
                                              "Path": "ColonyManagementUiStateComponent.ResearchDisplayMode"
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "Type": "Modal",
                              "Id": "modal_research_cancel_confirm",
                              "IsVisible": false,
                              "Title": "Cancel Research Project",
                              "BadgeText": "Warning",
                              "BadgeVariant": "warn",
                              "AccentVariant": "danger",
                              "DisplayMode": "Glow",
                              "BackdropVariant": "default",
                              "IsDismissible": true,
                              "CloseCommand": "core.research.cancel_cancel",
                              "Bindings": [
                                {
                                  "TargetProperty": "IsVisible",
                                  "Path": "ColonyManagementUiStateComponent.ResearchCancelConfirmVisible"
                                }
                              ],
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Id": "lbl_research_cancel_confirm_body",
                                  "Text": "Cancel this research project and remove its queue entries? Research progress will be lost.",
                                  "TextWrapping": "Wrap",
                                  "Classes": [
                                    "ps-text-secondary"
                                  ]
                                }
                              ],
                              "FooterChildren": [
                                {
                                  "Type": "StackPanel",
                                  "Id": "research_cancel_confirm_footer",
                                  "Orientation": "Horizontal",
                                  "Gap": 8,
                                  "HorizontalAlignment": "Right",
                                  "Children": [
                                    {
                                      "Type": "Button",
                                      "Id": "btn_research_cancel_keep",
                                      "Text": "Keep Project",
                                      "Command": "core.research.cancel_cancel"
                                    },
                                    {
                                      "Type": "Button",
                                      "Id": "btn_research_cancel_confirm",
                                      "Text": "Cancel Project",
                                      "Style": "Danger",
                                      "Command": "core.research.confirm_cancel"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "Type": "Modal",
                              "Id": "modal_research_remove_queue_confirm",
                              "IsVisible": false,
                              "Title": "Remove from Queue",
                              "BadgeText": "Warning",
                              "BadgeVariant": "warn",
                              "AccentVariant": "danger",
                              "DisplayMode": "Glow",
                              "BackdropVariant": "default",
                              "IsDismissible": true,
                              "CloseCommand": "core.research.cancel_remove_queue",
                              "Bindings": [
                                {
                                  "TargetProperty": "IsVisible",
                                  "Path": "ColonyManagementUiStateComponent.ResearchRemoveQueueConfirmVisible"
                                }
                              ],
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Id": "lbl_research_remove_queue_confirm_body",
                                  "Text": "Remove this technology from the research queue?",
                                  "TextWrapping": "Wrap",
                                  "Classes": [
                                    "ps-text-secondary"
                                  ]
                                }
                              ],
                              "FooterChildren": [
                                {
                                  "Type": "StackPanel",
                                  "Id": "research_remove_queue_confirm_footer",
                                  "Orientation": "Horizontal",
                                  "Gap": 8,
                                  "HorizontalAlignment": "Right",
                                  "Children": [
                                    {
                                      "Type": "Button",
                                      "Id": "btn_research_remove_queue_keep",
                                      "Text": "Keep in Queue",
                                      "Command": "core.research.cancel_remove_queue"
                                    },
                                    {
                                      "Type": "Button",
                                      "Id": "btn_research_remove_queue_confirm",
                                      "Text": "Remove",
                                      "Style": "Danger",
                                      "Command": "core.research.confirm_remove_queue"
                                    }
                                  ]
                                }
                              ]
                            }
                          ],
                          "Classes": [
                            "borderless"
                          ]
                        }
                      ]
                    },
                    {
                      "Type": "TabItem",
                      "Id": "tabitem_colony_gu_training",
                      "Title": "GU Training",
                      "Children": [
                        {
                          "Type": "Panel",
                          "Id": "tab_gu_training_no_colony",
                          "Width": "100%",
                          "Height": "100%",
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch",
                          "Bindings": [
                            {
                              "TargetProperty": "IsVisible",
                              "Path": "ColonyManagementUiStateComponent.NoColonySelected"
                            }
                          ],
                          "Children": [
                            {
                              "Type": "Grid",
                              "Width": "100%",
                              "Height": "100%",
                              "HorizontalAlignment": "Stretch",
                              "VerticalAlignment": "Stretch",
                              "ColumnDefinitions": [
                                "1fr"
                              ],
                              "RowDefinitions": [
                                "1fr"
                              ],
                              "Children": [
                                {
                                  "Type": "Alert",
                                  "Id": "alert_select_colony_hint_gu_training",
                                  "Grid.Column": 0,
                                  "Grid.Row": 0,
                                  "HorizontalAlignment": "Center",
                                  "VerticalAlignment": "Center",
                                  "Severity": "Info",
                                  "IsDismissible": false,
                                  "Message": "Select a colony to manage ground training."
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "Type": "Panel",
                          "Id": "tab_gu_training",
                          "Width": "100%",
                          "Height": "100%",
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch",
                          "Children": [
                            {
                              "Type": "Grid",
                              "Id": "gu_train_root",
                              "Width": "100%",
                              "Height": "100%",
                              "HorizontalAlignment": "Stretch",
                              "VerticalAlignment": "Stretch",
                              "ColumnDefinitions": [
                                "1fr"
                              ],
                              "RowDefinitions": [
                                "Auto",
                                "2*",
                                "Auto",
                                "*",
                                "Auto"
                              ],
                              "Children": [
                                {
                                  "Type": "StackPanel",
                                  "Orientation": "Horizontal",
                                  "Gap": 8,
                                  "Grid.Column": 0,
                                  "Grid.Row": 0,
                                  "Margin": "0 0 0 4px",
                                  "Children": [
                                    {
                                      "Type": "Label",
                                      "Text": "Training Capacity Available:",
                                      "Classes": [
                                        "ps-text-secondary"
                                      ],
                                      "VerticalAlignment": "Center"
                                    },
                                    {
                                      "Type": "Label",
                                      "Id": "lbl_gu_train_capacity_bp",
                                      "Text": "0 BP",
                                      "Classes": [
                                        "ps-data"
                                      ],
                                      "VerticalAlignment": "Center"
                                    },
                                    {
                                      "Type": "Label",
                                      "Text": "(",
                                      "Classes": [
                                        "ps-text-secondary"
                                      ],
                                      "VerticalAlignment": "Center"
                                    },
                                    {
                                      "Type": "Label",
                                      "Id": "lbl_gu_train_capacity_pct",
                                      "Text": "100%",
                                      "Classes": [
                                        "ps-data"
                                      ],
                                      "VerticalAlignment": "Center"
                                    },
                                    {
                                      "Type": "Label",
                                      "Text": ")",
                                      "Classes": [
                                        "ps-text-secondary"
                                      ],
                                      "VerticalAlignment": "Center"
                                    }
                                  ]
                                },
                                {
                                  "Type": "DataGrid",
                                  "Id": "gu_train_queue",
                                  "Grid.Column": 0,
                                  "Grid.Row": 1,
                                  "Width": "100%",
                                  "Height": "100%",
                                  "AllowSorting": false,
                                  "HeadersVisible": true,
                                  "UseZebraStriping": true,
                                  "SelectionMode": "Single",
                                  "AllowReorder": true,
                                  "ShowDragHandle": true,
                                  "OnRowReordered": "core.colony_ground_training_drag_reorder",
                                  "OnSelectionChanged": "core.colony_ground_training_select_task",
                                  "Columns": [
                                    {
                                      "Id": "template",
                                      "Field": "template",
                                      "Width": "1fr",
                                      "Header": "Unit Type"
                                    },
                                    {
                                      "Id": "name",
                                      "Field": "name",
                                      "Width": "1.2fr",
                                      "Header": "Formation Name"
                                    },
                                    {
                                      "Id": "bpCost",
                                      "Field": "bpCost",
                                      "Width": "0.8fr",
                                      "Header": "BP Cost",
                                      "CellType": "buildPoint",
                                      "Align": "Right"
                                    },
                                    {
                                      "Id": "allocation",
                                      "Field": "allocation",
                                      "Width": "0.6fr",
                                      "Header": "Allocation",
                                      "Align": "Right"
                                    },
                                    {
                                      "Id": "progress",
                                      "Field": "progress",
                                      "Width": "1fr",
                                      "Header": "Progress",
                                      "CellType": "progressPercent",
                                      "Align": "Right"
                                    },
                                    {
                                      "Id": "completion",
                                      "Field": "completion",
                                      "Width": "0.8fr",
                                      "Header": "Completion",
                                      "CellType": "eta",
                                      "Align": "Right"
                                    }
                                  ],
                                  "Rows": []
                                },
                                {
                                  "Type": "Grid",
                                  "Id": "gu_train_actions",
                                  "Grid.Column": 0,
                                  "Grid.Row": 2,
                                  "Margin": "8 8 8 0",
                                  "ColumnDefinitions": [
                                    "1fr",
                                    "Auto"
                                  ],
                                  "RowDefinitions": [
                                    "Auto"
                                  ],
                                  "Children": [
                                    {
                                      "Type": "StackPanel",
                                      "Grid.Column": 0,
                                      "Grid.Row": 0,
                                      "Orientation": "Horizontal",
                                      "Gap": 8,
                                      "Children": [
                                        {
                                          "Type": "Button",
                                          "Id": "gu_train_btn_rename",
                                          "Text": "Rename Task...",
                                          "Command": "core.colony_ground_training_open_rename"
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "gu_train_btn_up",
                                          "Text": "Up Queue",
                                          "Command": "core.colony_ground_training_move_up"
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "gu_train_btn_down",
                                          "Text": "Down Queue",
                                          "Command": "core.colony_ground_training_move_down"
                                        }
                                      ]
                                    },
                                    {
                                      "Type": "Button",
                                      "Id": "gu_train_btn_delete",
                                      "Grid.Column": 1,
                                      "Grid.Row": 0,
                                      "Text": "Delete Task",
                                      "Style": "Warning",
                                      "Command": "core.colony_ground_training_open_delete"
                                    }
                                  ]
                                },
                                {
                                  "Type": "DataGrid",
                                  "Id": "gu_train_templates",
                                  "Grid.Column": 0,
                                  "Grid.Row": 3,
                                  "Width": "100%",
                                  "Height": "100%",
                                  "Margin": "0 8 0 0",
                                  "AllowSorting": true,
                                  "HeadersVisible": true,
                                  "UseZebraStriping": true,
                                  "SelectionMode": "Single",
                                  "OnSelectionChanged": "core.colony_ground_training_select_template",
                                  "Columns": [
                                    {
                                      "Id": "abbr",
                                      "Field": "abbr",
                                      "Width": "0.5fr",
                                      "Header": "Abbr"
                                    },
                                    {
                                      "Id": "name",
                                      "Field": "name",
                                      "Width": "1.2fr",
                                      "Header": "Name"
                                    },
                                    {
                                      "Id": "units",
                                      "Field": "units",
                                      "Width": "0.5fr",
                                      "Header": "Units"
                                    },
                                    {
                                      "Id": "size",
                                      "Field": "size",
                                      "Width": "0.5fr",
                                      "Header": "Size"
                                    },
                                    {
                                      "Id": "cost",
                                      "Field": "cost",
                                      "Width": "0.5fr",
                                      "Header": "Cost"
                                    },
                                    {
                                      "Id": "hp",
                                      "Field": "hp",
                                      "Width": "0.5fr",
                                      "Header": "HP"
                                    },
                                    {
                                      "Id": "gsp",
                                      "Field": "gsp",
                                      "Width": "0.5fr",
                                      "Header": "GSP"
                                    },
                                    {
                                      "Id": "attributes",
                                      "Field": "attributes",
                                      "Width": "1fr",
                                      "Header": "Attributes"
                                    }
                                  ],
                                  "Rows": []
                                },
                                {
                                  "Type": "Grid",
                                  "Id": "gu_train_footer",
                                  "Grid.Column": 0,
                                  "Grid.Row": 4,
                                  "Margin": "8 8 0 0",
                                  "ColumnDefinitions": [
                                    "1fr",
                                    "Auto"
                                  ],
                                  "RowDefinitions": [
                                    "Auto"
                                  ],
                                  "Children": [
                                    {
                                      "Type": "StackPanel",
                                      "Grid.Column": 0,
                                      "Grid.Row": 0,
                                      "Orientation": "Horizontal",
                                      "Gap": 8,
                                      "VerticalAlignment": "Center",
                                      "Children": [
                                        {
                                          "Type": "Button",
                                          "Id": "gu_train_btn_create",
                                          "Text": "Create Task",
                                          "Command": "core.colony_ground_training_create"
                                        },
                                        {
                                          "Type": "Input",
                                          "Id": "gu_train_input_percentage",
                                          "InputType": "number",
                                          "Placeholder": "100",
                                          "Min": 1,
                                          "Max": 100,
                                          "Step": 1,
                                          "Width": "60px",
                                          "CommitOnInput": true,
                                          "Command": "core.colony_ground_training_set_percentage",
                                          "Bindings": [
                                            {
                                              "TargetProperty": "Value",
                                              "Path": "ColonyManagementUiStateComponent.PendingGroundTrainingTaskPercentage"
                                            }
                                          ]
                                        },
                                        {
                                          "Type": "Label",
                                          "Text": "%",
                                          "VerticalAlignment": "Center"
                                        },
                                        {
                                          "Type": "Input",
                                          "Id": "gu_train_input_name",
                                          "Placeholder": "Formation Name",
                                          "Width": "160px",
                                          "CommitOnInput": true,
                                          "Command": "core.colony_ground_training_set_formation_name"
                                        },
                                        {
                                          "Type": "Checkbox",
                                          "Id": "gu_train_checkbox_build_replacements",
                                          "Label": "Build Replacements",
                                          "Tooltip": "When enabled, the colony will automatically queue replacement formations using the designated replacement template when existing formations are destroyed or disbanded.",
                                          "Command": "core.colony_ground_training_toggle_build_replacements",
                                          "Bindings": [
                                            {
                                              "TargetProperty": "IsChecked",
                                              "Path": "ColonyManagementUiStateComponent.GroundTrainingBuildReplacements"
                                            }
                                          ]
                                        },
                                        {
                                          "Type": "Checkbox",
                                          "Id": "gu_train_checkbox_roman",
                                          "Label": "Use Roman",
                                          "Tooltip": "Use Roman numerals for formation naming (e.g. \"Infantry XI\") instead of ordinal numbers (e.g. \"11th Infantry\").",
                                          "Command": "core.colony_ground_training_toggle_use_roman",
                                          "Bindings": [
                                            {
                                              "TargetProperty": "IsChecked",
                                              "Path": "ColonyManagementUiStateComponent.GroundTrainingUseRoman"
                                            }
                                          ]
                                        },
                                        {
                                          "Type": "StackPanel",
                                          "Id": "gu_train_instant_build_points_panel",
                                          "Orientation": "Horizontal",
                                          "Gap": 4,
                                          "VerticalAlignment": "Center",
                                          "IsVisible": false,
                                          "Children": [
                                            {
                                              "Type": "Label",
                                              "Text": "Instant Build Points:",
                                              "Classes": [
                                                "ps-text-secondary"
                                              ],
                                              "VerticalAlignment": "Center"
                                            },
                                            {
                                              "Type": "Label",
                                              "Id": "lbl_gu_train_instant_build_points",
                                              "Text": "0 BP",
                                              "Classes": [
                                                "ps-data"
                                              ],
                                              "VerticalAlignment": "Center"
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "Type": "StackPanel",
                                      "Grid.Column": 1,
                                      "Grid.Row": 0,
                                      "Orientation": "Horizontal",
                                      "Gap": 8,
                                      "Children": [
                                        {
                                          "Type": "Button",
                                          "Id": "gu_train_btn_instant_build",
                                          "Text": "Instant Build",
                                          "IsVisible": false,
                                          "Command": "core.colony_ground_training_instant_build"
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "gu_train_btn_sm_instant",
                                          "Text": "Instant Build",
                                          "Style": "SpaceMaster",
                                          "IsVisible": false,
                                          "Command": "core.colony_ground_training_sm_instant"
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "gu_train_btn_rename_template",
                                          "Text": "Rename Template...",
                                          "Command": "core.colony_ground_training_open_rename_template"
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ],
                          "Classes": [
                            "borderless"
                          ]
                        }
                      ]
                    },
                    {
                      "Type": "TabItem",
                      "Id": "tabitem_colony_wealth",
                      "Title": "Wealth",
                      "Children": [
                        {
                          "Type": "Panel",
                          "Id": "tab_wealth_no_colony",
                          "Width": "100%",
                          "Height": "100%",
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch",
                          "Bindings": [
                            {
                              "TargetProperty": "IsVisible",
                              "Path": "ColonyManagementUiStateComponent.NoColonySelected"
                            }
                          ],
                          "Children": [
                            {
                              "Type": "Grid",
                              "Width": "100%",
                              "Height": "100%",
                              "HorizontalAlignment": "Stretch",
                              "VerticalAlignment": "Stretch",
                              "ColumnDefinitions": [
                                "1fr"
                              ],
                              "RowDefinitions": [
                                "1fr"
                              ],
                              "Children": [
                                {
                                  "Type": "Alert",
                                  "Id": "alert_select_colony_hint_wealth",
                                  "Grid.Column": 0,
                                  "Grid.Row": 0,
                                  "HorizontalAlignment": "Center",
                                  "VerticalAlignment": "Center",
                                  "Severity": "Info",
                                  "IsDismissible": false,
                                  "Message": "Select a colony to view wealth data."
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "Type": "ScrollBox",
                          "Width": "100%",
                          "Height": "100%",
                          "Children": [
                            {
                              "Type": "StackPanel",
                              "Id": "wealth_main_layout",
                              "Orientation": "Vertical",
                              "Width": "100%",
                              "Height": "100%",
                              "Gap": 8,
                              "Padding": "12",
                              "Children": [
                                {
                                  "Type": "PropertyGrid",
                                  "Id": "wealth_summary_grid",
                                  "Width": "100%",
                                  "Height": "Auto",
                                  "Sections": []
                                },
                                {
                                  "Type": "Grid",
                                  "Id": "wealth_top_grid",
                                  "Width": "100%",
                                  "Height": "1fr",
                                  "ColumnDefinitions": [
                                    "1fr",
                                    "1fr",
                                    "220px"
                                  ],
                                  "RowDefinitions": [
                                    "1fr"
                                  ],
                                  "Gap": 8,
                                  "Children": [
                                    {
                                      "Type": "DataGrid",
                                      "Id": "wealth_income_grid",
                                      "Grid.Row": 0,
                                      "Grid.Column": 0,
                                      "Width": "100%",
                                      "Height": "100%",
                                      "EnableVerticalScroll": true,
                                      "Columns": [
                                        {
                                          "Header": "Income Type",
                                          "Field": "type",
                                          "Flex": 2
                                        },
                                        {
                                          "Header": "Amount",
                                          "Field": "amount",
                                          "Width": "120px",
                                          "Align": "Right",
                                          "CellType": "wealth"
                                        },
                                        {
                                          "Header": "Percentage",
                                          "Field": "percentage",
                                          "Width": "110px",
                                          "Align": "Right"
                                        }
                                      ],
                                      "Rows": []
                                    },
                                    {
                                      "Type": "DataGrid",
                                      "Id": "wealth_expenditure_grid",
                                      "Grid.Row": 0,
                                      "Grid.Column": 1,
                                      "Width": "100%",
                                      "Height": "100%",
                                      "EnableVerticalScroll": true,
                                      "Columns": [
                                        {
                                          "Header": "Expenditure Type",
                                          "Field": "type",
                                          "Flex": 2
                                        },
                                        {
                                          "Header": "Amount",
                                          "Field": "amount",
                                          "Width": "120px",
                                          "Align": "Right",
                                          "CellType": "wealth"
                                        },
                                        {
                                          "Header": "Percentage",
                                          "Field": "percentage",
                                          "Width": "110px",
                                          "Align": "Right"
                                        }
                                      ],
                                      "Rows": []
                                    },
                                    {
                                      "Type": "StackPanel",
                                      "Id": "wealth_range_panel",
                                      "Grid.Row": 0,
                                      "Grid.Column": 2,
                                      "Orientation": "Vertical",
                                      "Gap": 8,
                                      "Children": [
                                        {
                                          "Type": "Label",
                                          "Text": "Time Range",
                                          "Classes": [
                                            "ps-text-secondary"
                                          ]
                                        },
                                        {
                                          "Type": "RadioGroup",
                                          "Id": "select_wealth_time_range",
                                          "Orientation": "Vertical",
                                          "Items": [],
                                          "Command": "core.wealth_set_time_range",
                                          "Bindings": [
                                            {
                                              "TargetProperty": "SelectedValue",
                                              "Path": "ColonyManagementUiStateComponent.WealthTimeRange"
                                            }
                                          ]
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "btn_wealth_edit_tax_rate",
                                          "Text": "Edit Tax Rate",
                                          "Command": "core.wealth_edit_tax_rate"
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "btn_wealth_edit_creation_rate",
                                          "Text": "SM Edit Creation Rate",
                                          "Style": "SpaceMaster",
                                          "IsVisible": false,
                                          "Command": "core.wealth_edit_creation_rate"
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "btn_wealth_sm_edit_balance",
                                          "Text": "SM Edit Wealth",
                                          "Style": "SpaceMaster",
                                          "IsVisible": false,
                                          "Command": "core.wealth_sm_edit_balance"
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "Type": "Grid",
                                  "Width": "100%",
                                  "Height": "1fr",
                                  "ColumnDefinitions": [
                                    "1fr",
                                    "1fr"
                                  ],
                                  "RowDefinitions": [
                                    "1fr"
                                  ],
                                  "Gap": 8,
                                  "Children": [
                                    {
                                      "Type": "DataGrid",
                                      "Id": "wealth_history_grid",
                                      "Grid.Column": 0,
                                      "Width": "100%",
                                      "Height": "100%",
                                      "EnableVerticalScroll": true,
                                      "Columns": [
                                        {
                                          "Header": "Date",
                                          "Field": "date",
                                          "Width": "120px"
                                        },
                                        {
                                          "Header": "Length",
                                          "Field": "length",
                                          "Width": "90px"
                                        },
                                        {
                                          "Header": "Balance",
                                          "Field": "balance",
                                          "Width": "120px",
                                          "Align": "Right",
                                          "CellType": "wealth"
                                        },
                                        {
                                          "Header": "Change",
                                          "Field": "change",
                                          "Width": "120px",
                                          "Align": "Right",
                                          "CellType": "wealth"
                                        },
                                        {
                                          "Header": "Daily Change",
                                          "Field": "daily_change",
                                          "Width": "120px",
                                          "Align": "Right",
                                          "CellType": "wealth"
                                        }
                                      ],
                                      "Rows": []
                                    },
                                    {
                                      "Type": "DataGrid",
                                      "Id": "wealth_trade_goods_grid",
                                      "Grid.Column": 1,
                                      "Width": "100%",
                                      "Height": "100%",
                                      "EnableVerticalScroll": true,
                                      "Columns": [
                                        {
                                          "Header": "Trade Good",
                                          "Field": "name",
                                          "Flex": 2
                                        },
                                        {
                                          "Header": "Prod",
                                          "Field": "production",
                                          "Width": "70px",
                                          "Align": "Right",
                                          "CellType": "wealth"
                                        },
                                        {
                                          "Header": "Short",
                                          "Field": "shortfall",
                                          "Width": "70px",
                                          "Align": "Right",
                                          "CellType": "wealth"
                                        },
                                        {
                                          "Header": "Surp",
                                          "Field": "surplus",
                                          "Width": "70px",
                                          "Align": "Right",
                                          "CellType": "wealth"
                                        },
                                        {
                                          "Header": "Req",
                                          "Field": "required",
                                          "Width": "70px",
                                          "Align": "Right",
                                          "CellType": "wealth"
                                        },
                                        {
                                          "Header": "Avail",
                                          "Field": "available",
                                          "Width": "70px",
                                          "Align": "Right",
                                          "CellType": "wealth"
                                        }
                                      ],
                                      "Rows": []
                                    }
                                  ]
                                }
                              ]
                            }
                          ],
                          "Id": "tab_wealth",
                          "Classes": [
                            "borderless"
                          ],
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch"
                        },
                        {
                          "Type": "Modal",
                          "Id": "modal_wealth_creation_rate",
                          "IsVisible": false,
                          "Title": "Edit Wealth Creation Rate",
                          "IsDismissible": true,
                          "CloseCommand": "core.wealth_close_creation_rate_modal",
                          "Bindings": [
                            {
                              "TargetProperty": "IsVisible",
                              "Path": "ColonyManagementUiStateComponent.WealthCreationRateModalVisible"
                            }
                          ],
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Set the empire wealth creation rate.",
                              "Classes": [
                                "ps-text-secondary"
                              ]
                            },
                            {
                              "Type": "Input",
                              "Id": "input_wealth_creation_rate",
                              "InputType": "number",
                              "Placeholder": "100",
                              "Min": 0,
                              "Step": 0.01,
                              "CommitOnInput": true,
                              "Command": "core.wealth_set_creation_rate_value",
                              "Bindings": [
                                {
                                  "TargetProperty": "Value",
                                  "Path": "ColonyManagementUiStateComponent.WealthCreationRateInput"
                                }
                              ]
                            }
                          ],
                          "FooterChildren": [
                            {
                              "Type": "StackPanel",
                              "Orientation": "Horizontal",
                              "Gap": 8,
                              "HorizontalAlignment": "Right",
                              "Children": [
                                {
                                  "Type": "Button",
                                  "Text": "Cancel",
                                  "Command": "core.wealth_close_creation_rate_modal"
                                },
                                {
                                  "Type": "Button",
                                  "Id": "btn_wealth_creation_rate_apply",
                                  "Text": "Apply",
                                  "Style": "Primary",
                                  "Command": "core.wealth_apply_creation_rate"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "Type": "Modal",
                          "Id": "modal_wealth_tax_rate",
                          "IsVisible": false,
                          "Title": "Edit Shipping Line Tax Rate",
                          "IsDismissible": true,
                          "CloseCommand": "core.wealth_close_tax_rate_modal",
                          "Bindings": [
                            {
                              "TargetProperty": "IsVisible",
                              "Path": "ColonyManagementUiStateComponent.ShippingTaxRateModalVisible"
                            }
                          ],
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Enter the shipping line tax percentage (0-100).",
                              "Classes": [
                                "ps-text-secondary"
                              ]
                            },
                            {
                              "Type": "Input",
                              "Id": "input_wealth_tax_rate",
                              "InputType": "number",
                              "Placeholder": "20",
                              "Min": 0,
                              "Max": 100,
                              "Step": 0.01,
                              "CommitOnInput": true,
                              "Command": "core.wealth_set_tax_rate_value",
                              "Bindings": [
                                {
                                  "TargetProperty": "Value",
                                  "Path": "ColonyManagementUiStateComponent.ShippingTaxRateInput"
                                }
                              ]
                            }
                          ],
                          "FooterChildren": [
                            {
                              "Type": "StackPanel",
                              "Orientation": "Horizontal",
                              "Gap": 8,
                              "HorizontalAlignment": "Right",
                              "Children": [
                                {
                                  "Type": "Button",
                                  "Text": "Cancel",
                                  "Command": "core.wealth_close_tax_rate_modal"
                                },
                                {
                                  "Type": "Button",
                                  "Id": "btn_wealth_tax_rate_apply",
                                  "Text": "Apply",
                                  "Style": "Primary",
                                  "Command": "core.wealth_apply_tax_rate"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "Type": "Modal",
                          "Id": "modal_wealth_balance",
                          "IsVisible": false,
                          "Title": "SM Edit Wealth",
                          "IsDismissible": true,
                          "CloseCommand": "core.wealth_sm_close_balance_modal",
                          "Bindings": [
                            {
                              "TargetProperty": "IsVisible",
                              "Path": "ColonyManagementUiStateComponent.WealthBalanceModalVisible"
                            }
                          ],
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Set the current empire wealth balance.",
                              "Classes": [
                                "ps-text-secondary"
                              ]
                            },
                            {
                              "Type": "Input",
                              "Id": "input_wealth_balance",
                              "InputType": "number",
                              "Placeholder": "0",
                              "Step": 0.01,
                              "CommitOnInput": true,
                              "Command": "core.wealth_sm_set_balance_value",
                              "Bindings": [
                                {
                                  "TargetProperty": "Value",
                                  "Path": "ColonyManagementUiStateComponent.WealthBalanceInput"
                                }
                              ]
                            }
                          ],
                          "FooterChildren": [
                            {
                              "Type": "StackPanel",
                              "Orientation": "Horizontal",
                              "Gap": 8,
                              "HorizontalAlignment": "Right",
                              "Children": [
                                {
                                  "Type": "Button",
                                  "Text": "Cancel",
                                  "Command": "core.wealth_sm_close_balance_modal"
                                },
                                {
                                  "Type": "Button",
                                  "Id": "btn_wealth_balance_apply",
                                  "Text": "Apply",
                                  "Style": "Danger",
                                  "Command": "core.wealth_sm_apply_balance"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "Type": "TabItem",
                      "Id": "tabitem_colony_civilian",
                      "Title": "Civilian / Flags",
                      "Children": [
                        {
                          "Type": "Panel",
                          "Id": "tab_civilian_no_colony",
                          "Width": "100%",
                          "Height": "100%",
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch",
                          "Bindings": [
                            {
                              "TargetProperty": "IsVisible",
                              "Path": "ColonyManagementUiStateComponent.NoColonySelected"
                            }
                          ],
                          "Children": [
                            {
                              "Type": "Grid",
                              "Width": "100%",
                              "Height": "100%",
                              "HorizontalAlignment": "Stretch",
                              "VerticalAlignment": "Stretch",
                              "ColumnDefinitions": [
                                "1fr"
                              ],
                              "RowDefinitions": [
                                "1fr"
                              ],
                              "Children": [
                                {
                                  "Type": "Alert",
                                  "Id": "alert_select_colony_hint_civilian",
                                  "Grid.Column": 0,
                                  "Grid.Row": 0,
                                  "HorizontalAlignment": "Center",
                                  "VerticalAlignment": "Center",
                                  "Severity": "Info",
                                  "IsDismissible": false,
                                  "Message": "Select a colony to manage civilian shipping settings."
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "Type": "Panel",
                          "Id": "tab_civilian",
                          "Width": "100%",
                          "Height": "100%",
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch",
                          "Children": [
                            {
                              "Type": "StackPanel",
                              "Id": "tab_civilian_content",
                              "Orientation": "Vertical",
                              "Width": "100%",
                              "Height": "100%",
                              "HorizontalAlignment": "Stretch",
                              "VerticalAlignment": "Stretch",
                              "Gap": 12,
                              "Padding": "16",
                              "Children": [
                                {
                                  "Type": "StackPanel",
                                  "Id": "civilian_flags_bar",
                                  "Orientation": "Horizontal",
                                  "Width": "100%",
                                  "Gap": 16,
                                  "VerticalAlignment": "Center",
                                  "Children": [
                                    {
                                      "Type": "RadioGroup",
                                      "Id": "radio_colonist_destination",
                                      "Label": "Colonist Destination",
                                      "Orientation": "Horizontal",
                                      "Command": "core.set_colonist_destination",
                                      "Items": []
                                    },
                                    {
                                      "Type": "Checkbox",
                                      "Id": "checkbox_military_restricted",
                                      "Label": "Military Restricted Colony",
                                      "Command": "core.toggle_military_restricted",
                                      "IsChecked": false
                                    },
                                    {
                                      "Type": "Checkbox",
                                      "Id": "checkbox_auto_refuel",
                                      "Label": "Auto Refuel Destination",
                                      "Command": "core.toggle_colony_auto_refuel",
                                      "IsChecked": false
                                    }
                                  ]
                                },
                                {
                                  "Type": "DataGrid",
                                  "Id": "datagrid_sm_unified_installations",
                                  "Width": "100%",
                                  "Height": "100%",
                                  "ShowSearch": true,
                                  "SearchPlaceholder": "Search installations...",
                                  "SelectionMode": "None",
                                  "OnCellEdited": "sm.civilian_grid_edit",
                                  "Columns": [
                                    {
                                      "Id": "installation_type",
                                      "Header": "Installation Type",
                                      "Field": "installation_type",
                                      "Flex": 3
                                    },
                                    {
                                      "Id": "amount",
                                      "Header": "Amount",
                                      "Field": "amount",
                                      "Width": "80px",
                                      "Align": "Right"
                                    },
                                    {
                                      "Id": "demand",
                                      "Header": "Demand",
                                      "Field": "demand",
                                      "Width": "100px",
                                      "Align": "Right",
                                      "Editable": true,
                                      "EditorType": "Number",
                                      "EditCommand": "sm.civilian_grid_edit"
                                    },
                                    {
                                      "Id": "supply",
                                      "Header": "Supply",
                                      "Field": "supply",
                                      "Width": "100px",
                                      "Align": "Right",
                                      "Editable": true,
                                      "EditorType": "Number",
                                      "EditCommand": "sm.civilian_grid_edit"
                                    }
                                  ],
                                  "Rows": []
                                }
                              ]
                            }
                          ],
                          "Classes": [
                            "borderless"
                          ]
                        },
                        {
                          "Type": "Modal",
                          "Id": "modal_military_restricted_confirm",
                          "IsVisible": false,
                          "Title": "Restrict colony?",
                          "BadgeText": "Warning",
                          "BadgeVariant": "warn",
                          "AccentVariant": "danger",
                          "CloseCommand": "client.civilian.cancel_military_restricted",
                          "Children": [
                            {
                              "Type": "StackPanel",
                              "Orientation": "Vertical",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Id": "lbl_military_restricted_confirm_body",
                                  "Text": "Restrict this colony to military traffic? Civilian freighters will abandon cargo."
                                }
                              ]
                            }
                          ],
                          "FooterChildren": [
                            {
                              "Type": "StackPanel",
                              "Orientation": "Horizontal",
                              "Gap": 8,
                              "HorizontalAlignment": "Right",
                              "Children": [
                                {
                                  "Type": "Button",
                                  "Text": "Back",
                                  "Command": "client.civilian.cancel_military_restricted"
                                },
                                {
                                  "Type": "Button",
                                  "Id": "btn_military_restricted_confirm",
                                  "Text": "Restrict",
                                  "Style": "Danger",
                                  "Command": "client.civilian.confirm_military_restricted"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "Type": "Modal",
                          "Id": "modal_sm_scrap_installation_confirm",
                          "Title": "Scrap Installation",
                          "IsVisible": false,
                          "CloseOnEscape": true,
                          "CloseOnBackdropClick": false,
                          "CloseCommand": "sm.civilian_cancel_scrap",
                          "Size": "Small",
                          "BadgeText": "Warning",
                          "BadgeVariant": "warn",
                          "AccentVariant": "warn",
                          "BackdropVariant": "warning",
                          "Children": [
                            {
                              "Type": "StackPanel",
                              "Orientation": "Vertical",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Id": "lbl_sm_scrap_installation_name",
                                  "Text": ""
                                },
                                {
                                  "Type": "StackPanel",
                                  "Orientation": "Horizontal",
                                  "Gap": 8,
                                  "Children": [
                                    {
                                      "Type": "Label",
                                      "Text": "Amount:",
                                      "VerticalAlignment": "Center"
                                    },
                                    {
                                      "Type": "Input",
                                      "Id": "input_sm_scrap_amount",
                                      "Value": "",
                                      "Width": "200px",
                                      "InputType": "Number",
                                      "Min": 0,
                                      "AutoFocus": true,
                                      "CommitOnInput": true,
                                      "Command": "sm.civilian_set_scrap_input"
                                    }
                                  ]
                                }
                              ]
                            }
                          ],
                          "FooterChildren": [
                            {
                              "Type": "StackPanel",
                              "Orientation": "Horizontal",
                              "HorizontalAlignment": "Right",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Button",
                                  "Id": "btn_sm_scrap_confirm",
                                  "Text": "Scrap",
                                  "Style": "Warning",
                                  "Command": "sm.civilian_confirm_scrap"
                                },
                                {
                                  "Type": "Button",
                                  "Text": "Cancel",
                                  "Command": "sm.civilian_cancel_scrap"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "Type": "Modal",
                          "Id": "modal_sm_add_installation",
                          "Title": "Add Installation",
                          "IsVisible": false,
                          "CloseOnEscape": true,
                          "CloseOnBackdropClick": false,
                          "CloseCommand": "sm.civilian_cancel_add_install",
                          "Size": "Small",
                          "Children": [
                            {
                              "Type": "StackPanel",
                              "Orientation": "Vertical",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Id": "lbl_sm_add_installation_name",
                                  "Text": ""
                                },
                                {
                                  "Type": "StackPanel",
                                  "Orientation": "Horizontal",
                                  "Gap": 8,
                                  "Children": [
                                    {
                                      "Type": "Label",
                                      "Text": "Amount:",
                                      "VerticalAlignment": "Center"
                                    },
                                    {
                                      "Type": "Input",
                                      "Id": "input_sm_add_install_amount",
                                      "Value": "",
                                      "Width": "200px",
                                      "InputType": "Number",
                                      "Min": 0,
                                      "AutoFocus": true,
                                      "CommitOnInput": true,
                                      "Command": "sm.civilian_set_add_install_input"
                                    }
                                  ]
                                }
                              ]
                            }
                          ],
                          "FooterChildren": [
                            {
                              "Type": "StackPanel",
                              "Orientation": "Horizontal",
                              "HorizontalAlignment": "Right",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Button",
                                  "Id": "btn_sm_add_install_confirm",
                                  "Text": "Add",
                                  "Style": "Primary",
                                  "Command": "sm.civilian_confirm_add_install"
                                },
                                {
                                  "Type": "Button",
                                  "Text": "Cancel",
                                  "Command": "sm.civilian_cancel_add_install"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "Type": "TabItem",
                      "Id": "tabitem_colony_ground_training",
                      "Title": "GU / Stockpiles",
                      "Children": [
                        {
                          "Type": "Panel",
                          "Id": "tab_gu_stockpile_no_colony",
                          "Width": "100%",
                          "Height": "100%",
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch",
                          "Bindings": [
                            {
                              "TargetProperty": "IsVisible",
                              "Path": "ColonyManagementUiStateComponent.NoColonySelected"
                            }
                          ],
                          "Children": [
                            {
                              "Type": "Grid",
                              "Width": "100%",
                              "Height": "100%",
                              "HorizontalAlignment": "Stretch",
                              "VerticalAlignment": "Stretch",
                              "ColumnDefinitions": [
                                "1fr"
                              ],
                              "RowDefinitions": [
                                "1fr"
                              ],
                              "Children": [
                                {
                                  "Type": "Alert",
                                  "Id": "alert_select_colony_hint_gu_stockpile",
                                  "Grid.Column": 0,
                                  "Grid.Row": 0,
                                  "HorizontalAlignment": "Center",
                                  "VerticalAlignment": "Center",
                                  "Severity": "Info",
                                  "IsDismissible": false,
                                  "Message": "Select a colony to manage stockpiles."
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "Type": "Panel",
                          "Id": "tab_gu_stockpile",
                          "Width": "100%",
                          "Height": "100%",
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch",
                          "Children": [
                            {
                              "Type": "Grid",
                              "Id": "gu_stockpile_root",
                              "Width": "100%",
                              "Height": "100%",
                              "HorizontalAlignment": "Stretch",
                              "VerticalAlignment": "Stretch",
                              "ColumnDefinitions": [
                                "1fr"
                              ],
                              "RowDefinitions": [
                                "*",
                                "Auto"
                              ],
                              "Children": [
                                {
                                  "Type": "Grid",
                                  "Grid.Column": 0,
                                  "Grid.Row": 0,
                                  "HorizontalAlignment": "Stretch",
                                  "VerticalAlignment": "Stretch",
                                  "ColumnDefinitions": [
                                    "2fr",
                                    "*",
                                    "*"
                                  ],
                                  "RowDefinitions": [
                                    "1fr"
                                  ],
                                  "Gap": 4,
                                  "Children": [
                                    {
                                      "Type": "Tree",
                                      "Id": "gu_stockpile_formations",
                                      "Grid.Column": 0,
                                      "Grid.Row": 0,
                                      "Width": "100%",
                                      "Height": "100%",
                                      "HideIcons": true,
                                      "OnSelectionChanged": "core.colony_gu_stockpile_select_formation"
                                    },
                                    {
                                      "Type": "DataGrid",
                                      "Id": "gu_stockpile_ordnance",
                                      "Grid.Column": 1,
                                      "Grid.Row": 0,
                                      "Width": "100%",
                                      "Height": "100%",
                                      "SelectionMode": "Single",
                                      "OnSelectionChanged": "core.colony_gu_stockpile_select_ordnance",
                                      "Columns": [
                                        {
                                          "Header": "Missile",
                                          "Field": "name",
                                          "Width": "*"
                                        },
                                        {
                                          "Header": "Qty",
                                          "Field": "quantity",
                                          "Width": "60px"
                                        }
                                      ]
                                    },
                                    {
                                      "Type": "DataGrid",
                                      "Id": "gu_stockpile_components",
                                      "Grid.Column": 2,
                                      "Grid.Row": 0,
                                      "Width": "100%",
                                      "Height": "100%",
                                      "SelectionMode": "Single",
                                      "OnSelectionChanged": "core.colony_gu_stockpile_select_component",
                                      "Columns": [
                                        {
                                          "Header": "Component",
                                          "Field": "name",
                                          "Width": "*"
                                        },
                                        {
                                          "Header": "Qty",
                                          "Field": "quantity",
                                          "Width": "60px"
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "Type": "Grid",
                                  "Grid.Column": 0,
                                  "Grid.Row": 1,
                                  "HorizontalAlignment": "Stretch",
                                  "VerticalAlignment": "Bottom",
                                  "ColumnDefinitions": [
                                    "Auto",
                                    "*",
                                    "Auto"
                                  ],
                                  "RowDefinitions": [
                                    "Auto"
                                  ],
                                  "Margin": "0 4px 0 0",
                                  "Children": [
                                    {
                                      "Type": "Checkbox",
                                      "Id": "gu_stockpile_checkbox_sort_creation",
                                      "Grid.Column": 0,
                                      "Grid.Row": 0,
                                      "Label": "Sort Creation Date",
                                      "Command": "core.colony_gu_stockpile_toggle_sort_creation",
                                      "VerticalAlignment": "Center",
                                      "Margin": "0 0 8px 0"
                                    },
                                    {
                                      "Type": "StackPanel",
                                      "Orientation": "Horizontal",
                                      "Gap": 4,
                                      "Grid.Column": 2,
                                      "Grid.Row": 0,
                                      "HorizontalAlignment": "Right",
                                      "VerticalAlignment": "Center",
                                      "Children": [
                                        {
                                          "Type": "Button",
                                          "Id": "gu_stockpile_btn_scrap_ordnance",
                                          "Text": "Scrap Ordnance",
                                          "IsEnabled": false,
                                          "Style": "Warning",
                                          "Command": "core.colony_gu_stockpile_scrap_ordnance"
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "gu_stockpile_btn_transfer_missile",
                                          "Text": "Transfer Missile",
                                          "IsEnabled": false,
                                          "Command": "core.colony_gu_stockpile_transfer_missile"
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "gu_stockpile_btn_transfer_component",
                                          "Text": "Transfer Component",
                                          "IsEnabled": false,
                                          "Command": "core.colony_gu_stockpile_transfer_component"
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "gu_stockpile_btn_scrap_component",
                                          "Text": "Scrap Component",
                                          "IsEnabled": false,
                                          "Command": "core.colony_gu_stockpile_scrap_component"
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "gu_stockpile_btn_disassemble_all",
                                          "Text": "Disassemble All",
                                          "IsEnabled": false,
                                          "Command": "core.colony_gu_stockpile_disassemble_all"
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "gu_stockpile_btn_disassemble",
                                          "Text": "Disassemble",
                                          "IsEnabled": false,
                                          "Command": "core.colony_gu_stockpile_disassemble"
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ],
                          "Classes": [
                            "borderless"
                          ]
                        }
                      ]
                    },
                    {
                      "Type": "TabItem",
                      "Id": "tabitem_colony_terraform",
                      "Title": "Environment",
                      "Children": [
                        {
                          "Type": "Panel",
                          "Id": "tab_terraform_no_colony",
                          "Width": "100%",
                          "Height": "100%",
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch",
                          "Bindings": [
                            {
                              "TargetProperty": "IsVisible",
                              "Path": "ColonyManagementUiStateComponent.NoColonySelected"
                            }
                          ],
                          "Children": [
                            {
                              "Type": "Grid",
                              "Width": "100%",
                              "Height": "100%",
                              "HorizontalAlignment": "Stretch",
                              "VerticalAlignment": "Stretch",
                              "ColumnDefinitions": [
                                "1fr"
                              ],
                              "RowDefinitions": [
                                "1fr"
                              ],
                              "Children": [
                                {
                                  "Type": "Alert",
                                  "Id": "alert_select_colony_hint_terraform",
                                  "Grid.Column": 0,
                                  "Grid.Row": 0,
                                  "HorizontalAlignment": "Center",
                                  "VerticalAlignment": "Center",
                                  "Severity": "Info",
                                  "IsDismissible": false,
                                  "Message": "Select a colony to manage terraforming."
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "Type": "ScrollBox",
                          "Id": "tab_terraform",
                          "Width": "100%",
                          "Height": "100%",
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch",
                          "Classes": [
                            "borderless"
                          ],
                          "Children": [
                            {
                              "Type": "StackPanel",
                              "Id": "terraform_main_layout",
                              "Orientation": "Vertical",
                              "Width": "100%",
                              "Height": "100%",
                              "Gap": 12,
                              "Padding": "16",
                              "Children": [
                                {
                                  "Type": "Grid",
                                  "Id": "terraform_controls_grid",
                                  "Width": "100%",
                                  "ColumnDefinitions": [
                                    "160px",
                                    "1fr",
                                    "180px",
                                    "1fr"
                                  ],
                                  "RowDefinitions": [
                                    "Auto",
                                    "Auto",
                                    "Auto"
                                  ],
                                  "Gap": 8,
                                  "Children": [
                                    {
                                      "Type": "Label",
                                      "Grid.Row": 0,
                                      "Grid.Column": 0,
                                      "Text": "Target Gas",
                                      "Classes": [
                                        "ps-text-secondary"
                                      ],
                                      "VerticalAlignment": "Center"
                                    },
                                    {
                                      "Type": "Select",
                                      "Id": "select_colony_terraform_gas",
                                      "Grid.Row": 0,
                                      "Grid.Column": 1,
                                      "Width": "100%",
                                      "Options": [],
                                      "Placeholder": "Select gas",
                                      "Command": "core.terraform_select_gas",
                                      "Bindings": [
                                        {
                                          "TargetProperty": "Value",
                                          "Path": "TerraformUiStateComponent.SelectedGasId"
                                        }
                                      ]
                                    },
                                    {
                                      "Type": "Label",
                                      "Grid.Row": 0,
                                      "Grid.Column": 2,
                                      "Text": "Target Pressure (atm)",
                                      "Classes": [
                                        "ps-text-secondary"
                                      ],
                                      "VerticalAlignment": "Center"
                                    },
                                    {
                                      "Type": "Input",
                                      "Id": "input_colony_terraform_target_atm",
                                      "Grid.Row": 0,
                                      "Grid.Column": 3,
                                      "InputType": "number",
                                      "Placeholder": "0.0",
                                      "Min": 0,
                                      "Step": 0.001,
                                      "Command": "core.terraform_set_target_atm",
                                      "CommitOnInput": true,
                                      "Bindings": [
                                        {
                                          "TargetProperty": "Value",
                                          "Path": "TerraformUiStateComponent.TargetAtm"
                                        }
                                      ]
                                    },
                                    {
                                      "Type": "Checkbox",
                                      "Id": "checkbox_colony_terraform_mode",
                                      "Grid.Row": 1,
                                      "Grid.Column": 0,
                                      "Grid.ColumnSpan": 2,
                                      "Label": "Add Gas (unchecked = Remove Gas)",
                                      "Command": "core.terraform_toggle_mode",
                                      "Bindings": [
                                        {
                                          "TargetProperty": "IsChecked",
                                          "Path": "TerraformUiStateComponent.IsAddMode"
                                        }
                                      ]
                                    },
                                    {
                                      "Type": "Label",
                                      "Style": "SpaceMaster",
                                      "Grid.Row": 1,
                                      "Grid.Column": 2,
                                      "Text": "Hydro Extent (%)",
                                      "Classes": [
                                        "ps-text-secondary"
                                      ],
                                      "VerticalAlignment": "Center"
                                    },
                                    {
                                      "Type": "Input",
                                      "Style": "SpaceMaster",
                                      "Id": "input_colony_terraform_hydro_extent",
                                      "Grid.Row": 1,
                                      "Grid.Column": 3,
                                      "InputType": "number",
                                      "Placeholder": "0.0",
                                      "Min": 0,
                                      "Max": 100,
                                      "Step": 0.1,
                                      "Command": "core.terraform_set_hydro_extent",
                                      "CommitOnInput": true,
                                      "Classes": [
                                        "spacemaster"
                                      ]
                                    },
                                    {
                                      "Type": "StackPanel",
                                      "Id": "terraform_rates_row",
                                      "Grid.Row": 2,
                                      "Grid.Column": 0,
                                      "Grid.ColumnSpan": 4,
                                      "Orientation": "Horizontal",
                                      "Gap": 16,
                                      "Children": [
                                        {
                                          "Type": "Label",
                                          "Text": "Installations",
                                          "Classes": [
                                            "ps-text-secondary"
                                          ]
                                        },
                                        {
                                          "Type": "DataFormatter",
                                          "Id": "lbl_terraform_installations_value",
                                          "Value": 0,
                                          "Format": "number",
                                          "Precision": 0
                                        },
                                        {
                                          "Type": "Label",
                                          "Text": "Orbital Modules",
                                          "Classes": [
                                            "ps-text-secondary"
                                          ]
                                        },
                                        {
                                          "Type": "DataFormatter",
                                          "Id": "lbl_terraform_orbital_modules_value",
                                          "Value": 0,
                                          "Format": "number",
                                          "Precision": 0
                                        },
                                        {
                                          "Type": "Label",
                                          "Text": "Annual Capacity",
                                          "Classes": [
                                            "ps-text-secondary"
                                          ]
                                        },
                                        {
                                          "Type": "DataFormatter",
                                          "Id": "lbl_terraform_capacity_value",
                                          "Value": 0,
                                          "Format": "number",
                                          "Precision": 4,
                                          "Suffix": " atm/y"
                                        },
                                        {
                                          "Type": "Label",
                                          "Text": "Rate Ratio",
                                          "Classes": [
                                            "ps-text-secondary"
                                          ]
                                        },
                                        {
                                          "Type": "DataFormatter",
                                          "Id": "lbl_terraform_ratio_value",
                                          "Value": 0,
                                          "Format": "number",
                                          "Precision": 2
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "Type": "StackPanel",
                                  "Orientation": "Horizontal",
                                  "Gap": 8,
                                  "Children": [
                                    {
                                      "Type": "Button",
                                      "Id": "btn_sm_terraform_set_atm",
                                      "Text": "SM: Set Atm",
                                      "Style": "SpaceMaster",
                                      "IsVisible": false,
                                      "Command": "core.terraform_sm_edit_atm"
                                    },
                                    {
                                      "Type": "Button",
                                      "Id": "btn_sm_terraform_set_hydro",
                                      "Text": "SM: Set Hydro",
                                      "Style": "SpaceMaster",
                                      "IsVisible": false,
                                      "Command": "core.terraform_sm_edit_hydro"
                                    }
                                  ]
                                },
                                {
                                  "Type": "Grid",
                                  "Width": "100%",
                                  "ColumnDefinitions": [
                                    "auto",
                                    "1fr",
                                    "1fr"
                                  ],
                                  "RowDefinitions": [
                                    "Auto"
                                  ],
                                  "Gap": 12,
                                  "Children": [
                                    {
                                      "Type": "StackPanel",
                                      "Grid.Column": 0,
                                      "Orientation": "Vertical",
                                      "Width": "100%",
                                      "Gap": 8,
                                      "Children": [
                                        {
                                          "Type": "DataGrid",
                                          "Id": "terraform_atmosphere_grid",
                                          "Width": "100%",
                                          "EnableVerticalScroll": true,
                                          "Columns": [
                                            {
                                              "Header": "Gas",
                                              "Field": "gas",
                                              "Flex": 2
                                            },
                                            {
                                              "Header": "%",
                                              "Field": "percentage",
                                              "Width": "70px",
                                              "Align": "Right"
                                            },
                                            {
                                              "Header": "atm",
                                              "Field": "atm",
                                              "Width": "90px",
                                              "Align": "Right"
                                            },
                                            {
                                              "Header": "Status",
                                              "Field": "status",
                                              "Width": "90px"
                                            },
                                            {
                                              "Header": "GH",
                                              "Field": "greenhouse",
                                              "Width": "80px"
                                            },
                                            {
                                              "Header": "Danger",
                                              "Field": "dangerous",
                                              "Width": "80px"
                                            }
                                          ],
                                          "Rows": []
                                        },
                                        {
                                          "Type": "DataGrid",
                                          "Id": "terraform_atmosphere_summary_grid",
                                          "Width": "100%",
                                          "Columns": [
                                            {
                                              "Header": "Atmosphere",
                                              "Field": "property",
                                              "Flex": 1
                                            },
                                            {
                                              "Header": "Value",
                                              "Field": "value",
                                              "Width": "120px",
                                              "Align": "Right"
                                            }
                                          ],
                                          "Rows": [],
                                          "EnableVerticalScroll": false
                                        },
                                        {
                                          "Type": "DataGrid",
                                          "Id": "terraform_temperature_summary_grid",
                                          "Width": "100%",
                                          "Columns": [
                                            {
                                              "Header": "Temperature",
                                              "Field": "property",
                                              "Flex": 1
                                            },
                                            {
                                              "Header": "Value",
                                              "Field": "value",
                                              "Width": "120px",
                                              "Align": "Right"
                                            }
                                          ],
                                          "Rows": [],
                                          "EnableVerticalScroll": false
                                        }
                                      ]
                                    },
                                    {
                                      "Type": "StackPanel",
                                      "Grid.Column": 1,
                                      "Orientation": "Vertical",
                                      "Width": "100%",
                                      "Gap": 8,
                                      "Children": [
                                        {
                                          "Type": "DataGrid",
                                          "Id": "terraform_hydrographic_grid",
                                          "Width": "100%",
                                          "EnableVerticalScroll": false,
                                          "Columns": [
                                            {
                                              "Header": "Hydrographic",
                                              "Field": "property",
                                              "Flex": 1
                                            },
                                            {
                                              "Header": "Value",
                                              "Field": "value",
                                              "Width": "90px",
                                              "Align": "Right"
                                            }
                                          ],
                                          "Rows": []
                                        },
                                        {
                                          "Type": "DataGrid",
                                          "Id": "terraform_radiation_grid",
                                          "Width": "100%",
                                          "EnableVerticalScroll": false,
                                          "Columns": [
                                            {
                                              "Header": "Radiation & Dust",
                                              "Field": "property",
                                              "Flex": 1
                                            },
                                            {
                                              "Header": "Value",
                                              "Field": "value",
                                              "Width": "90px",
                                              "Align": "Right"
                                            }
                                          ],
                                          "Rows": []
                                        },
                                        {
                                          "Type": "DataGrid",
                                          "Id": "terraform_body_rate_grid",
                                          "Width": "100%",
                                          "EnableVerticalScroll": false,
                                          "Columns": [
                                            {
                                              "Header": "Body & Rate",
                                              "Field": "property",
                                              "Flex": 1
                                            },
                                            {
                                              "Header": "Value",
                                              "Field": "value",
                                              "Width": "90px",
                                              "Align": "Right"
                                            }
                                          ],
                                          "Rows": []
                                        }
                                      ]
                                    },
                                    {
                                      "Type": "StackPanel",
                                      "Grid.Column": 2,
                                      "Orientation": "Vertical",
                                      "Width": "100%",
                                      "Gap": 8,
                                      "Children": [
                                        {
                                          "Type": "DataGrid",
                                          "Id": "terraform_colony_cost_grid",
                                          "Width": "100%",
                                          "Columns": [
                                            {
                                              "Header": "Factor",
                                              "Field": "factor",
                                              "Flex": 1
                                            },
                                            {
                                              "Header": "Value",
                                              "Field": "value",
                                              "Width": "90px",
                                              "Align": "Right"
                                            }
                                          ],
                                          "Rows": [],
                                          "EnableVerticalScroll": false
                                        },
                                        {
                                          "Type": "DataGrid",
                                          "Id": "terraform_species_requirements_grid",
                                          "Width": "100%",
                                          "Columns": [
                                            {
                                              "Header": "Population Species",
                                              "Field": "requirement",
                                              "Flex": 1
                                            },
                                            {
                                              "Header": "Value",
                                              "Field": "value",
                                              "Width": "90px",
                                              "Align": "Right"
                                            }
                                          ],
                                          "Rows": [],
                                          "EnableVerticalScroll": false
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "Type": "Modal",
                          "Id": "modal_sm_terraform_set_atm",
                          "IsVisible": false,
                          "Title": "Set Atmospheric Pressure",
                          "IsDismissible": true,
                          "CloseCommand": "core.terraform_sm_close_atm_modal",
                          "Size": "Small",
                          "Bindings": [
                            {
                              "TargetProperty": "IsVisible",
                              "Path": "ColonyManagementUiStateComponent.SmTerraformAtmModalVisible"
                            }
                          ],
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Set the atmospheric pressure (atm) for this body.",
                              "Classes": [
                                "ps-text-secondary"
                              ]
                            },
                            {
                              "Type": "Input",
                              "Id": "input_sm_terraform_atm",
                              "InputType": "number",
                              "Placeholder": "0.0",
                              "Min": 0,
                              "Step": 0.001,
                              "CommitOnInput": true,
                              "Command": "core.terraform_sm_set_atm_value",
                              "Bindings": [
                                {
                                  "TargetProperty": "Value",
                                  "Path": "ColonyManagementUiStateComponent.SmTerraformAtmInput"
                                }
                              ]
                            }
                          ],
                          "FooterChildren": [
                            {
                              "Type": "StackPanel",
                              "Orientation": "Horizontal",
                              "Gap": 8,
                              "HorizontalAlignment": "Right",
                              "Children": [
                                {
                                  "Type": "Button",
                                  "Text": "Cancel",
                                  "Command": "core.terraform_sm_close_atm_modal"
                                },
                                {
                                  "Type": "Button",
                                  "Id": "btn_sm_terraform_atm_apply",
                                  "Text": "Apply",
                                  "Style": "Primary",
                                  "Command": "core.terraform_sm_apply_atm"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "Type": "Modal",
                          "Id": "modal_sm_terraform_set_hydro",
                          "IsVisible": false,
                          "Title": "Set Hydro Extent",
                          "IsDismissible": true,
                          "CloseCommand": "core.terraform_sm_close_hydro_modal",
                          "Size": "Small",
                          "Bindings": [
                            {
                              "TargetProperty": "IsVisible",
                              "Path": "ColonyManagementUiStateComponent.SmTerraformHydroModalVisible"
                            }
                          ],
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Set the hydro extent (%) for this body.",
                              "Classes": [
                                "ps-text-secondary"
                              ]
                            },
                            {
                              "Type": "Input",
                              "Id": "input_sm_terraform_hydro",
                              "InputType": "number",
                              "Placeholder": "0.0",
                              "Min": 0,
                              "Max": 100,
                              "Step": 0.1,
                              "CommitOnInput": true,
                              "Command": "core.terraform_sm_set_hydro_value",
                              "Bindings": [
                                {
                                  "TargetProperty": "Value",
                                  "Path": "ColonyManagementUiStateComponent.SmTerraformHydroInput"
                                }
                              ]
                            }
                          ],
                          "FooterChildren": [
                            {
                              "Type": "StackPanel",
                              "Orientation": "Horizontal",
                              "Gap": 8,
                              "HorizontalAlignment": "Right",
                              "Children": [
                                {
                                  "Type": "Button",
                                  "Text": "Cancel",
                                  "Command": "core.terraform_sm_close_hydro_modal"
                                },
                                {
                                  "Type": "Button",
                                  "Id": "btn_sm_terraform_hydro_apply",
                                  "Text": "Apply",
                                  "Style": "Primary",
                                  "Command": "core.terraform_sm_apply_hydro"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "Type": "TabItem",
                      "Id": "tabitem_colony_governor",
                      "Title": "Governor / Misc",
                      "Children": [
                        {
                          "Type": "Panel",
                          "Id": "tab_governor_no_colony",
                          "Width": "100%",
                          "Height": "100%",
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch",
                          "Bindings": [
                            {
                              "TargetProperty": "IsVisible",
                              "Path": "ColonyManagementUiStateComponent.NoColonySelected"
                            }
                          ],
                          "Children": [
                            {
                              "Type": "Grid",
                              "Width": "100%",
                              "Height": "100%",
                              "HorizontalAlignment": "Stretch",
                              "VerticalAlignment": "Stretch",
                              "ColumnDefinitions": [
                                "1fr"
                              ],
                              "RowDefinitions": [
                                "1fr"
                              ],
                              "Children": [
                                {
                                  "Type": "Alert",
                                  "Id": "alert_select_colony_hint_governor",
                                  "Grid.Column": 0,
                                  "Grid.Row": 0,
                                  "HorizontalAlignment": "Center",
                                  "VerticalAlignment": "Center",
                                  "Severity": "Info",
                                  "IsDismissible": false,
                                  "Message": "Select a colony to manage governor settings."
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "Type": "Grid",
                          "Id": "governor_root",
                          "Width": "100%",
                          "Height": "100%",
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch",
                          "ColumnDefinitions": [
                            "1fr",
                            "1fr"
                          ],
                          "RowDefinitions": [
                            "1fr"
                          ],
                          "Gap": 0,
                          "Children": [
                            {
                              "Type": "PropertyGrid",
                              "Id": "governor_property_grid",
                              "Grid.Column": 0,
                              "Grid.Row": 0,
                              "Width": "100%",
                              "Height": "100%",
                              "Classes": [
                                "ps-pgrid--scrollable"
                              ],
                              "Sections": []
                            },
                            {
                              "Type": "ScrollBox",
                              "Id": "governor_sidebar",
                              "Grid.Column": 1,
                              "Grid.Row": 0,
                              "Width": "100%",
                              "Height": "100%",
                              "Children": [
                                {
                                  "Type": "StackPanel",
                                  "Orientation": "Vertical",
                                  "Gap": 12,
                                  "Width": "100%",
                                  "Children": [
                                    {
                                      "Type": "RadioGroup",
                                      "Id": "radio_governor_assignment",
                                      "Label": "Assignment Mode",
                                      "Orientation": "Vertical",
                                      "Command": "core.colony_governor_set_assignment",
                                      "Items": [
                                        {
                                          "Label": "Automated",
                                          "Value": "automated",
                                          "Description": "Auto-assign based on importance and bonus preferences"
                                        },
                                        {
                                          "Label": "Manual",
                                          "Value": "manual",
                                          "Description": "Choose a governor from the candidate list"
                                        },
                                        {
                                          "Label": "No Assignment",
                                          "Value": "none",
                                          "Description": "Colony will not receive a governor"
                                        }
                                      ]
                                    },
                                    {
                                      "Type": "StackPanel",
                                      "Orientation": "Horizontal",
                                      "Gap": 8,
                                      "VerticalAlignment": "Center",
                                      "Children": [
                                        {
                                          "Type": "Label",
                                          "Text": "Colony Importance (1 = High):",
                                          "Tooltip": "Determines priority for automated governor assignment. Lower values get first pick of available administrators. Also sets the minimum admin rating required for a governor candidate."
                                        },
                                        {
                                          "Type": "Input",
                                          "Id": "input_governor_importance",
                                          "Width": "60px",
                                          "InputType": "number",
                                          "Min": 1,
                                          "Max": 10,
                                          "Step": 1,
                                          "Command": "core.colony_governor_set_importance"
                                        }
                                      ]
                                    },
                                    {
                                      "Type": "StackPanel",
                                      "Orientation": "Horizontal",
                                      "Gap": 6,
                                      "Width": "100%",
                                      "Children": [
                                        {
                                          "Type": "Label",
                                          "Text": "Required Bonus:",
                                          "VerticalAlignment": "Center",
                                          "Tooltip": "The primary bonus type the automated assignment system prioritizes. Only administrators with this bonus will be considered for this colony."
                                        },
                                        {
                                          "Type": "Select",
                                          "Id": "select_governor_bonus_one",
                                          "Width": "100%",
                                          "Placeholder": "Any",
                                          "Command": "core.colony_governor_set_bonus_one",
                                          "Options": []
                                        }
                                      ]
                                    },
                                    {
                                      "Type": "StackPanel",
                                      "Orientation": "Horizontal",
                                      "Gap": 6,
                                      "Width": "100%",
                                      "Children": [
                                        {
                                          "Type": "Label",
                                          "Text": "Secondary Bonus:",
                                          "VerticalAlignment": "Center",
                                          "Tooltip": "Used as a tiebreaker when multiple candidates have the same primary bonus score. Higher secondary bonus values are preferred."
                                        },
                                        {
                                          "Type": "Select",
                                          "Id": "select_governor_bonus_two",
                                          "Width": "100%",
                                          "Placeholder": "Any",
                                          "Command": "core.colony_governor_set_bonus_two",
                                          "Options": []
                                        }
                                      ]
                                    },
                                    {
                                      "Type": "StackPanel",
                                      "Orientation": "Horizontal",
                                      "Gap": 6,
                                      "Width": "100%",
                                      "Children": [
                                        {
                                          "Type": "Label",
                                          "Text": "Tertiary Bonus:",
                                          "VerticalAlignment": "Center",
                                          "Tooltip": "Used as a final tiebreaker when both primary and secondary bonus scores are equal."
                                        },
                                        {
                                          "Type": "Select",
                                          "Id": "select_governor_bonus_three",
                                          "Width": "100%",
                                          "Placeholder": "Any",
                                          "Command": "core.colony_governor_set_bonus_three",
                                          "Options": []
                                        }
                                      ]
                                    },
                                    {
                                      "Type": "TabContainer",
                                      "Id": "tabs_leader_assignment",
                                      "Width": "100%",
                                      "Height": "100%",
                                      "ActiveIndex": 0,
                                      "Children": [
                                        {
                                          "Type": "TabItem",
                                          "Id": "tabitem_governor_assignment",
                                          "Title": "Governor",
                                          "Children": [
                                            {
                                              "Type": "StackPanel",
                                              "Orientation": "Vertical",
                                              "Gap": 6,
                                              "Width": "100%",
                                              "Children": [
                                                {
                                                  "Type": "DataGrid",
                                                  "Id": "datagrid_governor_candidates",
                                                  "Width": "100%",
                                                  "Height": "100%",
                                                  "SelectionMode": "Single",
                                                  "OnSelectionChanged": "core.colony_governor_select_candidate",
                                                  "Columns": [
                                                    {
                                                      "Header": "Name",
                                                      "Field": "name",
                                                      "Width": "2*"
                                                    },
                                                    {
                                                      "Header": "Admin",
                                                      "Field": "admin_rating",
                                                      "Width": "*"
                                                    },
                                                    {
                                                      "Header": "Bonus",
                                                      "Field": "primary_bonus",
                                                      "Width": "*"
                                                    },
                                                    {
                                                      "Header": "Age",
                                                      "Field": "age",
                                                      "Width": "*"
                                                    }
                                                  ],
                                                  "Rows": []
                                                },
                                                {
                                                  "Type": "Button",
                                                  "Id": "btn_governor_assign",
                                                  "Text": "Assign Colony Governor",
                                                  "Style": "Primary",
                                                  "Command": "core.colony_governor_assign",
                                                  "Width": "100%",
                                                  "Bindings": [
                                                    {
                                                      "TargetProperty": "IsEnabled",
                                                      "Path": "ColonyManagementUiStateComponent.GovernorCandidateSelected"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "Type": "Button",
                                                  "Id": "btn_governor_unassign",
                                                  "Text": "Unassign Governor",
                                                  "Command": "core.colony_governor_unassign",
                                                  "Width": "100%"
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "Type": "TabItem",
                                          "Id": "tabitem_commandant_assignment",
                                          "Title": "Academy Commandant",
                                          "Children": [
                                            {
                                              "Type": "StackPanel",
                                              "Orientation": "Vertical",
                                              "Gap": 6,
                                              "Width": "100%",
                                              "Children": [
                                                {
                                                  "Type": "DataGrid",
                                                  "Id": "datagrid_commandant_candidates",
                                                  "Width": "100%",
                                                  "Height": "100%",
                                                  "SelectionMode": "Single",
                                                  "OnSelectionChanged": "core.colony_commandant_select_candidate",
                                                  "Columns": [
                                                    {
                                                      "Header": "Name",
                                                      "Field": "name",
                                                      "Width": "2*"
                                                    },
                                                    {
                                                      "Header": "Admin",
                                                      "Field": "admin_rating",
                                                      "Width": "*"
                                                    },
                                                    {
                                                      "Header": "Research Field",
                                                      "Field": "research_field",
                                                      "Width": "*"
                                                    },
                                                    {
                                                      "Header": "Age",
                                                      "Field": "age",
                                                      "Width": "*"
                                                    }
                                                  ],
                                                  "Rows": []
                                                },
                                                {
                                                  "Type": "Button",
                                                  "Id": "btn_commandant_assign",
                                                  "Text": "Assign Academy Commandant",
                                                  "Style": "Primary",
                                                  "Command": "core.colony_commandant_assign",
                                                  "Width": "100%",
                                                  "Bindings": [
                                                    {
                                                      "TargetProperty": "IsEnabled",
                                                      "Path": "ColonyManagementUiStateComponent.CommandantCandidateSelected"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "Type": "Button",
                                                  "Id": "btn_commandant_unassign",
                                                  "Text": "Unassign Commandant",
                                                  "Command": "core.colony_commandant_unassign",
                                                  "Width": "100%"
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "Type": "StackPanel",
                                      "Orientation": "Vertical",
                                      "Gap": 6,
                                      "Width": "100%",
                                      "Children": [
                                        {
                                          "Type": "Button",
                                          "Id": "btn_governor_assign_vacancies",
                                          "Text": "Assign Governor Vacancies",
                                          "Width": "100%",
                                          "Command": "core.colony_governor_assign_vacancies"
                                        },
                                        {
                                          "Type": "Button",
                                          "Id": "btn_governor_reassign_all",
                                          "Text": "Reassign All Colony Governors",
                                          "Width": "100%",
                                          "Command": "core.colony_governor_reassign_all"
                                        }
                                      ]
                                    },
                                    {
                                      "Type": "StackPanel",
                                      "Orientation": "Vertical",
                                      "Gap": 6,
                                      "Width": "100%",
                                      "Children": [
                                        {
                                          "Type": "StackPanel",
                                          "Orientation": "Horizontal",
                                          "Gap": 8,
                                          "VerticalAlignment": "Center",
                                          "Children": [
                                            {
                                              "Type": "Label",
                                              "Text": "Fuel Warning:",
                                              "Width": "110px",
                                              "Tooltip": "Triggers a toast warning when the colony fuel stockpile drops below this many litres. Set to 0 to disable."
                                            },
                                            {
                                              "Type": "Input",
                                              "Id": "input_fuel_warning",
                                              "Width": "80px",
                                              "InputType": "number",
                                              "Min": 0,
                                              "Step": 1000,
                                              "Command": "core.colony_set_fuel_warning"
                                            }
                                          ]
                                        },
                                        {
                                          "Type": "StackPanel",
                                          "Orientation": "Horizontal",
                                          "Gap": 8,
                                          "VerticalAlignment": "Center",
                                          "Children": [
                                            {
                                              "Type": "Label",
                                              "Text": "MSP Warning:",
                                              "Width": "110px",
                                              "Tooltip": "Triggers a toast warning when the colony MSP stockpile drops below this value. Set to 0 to disable."
                                            },
                                            {
                                              "Type": "Input",
                                              "Id": "input_msp_warning",
                                              "Width": "80px",
                                              "InputType": "number",
                                              "Min": 0,
                                              "Step": 100,
                                              "Command": "core.colony_set_msp_warning"
                                            }
                                          ]
                                        },
                                        {
                                          "Type": "RadioGroup",
                                          "Id": "radio_warning_mode",
                                          "Orientation": "Horizontal",
                                          "Gap": 12,
                                          "Command": "core.colony_set_warning_mode",
                                          "Items": [
                                            {
                                              "Label": "Constant",
                                              "Value": "constant",
                                              "Tooltip": "Fires a warning every time the stockpile drops below the threshold. Repeats at most once per game-day."
                                            },
                                            {
                                              "Label": "Single Warning",
                                              "Value": "single",
                                              "Tooltip": "Fires a warning once when the stockpile first drops below the threshold. Resets automatically when the stockpile recovers."
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "Type": "TabItem",
                      "Id": "tabitem_colony_pows",
                      "Title": "POWs",
                      "Children": [
                        {
                          "Type": "Grid",
                          "Id": "pows_layout",
                          "Width": "100%",
                          "Height": "100%",
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch",
                          "RowDefinitions": [
                            "1fr",
                            "Auto"
                          ],
                          "ColumnDefinitions": [
                            "1fr"
                          ],
                          "Gap": 8,
                          "Children": [
                            {
                              "Type": "DataGrid",
                              "Id": "datagrid_pows",
                              "Grid.Row": 0,
                              "Grid.Column": 0,
                              "Width": "100%",
                              "Height": "100%",
                              "HorizontalAlignment": "Stretch",
                              "VerticalAlignment": "Stretch",
                              "SelectionMode": "Single",
                              "AllowSorting": true,
                              "UseZebraStriping": true,
                              "Columns": [
                                {
                                  "Header": "Location",
                                  "Field": "location",
                                  "Width": "1fr"
                                },
                                {
                                  "Header": "NHQ",
                                  "Field": "nhq",
                                  "Width": "auto"
                                },
                                {
                                  "Header": "System",
                                  "Field": "system",
                                  "Width": "auto"
                                },
                                {
                                  "Header": "Race",
                                  "Field": "race",
                                  "Width": "auto"
                                },
                                {
                                  "Header": "Enlisted Prisoners",
                                  "Field": "enlisted_prisoners",
                                  "Width": "auto",
                                  "Align": "Right"
                                },
                                {
                                  "Header": "Processed",
                                  "Field": "processed",
                                  "Width": "auto",
                                  "Align": "Right"
                                }
                              ],
                              "Rows": []
                            },
                            {
                              "Type": "Grid",
                              "Id": "pows_actions",
                              "Grid.Row": 1,
                              "Grid.Column": 0,
                              "Margin": "8px 0 0 0",
                              "ColumnDefinitions": [
                                "Auto",
                                "1fr"
                              ],
                              "RowDefinitions": [
                                "Auto"
                              ],
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Button",
                                  "Id": "btn_pows_release",
                                  "Grid.Row": 0,
                                  "Grid.Column": 0,
                                  "Text": "Release",
                                  "Command": "core.pows_release"
                                },
                                {
                                  "Type": "RadioGroup",
                                  "Id": "radio_pows_view",
                                  "Grid.Row": 0,
                                  "Grid.Column": 1,
                                  "HorizontalAlignment": "Right",
                                  "Orientation": "Horizontal",
                                  "Command": "core.pows_toggle_view",
                                  "Items": [
                                    {
                                      "Label": "Population",
                                      "Value": "population"
                                    },
                                    {
                                      "Label": "Empire",
                                      "Value": "empire"
                                    }
                                  ],
                                  "SelectedValue": "population"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "Type": "TabItem",
                      "Id": "tabitem_colony_empire_mining",
                      "Title": "Empire Mining",
                      "Children": [
                        {
                          "Type": "Grid",
                          "Id": "empire_mining_layout",
                          "Width": "100%",
                          "Height": "100%",
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch",
                          "RowDefinitions": [
                            "2fr",
                            "Auto",
                            "1fr"
                          ],
                          "ColumnDefinitions": [
                            "1fr"
                          ],
                          "Gap": 8,
                          "Children": [
                            {
                              "Type": "DataGrid",
                              "Id": "datagrid_empire_mining_production",
                              "Grid.Row": 0,
                              "Grid.Column": 0,
                              "Width": "100%",
                              "Height": "100%",
                              "HorizontalAlignment": "Stretch",
                              "VerticalAlignment": "Stretch",
                              "SelectionMode": "None",
                              "AllowSorting": true,
                              "UseZebraStriping": true,
                              "Columns": [
                                {
                                  "Header": "Production",
                                  "Field": "production",
                                  "Width": "1fr"
                                },
                                {
                                  "Header": "Duranium",
                                  "Field": "duranium",
                                  "Width": "auto",
                                  "Align": "Right"
                                },
                                {
                                  "Header": "Neutronium",
                                  "Field": "neutronium",
                                  "Width": "auto",
                                  "Align": "Right"
                                },
                                {
                                  "Header": "Corbomite",
                                  "Field": "corbomite",
                                  "Width": "auto",
                                  "Align": "Right"
                                },
                                {
                                  "Header": "Tritanium",
                                  "Field": "tritanium",
                                  "Width": "auto",
                                  "Align": "Right"
                                },
                                {
                                  "Header": "Boronide",
                                  "Field": "boronide",
                                  "Width": "auto",
                                  "Align": "Right"
                                },
                                {
                                  "Header": "Corundium",
                                  "Field": "corundium",
                                  "Width": "auto",
                                  "Align": "Right"
                                },
                                {
                                  "Header": "Mercassium",
                                  "Field": "mercassium",
                                  "Width": "auto",
                                  "Align": "Right"
                                },
                                {
                                  "Header": "Uridium",
                                  "Field": "uridium",
                                  "Width": "auto",
                                  "Align": "Right"
                                },
                                {
                                  "Header": "Sorium",
                                  "Field": "sorium",
                                  "Width": "auto",
                                  "Align": "Right"
                                },
                                {
                                  "Header": "Vendarite",
                                  "Field": "vendarite",
                                  "Width": "auto",
                                  "Align": "Right"
                                },
                                {
                                  "Header": "Gallicite",
                                  "Field": "gallicite",
                                  "Width": "auto",
                                  "Align": "Right"
                                }
                              ],
                              "Rows": []
                            },
                            {
                              "Type": "StackPanel",
                              "Id": "empire_mining_delta_range_row",
                              "Grid.Row": 1,
                              "Grid.Column": 0,
                              "Orientation": "Horizontal",
                              "HorizontalAlignment": "Right",
                              "VerticalAlignment": "Center",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Id": "lbl_empire_mining_delta_range",
                                  "Text": "Change Per:",
                                  "VerticalAlignment": "Center"
                                },
                                {
                                  "Type": "Select",
                                  "Id": "select_empire_mining_delta_range",
                                  "Width": "140",
                                  "Command": "core.empire_mining_set_delta_range",
                                  "Options": []
                                }
                              ]
                            },
                            {
                              "Type": "DataGrid",
                              "Id": "datagrid_empire_mining_stockpiles",
                              "Grid.Row": 2,
                              "Grid.Column": 0,
                              "Width": "100%",
                              "Height": "100%",
                              "HorizontalAlignment": "Stretch",
                              "VerticalAlignment": "Stretch",
                              "SelectionMode": "None",
                              "AllowSorting": true,
                              "UseZebraStriping": true,
                              "Columns": [
                                {
                                  "Header": "Stockpiles",
                                  "Field": "stockpiles",
                                  "Width": "1fr"
                                },
                                {
                                  "Header": "Duranium",
                                  "Field": "duranium",
                                  "Width": "auto",
                                  "Align": "Right",
                                  "CellType": "subtitleText"
                                },
                                {
                                  "Header": "Neutronium",
                                  "Field": "neutronium",
                                  "Width": "auto",
                                  "Align": "Right",
                                  "CellType": "subtitleText"
                                },
                                {
                                  "Header": "Corbomite",
                                  "Field": "corbomite",
                                  "Width": "auto",
                                  "Align": "Right",
                                  "CellType": "subtitleText"
                                },
                                {
                                  "Header": "Tritanium",
                                  "Field": "tritanium",
                                  "Width": "auto",
                                  "Align": "Right",
                                  "CellType": "subtitleText"
                                },
                                {
                                  "Header": "Boronide",
                                  "Field": "boronide",
                                  "Width": "auto",
                                  "Align": "Right",
                                  "CellType": "subtitleText"
                                },
                                {
                                  "Header": "Corundium",
                                  "Field": "corundium",
                                  "Width": "auto",
                                  "Align": "Right",
                                  "CellType": "subtitleText"
                                },
                                {
                                  "Header": "Mercassium",
                                  "Field": "mercassium",
                                  "Width": "auto",
                                  "Align": "Right",
                                  "CellType": "subtitleText"
                                },
                                {
                                  "Header": "Uridium",
                                  "Field": "uridium",
                                  "Width": "auto",
                                  "Align": "Right",
                                  "CellType": "subtitleText"
                                },
                                {
                                  "Header": "Sorium",
                                  "Field": "sorium",
                                  "Width": "auto",
                                  "Align": "Right",
                                  "CellType": "subtitleText"
                                },
                                {
                                  "Header": "Vendarite",
                                  "Field": "vendarite",
                                  "Width": "auto",
                                  "Align": "Right",
                                  "CellType": "subtitleText"
                                },
                                {
                                  "Header": "Gallicite",
                                  "Field": "gallicite",
                                  "Width": "auto",
                                  "Align": "Right",
                                  "CellType": "subtitleText"
                                }
                              ],
                              "Rows": []
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "Type": "TabItem",
                      "Id": "tabitem_colony_ancient_constructs",
                      "Title": "Constructs",
                      "Children": [
                        {
                          "Type": "Grid",
                          "Id": "ancient_constructs_layout",
                          "Width": "100%",
                          "Height": "100%",
                          "HorizontalAlignment": "Stretch",
                          "VerticalAlignment": "Stretch",
                          "RowDefinitions": [
                            "1fr"
                          ],
                          "ColumnDefinitions": [
                            "1fr"
                          ],
                          "Gap": 8,
                          "Children": [
                            {
                              "Type": "DataGrid",
                              "Id": "datagrid_ancient_constructs",
                              "Grid.Row": 0,
                              "Grid.Column": 0,
                              "Width": "100%",
                              "Height": "100%",
                              "HorizontalAlignment": "Stretch",
                              "VerticalAlignment": "Stretch",
                              "SelectionMode": "None",
                              "AllowSorting": true,
                              "UseZebraStriping": true,
                              "Columns": [
                                {
                                  "Header": "System",
                                  "Field": "system",
                                  "Width": "1fr"
                                },
                                {
                                  "Header": "Body",
                                  "Field": "body",
                                  "Width": "1fr"
                                },
                                {
                                  "Header": "Population",
                                  "Field": "population",
                                  "Width": "auto",
                                  "Align": "Right"
                                },
                                {
                                  "Header": "Labs",
                                  "Field": "labs",
                                  "Width": "auto",
                                  "Align": "Right"
                                },
                                {
                                  "Header": "Active",
                                  "Field": "active",
                                  "Width": "auto",
                                  "Align": "Center"
                                },
                                {
                                  "Header": "Field",
                                  "Field": "field",
                                  "Width": "auto"
                                },
                                {
                                  "Header": "Bonus",
                                  "Field": "bonus",
                                  "Width": "auto",
                                  "Align": "Right"
                                }
                              ],
                              "Rows": []
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "Type": "Modal",
                  "Id": "modal_ground_training_rename",
                  "Grid.Column": 0,
                  "Grid.Row": 0,
                  "Grid.ColumnSpan": 2,
                  "Grid.RowSpan": 1,
                  "IsVisible": false,
                  "Title": "Rename training task",
                  "CloseCommand": "core.colony_ground_training_cancel_rename",
                  "DefaultCommand": "core.colony_ground_training_confirm_rename",
                  "Bindings": [
                    {
                      "TargetProperty": "IsVisible",
                      "Path": "ColonyManagementUiStateComponent.GroundTrainingRenameModalVisible"
                    }
                  ],
                  "Children": [
                    {
                      "Type": "StackPanel",
                      "Orientation": "Vertical",
                      "Gap": 8,
                      "Children": [
                        {
                          "Type": "Label",
                          "Text": "Formation name",
                          "Classes": [
                            "ps-text-secondary"
                          ]
                        },
                        {
                          "Type": "Input",
                          "Id": "input_ground_training_rename_name",
                          "Command": "core.colony_ground_training_set_rename_name",
                          "Width": "100%",
                          "AutoFocus": true
                        }
                      ]
                    }
                  ],
                  "FooterChildren": [
                    {
                      "Type": "StackPanel",
                      "Orientation": "Horizontal",
                      "HorizontalAlignment": "Right",
                      "Gap": 8,
                      "Children": [
                        {
                          "Type": "Button",
                          "Id": "btn_ground_training_rename_confirm",
                          "Text": "Rename Task",
                          "Style": "Primary",
                          "Command": "core.colony_ground_training_confirm_rename",
                          "IsEnabled": false
                        },
                        {
                          "Type": "Button",
                          "Text": "Cancel",
                          "Command": "core.colony_ground_training_cancel_rename"
                        }
                      ]
                    }
                  ]
                },
                {
                  "Type": "Modal",
                  "Id": "modal_ground_training_clear_queue",
                  "Grid.Column": 0,
                  "Grid.Row": 0,
                  "Grid.ColumnSpan": 2,
                  "Grid.RowSpan": 1,
                  "IsVisible": false,
                  "Title": "Clear queue?",
                  "CloseCommand": "core.colony_ground_training_cancel_clear_queue",
                  "Bindings": [
                    {
                      "TargetProperty": "IsVisible",
                      "Path": "ColonyManagementUiStateComponent.GroundTrainingClearQueueConfirmVisible"
                    }
                  ],
                  "Children": [
                    {
                      "Type": "StackPanel",
                      "Orientation": "Vertical",
                      "Gap": 8,
                      "Children": [
                        {
                          "Type": "Label",
                          "Id": "lbl_ground_training_clear_queue_confirm_body",
                          "Text": "Clear all queued training tasks for this colony?"
                        },
                        {
                          "Type": "StackPanel",
                          "Orientation": "Horizontal",
                          "HorizontalAlignment": "Right",
                          "Gap": 8,
                          "Margin": "10px 0 0 0",
                          "Children": [
                            {
                              "Type": "Button",
                              "Text": "Cancel",
                              "Command": "core.colony_ground_training_cancel_clear_queue"
                            },
                            {
                              "Type": "Button",
                              "Text": "Clear Queue",
                              "Style": "Primary",
                              "Command": "core.colony_ground_training_confirm_clear_queue"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "Type": "Modal",
                  "Id": "modal_ground_training_delete_confirm",
                  "Grid.Column": 0,
                  "Grid.Row": 0,
                  "Grid.ColumnSpan": 2,
                  "Grid.RowSpan": 1,
                  "IsVisible": false,
                  "Title": "Delete training task?",
                  "BadgeText": "Warning",
                  "BadgeVariant": "warn",
                  "AccentVariant": "Warning",
                  "DisplayMode": "Glow",
                  "CloseCommand": "core.colony_ground_training_cancel_delete",
                  "Bindings": [
                    {
                      "TargetProperty": "IsVisible",
                      "Path": "ColonyManagementUiStateComponent.GroundTrainingDeleteConfirmVisible"
                    }
                  ],
                  "Children": [
                    {
                      "Type": "Label",
                      "Id": "lbl_ground_training_delete_confirm_body",
                      "Text": "Delete the selected training task?"
                    }
                  ],
                  "FooterChildren": [
                    {
                      "Type": "StackPanel",
                      "Orientation": "Horizontal",
                      "HorizontalAlignment": "Right",
                      "Gap": 8,
                      "Children": [
                        {
                          "Type": "Button",
                          "Id": "btn_ground_training_delete_confirm",
                          "Text": "Delete Task",
                          "Style": "Warning",
                          "Command": "core.colony_ground_training_confirm_delete"
                        },
                        {
                          "Type": "Button",
                          "Text": "Cancel",
                          "Command": "core.colony_ground_training_cancel_delete"
                        }
                      ]
                    }
                  ]
                },
                {
                  "Type": "Modal",
                  "Id": "modal_ground_training_warn",
                  "Grid.Column": 0,
                  "Grid.Row": 0,
                  "Grid.ColumnSpan": 2,
                  "Grid.RowSpan": 1,
                  "IsVisible": false,
                  "Title": "Ground Training",
                  "BadgeText": "Warning",
                  "BadgeVariant": "warn",
                  "AccentVariant": "Warning",
                  "DisplayMode": "Glow",
                  "CloseCommand": "core.colony_ground_training_dismiss_warn",
                  "Bindings": [
                    {
                      "TargetProperty": "IsVisible",
                      "Path": "ColonyManagementUiStateComponent.GroundTrainingWarnModalVisible"
                    }
                  ],
                  "Children": [
                    {
                      "Type": "Label",
                      "Id": "lbl_ground_training_warn_body",
                      "Text": ""
                    }
                  ],
                  "FooterChildren": [
                    {
                      "Type": "StackPanel",
                      "Orientation": "Horizontal",
                      "HorizontalAlignment": "Right",
                      "Gap": 8,
                      "Children": [
                        {
                          "Type": "Button",
                          "Text": "Dismiss",
                          "Style": "Primary",
                          "Command": "core.colony_ground_training_dismiss_warn"
                        }
                      ]
                    }
                  ]
                },
                {
                  "Type": "Modal",
                  "Id": "industry_cancel_modal",
                  "Grid.Column": 0,
                  "Grid.Row": 0,
                  "Grid.ColumnSpan": 2,
                  "Grid.RowSpan": 1,
                  "IsVisible": false,
                  "Title": "Cancel project?",
                  "BadgeText": "Warning",
                  "BadgeVariant": "warn",
                  "AccentVariant": "warning",
                  "DisplayMode": "Glow",
                  "CloseCommand": "core.industry_close_cancel_modal",
                  "Bindings": [
                    {
                      "TargetProperty": "IsVisible",
                      "Path": "ColonyManagementUiStateComponent.IndustryCancelModalVisible"
                    }
                  ],
                  "Children": [
                    {
                      "Type": "StackPanel",
                      "Orientation": "Vertical",
                      "Gap": 8,
                      "Children": [
                        {
                          "Type": "Label",
                          "Id": "lbl_industry_cancel_modal_body",
                          "Text": "This will remove the selected project from the queue.",
                          "Bindings": [
                            {
                              "TargetProperty": "Text",
                              "Path": "ColonyManagementUiStateComponent.IndustryCancelModalBody"
                            }
                          ],
                          "Classes": [
                            "ps-text-secondary"
                          ]
                        }
                      ]
                    }
                  ],
                  "FooterChildren": [
                    {
                      "Type": "StackPanel",
                      "Id": "industry_cancel_confirm_footer",
                      "Orientation": "Horizontal",
                      "Gap": 8,
                      "HorizontalAlignment": "Right",
                      "Children": [
                        {
                          "Type": "Button",
                          "Text": "Cancel project",
                          "Style": "Warning",
                          "Command": "core.industry_confirm_cancel_selected"
                        },
                        {
                          "Type": "Button",
                          "Text": "Keep",
                          "Command": "core.industry_close_cancel_modal"
                        }
                      ]
                    }
                  ]
                },
                {
                  "Type": "Modal",
                  "Id": "industry_modify_modal",
                  "Grid.Column": 0,
                  "Grid.Row": 0,
                  "Grid.ColumnSpan": 2,
                  "Grid.RowSpan": 1,
                  "IsVisible": false,
                  "Title": "Modify project",
                  "CloseCommand": "core.industry_close_modify_modal",
                  "DisplayMode": "Glow",
                  "Bindings": [
                    {
                      "TargetProperty": "IsVisible",
                      "Path": "ColonyManagementUiStateComponent.IndustryModifyModalVisible"
                    }
                  ],
                  "Children": [
                    {
                      "Type": "StackPanel",
                      "Orientation": "Vertical",
                      "Gap": 8,
                      "Children": [
                        {
                          "Type": "Grid",
                          "ColumnDefinitions": [
                            "80px",
                            "1fr"
                          ],
                          "Gap": 8,
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Amount"
                            },
                            {
                              "Type": "Input",
                              "Id": "input_industry_modify_amount",
                              "Grid.Column": 1,
                              "InputType": "number",
                              "AutoFocus": true,
                              "Command": "core.industry_set_modify_amount",
                              "Width": "100%",
                              "Bindings": [
                                {
                                  "TargetProperty": "Value",
                                  "Path": "ColonyManagementUiStateComponent.IndustryModifyAmount"
                                }
                              ]
                            },
                            {
                              "Type": "Label",
                              "Grid.Row": 1,
                              "Text": "Cap%"
                            },
                            {
                              "Type": "Input",
                              "Id": "input_industry_modify_cap",
                              "Grid.Row": 1,
                              "Grid.Column": 1,
                              "InputType": "number",
                              "Command": "core.industry_set_modify_cap",
                              "Width": "100%",
                              "Bindings": [
                                {
                                  "TargetProperty": "Value",
                                  "Path": "ColonyManagementUiStateComponent.IndustryModifyCapPercent"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ],
                  "FooterChildren": [
                    {
                      "Type": "StackPanel",
                      "Id": "industry_modify_modal_footer",
                      "Orientation": "Horizontal",
                      "Gap": 8,
                      "HorizontalAlignment": "Right",
                      "Children": [
                        {
                          "Type": "Button",
                          "Id": "btn_industry_modify_save",
                          "Text": "Save",
                          "Style": "Primary",
                          "Command": "core.industry_apply_modify"
                        },
                        {
                          "Type": "Button",
                          "Text": "Cancel",
                          "Command": "core.industry_close_modify_modal"
                        }
                      ]
                    }
                  ]
                },
                {
                  "Type": "Modal",
                  "Id": "industry_add_modal",
                  "Grid.Column": 0,
                  "Grid.Row": 0,
                  "Grid.ColumnSpan": 2,
                  "Grid.RowSpan": 1,
                  "IsVisible": false,
                  "Title": "Add project",
                  "CloseCommand": "core.industry_close_add_modal",
                  "DisplayMode": "Glow",
                  "Bindings": [
                    {
                      "TargetProperty": "IsVisible",
                      "Path": "ColonyManagementUiStateComponent.IndustryAddModalVisible"
                    }
                  ],
                  "Children": [
                    {
                      "Type": "StackPanel",
                      "Orientation": "Vertical",
                      "Gap": 8,
                      "Children": [
                        {
                          "Type": "Label",
                          "Id": "lbl_industry_add_modal_template",
                          "Text": "Template: \u2014",
                          "Bindings": [
                            {
                              "TargetProperty": "Text",
                              "Path": "ColonyManagementUiStateComponent.IndustryAddModalTemplateLabel"
                            }
                          ],
                          "Classes": [
                            "ps-text-secondary"
                          ]
                        },
                        {
                          "Type": "Grid",
                          "ColumnDefinitions": [
                            "80px",
                            "1fr"
                          ],
                          "Gap": 8,
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Amount"
                            },
                            {
                              "Type": "Input",
                              "Id": "input_industry_add_modal_amount",
                              "Grid.Column": 1,
                              "InputType": "number",
                              "AutoFocus": true,
                              "Command": "core.industry_set_add_modal_amount",
                              "Width": "100%",
                              "Bindings": [
                                {
                                  "TargetProperty": "Value",
                                  "Path": "ColonyManagementUiStateComponent.IndustryAddModalAmount"
                                }
                              ]
                            },
                            {
                              "Type": "Label",
                              "Grid.Row": 1,
                              "Text": "Cap%"
                            },
                            {
                              "Type": "Input",
                              "Id": "input_industry_add_modal_cap",
                              "Grid.Row": 1,
                              "Grid.Column": 1,
                              "InputType": "number",
                              "Command": "core.industry_set_add_modal_cap",
                              "Width": "100%",
                              "Bindings": [
                                {
                                  "TargetProperty": "Value",
                                  "Path": "ColonyManagementUiStateComponent.IndustryAddModalCapPercent"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ],
                  "FooterChildren": [
                    {
                      "Type": "StackPanel",
                      "Id": "industry_add_modal_footer",
                      "Orientation": "Horizontal",
                      "Gap": 8,
                      "HorizontalAlignment": "Right",
                      "Children": [
                        {
                          "Type": "Button",
                          "Id": "btn_industry_add_modal_add",
                          "Text": "Add",
                          "Style": "Primary",
                          "Command": "core.industry_apply_add_modal",
                          "Bindings": [
                            {
                              "TargetProperty": "IsEnabled",
                              "Path": "ColonyManagementUiStateComponent.IndustryAddModalCanAdd"
                            }
                          ]
                        },
                        {
                          "Type": "Button",
                          "Text": "Cancel",
                          "Command": "core.industry_close_add_modal"
                        }
                      ]
                    }
                  ]
                },
                {
                  "Type": "Modal",
                  "Id": "modal_rename_colony",
                  "Grid.Column": 0,
                  "Grid.Row": 0,
                  "Grid.ColumnSpan": 2,
                  "Grid.RowSpan": 1,
                  "IsVisible": false,
                  "Title": "Rename colony",
                  "BadgeText": "Edit",
                  "BadgeVariant": "edit",
                  "CloseCommand": "core.colony.cancel_rename",
                  "Bindings": [
                    {
                      "TargetProperty": "IsVisible",
                      "Path": "ColonyManagementUiStateComponent.RenameColonyModalVisible"
                    }
                  ],
                  "Children": [
                    {
                      "Type": "StackPanel",
                      "Orientation": "Vertical",
                      "Gap": 8,
                      "Children": [
                        {
                          "Type": "Label",
                          "Id": "lbl_rename_colony_prompt",
                          "Text": "Rename colony:",
                          "Classes": [
                            "ps-text-secondary"
                          ]
                        },
                        {
                          "Type": "Input",
                          "Id": "input_rename_colony_name",
                          "Placeholder": "Colony name",
                          "AutoFocus": true,
                          "CommitOnInput": true,
                          "Command": "core.colony.set_rename_name"
                        }
                      ]
                    }
                  ],
                  "FooterChildren": [
                    {
                      "Type": "StackPanel",
                      "Orientation": "Horizontal",
                      "HorizontalAlignment": "Right",
                      "Gap": 8,
                      "Children": [
                        {
                          "Type": "Button",
                          "Text": "Cancel",
                          "Command": "core.colony.cancel_rename"
                        },
                        {
                          "Type": "Button",
                          "Id": "btn_rename_colony_confirm",
                          "Text": "Rename Colony",
                          "Style": "Primary",
                          "Command": "core.colony.rename"
                        }
                      ]
                    }
                  ]
                },
                {
                  "Type": "Modal",
                  "Id": "modal_abandon_colony_confirm",
                  "Grid.Column": 0,
                  "Grid.Row": 0,
                  "Grid.ColumnSpan": 2,
                  "Grid.RowSpan": 1,
                  "IsVisible": false,
                  "Title": "Abandon colony?",
                  "BadgeText": "Warning",
                  "BadgeVariant": "warn",
                  "AccentVariant": "danger",
                  "DisplayMode": "Glow",
                  "BackdropVariant": "default",
                  "CloseCommand": "core.colony.cancel_abandon_confirm",
                  "Bindings": [
                    {
                      "TargetProperty": "IsVisible",
                      "Path": "ColonyManagementUiStateComponent.AbandonColonyConfirmVisible"
                    }
                  ],
                  "Children": [
                    {
                      "Type": "StackPanel",
                      "Orientation": "Vertical",
                      "Gap": 8,
                      "Children": [
                        {
                          "Type": "Label",
                          "Id": "lbl_abandon_colony_confirm_body",
                          "Text": "Abandon this colony? All production will cease.",
                          "Classes": [
                            "ps-text-secondary"
                          ]
                        },
                        {
                          "Type": "StackPanel",
                          "Orientation": "Horizontal",
                          "HorizontalAlignment": "Right",
                          "Gap": 8,
                          "Margin": "10px 0 0 0",
                          "Children": [
                            {
                              "Type": "Button",
                              "Text": "Keep Colony",
                              "Command": "core.colony.cancel_abandon_confirm"
                            },
                            {
                              "Type": "Button",
                              "Id": "btn_abandon_colony_confirm_primary",
                              "Text": "Continue",
                              "Style": "Danger",
                              "Command": "core.colony.confirm_abandon_primary"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "Type": "Modal",
                  "Id": "modal_abandon_colony_installations_confirm",
                  "Grid.Column": 0,
                  "Grid.Row": 0,
                  "Grid.ColumnSpan": 2,
                  "Grid.RowSpan": 1,
                  "IsVisible": false,
                  "Title": "Lose colony installations?",
                  "BadgeText": "Danger",
                  "BadgeVariant": "danger",
                  "AccentVariant": "danger",
                  "DisplayMode": "Glow",
                  "BackdropVariant": "default",
                  "CloseCommand": "core.colony.cancel_abandon_confirm",
                  "Bindings": [
                    {
                      "TargetProperty": "IsVisible",
                      "Path": "ColonyManagementUiStateComponent.AbandonColonyInstallationsConfirmVisible"
                    }
                  ],
                  "Children": [
                    {
                      "Type": "StackPanel",
                      "Orientation": "Vertical",
                      "Gap": 8,
                      "Children": [
                        {
                          "Type": "Label",
                          "Id": "lbl_abandon_colony_installations_confirm_body",
                          "Text": "This colony has installations which will be lost. Continue?",
                          "Classes": [
                            "ps-text-secondary"
                          ]
                        },
                        {
                          "Type": "StackPanel",
                          "Orientation": "Horizontal",
                          "HorizontalAlignment": "Right",
                          "Gap": 8,
                          "Margin": "10px 0 0 0",
                          "Children": [
                            {
                              "Type": "Button",
                              "Text": "Cancel",
                              "Command": "core.colony.cancel_abandon_confirm"
                            },
                            {
                              "Type": "Button",
                              "Id": "btn_abandon_colony_confirm_final",
                              "Text": "Abandon Colony",
                              "Style": "Danger",
                              "Command": "core.abandon_colony"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "Type": "Modal",
                  "Id": "shipyard_delete_confirm_modal",
                  "Grid.Column": 0,
                  "Grid.Row": 0,
                  "Grid.ColumnSpan": 2,
                  "Grid.RowSpan": 1,
                  "IsVisible": false,
                  "Title": "Delete shipyard?",
                  "BadgeText": "Warning",
                  "BadgeVariant": "warn",
                  "AccentVariant": "danger",
                  "DisplayMode": "Glow",
                  "CloseCommand": "client.shipyard.cancel_confirmation",
                  "Bindings": [
                    {
                      "TargetProperty": "IsVisible",
                      "Path": "ColonyManagementUiStateComponent.ShipyardDeleteConfirmVisible"
                    }
                  ],
                  "Children": [
                    {
                      "Type": "Label",
                      "Id": "lbl_shipyard_delete_confirm_body",
                      "Text": "Are you sure you want to delete the selected shipyard?",
                      "Classes": [
                        "ps-text-secondary"
                      ]
                    },
                    {
                      "Type": "Label",
                      "Id": "lbl_shipyard_delete_confirm_id",
                      "Text": "",
                      "IsVisible": false,
                      "Bindings": [
                        {
                          "TargetProperty": "Text",
                          "Path": "ColonyManagementUiStateComponent.ShipyardPendingConfirmationId"
                        }
                      ]
                    }
                  ],
                  "FooterChildren": [
                    {
                      "Type": "StackPanel",
                      "Orientation": "Horizontal",
                      "HorizontalAlignment": "Right",
                      "Gap": 8,
                      "Children": [
                        {
                          "Type": "Button",
                          "Id": "btn_shipyard_delete_confirm",
                          "Text": "Delete Shipyard",
                          "Style": "Danger",
                          "Command": "client.shipyard.confirm_confirmation"
                        },
                        {
                          "Type": "Button",
                          "Text": "Keep",
                          "Command": "client.shipyard.cancel_confirmation"
                        }
                      ]
                    }
                  ]
                },
                {
                  "Type": "Modal",
                  "Id": "shipyard_delete_task_confirm_modal",
                  "Grid.Column": 0,
                  "Grid.Row": 0,
                  "Grid.ColumnSpan": 2,
                  "Grid.RowSpan": 1,
                  "IsVisible": false,
                  "Title": "Delete task?",
                  "BadgeText": "Warning",
                  "BadgeVariant": "warn",
                  "AccentVariant": "warn",
                  "DisplayMode": "Glow",
                  "BackdropVariant": "default",
                  "CloseCommand": "client.shipyard.cancel_confirmation",
                  "Bindings": [
                    {
                      "TargetProperty": "IsVisible",
                      "Path": "ColonyManagementUiStateComponent.ShipyardDeleteTaskConfirmVisible"
                    }
                  ],
                  "Children": [
                    {
                      "Type": "Label",
                      "Id": "lbl_shipyard_delete_task_confirm_body",
                      "Text": "Are you sure you want to delete the selected shipyard task?",
                      "Classes": [
                        "ps-text-secondary"
                      ]
                    }
                  ],
                  "FooterChildren": [
                    {
                      "Type": "StackPanel",
                      "Orientation": "Horizontal",
                      "HorizontalAlignment": "Right",
                      "Gap": 8,
                      "Children": [
                        {
                          "Type": "Button",
                          "Id": "btn_shipyard_delete_task_confirm",
                          "Text": "Delete Task",
                          "Style": "Warning",
                          "Command": "client.shipyard.confirm_confirmation"
                        },
                        {
                          "Type": "Button",
                          "Text": "Keep",
                          "Command": "client.shipyard.cancel_confirmation"
                        }
                      ]
                    }
                  ]
                },
                {
                  "Type": "Modal",
                  "Id": "shipyard_cancel_activity_confirm_modal",
                  "Grid.Column": 0,
                  "Grid.Row": 0,
                  "Grid.ColumnSpan": 2,
                  "Grid.RowSpan": 1,
                  "IsVisible": false,
                  "Title": "Cancel Shipyard Activity?",
                  "BadgeText": "Warning",
                  "BadgeVariant": "warn",
                  "AccentVariant": "warning",
                  "DisplayMode": "Glow",
                  "CloseCommand": "client.shipyard.cancel_confirmation",
                  "Bindings": [
                    {
                      "TargetProperty": "IsVisible",
                      "Path": "ColonyManagementUiStateComponent.ShipyardCancelUpgradeConfirmVisible"
                    }
                  ],
                  "Children": [
                    {
                      "Type": "Label",
                      "Id": "lbl_shipyard_cancel_activity_confirm_body",
                      "Text": "Are you sure you want to cancel the selected shipyard activity?",
                      "Bindings": [
                        {
                          "TargetProperty": "Text",
                          "Path": "ColonyManagementUiStateComponent.ShipyardCancelActivityModalBody"
                        }
                      ],
                      "Classes": [
                        "ps-text-secondary"
                      ]
                    }
                  ],
                  "FooterChildren": [
                    {
                      "Type": "StackPanel",
                      "Orientation": "Horizontal",
                      "HorizontalAlignment": "Right",
                      "Gap": 8,
                      "Children": [
                        {
                          "Type": "Button",
                          "Id": "btn_shipyard_cancel_activity_confirm",
                          "Text": "Cancel Activity",
                          "Style": "Warning",
                          "Command": "client.shipyard.confirm_confirmation"
                        },
                        {
                          "Type": "Button",
                          "Text": "Keep",
                          "Command": "client.shipyard.cancel_confirmation"
                        }
                      ]
                    }
                  ]
                },
                {
                  "Type": "Modal",
                  "Id": "shipyard_auto_rename_confirm_modal",
                  "Grid.Column": 0,
                  "Grid.Row": 0,
                  "Grid.ColumnSpan": 2,
                  "Grid.RowSpan": 1,
                  "IsVisible": false,
                  "Title": "Auto Rename Shipyard?",
                  "BadgeText": "Warning",
                  "BadgeVariant": "warn",
                  "AccentVariant": "warning",
                  "DisplayMode": "Glow",
                  "BackdropVariant": "default",
                  "CloseCommand": "client.shipyard.cancel_confirmation",
                  "Bindings": [
                    {
                      "TargetProperty": "IsVisible",
                      "Path": "ColonyManagementUiStateComponent.ShipyardAutoRenameConfirmVisible"
                    }
                  ],
                  "Children": [
                    {
                      "Type": "StackPanel",
                      "Orientation": "Vertical",
                      "Gap": 8,
                      "Children": [
                        {
                          "Type": "Label",
                          "Id": "lbl_shipyard_auto_rename_confirm_body",
                          "Text": "This will replace the shipyard name with an auto-generated name. Continue?",
                          "Classes": [
                            "ps-text-secondary"
                          ]
                        },
                        {
                          "Type": "StackPanel",
                          "Orientation": "Horizontal",
                          "HorizontalAlignment": "Right",
                          "Gap": 8,
                          "Margin": "10px 0 0 0",
                          "Children": [
                            {
                              "Type": "Button",
                              "Text": "Cancel",
                              "Command": "client.shipyard.cancel_confirmation"
                            },
                            {
                              "Type": "Button",
                              "Id": "btn_shipyard_auto_rename_confirm",
                              "Text": "Auto Rename",
                              "Style": "Primary",
                              "Command": "client.shipyard.confirm_confirmation"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "Type": "Modal",
                  "Id": "shipyard_rename_modal",
                  "Grid.Column": 0,
                  "Grid.Row": 0,
                  "Grid.ColumnSpan": 2,
                  "Grid.RowSpan": 1,
                  "IsVisible": false,
                  "Title": "Rename shipyard",
                  "DisplayMode": "Glow",
                  "CloseCommand": "client.shipyard.cancel_rename_shipyard",
                  "Bindings": [
                    {
                      "TargetProperty": "IsVisible",
                      "Path": "ColonyManagementUiStateComponent.ShipyardRenameVisible"
                    }
                  ],
                  "Children": [
                    {
                      "Type": "Label",
                      "Id": "lbl_shipyard_rename_current_name",
                      "Text": "New name",
                      "Classes": [
                        "ps-text-secondary"
                      ]
                    },
                    {
                      "Type": "Input",
                      "Id": "input_shipyard_rename_modal",
                      "Command": "client.shipyard.set_rename_shipyard_name",
                      "Width": "100%",
                      "AutoFocus": true
                    }
                  ],
                  "FooterChildren": [
                    {
                      "Type": "StackPanel",
                      "Orientation": "Horizontal",
                      "HorizontalAlignment": "Right",
                      "Gap": 8,
                      "Children": [
                        {
                          "Type": "Button",
                          "Id": "btn_shipyard_rename_modal_confirm",
                          "Text": "Rename Shipyard",
                          "Style": "Primary",
                          "Command": "client.shipyard.confirm_rename_shipyard"
                        },
                        {
                          "Type": "Button",
                          "Text": "Cancel",
                          "Command": "client.shipyard.cancel_rename_shipyard"
                        }
                      ]
                    }
                  ]
                },
                {
                  "Type": "Modal",
                  "Id": "shipyard_task_rename_modal",
                  "Grid.Column": 0,
                  "Grid.Row": 0,
                  "Grid.ColumnSpan": 2,
                  "Grid.RowSpan": 1,
                  "IsVisible": false,
                  "Title": "Rename ship",
                  "CloseCommand": "client.shipyard.cancel_rename_task_ship",
                  "DefaultCommand": "client.shipyard.confirm_rename_task_ship",
                  "DisplayMode": "Glow",
                  "Size": "Small",
                  "Children": [
                    {
                      "Type": "StackPanel",
                      "Orientation": "Vertical",
                      "Gap": 8,
                      "Children": [
                        {
                          "Type": "Label",
                          "Text": "New ship name",
                          "Classes": [
                            "ps-text-secondary"
                          ]
                        },
                        {
                          "Type": "Input",
                          "Id": "input_shipyard_task_rename_modal",
                          "Command": "client.shipyard.set_rename_task_ship_name",
                          "Width": "100%",
                          "AutoFocus": true
                        }
                      ]
                    }
                  ],
                  "FooterChildren": [
                    {
                      "Type": "StackPanel",
                      "Orientation": "Horizontal",
                      "HorizontalAlignment": "Right",
                      "Gap": 8,
                      "Children": [
                        {
                          "Type": "Button",
                          "Id": "btn_shipyard_task_rename_confirm",
                          "Text": "Rename Ship",
                          "Style": "Primary",
                          "Command": "client.shipyard.confirm_rename_task_ship",
                          "IsEnabled": false
                        },
                        {
                          "Type": "Button",
                          "Text": "Cancel",
                          "Command": "client.shipyard.cancel_rename_task_ship"
                        }
                      ]
                    }
                  ]
                },
                {
                  "Type": "Modal",
                  "Id": "shipyard_task_select_name_modal",
                  "Grid.Column": 0,
                  "Grid.Row": 0,
                  "Grid.ColumnSpan": 2,
                  "Grid.RowSpan": 1,
                  "IsVisible": false,
                  "Title": "Select ship name",
                  "CloseCommand": "client.shipyard.cancel_select_task_name",
                  "DefaultCommand": "client.shipyard.confirm_select_task_name",
                  "DisplayMode": "Glow",
                  "Size": "Small",
                  "Children": [
                    {
                      "Type": "StackPanel",
                      "Orientation": "Vertical",
                      "Gap": 8,
                      "Children": [
                        {
                          "Type": "Label",
                          "Id": "lbl_shipyard_task_select_name_context",
                          "Text": "Select a ship name.",
                          "Classes": [
                            "ps-text-secondary"
                          ]
                        },
                        {
                          "Type": "Select",
                          "Id": "select_shipyard_task_name_modal",
                          "Width": "100%",
                          "Placeholder": "Select ship name",
                          "Command": "client.shipyard.set_selected_task_name",
                          "Options": []
                        }
                      ]
                    }
                  ],
                  "FooterChildren": [
                    {
                      "Type": "StackPanel",
                      "Orientation": "Horizontal",
                      "HorizontalAlignment": "Right",
                      "Gap": 8,
                      "Children": [
                        {
                          "Type": "Button",
                          "Id": "btn_shipyard_task_select_name_confirm",
                          "Text": "Select Name",
                          "Style": "Primary",
                          "Command": "client.shipyard.confirm_select_task_name",
                          "IsEnabled": false
                        },
                        {
                          "Type": "Button",
                          "Text": "Cancel",
                          "Command": "client.shipyard.cancel_select_task_name"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
