{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "PaymentCashScreen",
      "name": "Payment/Cash",
      "reusable": true,
      "width": 480,
      "height": 640,
      "fill": "$bg-page",
      "layout": "vertical",
      "clip": true,
      "children": [
        {
          "type": "frame",
          "id": "CashHeader",
          "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": "CashHeaderLeft", "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "CashBackBtn", "width": 40, "height": 40, "fill": "$bg-interactive", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "CashBackIcon", "width": 20, "height": 20, "iconFontName": "arrow-left", "iconFontFamily": "lucide", "fill": "$text-secondary"}
              ]},
              {"type": "text", "id": "CashTitle", "fill": "$text-primary", "content": "Tiền mặt", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"}
            ]},
            {"type": "frame", "id": "CashTotalBadge", "fill": "#22C55E20", "cornerRadius": 10, "padding": [8, 14], "children": [
              {"type": "text", "id": "CashTotalText", "fill": "#22C55E", "content": "530,250₫", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "CashContent",
          "width": "fill_container",
          "height": "fill_container",
          "padding": 24,
          "layout": "vertical",
          "gap": 24,
          "children": [
            {"type": "frame", "id": "CashInputSection", "width": "fill_container", "layout": "vertical", "gap": 12, "children": [
              {"type": "text", "id": "CashInputLabel", "fill": "$text-secondary", "content": "Số tiền khách đưa", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"},
              {"type": "frame", "id": "CashInputBox", "width": "fill_container", "height": 72, "fill": "$bg-elevated", "cornerRadius": 16, "stroke": {"thickness": 2, "fill": "$orange-primary"}, "padding": [0, 20], "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "text", "id": "CashInputValue", "fill": "$text-primary", "content": "600,000", "fontFamily": "Roboto", "fontSize": 32, "fontWeight": "700"},
                {"type": "text", "id": "CashInputCurrency", "fill": "$text-tertiary", "content": "₫", "fontFamily": "Roboto", "fontSize": 24, "fontWeight": "500"}
              ]}
            ]},
            {"type": "frame", "id": "CashQuickAmounts", "width": "fill_container", "layout": "vertical", "gap": 12, "children": [
              {"type": "text", "id": "CashQuickLabel", "fill": "$text-secondary", "content": "Số tiền nhanh", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"},
              {"type": "frame", "id": "CashQuickRow1", "width": "fill_container", "gap": 10, "children": [
                {"type": "frame", "id": "CashQuick1", "width": "fill_container", "height": 48, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [{"type": "text", "id": "CashQuick1Text", "fill": "$text-primary", "content": "550K", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"}]},
                {"type": "frame", "id": "CashQuick2", "width": "fill_container", "height": 48, "fill": "$orange-primary", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [{"type": "text", "id": "CashQuick2Text", "fill": "$text-primary", "content": "600K", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"}]},
                {"type": "frame", "id": "CashQuick3", "width": "fill_container", "height": 48, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [{"type": "text", "id": "CashQuick3Text", "fill": "$text-primary", "content": "700K", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"}]}
              ]},
              {"type": "frame", "id": "CashQuickRow2", "width": "fill_container", "gap": 10, "children": [
                {"type": "frame", "id": "CashQuick4", "width": "fill_container", "height": 48, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [{"type": "text", "id": "CashQuick4Text", "fill": "$text-primary", "content": "1M", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"}]},
                {"type": "frame", "id": "CashQuick5", "width": "fill_container", "height": 48, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [{"type": "text", "id": "CashQuick5Text", "fill": "$text-primary", "content": "Đúng tiền", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"}]}
              ]}
            ]},
            {"type": "frame", "id": "CashChangeSection", "width": "fill_container", "fill": "#22C55E15", "cornerRadius": 16, "padding": 20, "layout": "vertical", "gap": 8, "alignItems": "center", "children": [
              {"type": "text", "id": "CashChangeLabel", "fill": "$text-secondary", "content": "Tiền thối lại", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"},
              {"type": "text", "id": "CashChangeValue", "fill": "#22C55E", "content": "69,750₫", "fontFamily": "Roboto", "fontSize": 36, "fontWeight": "700"},
              {"type": "frame", "id": "CashChangeBreakdown", "gap": 8, "alignItems": "center", "children": [
                {"type": "text", "id": "CashChangeCalc", "fill": "$text-tertiary", "content": "600,000 - 530,250 =", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "normal"},
                {"type": "text", "id": "CashChangeResult", "fill": "#22C55E", "content": "69,750₫", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "CashFooter",
          "width": "fill_container",
          "fill": "$bg-elevated",
          "padding": [16, 24],
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["top"]},
          "children": [
            {"type": "frame", "id": "CashConfirmBtn", "width": "fill_container", "height": 56, "fill": {"type": "gradient", "gradientType": "linear", "enabled": true, "rotation": 135, "size": {"height": 1}, "colors": [{"color": "#22C55E", "position": 0}, {"color": "#16A34A", "position": 1}]}, "cornerRadius": 14, "gap": 10, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "CashConfirmIcon", "width": 22, "height": 22, "iconFontName": "check", "iconFontFamily": "lucide", "fill": "$text-primary"},
              {"type": "text", "id": "CashConfirmText", "fill": "$text-primary", "content": "Xác nhận thanh toán", "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-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"}
  }
}
