{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "PendingOrdersScreen",
      "name": "Screen/PendingOrders",
      "reusable": true,
      "width": 520,
      "height": 700,
      "fill": "$bg-page",
      "cornerRadius": 20,
      "layout": "vertical",
      "children": [
        {
          "type": "frame",
          "id": "PendingHeader",
          "width": "fill_container",
          "fill": "$bg-elevated",
          "padding": [16, 20],
          "gap": 12,
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "PendingIconBg", "width": 44, "height": 44, "fill": "#EAB30815", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "PendingIcon", "width": 22, "height": 22, "iconFontName": "clock", "iconFontFamily": "lucide", "fill": "#EAB308"}
            ]},
            {"type": "frame", "id": "PendingTitleBox", "width": "fill_container", "layout": "vertical", "gap": 2, "children": [
              {"type": "text", "id": "PendingTitle", "fill": "$text-primary", "content": "Đơn Hàng Đang Chờ", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"},
              {"type": "text", "id": "PendingCount", "fill": "$text-tertiary", "content": "5 đơn hàng", "fontFamily": "Roboto", "fontSize": 13}
            ]},
            {"type": "frame", "id": "PendingClose", "width": 36, "height": 36, "fill": "$bg-interactive", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "PendingCloseIcon", "width": 18, "height": 18, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "$text-secondary"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "FilterTabs",
          "width": "fill_container",
          "padding": [12, 20],
          "gap": 8,
          "children": [
            {"type": "frame", "id": "TabAll", "fill": "$orange-primary", "cornerRadius": 20, "padding": [8, 16], "children": [
              {"type": "text", "id": "TabAllText", "fill": "#FFFFFF", "content": "Tất cả (5)", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"}
            ]},
            {"type": "frame", "id": "TabPreparing", "fill": "$bg-elevated", "cornerRadius": 20, "padding": [8, 16], "children": [
              {"type": "text", "id": "TabPreparingText", "fill": "$text-secondary", "content": "Đang làm (3)", "fontFamily": "Roboto", "fontSize": 13}
            ]},
            {"type": "frame", "id": "TabReady", "fill": "$bg-elevated", "cornerRadius": 20, "padding": [8, 16], "children": [
              {"type": "text", "id": "TabReadyText", "fill": "$text-secondary", "content": "Sẵn sàng (2)", "fontFamily": "Roboto", "fontSize": 13}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "OrdersList",
          "width": "fill_container",
          "height": "fill_container",
          "layout": "vertical",
          "padding": [0, 20],
          "gap": 10,
          "children": [
            {"type": "frame", "id": "Order1", "width": "fill_container", "fill": "$bg-elevated", "cornerRadius": 14, "padding": 16, "layout": "vertical", "gap": 12, "children": [
              {"type": "frame", "id": "Order1Header", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "frame", "id": "Order1Info", "gap": 10, "alignItems": "center", "children": [
                  {"type": "text", "id": "Order1Id", "fill": "$text-primary", "content": "#00458", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700"},
                  {"type": "frame", "id": "Order1Table", "fill": "$bg-interactive", "cornerRadius": 6, "padding": [4, 8], "children": [
                    {"type": "text", "id": "Order1TableText", "fill": "$text-tertiary", "content": "Bàn 05", "fontFamily": "Roboto", "fontSize": 11}
                  ]}
                ]},
                {"type": "frame", "id": "Order1Status", "fill": "#EAB30820", "cornerRadius": 8, "padding": [6, 10], "gap": 4, "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "Order1StatusIcon", "width": 12, "height": 12, "iconFontName": "loader-2", "iconFontFamily": "lucide", "fill": "#EAB308"},
                  {"type": "text", "id": "Order1StatusText", "fill": "#EAB308", "content": "Đang làm", "fontFamily": "Roboto", "fontSize": 11, "fontWeight": "600"}
                ]}
              ]},
              {"type": "frame", "id": "Order1Items", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 8, "padding": 10, "gap": 6, "layout": "vertical", "children": [
                {"type": "text", "id": "Order1Item1", "fill": "$text-secondary", "content": "2× Cà phê sữa đá", "fontFamily": "Roboto", "fontSize": 13},
                {"type": "text", "id": "Order1Item2", "fill": "$text-secondary", "content": "1× Bánh mì thịt", "fontFamily": "Roboto", "fontSize": 13}
              ]},
              {"type": "frame", "id": "Order1Footer", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "frame", "id": "Order1Time", "gap": 6, "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "Order1TimeIcon", "width": 14, "height": 14, "iconFontName": "clock", "iconFontFamily": "lucide", "fill": "$text-tertiary"},
                  {"type": "text", "id": "Order1TimeText", "fill": "$text-tertiary", "content": "5 phút trước", "fontFamily": "Roboto", "fontSize": 12}
                ]},
                {"type": "text", "id": "Order1Total", "fill": "$orange-primary", "content": "95,000đ", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "700"}
              ]}
            ]},
            {"type": "frame", "id": "Order2", "width": "fill_container", "fill": "$bg-elevated", "cornerRadius": 14, "padding": 16, "layout": "vertical", "gap": 12, "children": [
              {"type": "frame", "id": "Order2Header", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "frame", "id": "Order2Info", "gap": 10, "alignItems": "center", "children": [
                  {"type": "text", "id": "Order2Id", "fill": "$text-primary", "content": "#00457", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700"},
                  {"type": "frame", "id": "Order2Table", "fill": "$bg-interactive", "cornerRadius": 6, "padding": [4, 8], "children": [
                    {"type": "text", "id": "Order2TableText", "fill": "$text-tertiary", "content": "Mang đi", "fontFamily": "Roboto", "fontSize": 11}
                  ]}
                ]},
                {"type": "frame", "id": "Order2Status", "fill": "#22C55E20", "cornerRadius": 8, "padding": [6, 10], "gap": 4, "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "Order2StatusIcon", "width": 12, "height": 12, "iconFontName": "check-circle", "iconFontFamily": "lucide", "fill": "#22C55E"},
                  {"type": "text", "id": "Order2StatusText", "fill": "#22C55E", "content": "Sẵn sàng", "fontFamily": "Roboto", "fontSize": 11, "fontWeight": "600"}
                ]}
              ]},
              {"type": "frame", "id": "Order2Items", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 8, "padding": 10, "gap": 6, "layout": "vertical", "children": [
                {"type": "text", "id": "Order2Item1", "fill": "$text-secondary", "content": "1× Trà sữa trân châu", "fontFamily": "Roboto", "fontSize": 13}
              ]},
              {"type": "frame", "id": "Order2Footer", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "frame", "id": "Order2Time", "gap": 6, "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "Order2TimeIcon", "width": 14, "height": 14, "iconFontName": "clock", "iconFontFamily": "lucide", "fill": "$text-tertiary"},
                  {"type": "text", "id": "Order2TimeText", "fill": "$text-tertiary", "content": "12 phút trước", "fontFamily": "Roboto", "fontSize": 12}
                ]},
                {"type": "text", "id": "Order2Total", "fill": "$orange-primary", "content": "45,000đ", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "700"}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "PendingFooter",
          "width": "fill_container",
          "fill": "$bg-elevated",
          "stroke": {"thickness": 1, "fill": "$border-subtle"},
          "padding": [14, 20],
          "justifyContent": "center",
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "RefreshBtn", "gap": 8, "alignItems": "center", "children": [
              {"type": "icon_font", "id": "RefreshIcon", "width": 18, "height": 18, "iconFontName": "refresh-cw", "iconFontFamily": "lucide", "fill": "$orange-primary"},
              {"type": "text", "id": "RefreshText", "fill": "$orange-primary", "content": "Làm mới danh sách", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
            ]}
          ]
        }
      ]
    }
  ],
  "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"}
  }
}
