{
  "version": "2.7",
  "children": [
    {
      "type": "frame",
      "id": "ChangeCalculatorDialog",
      "name": "Dialog/ChangeCalculator",
      "reusable": true,
      "clip": true,
      "width": 380,
      "height": 400,
      "fill": "$bg-elevated",
      "cornerRadius": 24,
      "layout": "vertical",
      "children": [
        {
          "type": "frame",
          "id": "ChangeCalcHeader",
          "width": "fill_container",
          "padding": [16, 20],
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]},
          "justifyContent": "space_between",
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "ChangeCalcHeaderLeft", "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "ChangeCalcIconBg", "width": 40, "height": 40, "fill": "#22C55E20", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "ChangeCalcIcon", "width": 20, "height": 20, "iconFontName": "calculator", "iconFontFamily": "lucide", "fill": "#22C55E"}
              ]},
              {"type": "text", "id": "ChangeCalcTitle", "fill": "$text-primary", "content": "Tính tiền thối", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"}
            ]},
            {"type": "frame", "id": "ChangeCalcCloseBtn", "width": 36, "height": 36, "fill": "$bg-interactive", "cornerRadius": 18, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "ChangeCalcCloseIcon", "width": 18, "height": 18, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "$text-secondary"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "ChangeCalcContent",
          "width": "fill_container",
          "height": "fill_container",
          "padding": 20,
          "layout": "vertical",
          "gap": 16,
          "children": [
            {"type": "frame", "id": "ChangeCalcAmounts", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 16, "padding": 16, "layout": "vertical", "gap": 12, "children": [
              {"type": "frame", "id": "ChangeCalcTotal", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "text", "id": "ChangeCalcTotalLabel", "fill": "$text-secondary", "content": "Tổng tiền:", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "normal"},
                {"type": "text", "id": "ChangeCalcTotalValue", "fill": "$text-primary", "content": "387,500₫", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "600"}
              ]},
              {"type": "frame", "id": "ChangeCalcReceived", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "text", "id": "ChangeCalcReceivedLabel", "fill": "$text-secondary", "content": "Tiền nhận:", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "normal"},
                {"type": "text", "id": "ChangeCalcReceivedValue", "fill": "#3B82F6", "content": "500,000₫", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "600"}
              ]},
              {"type": "frame", "id": "ChangeCalcDivider", "width": "fill_container", "height": 1, "fill": "$border-subtle"},
              {"type": "frame", "id": "ChangeCalcChange", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "text", "id": "ChangeCalcChangeLabel", "fill": "$text-primary", "content": "Tiền thối:", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "600"},
                {"type": "text", "id": "ChangeCalcChangeValue", "fill": "#22C55E", "content": "112,500₫", "fontFamily": "Roboto", "fontSize": 24, "fontWeight": "700"}
              ]}
            ]},
            {"type": "frame", "id": "ChangeCalcBreakdown", "width": "fill_container", "layout": "vertical", "gap": 8, "children": [
              {"type": "text", "id": "ChangeCalcBreakdownLabel", "fill": "$text-secondary", "content": "Gợi ý thối tiền:", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
              {"type": "frame", "id": "ChangeCalcBreakdownRow1", "width": "fill_container", "gap": 8, "children": [
                {"type": "frame", "id": "ChangeBreak1", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 10, "padding": [10, 12], "justifyContent": "space_between", "alignItems": "center", "children": [
                  {"type": "text", "id": "ChangeBreak1Denom", "fill": "$text-primary", "content": "100,000₫", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
                  {"type": "text", "id": "ChangeBreak1Count", "fill": "$orange-primary", "content": "×1", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "ChangeBreak2", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 10, "padding": [10, 12], "justifyContent": "space_between", "alignItems": "center", "children": [
                  {"type": "text", "id": "ChangeBreak2Denom", "fill": "$text-primary", "content": "10,000₫", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
                  {"type": "text", "id": "ChangeBreak2Count", "fill": "$orange-primary", "content": "×1", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"}
                ]}
              ]},
              {"type": "frame", "id": "ChangeCalcBreakdownRow2", "width": "fill_container", "gap": 8, "children": [
                {"type": "frame", "id": "ChangeBreak3", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 10, "padding": [10, 12], "justifyContent": "space_between", "alignItems": "center", "children": [
                  {"type": "text", "id": "ChangeBreak3Denom", "fill": "$text-primary", "content": "2,000₫", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
                  {"type": "text", "id": "ChangeBreak3Count", "fill": "$orange-primary", "content": "×1", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "ChangeBreak4", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 10, "padding": [10, 12], "justifyContent": "space_between", "alignItems": "center", "children": [
                  {"type": "text", "id": "ChangeBreak4Denom", "fill": "$text-primary", "content": "500₫", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
                  {"type": "text", "id": "ChangeBreak4Count", "fill": "$orange-primary", "content": "×1", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"}
                ]}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "ChangeCalcFooter",
          "width": "fill_container",
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["top"]},
          "padding": [16, 20],
          "children": [
            {"type": "frame", "id": "ChangeCalcDoneBtn", "width": "fill_container", "height": 52, "fill": {"type": "gradient", "gradientType": "linear", "enabled": true, "rotation": 135, "colors": [{"color": "#22C55E", "position": 0}, {"color": "#16A34A", "position": 1}]}, "cornerRadius": 12, "gap": 10, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "ChangeCalcDoneIcon", "width": 20, "height": 20, "iconFontName": "check", "iconFontFamily": "lucide", "fill": "$text-primary"},
              {"type": "text", "id": "ChangeCalcDoneText", "fill": "$text-primary", "content": "Hoàn tất", "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"}
  }
}
