{
  "Type": "Window",
  "Id": "class_design",
  "Title": "Class Design",
  "Icon": "\u2693",
  "Classes": [
    "ps-window-holo"
  ],
  "State": "Maximized",
  "DisplayLocation": "Taskbar",
  "WindowGroup": "static_menu",
  "IsRestorable": false,
  "IsMinimizable": false,
  "Width": "100%",
  "Height": "100%",
  "Background": "rgba(0,0,0,0.85)",
  "BackgroundImage": "UI/Backgrounds/class_design.jpg",
  "Padding": "16",
  "Children": [
    {
      "Type": "Grid",
      "Id": "class_design_layout",
      "Width": "100%",
      "Height": "100%",
      "HorizontalAlignment": "Stretch",
      "VerticalAlignment": "Stretch",
      "Gap": 8,
      "ColumnDefinitions": [
        "198px",
        "1fr"
      ],
      "RowDefinitions": [
        "1fr"
      ],
      "Children": [
        {
          "Type": "Grid",
          "Id": "cd_left_panel",
          "Grid.Column": 0,
          "Grid.Row": 0,
          "Width": "100%",
          "Height": "100%",
          "Padding": "0",
          "Background": "transparent",
          "ColumnDefinitions": [
            "1fr"
          ],
          "RowDefinitions": [
            "1fr",
            "Auto"
          ],
          "Children": [
            {
              "Type": "Tree",
              "Id": "class_list_tree",
              "Grid.Row": 0,
              "Width": "100%",
              "Height": "100%",
              "Nodes": [],
              "IsInline": false,
              "HideIcons": true,
              "ShowSearch": true,
              "ShowExpandCollapse": true,
              "SearchPlaceholder": "Filter classes",
              "FilterLeavesOnly": true,
              "EnableVerticalScroll": true,
              "DragDropEnabled": false,
              "AllowReorder": false,
              "AllowReparenting": false
            },
            {
              "Type": "StackPanel",
              "Id": "cd_class_filter_list",
              "Grid.Row": 1,
              "Width": "100%",
              "Margin": "8,8,0,0",
              "Orientation": "Vertical",
              "Gap": 4,
              "Children": [
                {
                  "Type": "Checkbox",
                  "Id": "filter_obsolete_class",
                  "Label": "Obsolete Class",
                  "TooltipText": "Show ship classes marked as obsolete. Obsolete classes cannot be used for new construction.",
                  "Command": "core.class_design.toggle_filter",
                  "CommandPayload": {
                    "filterId": "obsolete_class"
                  }
                },
                {
                  "Type": "Checkbox",
                  "Id": "filter_obsolete_comp_highlight",
                  "Label": "Obsolete Comp",
                  "TooltipText": "Highlight classes containing obsolete components with a warning style.",
                  "Command": "core.class_design.toggle_filter",
                  "CommandPayload": {
                    "filterId": "obsolete_component_highlight"
                  }
                },
                {
                  "Type": "Checkbox",
                  "Id": "filter_civilian",
                  "Label": "Civilian",
                  "TooltipText": "Show civilian shipping line classes (marked COM). These are owned by shipping lines, not the navy.",
                  "Command": "core.class_design.toggle_filter",
                  "CommandPayload": {
                    "filterId": "civilian"
                  }
                },
                {
                  "Type": "Checkbox",
                  "Id": "filter_hull_category",
                  "Label": "Hull Category",
                  "TooltipText": "Group classes by hull type (Military, Commercial, Station, FAC, Fighter) instead of individual hull descriptions.",
                  "Command": "core.class_design.toggle_filter",
                  "CommandPayload": {
                    "filterId": "hull_category"
                  }
                }
              ]
            }
          ]
        },
        {
          "Type": "TabContainer",
          "Id": "class_design_tabs",
          "Grid.Column": 1,
          "Width": "100%",
          "Height": "100%",
          "Command": "core.class_design.select_tab",
          "Children": [
            {
              "Type": "TabItem",
              "Id": "tabitem_class_design",
              "Title": "Class Design",
              "Children": [
                {
                  "Type": "Grid",
                  "Id": "tab_class_design_layout",
                  "Width": "100%",
                  "Height": "100%",
                  "Gap": 8,
                  "ColumnDefinitions": [
                    "360px",
                    "1fr",
                    "125px"
                  ],
                  "RowDefinitions": [
                    "Auto",
                    "1fr",
                    "200px",
                    "Auto",
                    "Auto",
                    "Auto"
                  ],
                  "Children": [
                    {
                      "Type": "StackPanel",
                      "Id": "cd_info_bar",
                      "Grid.Row": 0,
                      "Grid.Column": 1,
                      "Orientation": "Vertical",
                      "Gap": 4,
                      "Width": "100%",
                      "Children": [
                        {
                          "Type": "StackPanel",
                          "Id": "cd_info_row1",
                          "Orientation": "Horizontal",
                          "Gap": 8,
                          "Width": "100%",
                          "Children": [
                            {
                              "Type": "Select",
                              "Id": "hull_dropdown",
                              "Value": "",
                              "Options": [],
                              "IsSearchable": true,
                              "Command": "core.class_design.select_hull"
                            },
                            {
                              "Type": "Label",
                              "Id": "armour_rating_caption",
                              "Text": "Armour Rating"
                            },
                            {
                              "Type": "Input",
                              "Id": "armour_rating_input",
                              "Width": "64px",
                              "Placeholder": "1",
                              "InputType": "Number",
                              "Command": "core.class_design.set_armour"
                            },
                            {
                              "Type": "Label",
                              "Id": "deployment_caption",
                              "Text": "Deployment Time"
                            },
                            {
                              "Type": "Button",
                              "Id": "btn_edit_deployment",
                              "Text": "Edit",
                              "MinWidth": "0",
                              "Padding": "4px 8px",
                              "Command": "core.class_design.show_deployment_modal"
                            },
                            {
                              "Type": "Input",
                              "Id": "deployment_input",
                              "Width": "64px",
                              "Placeholder": "3",
                              "InputType": "Number",
                              "Command": "core.class_design.set_deployment"
                            }
                          ]
                        },
                        {
                          "Type": "StackPanel",
                          "Id": "cd_info_row2",
                          "Orientation": "Horizontal",
                          "Gap": 12,
                          "Width": "100%",
                          "Children": [
                            {
                              "Type": "DataFormatter",
                              "Id": "build_time_display",
                              "Value": 0,
                              "Format": "number",
                              "Precision": 2,
                              "Prefix": "Build Time: ",
                              "Suffix": " yrs"
                            },
                            {
                              "Type": "DataFormatter",
                              "Id": "load_time_display",
                              "Value": 0,
                              "Format": "number",
                              "Precision": 0,
                              "Prefix": "Load Time: "
                            },
                            {
                              "Type": "DataFormatter",
                              "Id": "exact_size_display",
                              "Value": 0,
                              "Format": "number",
                              "Precision": 2,
                              "Prefix": "Exact Size: ",
                              "Suffix": " HS"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "Type": "TabContainer",
                      "Id": "cd_component_tabs",
                      "Grid.Row": 0,
                      "Grid.Column": 0,
                      "Width": "100%",
                      "Command": "core.class_design.toggle_race_class",
                      "Children": [
                        {
                          "Type": "TabItem",
                          "Id": "tabitem_race_components",
                          "Title": "Race Components"
                        },
                        {
                          "Type": "TabItem",
                          "Id": "tabitem_class_components",
                          "Title": "Class Components"
                        }
                      ]
                    },
                    {
                      "Type": "Grid",
                      "Id": "cd_component_area",
                      "Grid.Row": 1,
                      "Grid.RowSpan": 2,
                      "Grid.Column": 0,
                      "Width": "100%",
                      "Height": "100%",
                      "Gap": 6,
                      "ColumnDefinitions": [
                        "1fr",
                        "1fr"
                      ],
                      "RowDefinitions": [
                        "Auto",
                        "1fr"
                      ],
                      "Children": [
                        {
                          "Type": "Label",
                          "Id": "race_tree_header",
                          "Grid.Row": 0,
                          "Grid.Column": 0,
                          "Text": "Race Components",
                          "IsVisible": false
                        },
                        {
                          "Type": "Label",
                          "Id": "class_tree_header",
                          "Grid.Row": 0,
                          "Grid.Column": 1,
                          "Text": "Class Components",
                          "IsVisible": false
                        },
                        {
                          "Type": "Tree",
                          "Id": "component_tree",
                          "Grid.Row": 1,
                          "Grid.Column": 0,
                          "Grid.ColumnSpan": 2,
                          "Width": "100%",
                          "Height": "100%",
                          "Nodes": [],
                          "IsInline": false,
                          "HideIcons": true,
                          "ShowSearch": true,
                          "ShowExpandCollapse": true,
                          "SearchPlaceholder": "Filter components",
                          "FilterLeavesOnly": true,
                          "EnableVerticalScroll": true,
                          "DragDropEnabled": false,
                          "AllowReorder": false,
                          "AllowReparenting": false
                        },
                        {
                          "Type": "Tree",
                          "Id": "class_component_tree",
                          "Grid.Row": 1,
                          "Grid.Column": 1,
                          "Width": "100%",
                          "Height": "100%",
                          "Nodes": [],
                          "IsVisible": false,
                          "IsInline": false,
                          "HideIcons": true,
                          "ShowSearch": true,
                          "ShowExpandCollapse": true,
                          "SearchPlaceholder": "Filter components",
                          "FilterLeavesOnly": true,
                          "EnableVerticalScroll": true,
                          "DragDropEnabled": false,
                          "AllowReorder": false,
                          "AllowReparenting": false
                        }
                      ]
                    },
                    {
                      "Type": "ScrollBox",
                      "Id": "spec_container",
                      "Grid.Row": 1,
                      "Grid.Column": 1,
                      "Axis": "Vertical",
                      "Width": "100%",
                      "Height": "100%",
                      "Classes": [
                        "designer-specs",
                        "ps-spec-panel"
                      ],
                      "Children": []
                    },
                    {
                      "Type": "Anchor",
                      "Id": "anchor_classdesign_checkpanel",
                      "AnchorId": "classdesign.checkpanel",
                      "Grid.Row": 2,
                      "Grid.Column": 0,
                      "Grid.ColumnSpan": 1
                    },
                    {
                      "Type": "Grid",
                      "Id": "cd_bottom_info_row",
                      "Grid.Row": 2,
                      "Grid.Column": 1,
                      "Width": "100%",
                      "Height": "100%",
                      "Gap": 5,
                      "ColumnDefinitions": [
                        "2fr",
                        "1fr"
                      ],
                      "RowDefinitions": [
                        "1fr"
                      ],
                      "Children": [
                        {
                          "Type": "Panel",
                          "Id": "component_info_panel",
                          "Grid.Row": 0,
                          "Grid.Column": 0,
                          "Width": "100%",
                          "Height": "100%",
                          "Padding": "2px 4px",
                          "Children": [
                            {
                              "Type": "Label",
                              "Id": "component_info_text",
                              "Text": "",
                              "Width": "100%",
                              "Height": "100%",
                              "Classes": [
                                "designer-specs"
                              ]
                            }
                          ]
                        },
                        {
                          "Type": "Panel",
                          "Id": "design_errors_panel",
                          "Grid.Row": 0,
                          "Grid.Column": 1,
                          "Width": "100%",
                          "Height": "100%",
                          "Padding": "2px 4px",
                          "Children": [
                            {
                              "Type": "Label",
                              "Id": "design_errors_text",
                              "Text": "",
                              "Width": "100%",
                              "Height": "100%",
                              "Style": "warning",
                              "Classes": [
                                "designer-specs"
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "Type": "StackPanel",
                      "Id": "cd_right_column",
                      "Grid.Row": 1,
                      "Grid.RowSpan": 2,
                      "Grid.Column": 2,
                      "Orientation": "Vertical",
                      "Gap": 8,
                      "Width": "125px",
                      "Margin": "0 8px 0 0",
                      "Children": [
                        {
                          "Type": "StackPanel",
                          "Id": "cd_flags_panel",
                          "Orientation": "Vertical",
                          "Gap": 4,
                          "Width": "100%",
                          "Children": [
                            {
                              "Type": "Checkbox",
                              "Id": "flag_collier",
                              "Label": "Collier",
                              "TooltipText": "Mark this class as a collier \u2014 an ammunition supply ship for fleet logistics.",
                              "Command": "core.class_design.toggle_flag",
                              "CommandPayload": {
                                "flagId": "collier"
                              }
                            },
                            {
                              "Type": "Checkbox",
                              "Id": "flag_supply_ship",
                              "Label": "Supply Ship",
                              "TooltipText": "Mark this class as a supply ship for fleet maintenance logistics.",
                              "Command": "core.class_design.toggle_flag",
                              "CommandPayload": {
                                "flagId": "supply_ship"
                              }
                            },
                            {
                              "Type": "Checkbox",
                              "Id": "flag_tanker",
                              "Label": "Tanker",
                              "TooltipText": "Mark this class as a fuel tanker for fleet refueling operations.",
                              "Command": "core.class_design.toggle_flag",
                              "CommandPayload": {
                                "flagId": "tanker"
                              }
                            },
                            {
                              "Type": "Separator",
                              "Id": "cd_flags_spacer_1"
                            },
                            {
                              "Type": "Checkbox",
                              "Id": "flag_senior_co",
                              "Label": "Senior C.O.",
                              "TooltipText": "Assign a senior commanding officer to ships of this class.",
                              "Command": "core.class_design.toggle_flag",
                              "CommandPayload": {
                                "flagId": "senior_co"
                              }
                            },
                            {
                              "Type": "Checkbox",
                              "Id": "flag_conscript",
                              "Label": "Conscript",
                              "TooltipText": "Use conscript crew on this class \u2014 lower training quality but reduced crew requirements.",
                              "Command": "core.class_design.toggle_flag",
                              "CommandPayload": {
                                "flagId": "conscript"
                              }
                            },
                            {
                              "Type": "Checkbox",
                              "Id": "flag_no_armour",
                              "Label": "No Armour",
                              "TooltipText": "Disable armour for this class. Armour thickness is set to 1 and cannot be changed.",
                              "Command": "core.class_design.toggle_flag",
                              "CommandPayload": {
                                "flagId": "no_armour"
                              }
                            },
                            {
                              "Type": "Checkbox",
                              "Id": "flag_station_class",
                              "Label": "Space Station",
                              "TooltipText": "Mark this class as a space station. Stations cannot have armour and are built differently than ships.",
                              "Command": "core.class_design.toggle_flag",
                              "CommandPayload": {
                                "flagId": "station_class"
                              }
                            },
                            {
                              "Type": "Checkbox",
                              "Id": "flag_hull_numbers",
                              "Label": "Hull Numbers",
                              "TooltipText": "Enable sequential hull numbering for ships of this class.",
                              "Command": "core.class_design.toggle_flag",
                              "CommandPayload": {
                                "flagId": "hull_numbers"
                              }
                            },
                            {
                              "Type": "Separator",
                              "Id": "cd_flags_spacer_2"
                            },
                            {
                              "Type": "Checkbox",
                              "Id": "flag_obsolete",
                              "Label": "Obsolete",
                              "TooltipText": "Mark this class as obsolete. It will be hidden from the class list (unless filtered) and cannot be used for new construction.",
                              "Command": "core.class_design.toggle_flag",
                              "CommandPayload": {
                                "flagId": "obsolete"
                              }
                            },
                            {
                              "Type": "Checkbox",
                              "Id": "flag_no_officers",
                              "Label": "No Officers",
                              "TooltipText": "This class operates without officers. Reduces crew quality but simplifies manning.",
                              "Command": "core.class_design.toggle_flag",
                              "CommandPayload": {
                                "flagId": "no_officers"
                              }
                            }
                          ]
                        },
                        {
                          "Type": "StackPanel",
                          "Id": "cd_range_bands_panel",
                          "Orientation": "Vertical",
                          "Gap": 4,
                          "Width": "100%",
                          "Children": [
                            {
                              "Type": "Label",
                              "Id": "range_bands_heading",
                              "Text": "Range Bands"
                            },
                            {
                              "Type": "Label",
                              "Id": "range_band_value_caption",
                              "Text": "Band Value"
                            },
                            {
                              "Type": "Input",
                              "Id": "range_band_value_input",
                              "Width": "100%",
                              "Placeholder": "10000",
                              "InputType": "Number",
                              "Value": "10000",
                              "Command": "core.class_design.set_range_value"
                            },
                            {
                              "Type": "Label",
                              "Id": "target_speed_caption",
                              "Text": "Target Speed"
                            },
                            {
                              "Type": "Input",
                              "Id": "target_speed_input",
                              "Width": "100%",
                              "Placeholder": "4000",
                              "InputType": "Number",
                              "Value": "4000",
                              "Command": "core.class_design.set_target_speed"
                            },
                            {
                              "Type": "Checkbox",
                              "Id": "show_bands_checkbox",
                              "Label": "Show Bands",
                              "TooltipText": "Display weapon range band accuracy based on target speed and fire control characteristics.",
                              "IsChecked": false,
                              "Command": "core.class_design.toggle_show_bands"
                            },
                            {
                              "Type": "Label",
                              "Id": "range_band_display",
                              "Text": "",
                              "Width": "100%",
                              "Classes": [
                                "designer-specs"
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "Type": "StackPanel",
                      "Id": "cd_quantity_bar",
                      "Grid.Row": 3,
                      "Grid.Column": 0,
                      "Grid.ColumnSpan": 3,
                      "Orientation": "Horizontal",
                      "Gap": 8,
                      "Width": "100%",
                      "Margin": "5px 0 0 0",
                      "Children": [
                        {
                          "Type": "Checkbox",
                          "Id": "filter_obsolete_component",
                          "Label": "Obsolete",
                          "TooltipText": "Show obsolete components. These have been superseded by newer designs and cannot be used for new construction.",
                          "Command": "core.class_design.toggle_filter",
                          "CommandPayload": {
                            "filterId": "obsolete_component"
                          }
                        },
                        {
                          "Type": "Checkbox",
                          "Id": "filter_prototype",
                          "Label": "Prototypes",
                          "TooltipText": "Show prototype/experimental components that are not yet in standard production.",
                          "Command": "core.class_design.toggle_filter",
                          "CommandPayload": {
                            "filterId": "prototype"
                          }
                        },
                        {
                          "Type": "Radio",
                          "Id": "rdo_1",
                          "Name": "class_design_quantity",
                          "Label": "1",
                          "TooltipText": "Add 1 component per click.",
                          "Value": 1,
                          "Command": "core.class_design.set_quantity"
                        },
                        {
                          "Type": "Radio",
                          "Id": "rdo_5",
                          "Name": "class_design_quantity",
                          "Label": "5",
                          "TooltipText": "Add 5 components per click.",
                          "Value": 5,
                          "Command": "core.class_design.set_quantity"
                        },
                        {
                          "Type": "Radio",
                          "Id": "rdo_20",
                          "Name": "class_design_quantity",
                          "Label": "20",
                          "TooltipText": "Add 20 components per click.",
                          "Value": 20,
                          "Command": "core.class_design.set_quantity"
                        },
                        {
                          "Type": "Radio",
                          "Id": "rdo_100",
                          "Name": "class_design_quantity",
                          "Label": "100",
                          "TooltipText": "Add 100 components per click.",
                          "Value": 100,
                          "Command": "core.class_design.set_quantity"
                        }
                      ]
                    },
                    {
                      "Type": "Grid",
                      "Id": "cd_button_rows",
                      "Grid.Row": 4,
                      "Grid.Column": 0,
                      "Grid.ColumnSpan": 3,
                      "Width": "100%",
                      "Gap": 4,
                      "Margin": "4px 0 0 0",
                      "ColumnDefinitions": [
                        "1fr",
                        "1fr",
                        "1fr",
                        "1fr",
                        "1fr",
                        "1fr",
                        "1fr",
                        "1fr",
                        "1fr"
                      ],
                      "RowDefinitions": [
                        "Auto",
                        "Auto"
                      ],
                      "Children": [
                        {
                          "Type": "Button",
                          "Id": "btn_new_class",
                          "Grid.Row": 0,
                          "Grid.Column": 0,
                          "Text": "New Ship Class",
                          "Command": "core.class_design.new_class"
                        },
                        {
                          "Type": "Button",
                          "Id": "btn_rename_class",
                          "Grid.Row": 0,
                          "Grid.Column": 1,
                          "Text": "Rename Class",
                          "Command": "core.class_design.show_rename_dialog"
                        },
                        {
                          "Type": "Button",
                          "Id": "btn_select_name",
                          "Grid.Row": 0,
                          "Grid.Column": 2,
                          "Text": "Select Name",
                          "Command": "core.class_design.show_select_name_dialog"
                        },
                        {
                          "Type": "Button",
                          "Id": "btn_lock_class",
                          "Grid.Row": 0,
                          "Grid.Column": 3,
                          "Text": "Lock Class",
                          "Command": "core.class_design.lock_class"
                        },
                        {
                          "Type": "Button",
                          "Id": "btn_copy_class",
                          "Grid.Row": 0,
                          "Grid.Column": 4,
                          "Text": "Copy Class",
                          "Command": "core.class_design.copy_class"
                        },
                        {
                          "Type": "Button",
                          "Id": "btn_create_template",
                          "Grid.Row": 0,
                          "Grid.Column": 5,
                          "Text": "Create Template",
                          "Command": "core.class_design.create_template"
                        },
                        {
                          "Type": "Button",
                          "Id": "btn_new_hull",
                          "Grid.Row": 0,
                          "Grid.Column": 6,
                          "Text": "New Hull",
                          "Command": "core.class_design.new_hull"
                        },
                        {
                          "Type": "Button",
                          "Id": "btn_rename_comp",
                          "Grid.Row": 1,
                          "Grid.Column": 0,
                          "Text": "Rename Comp",
                          "Command": "core.class_design.rename_component"
                        },
                        {
                          "Type": "Button",
                          "Id": "btn_obso_comp",
                          "Grid.Row": 1,
                          "Grid.Column": 1,
                          "Text": "Obso Comp",
                          "Command": "core.class_design.obsolete_component"
                        },
                        {
                          "Type": "Button",
                          "Id": "btn_design_tech",
                          "Grid.Row": 1,
                          "Grid.Column": 2,
                          "Text": "Design Tech",
                          "Command": "core.class_design.design_tech"
                        },
                        {
                          "Type": "Button",
                          "Id": "btn_view_tech",
                          "Grid.Row": 1,
                          "Grid.Column": 3,
                          "Text": "View Tech",
                          "Command": "core.class_design.view_tech"
                        },
                        {
                          "Type": "Button",
                          "Id": "btn_update_armour",
                          "Grid.Row": 1,
                          "Grid.Column": 4,
                          "Text": "Update Armour",
                          "Command": "core.class_design.update_armour"
                        },
                        {
                          "Type": "Button",
                          "Id": "btn_update_cde",
                          "Grid.Row": 1,
                          "Grid.Column": 5,
                          "Text": "Update CDE",
                          "Command": "core.class_design.update_cde"
                        },
                        {
                          "Type": "Button",
                          "Id": "btn_wide_view",
                          "Grid.Row": 1,
                          "Grid.Column": 6,
                          "Text": "Wide View",
                          "Command": "core.class_design.wide_view"
                        },
                        {
                          "Type": "Button",
                          "Id": "btn_delete_class",
                          "Grid.Row": 1,
                          "Grid.Column": 7,
                          "Text": "Delete Class",
                          "Command": "core.class_design.delete_class",
                          "Style": "Warning"
                        }
                      ]
                    },
                    {
                      "Type": "Anchor",
                      "Id": "anchor_classdesign_newclass_actions",
                      "AnchorId": "classdesign.newclass.actions",
                      "Grid.Row": 5,
                      "Grid.Column": 0,
                      "Grid.ColumnSpan": 3
                    }
                  ]
                }
              ]
            },
            {
              "Type": "TabItem",
              "Id": "tabitem_ships_in_class",
              "Title": "Ships in Class",
              "Children": [
                {
                  "Type": "Grid",
                  "Id": "tab_ships_in_class_layout",
                  "Width": "100%",
                  "Height": "100%",
                  "ColumnDefinitions": [
                    "*",
                    "auto"
                  ],
                  "Children": [
                    {
                      "Type": "DataGrid",
                      "Id": "class_design_ships_in_class_grid",
                      "Grid.Column": 0,
                      "Width": "100%",
                      "Height": "100%",
                      "EnableVerticalScroll": true,
                      "UseZebraStriping": true,
                      "SelectionMode": "Single",
                      "AllowSorting": true,
                      "OnSelectionChanged": "core.class_design.ships_in_class_select",
                      "Columns": [
                        {
                          "Header": "Ship Name",
                          "Field": "ship_name",
                          "Flex": 2
                        },
                        {
                          "Header": "Fleet",
                          "Field": "fleet",
                          "Flex": 1
                        },
                        {
                          "Header": "System",
                          "Field": "system",
                          "Flex": 1
                        },
                        {
                          "Header": "Launch Date",
                          "Field": "launch_date",
                          "Width": "110px"
                        },
                        {
                          "Header": "Fuel",
                          "Field": "fuel",
                          "Width": "70px",
                          "Align": "Right"
                        },
                        {
                          "Header": "Ammo",
                          "Field": "ammo",
                          "Width": "70px",
                          "Align": "Right"
                        },
                        {
                          "Header": "MSP",
                          "Field": "msp",
                          "Width": "70px",
                          "Align": "Right"
                        },
                        {
                          "Header": "Maint Clock",
                          "Field": "maint_clock",
                          "Width": "90px",
                          "Align": "Right"
                        },
                        {
                          "Header": "Crew Clock",
                          "Field": "crew_clock",
                          "Width": "90px",
                          "Align": "Right"
                        }
                      ],
                      "Rows": []
                    },
                    {
                      "Type": "StackPanel",
                      "Id": "ships_in_class_actions_panel",
                      "Grid.Column": 1,
                      "Orientation": "Vertical",
                      "Gap": 4,
                      "Margin": "4px 0 0 0",
                      "Children": [
                        {
                          "Type": "Button",
                          "Id": "btn_rename_all_ships",
                          "Text": "Rename All",
                          "Command": "core.class_design.rename_all_ships",
                          "Width": "100%"
                        },
                        {
                          "Type": "Button",
                          "Id": "btn_renumber_all_ships",
                          "Text": "Renumber All",
                          "Command": "core.class_design.renumber_all_ships",
                          "Width": "100%"
                        },
                        {
                          "Type": "Button",
                          "Id": "btn_renumber_hull",
                          "Text": "Renumber Hull",
                          "Command": "core.class_design.renumber_hull",
                          "Width": "100%"
                        },
                        {
                          "Type": "Button",
                          "Id": "btn_names_text",
                          "Text": "Names Text",
                          "Command": "core.class_design.names_text",
                          "Width": "100%"
                        },
                        {
                          "Type": "Separator"
                        },
                        {
                          "Type": "RadioGroup",
                          "Id": "ships_in_class_double_click_mode",
                          "Orientation": "Vertical",
                          "Label": "Double-Click List",
                          "Tooltip": "Choose what happens when double-clicking a ship: select the ship itself or select its fleet.",
                          "Command": "core.class_design.set_double_click_mode",
                          "SelectedValue": "ship",
                          "Items": [
                            {
                              "Label": "Select Ship",
                              "Value": "ship"
                            },
                            {
                              "Label": "Select Fleet",
                              "Value": "fleet"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "Type": "TabItem",
              "Id": "tabitem_components",
              "Title": "Components",
              "Children": [
                {
                  "Type": "ScrollBox",
                  "Width": "100%",
                  "Height": "100%",
                  "Children": [
                    {
                      "Type": "Grid",
                      "Id": "tab_components_layout",
                      "Width": "100%",
                      "RowDefinitions": [
                        "Auto",
                        "Auto",
                        "Auto",
                        "Auto",
                        "Auto"
                      ],
                      "Gap": 8,
                      "Children": [
                        {
                          "Type": "DataGrid",
                          "Id": "class_design_components_summary_grid",
                          "Grid.Row": 0,
                          "Width": "100%",
                          "Height": "100%",
                          "EnableVerticalScroll": false,
                          "Columns": [
                            {
                              "Header": "Category",
                              "Field": "component_name",
                              "Flex": 3
                            },
                            {
                              "Header": "Qty",
                              "Field": "amount",
                              "Width": "65px",
                              "Align": "Right"
                            },
                            {
                              "Header": "Size",
                              "Field": "size",
                              "Width": "65px",
                              "Align": "Right"
                            },
                            {
                              "Header": "Cost",
                              "Field": "cost",
                              "Width": "65px",
                              "Align": "Right"
                            },
                            {
                              "Header": "Crew",
                              "Field": "crew",
                              "Width": "65px",
                              "Align": "Right"
                            },
                            {
                              "Header": "HTK",
                              "Field": "htk",
                              "Width": "65px",
                              "Align": "Right"
                            },
                            {
                              "Header": "Size%",
                              "Field": "size_pct",
                              "Width": "60px",
                              "Align": "Right"
                            },
                            {
                              "Header": "Cost%",
                              "Field": "cost_pct",
                              "Width": "60px",
                              "Align": "Right"
                            },
                            {
                              "Header": "Crew%",
                              "Field": "crew_pct",
                              "Width": "60px",
                              "Align": "Right"
                            },
                            {
                              "Header": "HTK%",
                              "Field": "htk_pct",
                              "Width": "60px",
                              "Align": "Right"
                            },
                            {
                              "Header": "DAC%",
                              "Field": "dac_pct",
                              "Width": "60px",
                              "Align": "Right"
                            },
                            {
                              "Header": "E-DAC%",
                              "Field": "edac_pct",
                              "Width": "65px",
                              "Align": "Right"
                            }
                          ],
                          "Rows": []
                        },
                        {
                          "Type": "DataGrid",
                          "Id": "class_design_components_grid",
                          "Grid.Row": 1,
                          "Width": "100%",
                          "Height": "100%",
                          "EnableVerticalScroll": true,
                          "UseZebraStriping": true,
                          "AllowSorting": true,
                          "Columns": [
                            {
                              "Header": "Component",
                              "Field": "component_name",
                              "Flex": 3
                            },
                            {
                              "Header": "Qty",
                              "Field": "amount",
                              "Width": "65px",
                              "Align": "Right"
                            },
                            {
                              "Header": "Size",
                              "Field": "size",
                              "Width": "65px",
                              "Align": "Right"
                            },
                            {
                              "Header": "Cost",
                              "Field": "cost",
                              "Width": "65px",
                              "Align": "Right"
                            },
                            {
                              "Header": "Crew",
                              "Field": "crew",
                              "Width": "65px",
                              "Align": "Right"
                            },
                            {
                              "Header": "HTK",
                              "Field": "htk",
                              "Width": "65px",
                              "Align": "Right"
                            },
                            {
                              "Header": "Size%",
                              "Field": "size_pct",
                              "Width": "60px",
                              "Align": "Right"
                            },
                            {
                              "Header": "Cost%",
                              "Field": "cost_pct",
                              "Width": "60px",
                              "Align": "Right"
                            },
                            {
                              "Header": "Crew%",
                              "Field": "crew_pct",
                              "Width": "60px",
                              "Align": "Right"
                            },
                            {
                              "Header": "HTK%",
                              "Field": "htk_pct",
                              "Width": "60px",
                              "Align": "Right"
                            },
                            {
                              "Header": "DAC%",
                              "Field": "dac_pct",
                              "Width": "60px",
                              "Align": "Right"
                            },
                            {
                              "Header": "E-DAC%",
                              "Field": "edac_pct",
                              "Width": "65px",
                              "Align": "Right"
                            }
                          ],
                          "Rows": []
                        },
                        {
                          "Type": "StackPanel",
                          "Id": "components_fuel_msp_panel",
                          "Grid.Row": 2,
                          "Width": "100%",
                          "Children": [
                            {
                              "Type": "Label",
                              "Id": "components_fuel_label",
                              "Text": "Fuel (including ordnance): 0"
                            },
                            {
                              "Type": "Label",
                              "Id": "components_msp_label",
                              "Text": "Maintenance Supply Points: 0"
                            }
                          ]
                        },
                        {
                          "Type": "DataGrid",
                          "Id": "class_design_components_resources_grid",
                          "Grid.Row": 3,
                          "Width": "100%",
                          "Height": "100%",
                          "EnableVerticalScroll": false,
                          "Columns": [
                            {
                              "Header": "",
                              "Field": "label",
                              "Flex": 3,
                              "CellType": "mineralName"
                            },
                            {
                              "Header": "",
                              "Field": "col1",
                              "Width": "65px"
                            },
                            {
                              "Header": "Class",
                              "Field": "class_val",
                              "Width": "65px",
                              "Align": "Right"
                            },
                            {
                              "Header": "Ordnance",
                              "Field": "ord_val",
                              "Width": "85px",
                              "Align": "Right"
                            },
                            {
                              "Header": "MSP",
                              "Field": "msp_val",
                              "Width": "65px",
                              "Align": "Right"
                            },
                            {
                              "Header": "Fuel",
                              "Field": "fuel_val",
                              "Width": "65px",
                              "Align": "Right"
                            },
                            {
                              "Header": "Total",
                              "Field": "total_val",
                              "Width": "60px",
                              "Align": "Right"
                            }
                          ],
                          "Rows": []
                        },
                        {
                          "Type": "Checkbox",
                          "Id": "components_show_summary",
                          "Grid.Row": 4,
                          "Label": "Show Summary",
                          "TooltipText": "Show a grouped component summary by category instead of the detailed component list.",
                          "IsChecked": true,
                          "Command": "core.class_design.toggle_component_summary"
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "Type": "TabItem",
              "Id": "tabitem_ordnance_fighters",
              "Title": "Ordnance & Fighters",
              "Children": [
                {
                  "Type": "Grid",
                  "Id": "tab_ordnance_fighters_layout",
                  "Width": "100%",
                  "Height": "100%",
                  "ColumnDefinitions": [
                    "2fr",
                    "1fr"
                  ],
                  "RowDefinitions": [
                    "auto",
                    "*",
                    "*",
                    "*",
                    "*",
                    "auto"
                  ],
                  "Gap": 8,
                  "Children": [
                    {
                      "Type": "Label",
                      "Id": "ordnance_header_available",
                      "Grid.Row": 0,
                      "Grid.Column": 0,
                      "Text": "Available",
                      "FontWeight": "Bold"
                    },
                    {
                      "Type": "Label",
                      "Id": "ordnance_header_assigned",
                      "Grid.Row": 0,
                      "Grid.Column": 1,
                      "Text": "\u2014 Class",
                      "FontWeight": "Bold"
                    },
                    {
                      "Type": "Label",
                      "Id": "ordnance_magazine_capacity",
                      "Grid.Row": 0,
                      "Grid.Column": 1,
                      "Text": "",
                      "HorizontalAlignment": "Right",
                      "Style": "Label.Secondary"
                    },
                    {
                      "Type": "DataGrid",
                      "Id": "class_design_ordnance_catalogue_grid",
                      "Grid.Row": 1,
                      "Grid.Column": 0,
                      "Width": "100%",
                      "Height": "100%",
                      "EnableVerticalScroll": true,
                      "UseZebraStriping": true,
                      "AllowSorting": true,
                      "SelectionMode": "Single",
                      "Columns": [
                        {
                          "Header": "Missile Name",
                          "Field": "missile_name",
                          "Flex": 1
                        },
                        {
                          "Header": "Size",
                          "Field": "size",
                          "Width": "auto",
                          "Align": "Right"
                        },
                        {
                          "Header": "Cost",
                          "Field": "cost",
                          "Width": "auto",
                          "Align": "Right"
                        },
                        {
                          "Header": "Speed",
                          "Field": "speed",
                          "Width": "auto",
                          "Align": "Right"
                        },
                        {
                          "Header": "ECCM",
                          "Field": "eccm",
                          "Width": "auto",
                          "Align": "Center"
                        },
                        {
                          "Header": "ATG",
                          "Field": "atg",
                          "Width": "auto",
                          "Align": "Center"
                        },
                        {
                          "Header": "Retarget",
                          "Field": "retarget",
                          "Width": "auto",
                          "Align": "Center"
                        },
                        {
                          "Header": "Range m",
                          "Field": "range_m",
                          "Width": "auto",
                          "Align": "Right"
                        },
                        {
                          "Header": "Warhead",
                          "Field": "warhead",
                          "Width": "auto",
                          "Align": "Right"
                        },
                        {
                          "Header": "Decoys",
                          "Field": "decoys",
                          "Width": "auto",
                          "Align": "Center"
                        },
                        {
                          "Header": "Radiation",
                          "Field": "radiation",
                          "Width": "auto",
                          "Align": "Right"
                        },
                        {
                          "Header": "Sensors",
                          "Field": "sensors",
                          "Width": "auto",
                          "Align": "Right"
                        },
                        {
                          "Header": "Second Stage",
                          "Field": "second_stage",
                          "Width": "auto"
                        }
                      ],
                      "Rows": []
                    },
                    {
                      "Type": "DataGrid",
                      "Id": "class_design_ordnance_assigned_grid",
                      "Grid.Row": 1,
                      "Grid.Column": 1,
                      "Width": "100%",
                      "Height": "100%",
                      "EnableVerticalScroll": true,
                      "UseZebraStriping": true,
                      "AllowSorting": true,
                      "SelectionMode": "Single",
                      "Columns": [
                        {
                          "Header": "Name",
                          "Field": "name",
                          "Flex": 1
                        },
                        {
                          "Header": "Qty",
                          "Field": "qty",
                          "Width": "auto",
                          "Align": "Right"
                        },
                        {
                          "Header": "Size",
                          "Field": "size",
                          "Width": "auto",
                          "Align": "Right"
                        }
                      ],
                      "Rows": []
                    },
                    {
                      "Type": "DataGrid",
                      "Id": "class_design_fighter_catalogue_grid",
                      "Grid.Row": 2,
                      "Grid.Column": 0,
                      "Width": "100%",
                      "Height": "100%",
                      "EnableVerticalScroll": true,
                      "UseZebraStriping": true,
                      "AllowSorting": true,
                      "SelectionMode": "Single",
                      "Columns": [
                        {
                          "Header": "Class Name",
                          "Field": "class_name",
                          "Flex": 1
                        },
                        {
                          "Header": "Size (tons)",
                          "Field": "size_tons",
                          "Width": "auto",
                          "Align": "Right"
                        },
                        {
                          "Header": "Cost (BP)",
                          "Field": "cost_bp",
                          "Width": "auto",
                          "Align": "Right"
                        },
                        {
                          "Header": "Speed (km/s)",
                          "Field": "speed",
                          "Width": "auto",
                          "Align": "Right"
                        },
                        {
                          "Header": "Range (m km)",
                          "Field": "range_mkm",
                          "Width": "auto",
                          "Align": "Right"
                        },
                        {
                          "Header": "Armament",
                          "Field": "armament",
                          "Width": "auto"
                        }
                      ],
                      "Rows": []
                    },
                    {
                      "Type": "DataGrid",
                      "Id": "class_design_fighter_assigned_grid",
                      "Grid.Row": 2,
                      "Grid.Column": 1,
                      "Width": "100%",
                      "Height": "100%",
                      "EnableVerticalScroll": true,
                      "UseZebraStriping": true,
                      "AllowSorting": true,
                      "SelectionMode": "Single",
                      "Columns": [
                        {
                          "Header": "Name",
                          "Field": "name",
                          "Flex": 1
                        },
                        {
                          "Header": "Qty",
                          "Field": "qty",
                          "Width": "auto",
                          "Align": "Right"
                        },
                        {
                          "Header": "Size",
                          "Field": "size",
                          "Width": "auto",
                          "Align": "Right"
                        }
                      ],
                      "Rows": []
                    },
                    {
                      "Type": "DataGrid",
                      "Id": "class_design_ground_catalogue_grid",
                      "Grid.Row": 3,
                      "Grid.Column": 0,
                      "Width": "100%",
                      "Height": "100%",
                      "EnableVerticalScroll": true,
                      "UseZebraStriping": true,
                      "AllowSorting": true,
                      "SelectionMode": "Single",
                      "Columns": [
                        {
                          "Header": "Abbr",
                          "Field": "abbr",
                          "Width": "auto",
                          "Align": "Center"
                        },
                        {
                          "Header": "Name",
                          "Field": "name",
                          "Flex": 1
                        },
                        {
                          "Header": "Units",
                          "Field": "units",
                          "Width": "auto",
                          "Align": "Right"
                        },
                        {
                          "Header": "Size",
                          "Field": "size",
                          "Width": "auto",
                          "Align": "Right"
                        },
                        {
                          "Header": "Cost",
                          "Field": "cost",
                          "Width": "auto",
                          "Align": "Right"
                        },
                        {
                          "Header": "HP",
                          "Field": "hp",
                          "Width": "auto",
                          "Align": "Right"
                        },
                        {
                          "Header": "GSP",
                          "Field": "gsp",
                          "Width": "auto",
                          "Align": "Right"
                        },
                        {
                          "Header": "Template Attributes",
                          "Field": "template_attributes",
                          "Width": "auto"
                        },
                        {
                          "Header": "Rank",
                          "Field": "rank",
                          "Width": "auto",
                          "Align": "Center"
                        }
                      ],
                      "Rows": []
                    },
                    {
                      "Type": "DataGrid",
                      "Id": "class_design_ground_assigned_grid",
                      "Grid.Row": 3,
                      "Grid.Column": 1,
                      "Width": "100%",
                      "Height": "100%",
                      "EnableVerticalScroll": true,
                      "UseZebraStriping": true,
                      "AllowSorting": true,
                      "SelectionMode": "Single",
                      "Columns": [
                        {
                          "Header": "Name",
                          "Field": "name",
                          "Flex": 1
                        },
                        {
                          "Header": "Qty",
                          "Field": "qty",
                          "Width": "auto",
                          "Align": "Right"
                        },
                        {
                          "Header": "Size",
                          "Field": "size",
                          "Width": "auto",
                          "Align": "Right"
                        }
                      ],
                      "Rows": []
                    },
                    {
                      "Type": "StackPanel",
                      "Id": "class_design_ordnance_quantity_bar",
                      "Grid.Row": 4,
                      "Grid.Column": 0,
                      "Grid.ColumnSpan": 2,
                      "Orientation": "Horizontal",
                      "Margin": "0,8,0,0",
                      "Gap": 16,
                      "HorizontalAlignment": "Center",
                      "Children": [
                        {
                          "Type": "Radio",
                          "Id": "ord_rdo_1",
                          "Label": "1",
                          "TooltipText": "Add 1 item per double-click.",
                          "Name": "ord_qty",
                          "Value": 1,
                          "Command": "core.class_design.ordnance_set_qty"
                        },
                        {
                          "Type": "Radio",
                          "Id": "ord_rdo_10",
                          "Label": "10",
                          "TooltipText": "Add 10 items per double-click.",
                          "Name": "ord_qty",
                          "Value": 10,
                          "Command": "core.class_design.ordnance_set_qty"
                        },
                        {
                          "Type": "Radio",
                          "Id": "ord_rdo_100",
                          "Label": "100",
                          "TooltipText": "Add 100 items per double-click.",
                          "Name": "ord_qty",
                          "Value": 100,
                          "Command": "core.class_design.ordnance_set_qty"
                        },
                        {
                          "Type": "Radio",
                          "Id": "ord_rdo_1000",
                          "Label": "1000",
                          "TooltipText": "Add 1000 items per double-click.",
                          "Name": "ord_qty",
                          "Value": 1000,
                          "Command": "core.class_design.ordnance_set_qty"
                        }
                      ]
                    },
                    {
                      "Type": "StackPanel",
                      "Id": "class_design_ordnance_options_bar",
                      "Grid.Row": 5,
                      "Grid.Column": 0,
                      "Grid.ColumnSpan": 2,
                      "Orientation": "Horizontal",
                      "Margin": "0,4,0,0",
                      "Gap": 16,
                      "HorizontalAlignment": "Center",
                      "Children": [
                        {
                          "Type": "Checkbox",
                          "Id": "class_design_ordnance_show_obsolete",
                          "Label": "Show Obsolete Missiles",
                          "TooltipText": "Show obsolete missile designs in the catalogue. These have been superseded by newer designs.",
                          "Command": "core.class_design.toggle_ord_show_obsolete_missiles"
                        },
                        {
                          "Type": "Checkbox",
                          "Id": "class_design_ordnance_show_obsolete_fighters",
                          "Label": "Show Obsolete Fighters",
                          "TooltipText": "Show obsolete fighter classes in the catalogue. These have been superseded by newer designs.",
                          "Command": "core.class_design.toggle_ord_show_obsolete_fighters"
                        },
                        {
                          "Type": "Checkbox",
                          "Id": "class_design_ordnance_no_size_restriction",
                          "Label": "No Missile Size Restriction",
                          "TooltipText": "Allow assigning missiles that exceed the class magazine capacity.",
                          "Command": "core.class_design.toggle_ord_no_size_restriction"
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "Type": "TabItem",
              "Id": "tabitem_priorities_misc",
              "Title": "Priorities / Misc",
              "Children": [
                {
                  "Type": "Grid",
                  "Id": "tab_priorities_misc_content",
                  "Width": "100%",
                  "Height": "100%",
                  "ColumnDefinitions": [
                    "320px",
                    "1fr",
                    "380px"
                  ],
                  "Children": [
                    {
                      "Type": "StackPanel",
                      "Id": "left_column_stack",
                      "Grid.Column": 0,
                      "Grid.Row": 0,
                      "Orientation": "Vertical",
                      "Gap": 8,
                      "Width": "320px",
                      "Children": [
                        {
                          "Type": "Panel",
                          "Id": "priority_settings_panel",
                          "Width": "100%",
                          "Border": "1px solid rgba(92,168,255,0.16)",
                          "CornerRadius": 6,
                          "Padding": "12px",
                          "Children": [
                            {
                              "Type": "Label",
                              "Id": "priority_settings_title",
                              "Text": "Priority Settings",
                              "Style": "Label.Subheading"
                            },
                            {
                              "Type": "StackPanel",
                              "Orientation": "Vertical",
                              "Gap": 4,
                              "Width": "100%",
                              "Children": [
                                {
                                  "Type": "StackPanel",
                                  "Orientation": "Horizontal",
                                  "Gap": 8,
                                  "Width": "100%",
                                  "Children": [
                                    {
                                      "Type": "Label",
                                      "Text": "Commander Priority",
                                      "Width": "180px"
                                    },
                                    {
                                      "Type": "Input",
                                      "Id": "priority_commander_input",
                                      "Width": "64px",
                                      "Placeholder": "5",
                                      "InputType": "Number",
                                      "Step": 1,
                                      "Command": "core.class_design.set_priority"
                                    }
                                  ]
                                },
                                {
                                  "Type": "StackPanel",
                                  "Orientation": "Horizontal",
                                  "Gap": 8,
                                  "Width": "100%",
                                  "Children": [
                                    {
                                      "Type": "Label",
                                      "Text": "PD Protection Priority",
                                      "Width": "180px"
                                    },
                                    {
                                      "Type": "Input",
                                      "Id": "priority_pd_protection_input",
                                      "Width": "64px",
                                      "Placeholder": "5",
                                      "InputType": "Number",
                                      "Step": 1,
                                      "Command": "core.class_design.set_priority"
                                    }
                                  ]
                                },
                                {
                                  "Type": "StackPanel",
                                  "Orientation": "Horizontal",
                                  "Gap": 8,
                                  "Width": "100%",
                                  "Children": [
                                    {
                                      "Type": "Label",
                                      "Text": "Maintenance Priority",
                                      "Width": "180px"
                                    },
                                    {
                                      "Type": "Input",
                                      "Id": "priority_maint_input",
                                      "Width": "64px",
                                      "Placeholder": "5",
                                      "InputType": "Number",
                                      "Step": 1,
                                      "Command": "core.class_design.set_priority"
                                    }
                                  ]
                                },
                                {
                                  "Type": "StackPanel",
                                  "Orientation": "Horizontal",
                                  "Gap": 8,
                                  "Width": "100%",
                                  "Children": [
                                    {
                                      "Type": "Label",
                                      "Text": "Refuel Priority",
                                      "Width": "180px"
                                    },
                                    {
                                      "Type": "Input",
                                      "Id": "priority_refuel_input",
                                      "Width": "64px",
                                      "Placeholder": "5",
                                      "InputType": "Number",
                                      "Step": 1,
                                      "Command": "core.class_design.set_priority"
                                    }
                                  ]
                                },
                                {
                                  "Type": "StackPanel",
                                  "Orientation": "Horizontal",
                                  "Gap": 8,
                                  "Width": "100%",
                                  "Children": [
                                    {
                                      "Type": "Label",
                                      "Text": "Resupply Priority",
                                      "Width": "180px"
                                    },
                                    {
                                      "Type": "Input",
                                      "Id": "priority_resupply_input",
                                      "Width": "64px",
                                      "Placeholder": "5",
                                      "InputType": "Number",
                                      "Step": 1,
                                      "Command": "core.class_design.set_priority"
                                    }
                                  ]
                                },
                                {
                                  "Type": "StackPanel",
                                  "Orientation": "Horizontal",
                                  "Gap": 8,
                                  "Width": "100%",
                                  "Children": [
                                    {
                                      "Type": "Label",
                                      "Text": "Minimum Fuel",
                                      "Width": "180px"
                                    },
                                    {
                                      "Type": "Input",
                                      "Id": "priority_min_fuel_input",
                                      "Width": "64px",
                                      "Placeholder": "0",
                                      "InputType": "Number",
                                      "Step": 1,
                                      "Command": "core.class_design.set_priority"
                                    }
                                  ]
                                },
                                {
                                  "Type": "StackPanel",
                                  "Orientation": "Horizontal",
                                  "Gap": 8,
                                  "Width": "100%",
                                  "Children": [
                                    {
                                      "Type": "Label",
                                      "Text": "Minimum Supplies",
                                      "Width": "180px"
                                    },
                                    {
                                      "Type": "Input",
                                      "Id": "priority_min_supplies_input",
                                      "Width": "64px",
                                      "Placeholder": "0",
                                      "InputType": "Number",
                                      "Step": 1,
                                      "Command": "core.class_design.set_priority"
                                    }
                                  ]
                                },
                                {
                                  "Type": "Label",
                                  "Id": "priority_hint_label",
                                  "Text": "The Highest Priority is 1",
                                  "Style": "Label.Secondary"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "Type": "Panel",
                          "Id": "sm_instant_build_panel",
                          "Width": "100%",
                          "IsVisible": false,
                          "Border": "1px solid rgba(255,165,0,0.25)",
                          "CornerRadius": 6,
                          "Padding": "12px",
                          "Children": [
                            {
                              "Type": "Label",
                              "Id": "sm_build_title",
                              "Text": "Instant Build",
                              "Style": "Label.Subheading"
                            },
                            {
                              "Type": "StackPanel",
                              "Id": "sm_build_controls",
                              "Orientation": "Vertical",
                              "Gap": 4,
                              "Width": "100%",
                              "Children": [
                                {
                                  "Type": "StackPanel",
                                  "Orientation": "Horizontal",
                                  "Gap": 8,
                                  "Width": "100%",
                                  "Children": [
                                    {
                                      "Type": "Label",
                                      "Text": "Build Points",
                                      "Width": "130px"
                                    },
                                    {
                                      "Type": "Label",
                                      "Id": "sm_build_points_display",
                                      "Text": "0",
                                      "Width": "80px",
                                      "Style": "Label.Secondary"
                                    }
                                  ]
                                },
                                {
                                  "Type": "StackPanel",
                                  "Orientation": "Horizontal",
                                  "Gap": 8,
                                  "Width": "100%",
                                  "Children": [
                                    {
                                      "Type": "Label",
                                      "Text": "Ships to Build",
                                      "Width": "130px"
                                    },
                                    {
                                      "Type": "Input",
                                      "Id": "sm_ships_to_build_input",
                                      "Width": "80px",
                                      "Placeholder": "1",
                                      "InputType": "Number",
                                      "Step": 1,
                                      "Min": 1,
                                      "Command": "core.class_design.sm_set_ship_count"
                                    }
                                  ]
                                },
                                {
                                  "Type": "Separator"
                                },
                                {
                                  "Type": "Checkbox",
                                  "Id": "sm_include_parasites",
                                  "Label": "Include Assigned Parasites",
                                  "Command": "core.class_design.sm_toggle_parasites"
                                },
                                {
                                  "Type": "Checkbox",
                                  "Id": "sm_include_templates",
                                  "Label": "Include Assigned Templates",
                                  "Command": "core.class_design.sm_toggle_templates"
                                },
                                {
                                  "Type": "Separator"
                                },
                                {
                                  "Type": "Checkbox",
                                  "Id": "sm_enter_ship_names",
                                  "Label": "Enter Ship Names",
                                  "Command": "core.class_design.sm_toggle_enter_names"
                                },
                                {
                                  "Type": "StackPanel",
                                  "Id": "sm_ship_names_input",
                                  "Orientation": "Vertical",
                                  "Gap": 4,
                                  "Width": "100%",
                                  "Margin": "16px 0 0 0",
                                  "IsVisible": false,
                                  "Children": [
                                    {
                                      "Type": "Input",
                                      "Id": "sm_ship_name_text",
                                      "Placeholder": "Ship name (comma-separated for multiple)",
                                      "Width": "100%",
                                      "Command": "core.class_design.sm_set_ship_name"
                                    }
                                  ]
                                },
                                {
                                  "Type": "Checkbox",
                                  "Id": "sm_assign_mothership",
                                  "Label": "Assign to Mothership",
                                  "Command": "core.class_design.sm_toggle_mothership"
                                },
                                {
                                  "Type": "StackPanel",
                                  "Id": "sm_mothership_dropdowns",
                                  "Orientation": "Vertical",
                                  "Gap": 4,
                                  "Width": "100%",
                                  "Margin": "16px 0 0 0",
                                  "IsVisible": false,
                                  "Children": [
                                    {
                                      "Type": "Select",
                                      "Id": "sm_mothership_class_select",
                                      "Width": "100%",
                                      "Placeholder": "Mothership Class",
                                      "Options": [],
                                      "Command": "core.class_design.sm_select_mothership_class"
                                    },
                                    {
                                      "Type": "Select",
                                      "Id": "sm_mothership_select",
                                      "Width": "100%",
                                      "Placeholder": "Mothership",
                                      "Options": [],
                                      "Command": "core.class_design.sm_select_mothership"
                                    }
                                  ]
                                },
                                {
                                  "Type": "Checkbox",
                                  "Id": "sm_assign_squadron",
                                  "Label": "Assign to Squadron",
                                  "Command": "core.class_design.sm_toggle_squadron"
                                },
                                {
                                  "Type": "StackPanel",
                                  "Id": "sm_squadron_dropdown",
                                  "Orientation": "Vertical",
                                  "Gap": 4,
                                  "Width": "100%",
                                  "Margin": "16px 0 0 0",
                                  "IsVisible": false,
                                  "Children": [
                                    {
                                      "Type": "Select",
                                      "Id": "sm_squadron_select",
                                      "Width": "100%",
                                      "Placeholder": "Squadron",
                                      "Options": [],
                                      "Command": "core.class_design.sm_select_squadron"
                                    }
                                  ]
                                },
                                {
                                  "Type": "StackPanel",
                                  "Orientation": "Horizontal",
                                  "Gap": 8,
                                  "Width": "100%",
                                  "Margin": "4px 0 0 0",
                                  "Children": [
                                    {
                                      "Type": "Label",
                                      "Text": "Fleet",
                                      "Width": "50px"
                                    },
                                    {
                                      "Type": "Select",
                                      "Id": "sm_fleet_select",
                                      "Width": "240px",
                                      "Options": [],
                                      "Command": "core.class_design.sm_select_fleet"
                                    }
                                  ]
                                },
                                {
                                  "Type": "Separator"
                                },
                                {
                                  "Type": "Button",
                                  "Id": "sm_instant_build_button",
                                  "Text": "Instant Build",
                                  "Command": "core.class_design.sm_instant_build",
                                  "Style": "Warning",
                                  "Width": "100%"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "Type": "Checkbox",
                          "Id": "use_alien_tech_checkbox",
                          "Label": "Use Alien Tech",
                          "TooltipText": "Allow this class to use technology from other species. Normally, classes are restricted to technology researched by your own race.",
                          "Command": "core.class_design.toggle_alien_tech"
                        }
                      ]
                    },
                    {
                      "Type": "StackPanel",
                      "Id": "refit_grids_column",
                      "Grid.Column": 1,
                      "Grid.Row": 0,
                      "Orientation": "Vertical",
                      "Gap": 4,
                      "Width": "100%",
                      "Height": "100%",
                      "Children": [
                        {
                          "Type": "Label",
                          "Text": "Refit From Listed Class To Current",
                          "Style": "Label.Subheading"
                        },
                        {
                          "Type": "DataGrid",
                          "Id": "refit_from_listed_grid",
                          "Width": "100%",
                          "Height": "1fr",
                          "EnableVerticalScroll": true,
                          "UseZebraStriping": true,
                          "AllowSorting": true,
                          "Columns": [
                            {
                              "Header": "Class Name",
                              "Field": "class_name",
                              "Flex": 1
                            },
                            {
                              "Header": "Cost",
                              "Field": "cost",
                              "Width": "auto",
                              "Align": "Right"
                            },
                            {
                              "Header": "% Original",
                              "Field": "pct_original",
                              "Width": "auto",
                              "Align": "Right"
                            },
                            {
                              "Header": "% Refit",
                              "Field": "pct_refit",
                              "Width": "auto",
                              "Align": "Right"
                            },
                            {
                              "Header": "SY",
                              "Field": "sy",
                              "Width": "auto",
                              "Align": "Center"
                            }
                          ],
                          "Rows": []
                        },
                        {
                          "Type": "Label",
                          "Text": "Refit From Current Class To Listed",
                          "Style": "Label.Subheading"
                        },
                        {
                          "Type": "DataGrid",
                          "Id": "refit_from_current_grid",
                          "Width": "100%",
                          "Height": "1fr",
                          "EnableVerticalScroll": true,
                          "UseZebraStriping": true,
                          "AllowSorting": true,
                          "Columns": [
                            {
                              "Header": "Class Name",
                              "Field": "class_name",
                              "Flex": 1
                            },
                            {
                              "Header": "Cost",
                              "Field": "cost",
                              "Width": "auto",
                              "Align": "Right"
                            },
                            {
                              "Header": "% Original",
                              "Field": "pct_original",
                              "Width": "auto",
                              "Align": "Right"
                            },
                            {
                              "Header": "% Refit",
                              "Field": "pct_refit",
                              "Width": "auto",
                              "Align": "Right"
                            },
                            {
                              "Header": "SY",
                              "Field": "sy",
                              "Width": "auto",
                              "Align": "Center"
                            }
                          ],
                          "Rows": []
                        },
                        {
                          "Type": "Label",
                          "Id": "refit_sy_hint",
                          "Text": "A 'Yes' in the SY column for the Refit From table means this ship can be built in a shipyard tooled for the listed class. A 'Yes' in the SY column for the Refit To table means the listed ship can be built in a shipyard tooled for the current class. In both cases, this means any potential refit can be done without retooling, or both classes can be built in the same SY.",
                          "Style": "Label.Hint"
                        }
                      ]
                    },
                    {
                      "Type": "Panel",
                      "Id": "naming_config_panel",
                      "Grid.Column": 2,
                      "Grid.Row": 0,
                      "Width": "380px",
                      "Border": "1px solid rgba(92,168,255,0.16)",
                      "CornerRadius": 6,
                      "Padding": "12px",
                      "Children": [
                        {
                          "Type": "Label",
                          "Id": "naming_config_title",
                          "Text": "Naming",
                          "Style": "Label.Subheading"
                        },
                        {
                          "Type": "StackPanel",
                          "Orientation": "Vertical",
                          "Gap": 4,
                          "Width": "100%",
                          "Children": [
                            {
                              "Type": "StackPanel",
                              "Orientation": "Horizontal",
                              "Gap": 8,
                              "Width": "100%",
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "Naming Theme",
                                  "Width": "120px"
                                },
                                {
                                  "Type": "Select",
                                  "Id": "naming_theme_select",
                                  "Width": "220px",
                                  "Placeholder": "Select theme",
                                  "Options": [],
                                  "Command": "core.class_design.set_name_theme",
                                  "IsSearchable": true
                                }
                              ]
                            },
                            {
                              "Type": "StackPanel",
                              "Orientation": "Horizontal",
                              "Gap": 8,
                              "Width": "100%",
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "Prefix",
                                  "Width": "120px"
                                },
                                {
                                  "Type": "Input",
                                  "Id": "naming_prefix_input",
                                  "Width": "220px",
                                  "Placeholder": "e.g. HMS, USS",
                                  "Command": "core.class_design.set_prefix"
                                }
                              ]
                            },
                            {
                              "Type": "StackPanel",
                              "Orientation": "Horizontal",
                              "Gap": 8,
                              "Width": "100%",
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "Suffix",
                                  "Width": "120px"
                                },
                                {
                                  "Type": "Input",
                                  "Id": "naming_suffix_input",
                                  "Width": "220px",
                                  "Placeholder": "e.g. Jr, III",
                                  "Command": "core.class_design.set_suffix"
                                }
                              ]
                            },
                            {
                              "Type": "Checkbox",
                              "Id": "naming_random_name_checkbox",
                              "Label": "Random Name from Theme",
                              "Command": "core.class_design.toggle_random_name"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "Type": "TabItem",
              "Id": "tabitem_class_templates",
              "Title": "Class Templates",
              "Children": [
                {
                  "Type": "Panel",
                  "Id": "tab_class_templates_placeholder",
                  "Width": "100%",
                  "Height": "100%",
                  "Children": [
                    {
                      "Type": "Label",
                      "Id": "tab_class_templates_placeholder_text",
                      "Text": "Class Templates is not implemented yet.",
                      "Width": "100%"
                    }
                  ]
                }
              ]
            },
            {
              "Type": "TabItem",
              "Id": "tabitem_glossary",
              "Title": "Glossary",
              "Children": [
                {
                  "Type": "Panel",
                  "Id": "tab_glossary_content",
                  "Width": "100%",
                  "Height": "100%",
                  "Padding": "12px",
                  "Children": [
                    {
                      "Type": "Label",
                      "Id": "glossary_text",
                      "Text": "<b>BP:</b> Build Points. The cost of the class in both minerals and wealth\n\n<b>TCS:</b> Target Cross Section. The size (resolution) of the class for purposes of detection by active sensors\n\n<b>TH:</b> Thermal Signature. The thermal signature of the class at maximum speed. Used for detection by thermal sensors\n\n<b>EM:</b> EM Signature. The thermal signature of the class with maximum shields. Used for detection by EM sensors\n\n<b>Armour:</b> The depth and width of the armour belt\n\n<b>Shields:</b> The strength and recharge time in seconds of any shields\n\n<b>Sensors:</b> The thermal/EM/gravitational/geological sensor strengths\n\n<b>Damage Control Rating:</b> A multiplier to the speed at which damage control is carried out\n\n<b>PPV:</b> Planetary Protection Value. The value of this class in placating colonists concerned about military protection\n\n<b>Maint Life:</b> An estimate of how long the available MSP will last during continual operations without an overhaul\n\n<b>MSP:</b> The storage capacity for maintenance supplies\n\n<b>AFR:</b> Annual Failure Rate. The chance the ship will suffer a component failure over the course of one year\n\n<b>IFR:</b> Incremental Failure Rate. The chance the ship will suffer a component failure during a single 5-day increment\n\n<b>MU1:</b> An estimate of how many MSP will be used to repair component failure during the first year after an overhaul\n\n<b>MU5:</b> An estimate of how many MSP will be used to repair component failure during the first five years after an overhaul\n\n<b>Max Repair:</b> The maximum repair cost of any individual component. It is a good idea to have more MSP than this.\n\n<i>Note that a class is the basis for all ships of that class. If you change a class after ships of that class have been created, the ships of that class will be changed as well. This is why the design is locked once a shipyard is tooled to build it. However, new players may wish to take advantage of this to unlock classes and fix unintended errors such as forgetting reactors for beam weapons.</i>",
                      "AllowHtml": true,
                      "Width": "100%",
                      "Classes": [
                        "designer-specs"
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "class_design_rename_modal",
      "Title": "Enter New Class Name",
      "IsVisible": false,
      "CloseCommand": "core.class_design.rename_cancel",
      "DefaultCommand": "core.class_design.rename_class",
      "Size": "Small",
      "DisplayMode": "Glow",
      "Children": [
        {
          "Type": "Input",
          "Id": "class_design_rename_input",
          "AutoFocus": true,
          "Placeholder": "Class name",
          "Command": "core.class_design.set_rename_text"
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Id": "class_design_rename_confirm",
              "Text": "Rename",
              "Command": "core.class_design.rename_class",
              "Style": "Primary"
            },
            {
              "Type": "Button",
              "Id": "class_design_rename_cancel",
              "Text": "Cancel",
              "Command": "core.class_design.rename_cancel"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "class_design_select_name_modal",
      "Title": "Select Class Name",
      "IsVisible": false,
      "CloseCommand": "core.class_design.select_name_cancel",
      "DefaultCommand": "core.class_design.select_name",
      "Width": "860px",
      "IsTall": true,
      "DisplayMode": "Glow",
      "Children": [
        {
          "Type": "StackPanel",
          "Id": "class_design_select_name_modal_content",
          "Orientation": "Vertical",
          "Gap": 8,
          "Width": "100%",
          "Height": "100%",
          "Children": [
            {
              "Type": "Label",
              "Id": "class_design_select_name_context",
              "Text": "Select a naming theme and a class name.",
              "Width": "100%"
            },
            {
              "Type": "StackPanel",
              "Id": "class_design_select_name_lists",
              "Orientation": "Horizontal",
              "Gap": 8,
              "Width": "100%",
              "Height": "350px",
              "Children": [
                {
                  "Type": "Tree",
                  "Id": "class_design_select_name_theme_tree",
                  "Width": "50%",
                  "Height": "316px",
                  "Nodes": [],
                  "ShowSearch": true,
                  "SearchPlaceholder": "Filter themes",
                  "EnableVerticalScroll": true
                },
                {
                  "Type": "Tree",
                  "Id": "class_design_select_name_name_tree",
                  "Width": "50%",
                  "Height": "316px",
                  "Nodes": [],
                  "ShowSearch": true,
                  "SearchPlaceholder": "Filter names",
                  "EnableVerticalScroll": true
                }
              ]
            }
          ]
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Id": "class_design_select_name_confirm",
              "Text": "Select Name",
              "Command": "core.class_design.select_name",
              "Style": "Primary"
            },
            {
              "Type": "Button",
              "Id": "class_design_select_name_cancel",
              "Text": "Cancel",
              "Command": "core.class_design.select_name_cancel"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "class_design_add_amount_modal",
      "Title": "Add Amount",
      "IsVisible": false,
      "CloseOnEscape": true,
      "CloseOnBackdropClick": true,
      "CloseCommand": "core.class_design.add_amount_cancel",
      "DefaultCommand": "core.class_design.add_amount_confirm",
      "Size": "Small",
      "AccentVariant": "accent",
      "DisplayMode": "Glow",
      "Children": [
        {
          "Type": "Input",
          "Id": "class_design_add_amount_input",
          "AutoFocus": true,
          "InputType": "Number",
          "Placeholder": "Amount",
          "CommitOnInput": true,
          "Command": "core.class_design.set_add_amount"
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Id": "class_design_add_amount_confirm",
              "Text": "Add",
              "Command": "core.class_design.add_amount_confirm",
              "Style": "Primary"
            },
            {
              "Type": "Button",
              "Id": "class_design_add_amount_cancel",
              "Text": "Cancel",
              "Command": "core.class_design.add_amount_cancel"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "class_design_new_hull_modal",
      "Title": "Enter New Hull Name",
      "IsVisible": false,
      "CloseCommand": "core.class_design.new_hull_cancel",
      "DefaultCommand": "core.class_design.confirm_new_hull",
      "Size": "Small",
      "DisplayMode": "Glow",
      "Children": [
        {
          "Type": "Input",
          "Id": "class_design_new_hull_input",
          "AutoFocus": true,
          "Placeholder": "Hull Name",
          "Command": "core.class_design.set_new_hull_text"
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Id": "class_design_new_hull_confirm",
              "Text": "Create",
              "Command": "core.class_design.confirm_new_hull",
              "Style": "Primary"
            },
            {
              "Type": "Button",
              "Id": "class_design_new_hull_cancel",
              "Text": "Cancel",
              "Command": "core.class_design.new_hull_cancel"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "class_design_names_text_modal",
      "Title": "Class Ship List",
      "IsVisible": false,
      "CloseCommand": "core.class_design.names_text_close",
      "Width": "600px",
      "Height": "500px",
      "IsTall": true,
      "Children": [
        {
          "Type": "TextArea",
          "Id": "class_design_names_text_area",
          "Width": "100%",
          "Height": "420px",
          "Rows": 20,
          "IsEnabled": true,
          "Text": ""
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Id": "class_design_names_text_close_btn",
              "Text": "Close",
              "Command": "core.class_design.names_text_close"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "class_design_delete_confirm_modal",
      "Title": "Delete Class",
      "IsVisible": false,
      "CloseOnEscape": true,
      "CloseOnBackdropClick": true,
      "CloseCommand": "core.class_design.delete_cancel",
      "Width": "480px",
      "Height": "220px",
      "BadgeText": "Warning",
      "BadgeVariant": "warn",
      "AccentVariant": "Warning",
      "DisplayMode": "Glow",
      "Children": [
        {
          "Type": "Label",
          "Id": "class_design_delete_confirm_message",
          "Text": "",
          "Classes": [
            "ps-modal-message"
          ]
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Id": "class_design_delete_confirm_btn",
              "Text": "Delete",
              "Command": "core.class_design.delete_confirm",
              "Style": "Warning"
            },
            {
              "Type": "Button",
              "Id": "class_design_delete_cancel_btn",
              "Text": "Cancel",
              "Command": "core.class_design.delete_cancel"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "class_design_warn_modal",
      "Title": "Class Design",
      "IsVisible": false,
      "CloseOnEscape": true,
      "CloseOnBackdropClick": true,
      "CloseCommand": "core.class_design.dismiss_warn",
      "Width": "480px",
      "Height": "220px",
      "BadgeText": "Warning",
      "BadgeVariant": "warn",
      "AccentVariant": "Warning",
      "DisplayMode": "Glow",
      "Children": [
        {
          "Type": "Label",
          "Id": "class_design_warn_message",
          "Text": "",
          "Classes": [
            "ps-modal-message"
          ]
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Id": "btn_class_design_warn_ok",
              "Text": "OK",
              "Command": "core.class_design.dismiss_warn",
              "Style": "Primary"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "class_design_rename_comp_modal",
      "Title": "Rename Component",
      "IsVisible": false,
      "CloseCommand": "core.class_design.rename_comp_cancel",
      "DefaultCommand": "core.class_design.rename_comp_confirm",
      "Size": "Small",
      "DisplayMode": "Glow",
      "Children": [
        {
          "Type": "Input",
          "Id": "class_design_rename_comp_input",
          "AutoFocus": true,
          "Placeholder": "Component name",
          "Command": "core.class_design.set_rename_comp_text"
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Id": "class_design_rename_comp_confirm",
              "Text": "Rename",
              "Command": "core.class_design.rename_comp_confirm",
              "Style": "Primary"
            },
            {
              "Type": "Button",
              "Id": "class_design_rename_comp_cancel",
              "Text": "Cancel",
              "Command": "core.class_design.rename_comp_cancel"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "class_design_deployment_modal",
      "Title": "Set Deployment Time",
      "IsVisible": false,
      "CloseCommand": "core.class_design.deployment_cancel",
      "DefaultCommand": "core.class_design.deployment_apply",
      "Size": "Small",
      "DisplayMode": "Glow",
      "Children": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "Width": "100%",
          "Children": [
            {
              "Type": "Input",
              "Id": "deployment_value_input",
              "AutoFocus": true,
              "InputType": "Number",
              "Placeholder": "3",
              "Command": "core.class_design.set_deployment_value",
              "Width": "80px"
            },
            {
              "Type": "Select",
              "Id": "deployment_unit_select",
              "Command": "core.class_design.set_deployment_unit",
              "Width": "100px",
              "Options": [
                {
                  "Label": "Hours",
                  "Value": "hours"
                },
                {
                  "Label": "Days",
                  "Value": "days"
                },
                {
                  "Label": "Months",
                  "Value": "months"
                },
                {
                  "Label": "Years",
                  "Value": "years"
                }
              ]
            }
          ]
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Id": "deployment_apply_btn",
              "Text": "Apply",
              "Command": "core.class_design.deployment_apply",
              "Style": "Primary"
            },
            {
              "Type": "Button",
              "Text": "Cancel",
              "Command": "core.class_design.deployment_cancel"
            }
          ]
        }
      ]
    }
  ]
}