{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "CashDrawerScreen",
      "name": "Screen/CashDrawer",
      "reusable": true,
      "width": 480,
      "height": 720,
      "fill": "$bg-page",
      "layout": "vertical",
      "clip": true,
      "children": [
        {
          "type": "frame",
          "id": "DrawerHeader",
          "width": "fill_container",
          "padding": [20, 24],
          "fill": "$bg-elevated",
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]},
          "justifyContent": "space_between",
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "DrawerHeaderLeft", "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "DrawerBackBtn", "width": 40, "height": 40, "fill": "$bg-interactive", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "DrawerBackIcon", "width": 20, "height": 20, "iconFontName": "arrow-left", "iconFontFamily": "lucide", "fill": "$text-secondary"}
              ]},
              {"type": "text", "id": "DrawerTitle", "fill": "$text-primary", "content": "Quản lý két tiền", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"}
            ]},
            {"type": "frame", "id": "DrawerOpenBtn", "fill": "$bg-interactive", "cornerRadius": 10, "padding": [10, 14], "gap": 8, "alignItems": "center", "children": [
              {"type": "icon_font", "id": "DrawerOpenIcon", "width": 18, "height": 18, "iconFontName": "archive", "iconFontFamily": "lucide", "fill": "$text-primary"},
              {"type": "text", "id": "DrawerOpenText", "fill": "$text-primary", "content": "Mở két", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "DrawerContent",
          "width": "fill_container",
          "height": "fill_container",
          "padding": 24,
          "layout": "vertical",
          "gap": 20,
          "children": [
            {"type": "frame", "id": "DrawerSummary", "width": "fill_container", "fill": "$bg-elevated", "cornerRadius": 16, "padding": 20, "layout": "vertical", "gap": 16, "children": [
              {"type": "frame", "id": "DrawerSummaryRow1", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "text", "id": "DrawerSummaryLabel1", "fill": "$text-secondary", "content": "Tiền đầu ca", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "normal"},
                {"type": "text", "id": "DrawerSummaryValue1", "fill": "$text-primary", "content": "2,000,000₫", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "600"}
              ]},
              {"type": "frame", "id": "DrawerSummaryRow2", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "text", "id": "DrawerSummaryLabel2", "fill": "$text-secondary", "content": "Thu tiền mặt", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "normal"},
                {"type": "text", "id": "DrawerSummaryValue2", "fill": "#22C55E", "content": "+5,430,500₫", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "600"}
              ]},
              {"type": "frame", "id": "DrawerSummaryRow3", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "text", "id": "DrawerSummaryLabel3", "fill": "$text-secondary", "content": "Chi tiền mặt", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "normal"},
                {"type": "text", "id": "DrawerSummaryValue3", "fill": "#EF4444", "content": "-320,000₫", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "600"}
              ]},
              {"type": "frame", "id": "DrawerDivider", "width": "fill_container", "height": 1, "fill": "$border-subtle"},
              {"type": "frame", "id": "DrawerSummaryTotal", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "text", "id": "DrawerTotalLabel", "fill": "$text-primary", "content": "Tiền trong két (dự kiến)", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"},
                {"type": "text", "id": "DrawerTotalValue", "fill": "$orange-primary", "content": "7,110,500₫", "fontFamily": "Roboto", "fontSize": 20, "fontWeight": "700"}
              ]}
            ]},
            {"type": "frame", "id": "DrawerActionsSection", "width": "fill_container", "layout": "vertical", "gap": 12, "children": [
              {"type": "text", "id": "DrawerActionsLabel", "fill": "$text-secondary", "content": "Thao tác két tiền", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"},
              {"type": "frame", "id": "DrawerActionsRow", "width": "fill_container", "gap": 12, "children": [
                {"type": "frame", "id": "DrawerPayIn", "width": "fill_container", "height": 80, "fill": "$bg-elevated", "cornerRadius": 14, "layout": "vertical", "gap": 8, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "frame", "id": "DrawerPayInIcon", "width": 40, "height": 40, "fill": "#22C55E20", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                    {"type": "icon_font", "id": "DrawerPayInIconInner", "width": 22, "height": 22, "iconFontName": "arrow-down-left", "iconFontFamily": "lucide", "fill": "#22C55E"}
                  ]},
                  {"type": "text", "id": "DrawerPayInText", "fill": "$text-primary", "content": "Thu vào", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
                ]},
                {"type": "frame", "id": "DrawerPayOut", "width": "fill_container", "height": 80, "fill": "$bg-elevated", "cornerRadius": 14, "layout": "vertical", "gap": 8, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "frame", "id": "DrawerPayOutIcon", "width": 40, "height": 40, "fill": "#EF444420", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                    {"type": "icon_font", "id": "DrawerPayOutIconInner", "width": 22, "height": 22, "iconFontName": "arrow-up-right", "iconFontFamily": "lucide", "fill": "#EF4444"}
                  ]},
                  {"type": "text", "id": "DrawerPayOutText", "fill": "$text-primary", "content": "Chi ra", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
                ]}
              ]}
            ]},
            {"type": "frame", "id": "DrawerHistorySection", "width": "fill_container", "height": "fill_container", "layout": "vertical", "gap": 12, "children": [
              {"type": "frame", "id": "DrawerHistoryHeader", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "text", "id": "DrawerHistoryLabel", "fill": "$text-secondary", "content": "Lịch sử giao dịch", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"},
                {"type": "text", "id": "DrawerHistoryLink", "fill": "$orange-primary", "content": "Xem tất cả", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
              ]},
              {"type": "frame", "id": "DrawerHistoryList", "width": "fill_container", "height": "fill_container", "fill": "$bg-elevated", "cornerRadius": 14, "padding": 4, "layout": "vertical", "gap": 2, "children": [
                {"type": "frame", "id": "DrawerHistoryItem1", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 10, "padding": [12, 14], "justifyContent": "space_between", "alignItems": "center", "children": [
                  {"type": "frame", "id": "DrawerHistoryItem1Left", "gap": 12, "alignItems": "center", "children": [
                    {"type": "frame", "id": "DrawerHistoryItem1Icon", "width": 36, "height": 36, "fill": "#22C55E20", "cornerRadius": 8, "justifyContent": "center", "alignItems": "center", "children": [
                      {"type": "icon_font", "id": "DrawerHistoryItem1IconInner", "width": 18, "height": 18, "iconFontName": "banknote", "iconFontFamily": "lucide", "fill": "#22C55E"}
                    ]},
                    {"type": "frame", "id": "DrawerHistoryItem1Info", "layout": "vertical", "gap": 2, "children": [
                      {"type": "text", "id": "DrawerHistoryItem1Name", "fill": "$text-primary", "content": "Thanh toán #HD240206015", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
                      {"type": "text", "id": "DrawerHistoryItem1Time", "fill": "$text-tertiary", "content": "19:25", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "normal"}
                    ]}
                  ]},
                  {"type": "text", "id": "DrawerHistoryItem1Amount", "fill": "#22C55E", "content": "+530,250₫", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "DrawerHistoryItem2", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 10, "padding": [12, 14], "justifyContent": "space_between", "alignItems": "center", "children": [
                  {"type": "frame", "id": "DrawerHistoryItem2Left", "gap": 12, "alignItems": "center", "children": [
                    {"type": "frame", "id": "DrawerHistoryItem2Icon", "width": 36, "height": 36, "fill": "#EF444420", "cornerRadius": 8, "justifyContent": "center", "alignItems": "center", "children": [
                      {"type": "icon_font", "id": "DrawerHistoryItem2IconInner", "width": 18, "height": 18, "iconFontName": "truck", "iconFontFamily": "lucide", "fill": "#EF4444"}
                    ]},
                    {"type": "frame", "id": "DrawerHistoryItem2Info", "layout": "vertical", "gap": 2, "children": [
                      {"type": "text", "id": "DrawerHistoryItem2Name", "fill": "$text-primary", "content": "Trả tiền ship COD", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
                      {"type": "text", "id": "DrawerHistoryItem2Time", "fill": "$text-tertiary", "content": "18:45", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "normal"}
                    ]}
                  ]},
                  {"type": "text", "id": "DrawerHistoryItem2Amount", "fill": "#EF4444", "content": "-120,000₫", "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"}
  }
}
