{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "SettingsScreen",
      "name": "Screen/Settings",
      "reusable": true,
      "width": 600,
      "height": 700,
      "fill": "$bg-page",
      "layout": "vertical",
      "clip": true,
      "children": [
        {
          "type": "frame",
          "id": "SettingsHeader",
          "width": "fill_container",
          "padding": [20, 24],
          "fill": "$bg-elevated",
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]},
          "gap": 12,
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "SettingsBackBtn", "width": 40, "height": 40, "fill": "$bg-interactive", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "SettingsBackIcon", "width": 20, "height": 20, "iconFontName": "arrow-left", "iconFontFamily": "lucide", "fill": "$text-secondary"}
            ]},
            {"type": "text", "id": "SettingsTitle", "fill": "$text-primary", "content": "Cài đặt hệ thống", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"}
          ]
        },
        {
          "type": "frame",
          "id": "SettingsContent",
          "width": "fill_container",
          "height": "fill_container",
          "padding": 24,
          "layout": "vertical",
          "gap": 20,
          "clip": true,
          "children": [
            {
              "type": "frame",
              "id": "StoreSection",
              "width": "fill_container",
              "fill": "$bg-elevated",
              "cornerRadius": 16,
              "layout": "vertical",
              "children": [
                {"type": "frame", "id": "StoreSectionHeader", "width": "fill_container", "padding": [16, 20], "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]}, "gap": 10, "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "StoreIcon", "width": 20, "height": 20, "iconFontName": "store", "iconFontFamily": "lucide", "fill": "$orange-primary"},
                  {"type": "text", "id": "StoreTitle", "fill": "$text-primary", "content": "Cửa hàng", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "StoreSectionBody", "width": "fill_container", "padding": 20, "layout": "vertical", "gap": 16, "children": [
                  {"type": "frame", "id": "StoreRow1", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                    {"type": "text", "id": "StoreRow1Label", "fill": "$text-secondary", "content": "Tên", "fontFamily": "Roboto", "fontSize": 14},
                    {"type": "text", "id": "StoreRow1Value", "fill": "$text-primary", "content": "Coffee House", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
                  ]},
                  {"type": "frame", "id": "StoreRow2", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                    {"type": "text", "id": "StoreRow2Label", "fill": "$text-secondary", "content": "Địa chỉ", "fontFamily": "Roboto", "fontSize": 14},
                    {"type": "text", "id": "StoreRow2Value", "fill": "$text-primary", "content": "123 Nguyễn Huệ, Q1", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
                  ]},
                  {"type": "frame", "id": "StoreRow3", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                    {"type": "text", "id": "StoreRow3Label", "fill": "$text-secondary", "content": "Hotline", "fontFamily": "Roboto", "fontSize": 14},
                    {"type": "text", "id": "StoreRow3Value", "fill": "$text-primary", "content": "1900 1234", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
                  ]}
                ]}
              ]
            },
            {
              "type": "frame",
              "id": "PrinterSection",
              "width": "fill_container",
              "fill": "$bg-elevated",
              "cornerRadius": 16,
              "layout": "vertical",
              "children": [
                {"type": "frame", "id": "PrinterSectionHeader", "width": "fill_container", "padding": [16, 20], "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]}, "gap": 10, "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "PrinterIcon", "width": 20, "height": 20, "iconFontName": "printer", "iconFontFamily": "lucide", "fill": "#8B5CF6"},
                  {"type": "text", "id": "PrinterTitle", "fill": "$text-primary", "content": "Máy in", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "PrinterSectionBody", "width": "fill_container", "padding": 20, "layout": "vertical", "gap": 12, "children": [
                  {"type": "frame", "id": "PrinterRow1", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                    {"type": "frame", "id": "PrinterRow1Left", "gap": 10, "alignItems": "center", "children": [
                      {"type": "text", "id": "PrinterRow1Label", "fill": "$text-secondary", "content": "Receipt", "fontFamily": "Roboto", "fontSize": 14},
                      {"type": "frame", "id": "PrinterRow1Status", "fill": "#22C55E20", "cornerRadius": 4, "padding": [3, 8], "children": [
                        {"type": "text", "id": "PrinterRow1StatusT", "fill": "#22C55E", "content": "Online", "fontFamily": "Roboto", "fontSize": 10, "fontWeight": "600"}
                      ]}
                    ]},
                    {"type": "text", "id": "PrinterRow1Value", "fill": "$text-primary", "content": "Epson TM-T82", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
                  ]},
                  {"type": "frame", "id": "PrinterRow2", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                    {"type": "frame", "id": "PrinterRow2Left", "gap": 10, "alignItems": "center", "children": [
                      {"type": "text", "id": "PrinterRow2Label", "fill": "$text-secondary", "content": "Kitchen", "fontFamily": "Roboto", "fontSize": 14},
                      {"type": "frame", "id": "PrinterRow2Status", "fill": "#22C55E20", "cornerRadius": 4, "padding": [3, 8], "children": [
                        {"type": "text", "id": "PrinterRow2StatusT", "fill": "#22C55E", "content": "Online", "fontFamily": "Roboto", "fontSize": 10, "fontWeight": "600"}
                      ]}
                    ]},
                    {"type": "text", "id": "PrinterRow2Value", "fill": "$text-primary", "content": "Star TSP100", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
                  ]},
                  {"type": "frame", "id": "PrinterActions", "width": "fill_container", "gap": 12, "children": [
                    {"type": "frame", "id": "PrinterTestBtn", "width": "fill_container", "height": 40, "fill": "$bg-interactive", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "gap": 8, "children": [
                      {"type": "icon_font", "id": "PrinterTestIcon", "width": 16, "height": 16, "iconFontName": "file-text", "iconFontFamily": "lucide", "fill": "$text-secondary"},
                      {"type": "text", "id": "PrinterTestText", "fill": "$text-secondary", "content": "Test Print", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
                    ]},
                    {"type": "frame", "id": "PrinterReconnectBtn", "width": "fill_container", "height": 40, "fill": "$bg-interactive", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "gap": 8, "children": [
                      {"type": "icon_font", "id": "PrinterReconnectIcon", "width": 16, "height": 16, "iconFontName": "refresh-cw", "iconFontFamily": "lucide", "fill": "$text-secondary"},
                      {"type": "text", "id": "PrinterReconnectText", "fill": "$text-secondary", "content": "Reconnect", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
                    ]}
                  ]}
                ]}
              ]
            },
            {
              "type": "frame",
              "id": "FinanceSection",
              "width": "fill_container",
              "fill": "$bg-elevated",
              "cornerRadius": 16,
              "layout": "vertical",
              "children": [
                {"type": "frame", "id": "FinanceSectionHeader", "width": "fill_container", "padding": [16, 20], "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]}, "gap": 10, "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "FinanceIcon", "width": 20, "height": 20, "iconFontName": "banknote", "iconFontFamily": "lucide", "fill": "#22C55E"},
                  {"type": "text", "id": "FinanceTitle", "fill": "$text-primary", "content": "Tài chính", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "FinanceSectionBody", "width": "fill_container", "padding": 20, "layout": "vertical", "gap": 16, "children": [
                  {"type": "frame", "id": "FinanceRow1", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                    {"type": "text", "id": "FinanceRow1Label", "fill": "$text-secondary", "content": "VAT", "fontFamily": "Roboto", "fontSize": 14},
                    {"type": "frame", "id": "FinanceRow1Toggle", "gap": 10, "alignItems": "center", "children": [
                      {"type": "text", "id": "FinanceRow1Value", "fill": "$text-primary", "content": "10%", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"},
                      {"type": "frame", "id": "FinanceRow1ToggleBtn", "width": 44, "height": 24, "fill": "#22C55E", "cornerRadius": 12, "padding": [2, 2], "justifyContent": "end", "children": [
                        {"type": "frame", "id": "FinanceRow1ToggleKnob", "width": 20, "height": 20, "fill": "#FFFFFF", "cornerRadius": 100}
                      ]}
                    ]}
                  ]},
                  {"type": "frame", "id": "FinanceRow2", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                    {"type": "text", "id": "FinanceRow2Label", "fill": "$text-secondary", "content": "Tip", "fontFamily": "Roboto", "fontSize": 14},
                    {"type": "frame", "id": "FinanceRow2Toggle", "width": 44, "height": 24, "fill": "#22C55E", "cornerRadius": 12, "padding": [2, 2], "justifyContent": "end", "children": [
                      {"type": "frame", "id": "FinanceRow2ToggleKnob", "width": 20, "height": 20, "fill": "#FFFFFF", "cornerRadius": 100}
                    ]}
                  ]},
                  {"type": "frame", "id": "FinanceRow3", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                    {"type": "text", "id": "FinanceRow3Label", "fill": "$text-secondary", "content": "Làm tròn", "fontFamily": "Roboto", "fontSize": 14},
                    {"type": "text", "id": "FinanceRow3Value", "fill": "$text-primary", "content": "Gần 1,000₫", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
                  ]}
                ]}
              ]
            },
            {
              "type": "frame",
              "id": "StaffSection",
              "width": "fill_container",
              "fill": "$bg-elevated",
              "cornerRadius": 16,
              "layout": "vertical",
              "children": [
                {"type": "frame", "id": "StaffSectionHeader", "width": "fill_container", "padding": [16, 20], "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]}, "gap": 10, "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "StaffIcon", "width": 20, "height": 20, "iconFontName": "users", "iconFontFamily": "lucide", "fill": "#3B82F6"},
                  {"type": "text", "id": "StaffTitle", "fill": "$text-primary", "content": "Nhân sự", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "StaffSectionBody", "width": "fill_container", "padding": 20, "layout": "vertical", "gap": 10, "children": [
                  {"type": "frame", "id": "StaffMenuItem1", "width": "fill_container", "height": 44, "fill": "$bg-interactive", "cornerRadius": 10, "padding": [0, 16], "justifyContent": "space_between", "alignItems": "center", "children": [
                    {"type": "text", "id": "StaffMenuItem1Text", "fill": "$text-primary", "content": "Quản lý nhân viên", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"},
                    {"type": "icon_font", "id": "StaffMenuItem1Arrow", "width": 18, "height": 18, "iconFontName": "chevron-right", "iconFontFamily": "lucide", "fill": "$text-tertiary"}
                  ]},
                  {"type": "frame", "id": "StaffMenuItem2", "width": "fill_container", "height": 44, "fill": "$bg-interactive", "cornerRadius": 10, "padding": [0, 16], "justifyContent": "space_between", "alignItems": "center", "children": [
                    {"type": "text", "id": "StaffMenuItem2Text", "fill": "$text-primary", "content": "Mẫu ca làm việc", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"},
                    {"type": "icon_font", "id": "StaffMenuItem2Arrow", "width": 18, "height": 18, "iconFontName": "chevron-right", "iconFontFamily": "lucide", "fill": "$text-tertiary"}
                  ]},
                  {"type": "frame", "id": "StaffMenuItem3", "width": "fill_container", "height": 44, "fill": "$bg-interactive", "cornerRadius": 10, "padding": [0, 16], "justifyContent": "space_between", "alignItems": "center", "children": [
                    {"type": "text", "id": "StaffMenuItem3Text", "fill": "$text-primary", "content": "Phân quyền", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"},
                    {"type": "icon_font", "id": "StaffMenuItem3Arrow", "width": 18, "height": 18, "iconFontName": "chevron-right", "iconFontFamily": "lucide", "fill": "$text-tertiary"}
                  ]}
                ]}
              ]
            }
          ]
        },
        {
          "type": "frame",
          "id": "SettingsFooter",
          "width": "fill_container",
          "fill": "$bg-elevated",
          "padding": [16, 24],
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["top"]},
          "children": [
            {"type": "frame", "id": "SaveBtn", "width": "fill_container", "height": 52, "fill": {"type": "gradient", "gradientType": "linear", "enabled": true, "rotation": 135, "colors": [{"color": "#FF5C00", "position": 0}, {"color": "#FF8A4C", "position": 1}]}, "cornerRadius": 14, "justifyContent": "center", "alignItems": "center", "gap": 10, "children": [
              {"type": "icon_font", "id": "SaveIcon", "width": 20, "height": 20, "iconFontName": "save", "iconFontFamily": "lucide", "fill": "#FFFFFF"},
              {"type": "text", "id": "SaveText", "fill": "#FFFFFF", "content": "Lưu thay đổi", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "600"}
            ]}
          ]
        }
      ]
    }
  ],
  "variables": {
    "bg-elevated": {"type": "color", "value": "#1A1A1D"},
    "bg-interactive": {"type": "color", "value": "#2A2A2E"},
    "bg-page": {"type": "color", "value": "#0A0A0B"},
    "border-subtle": {"type": "color", "value": "#1F1F23"},
    "orange-primary": {"type": "color", "value": "#FF5C00"},
    "text-primary": {"type": "color", "value": "#FFFFFF"},
    "text-secondary": {"type": "color", "value": "#ADADB0"},
    "text-tertiary": {"type": "color", "value": "#8B8B90"}
  }
}
