{
  "version": "2.7",
  "children": [
    {
      "type": "frame",
      "id": "TableMergeSplitDialog",
      "name": "Dialog/TableMergeSplit",
      "reusable": true,
      "clip": true,
      "width": 440,
      "height": 520,
      "fill": "$bg-elevated",
      "cornerRadius": 24,
      "layout": "vertical",
      "children": [
        {
          "type": "frame",
          "id": "TableMSHeader",
          "width": "fill_container",
          "padding": [16, 20],
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]},
          "justifyContent": "space_between",
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "TableMSHeaderLeft", "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "TableMSIconBg", "width": 40, "height": 40, "fill": "#3B82F620", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "TableMSIcon", "width": 20, "height": 20, "iconFontName": "merge", "iconFontFamily": "lucide", "fill": "#3B82F6"}
              ]},
              {"type": "text", "id": "TableMSTitle", "fill": "$text-primary", "content": "Gộp / Tách bàn", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"}
            ]},
            {"type": "frame", "id": "TableMSCloseBtn", "width": 36, "height": 36, "fill": "$bg-interactive", "cornerRadius": 18, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "TableMSCloseIcon", "width": 18, "height": 18, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "$text-secondary"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "TableMSContent",
          "width": "fill_container",
          "height": "fill_container",
          "padding": 20,
          "layout": "vertical",
          "gap": 16,
          "children": [
            {"type": "frame", "id": "TableMSTabs", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 12, "padding": 4, "gap": 4, "children": [
              {"type": "frame", "id": "TableMSTabMerge", "width": "fill_container", "height": 40, "fill": "$orange-primary", "cornerRadius": 8, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "text", "id": "TableMSTabMergeText", "fill": "$text-primary", "content": "Gộp bàn", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"}
              ]},
              {"type": "frame", "id": "TableMSTabSplit", "width": "fill_container", "height": 40, "cornerRadius": 8, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "text", "id": "TableMSTabSplitText", "fill": "$text-tertiary", "content": "Tách bàn", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
              ]}
            ]},
            {"type": "frame", "id": "TableMSSelectedTable", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 14, "padding": 14, "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "TableMSSelectedIcon", "width": 48, "height": 48, "fill": "#22C55E20", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "text", "id": "TableMSSelectedNumber", "fill": "#22C55E", "content": "05", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"}
              ]},
              {"type": "frame", "id": "TableMSSelectedInfo", "width": "fill_container", "layout": "vertical", "gap": 2, "children": [
                {"type": "text", "id": "TableMSSelectedName", "fill": "$text-primary", "content": "Bàn 05 - Đang gộp", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"},
                {"type": "text", "id": "TableMSSelectedSub", "fill": "$text-tertiary", "content": "4 khách • 285,000₫", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "normal"}
              ]}
            ]},
            {"type": "frame", "id": "TableMSTargetSection", "width": "fill_container", "layout": "vertical", "gap": 10, "children": [
              {"type": "text", "id": "TableMSTargetLabel", "fill": "$text-secondary", "content": "Chọn bàn để gộp", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
              {"type": "frame", "id": "TableMSGrid", "width": "fill_container", "layout": "vertical", "gap": 8, "children": [
                {"type": "frame", "id": "TableMSRow1", "width": "fill_container", "gap": 8, "children": [
                  {"type": "frame", "id": "TableMS06", "width": "fill_container", "height": 64, "fill": "$bg-page", "cornerRadius": 12, "stroke": {"thickness": 2, "fill": "#22C55E"}, "layout": "vertical", "gap": 2, "justifyContent": "center", "alignItems": "center", "children": [
                    {"type": "text", "id": "TableMS06Num", "fill": "#22C55E", "content": "06", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700"},
                    {"type": "text", "id": "TableMS06Sub", "fill": "$text-tertiary", "content": "2 khách", "fontFamily": "Roboto", "fontSize": 11, "fontWeight": "normal"}
                  ]},
                  {"type": "frame", "id": "TableMS07", "width": "fill_container", "height": 64, "fill": "$bg-page", "cornerRadius": 12, "layout": "vertical", "gap": 2, "justifyContent": "center", "alignItems": "center", "children": [
                    {"type": "text", "id": "TableMS07Num", "fill": "$text-primary", "content": "07", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700"},
                    {"type": "text", "id": "TableMS07Sub", "fill": "$text-tertiary", "content": "Trống", "fontFamily": "Roboto", "fontSize": 11, "fontWeight": "normal"}
                  ]},
                  {"type": "frame", "id": "TableMS08", "width": "fill_container", "height": 64, "fill": "$bg-page", "cornerRadius": 12, "layout": "vertical", "gap": 2, "justifyContent": "center", "alignItems": "center", "children": [
                    {"type": "text", "id": "TableMS08Num", "fill": "$text-primary", "content": "08", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700"},
                    {"type": "text", "id": "TableMS08Sub", "fill": "$text-tertiary", "content": "3 khách", "fontFamily": "Roboto", "fontSize": 11, "fontWeight": "normal"}
                  ]},
                  {"type": "frame", "id": "TableMS09", "width": "fill_container", "height": 64, "fill": "$bg-page", "cornerRadius": 12, "layout": "vertical", "gap": 2, "justifyContent": "center", "alignItems": "center", "children": [
                    {"type": "text", "id": "TableMS09Num", "fill": "$text-tertiary", "content": "09", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700"},
                    {"type": "text", "id": "TableMS09Sub", "fill": "$text-tertiary", "content": "Đặt trước", "fontFamily": "Roboto", "fontSize": 11, "fontWeight": "normal"}
                  ]}
                ]},
                {"type": "frame", "id": "TableMSRow2", "width": "fill_container", "gap": 8, "children": [
                  {"type": "frame", "id": "TableMS10", "width": "fill_container", "height": 64, "fill": "$bg-page", "cornerRadius": 12, "layout": "vertical", "gap": 2, "justifyContent": "center", "alignItems": "center", "children": [
                    {"type": "text", "id": "TableMS10Num", "fill": "$text-primary", "content": "10", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700"},
                    {"type": "text", "id": "TableMS10Sub", "fill": "$text-tertiary", "content": "Trống", "fontFamily": "Roboto", "fontSize": 11, "fontWeight": "normal"}
                  ]},
                  {"type": "frame", "id": "TableMS11", "width": "fill_container", "height": 64, "fill": "$bg-page", "cornerRadius": 12, "layout": "vertical", "gap": 2, "justifyContent": "center", "alignItems": "center", "children": [
                    {"type": "text", "id": "TableMS11Num", "fill": "$text-primary", "content": "11", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700"},
                    {"type": "text", "id": "TableMS11Sub", "fill": "$text-tertiary", "content": "4 khách", "fontFamily": "Roboto", "fontSize": 11, "fontWeight": "normal"}
                  ]},
                  {"type": "frame", "id": "TableMS12", "width": "fill_container", "height": 64, "fill": "$bg-page", "cornerRadius": 12, "stroke": {"thickness": 2, "fill": "#22C55E"}, "layout": "vertical", "gap": 2, "justifyContent": "center", "alignItems": "center", "children": [
                    {"type": "text", "id": "TableMS12Num", "fill": "#22C55E", "content": "12", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700"},
                    {"type": "text", "id": "TableMS12Sub", "fill": "$text-tertiary", "content": "2 khách", "fontFamily": "Roboto", "fontSize": 11, "fontWeight": "normal"}
                  ]},
                  {"type": "frame", "id": "TableMS13", "width": "fill_container", "height": 64, "fill": "$bg-page", "cornerRadius": 12, "layout": "vertical", "gap": 2, "justifyContent": "center", "alignItems": "center", "children": [
                    {"type": "text", "id": "TableMS13Num", "fill": "$text-primary", "content": "13", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700"},
                    {"type": "text", "id": "TableMS13Sub", "fill": "$text-tertiary", "content": "Trống", "fontFamily": "Roboto", "fontSize": 11, "fontWeight": "normal"}
                  ]}
                ]}
              ]}
            ]},
            {"type": "frame", "id": "TableMSSummary", "width": "fill_container", "fill": "#22C55E15", "cornerRadius": 12, "padding": [10, 14], "gap": 8, "alignItems": "center", "children": [
              {"type": "icon_font", "id": "TableMSSummaryIcon", "width": 16, "height": 16, "iconFontName": "info", "iconFontFamily": "lucide", "fill": "#22C55E"},
              {"type": "text", "id": "TableMSSummaryText", "fill": "#22C55E", "content": "Đã chọn 2 bàn để gộp: 06, 12", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "TableMSFooter",
          "width": "fill_container",
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["top"]},
          "padding": [16, 20],
          "children": [
            {"type": "frame", "id": "TableMSMergeBtn", "width": "fill_container", "height": 52, "fill": {"type": "gradient", "gradientType": "linear", "enabled": true, "rotation": 135, "colors": [{"color": "#FF5C00", "position": 0}, {"color": "#FF8533", "position": 1}]}, "cornerRadius": 12, "gap": 10, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "TableMSMergeIcon", "width": 20, "height": 20, "iconFontName": "merge", "iconFontFamily": "lucide", "fill": "$text-primary"},
              {"type": "text", "id": "TableMSMergeText", "fill": "$text-primary", "content": "Gộp bàn", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"}
            ]}
          ]
        }
      ]
    }
  ],
  "variables": {
    "bg-elevated": {"type": "color", "value": "#1A1A1D"},
    "bg-interactive": {"type": "color", "value": "#2A2A2E"},
    "bg-page": {"type": "color", "value": "#0A0A0B"},
    "border-default": {"type": "color", "value": "#2A2A2E"},
    "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"}
  }
}
