{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "OrderEditDialog",
      "name": "Dialog/OrderEdit",
      "reusable": true,
      "width": 480,
      "height": 620,
      "fill": "$bg-elevated",
      "cornerRadius": 20,
      "layout": "vertical",
      "children": [
        {
          "type": "frame",
          "id": "EditHeader",
          "width": "fill_container",
          "padding": [16, 20],
          "gap": 12,
          "alignItems": "center",
          "stroke": {"thickness": 1, "fill": "$border-subtle"},
          "children": [
            {"type": "frame", "id": "EditIconBg", "width": 40, "height": 40, "fill": "#EAB30815", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "EditIcon", "width": 20, "height": 20, "iconFontName": "pencil", "iconFontFamily": "lucide", "fill": "#EAB308"}
            ]},
            {"type": "frame", "id": "EditTitleBox", "width": "fill_container", "layout": "vertical", "gap": 2, "children": [
              {"type": "text", "id": "EditTitle", "fill": "$text-primary", "content": "Chỉnh Sửa Đơn Hàng", "fontFamily": "Roboto", "fontSize": 17, "fontWeight": "700"},
              {"type": "text", "id": "EditSubtitle", "fill": "$text-tertiary", "content": "Đơn hàng #00458 - Bàn 05", "fontFamily": "Roboto", "fontSize": 12}
            ]},
            {"type": "frame", "id": "EditClose", "width": 32, "height": 32, "fill": "$bg-interactive", "cornerRadius": 8, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "EditCloseIcon", "width": 16, "height": 16, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "$text-secondary"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "EditContent",
          "width": "fill_container",
          "height": "fill_container",
          "layout": "vertical",
          "gap": 12,
          "padding": [16, 20],
          "children": [
            {"type": "frame", "id": "OrderItem1", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 12, "padding": 14, "gap": 12, "children": [
              {"type": "frame", "id": "Item1Img", "width": 48, "height": 48, "fill": "#3B82F620", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "Item1Icon", "width": 24, "height": 24, "iconFontName": "coffee", "iconFontFamily": "lucide", "fill": "#3B82F6"}
              ]},
              {"type": "frame", "id": "Item1Info", "width": "fill_container", "layout": "vertical", "gap": 4, "children": [
                {"type": "text", "id": "Item1Name", "fill": "$text-primary", "content": "Cà phê sữa đá", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"},
                {"type": "text", "id": "Item1Price", "fill": "$text-tertiary", "content": "35,000đ × 2", "fontFamily": "Roboto", "fontSize": 12}
              ]},
              {"type": "frame", "id": "Item1Controls", "gap": 8, "alignItems": "center", "children": [
                {"type": "frame", "id": "Item1Minus", "width": 32, "height": 32, "fill": "$bg-interactive", "cornerRadius": 8, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "Item1MinusIcon", "width": 16, "height": 16, "iconFontName": "minus", "iconFontFamily": "lucide", "fill": "$text-secondary"}
                ]},
                {"type": "text", "id": "Item1Qty", "fill": "$text-primary", "content": "2", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "600", "width": 24, "textAlign": "center"},
                {"type": "frame", "id": "Item1Plus", "width": 32, "height": 32, "fill": "$orange-primary", "cornerRadius": 8, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "Item1PlusIcon", "width": 16, "height": 16, "iconFontName": "plus", "iconFontFamily": "lucide", "fill": "#FFFFFF"}
                ]}
              ]},
              {"type": "frame", "id": "Item1Delete", "width": 32, "height": 32, "fill": "#EF444420", "cornerRadius": 8, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "Item1DeleteIcon", "width": 16, "height": 16, "iconFontName": "trash-2", "iconFontFamily": "lucide", "fill": "#EF4444"}
              ]}
            ]},
            {"type": "frame", "id": "OrderItem2", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 12, "padding": 14, "gap": 12, "children": [
              {"type": "frame", "id": "Item2Img", "width": 48, "height": 48, "fill": "#F9731620", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "Item2Icon", "width": 24, "height": 24, "iconFontName": "croissant", "iconFontFamily": "lucide", "fill": "#F97316"}
              ]},
              {"type": "frame", "id": "Item2Info", "width": "fill_container", "layout": "vertical", "gap": 4, "children": [
                {"type": "text", "id": "Item2Name", "fill": "$text-primary", "content": "Bánh mì thịt", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"},
                {"type": "text", "id": "Item2Price", "fill": "$text-tertiary", "content": "25,000đ × 1", "fontFamily": "Roboto", "fontSize": 12}
              ]},
              {"type": "frame", "id": "Item2Controls", "gap": 8, "alignItems": "center", "children": [
                {"type": "frame", "id": "Item2Minus", "width": 32, "height": 32, "fill": "$bg-interactive", "cornerRadius": 8, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "Item2MinusIcon", "width": 16, "height": 16, "iconFontName": "minus", "iconFontFamily": "lucide", "fill": "$text-secondary"}
                ]},
                {"type": "text", "id": "Item2Qty", "fill": "$text-primary", "content": "1", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "600", "width": 24, "textAlign": "center"},
                {"type": "frame", "id": "Item2Plus", "width": 32, "height": 32, "fill": "$orange-primary", "cornerRadius": 8, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "Item2PlusIcon", "width": 16, "height": 16, "iconFontName": "plus", "iconFontFamily": "lucide", "fill": "#FFFFFF"}
                ]}
              ]},
              {"type": "frame", "id": "Item2Delete", "width": 32, "height": 32, "fill": "#EF444420", "cornerRadius": 8, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "Item2DeleteIcon", "width": 16, "height": 16, "iconFontName": "trash-2", "iconFontFamily": "lucide", "fill": "#EF4444"}
              ]}
            ]},
            {"type": "frame", "id": "AddItemBtn", "width": "fill_container", "height": 48, "fill": "$bg-page", "cornerRadius": 12, "stroke": {"thickness": 1, "fill": "$border-default"}, "gap": 8, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "AddItemIcon", "width": 18, "height": 18, "iconFontName": "plus-circle", "iconFontFamily": "lucide", "fill": "$orange-primary"},
              {"type": "text", "id": "AddItemText", "fill": "$orange-primary", "content": "Thêm món mới", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
            ]},
            {"type": "frame", "id": "EditNote", "width": "fill_container", "layout": "vertical", "gap": 6, "children": [
              {"type": "text", "id": "EditNoteLabel", "fill": "$text-secondary", "content": "Ghi chú đơn hàng", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
              {"type": "frame", "id": "EditNoteInput", "width": "fill_container", "height": 64, "fill": "$bg-page", "cornerRadius": 10, "stroke": {"thickness": 1, "fill": "$border-default"}, "padding": [10, 14], "children": [
                {"type": "text", "id": "EditNoteVal", "fill": "$text-tertiary", "content": "Ít đường, không đá", "fontFamily": "Roboto", "fontSize": 14}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "EditSummary",
          "width": "fill_container",
          "fill": "$bg-page",
          "padding": [12, 20],
          "justifyContent": "space_between",
          "alignItems": "center",
          "children": [
            {"type": "text", "id": "SummaryLabel", "fill": "$text-secondary", "content": "Tổng cộng (3 món)", "fontFamily": "Roboto", "fontSize": 14},
            {"type": "text", "id": "SummaryTotal", "fill": "$orange-primary", "content": "95,000đ", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"}
          ]
        },
        {
          "type": "frame",
          "id": "EditFooter",
          "width": "fill_container",
          "stroke": {"thickness": 1, "fill": "$border-subtle"},
          "gap": 12,
          "padding": [16, 20],
          "children": [
            {"type": "frame", "id": "DiscardBtn", "width": "fill_container", "height": 48, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "text", "id": "DiscardText", "fill": "$text-secondary", "content": "Hủy thay đổi", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
            ]},
            {"type": "frame", "id": "SaveBtn", "width": "fill_container", "height": 48, "fill": {"type": "gradient", "gradientType": "linear", "rotation": 135, "colors": [{"color": "#FF5C00", "position": 0}, {"color": "#FF8A4C", "position": 1}]}, "cornerRadius": 12, "gap": 8, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "SaveIcon", "width": 18, "height": 18, "iconFontName": "check", "iconFontFamily": "lucide", "fill": "#FFFFFF"},
              {"type": "text", "id": "SaveText", "fill": "#FFFFFF", "content": "Lưu thay đổi", "fontFamily": "Roboto", "fontSize": 14, "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"}
  }
}
