{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "PettyCashDialog",
      "name": "Dialog/PettyCash",
      "reusable": true,
      "width": 400,
      "height": 520,
      "fill": "$bg-elevated",
      "cornerRadius": 20,
      "layout": "vertical",
      "children": [
        {
          "type": "frame",
          "id": "PettyHeader",
          "width": "fill_container",
          "padding": [16, 20],
          "gap": 12,
          "alignItems": "center",
          "stroke": {"thickness": 1, "fill": "$border-subtle"},
          "children": [
            {"type": "frame", "id": "PettyIconBg", "width": 44, "height": 44, "fill": "#22C55E15", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "PettyIcon", "width": 22, "height": 22, "iconFontName": "coins", "iconFontFamily": "lucide", "fill": "#22C55E"}
            ]},
            {"type": "frame", "id": "PettyTitleBox", "width": "fill_container", "layout": "vertical", "gap": 2, "children": [
              {"type": "text", "id": "PettyTitle", "fill": "$text-primary", "content": "Quỹ Tiền Lẻ", "fontFamily": "Roboto", "fontSize": 17, "fontWeight": "700"},
              {"type": "text", "id": "PettySubtitle", "fill": "$text-tertiary", "content": "Quản lý tiền lẻ đầu ca", "fontFamily": "Roboto", "fontSize": 13}
            ]},
            {"type": "frame", "id": "PettyClose", "width": 32, "height": 32, "fill": "$bg-interactive", "cornerRadius": 8, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "PettyCloseIcon", "width": 16, "height": 16, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "$text-secondary"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "CurrentBalance",
          "width": "fill_container",
          "fill": "#22C55E15",
          "padding": [16, 20],
          "justifyContent": "space_between",
          "alignItems": "center",
          "children": [
            {"type": "text", "id": "BalanceLabel", "fill": "$text-secondary", "content": "Số dư hiện tại", "fontFamily": "Roboto", "fontSize": 14},
            {"type": "text", "id": "BalanceValue", "fill": "#22C55E", "content": "500,000đ", "fontFamily": "Roboto", "fontSize": 22, "fontWeight": "700"}
          ]
        },
        {
          "type": "frame",
          "id": "PettyContent",
          "width": "fill_container",
          "height": "fill_container",
          "layout": "vertical",
          "padding": [16, 20],
          "gap": 14,
          "children": [
            {"type": "frame", "id": "ActionType", "width": "fill_container", "layout": "vertical", "gap": 8, "children": [
              {"type": "text", "id": "ActionLabel", "fill": "$text-secondary", "content": "Loại giao dịch", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
              {"type": "frame", "id": "ActionTabs", "width": "fill_container", "gap": 10, "children": [
                {"type": "frame", "id": "AddTab", "width": "fill_container", "height": 44, "fill": "$orange-primary", "cornerRadius": 10, "gap": 8, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "AddTabIcon", "width": 18, "height": 18, "iconFontName": "plus", "iconFontFamily": "lucide", "fill": "#FFFFFF"},
                  {"type": "text", "id": "AddTabText", "fill": "#FFFFFF", "content": "Thêm vào", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "WithdrawTab", "width": "fill_container", "height": 44, "fill": "$bg-page", "cornerRadius": 10, "stroke": {"thickness": 1, "fill": "$border-default"}, "gap": 8, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "WithdrawTabIcon", "width": 18, "height": 18, "iconFontName": "minus", "iconFontFamily": "lucide", "fill": "$text-secondary"},
                  {"type": "text", "id": "WithdrawTabText", "fill": "$text-secondary", "content": "Rút ra", "fontFamily": "Roboto", "fontSize": 14}
                ]}
              ]}
            ]},
            {"type": "frame", "id": "AmountField", "width": "fill_container", "layout": "vertical", "gap": 8, "children": [
              {"type": "text", "id": "AmountLabel", "fill": "$text-secondary", "content": "Số tiền", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
              {"type": "frame", "id": "AmountInput", "width": "fill_container", "height": 52, "fill": "$bg-page", "cornerRadius": 12, "stroke": {"thickness": 2, "fill": "$orange-primary"}, "padding": [0, 16], "gap": 8, "alignItems": "center", "children": [
                {"type": "text", "id": "AmountVal", "fill": "$text-primary", "content": "200,000", "fontFamily": "Roboto", "fontSize": 20, "fontWeight": "700", "width": "fill_container"},
                {"type": "text", "id": "AmountUnit", "fill": "$text-tertiary", "content": "đ", "fontFamily": "Roboto", "fontSize": 16}
              ]}
            ]},
            {"type": "frame", "id": "QuickAmounts", "width": "fill_container", "gap": 8, "children": [
              {"type": "frame", "id": "Quick1", "width": "fill_container", "height": 36, "fill": "$bg-page", "cornerRadius": 8, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "text", "id": "Quick1Text", "fill": "$text-secondary", "content": "50K", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
              ]},
              {"type": "frame", "id": "Quick2", "width": "fill_container", "height": 36, "fill": "$bg-page", "cornerRadius": 8, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "text", "id": "Quick2Text", "fill": "$text-secondary", "content": "100K", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
              ]},
              {"type": "frame", "id": "Quick3", "width": "fill_container", "height": 36, "fill": "$orange-primary", "cornerRadius": 8, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "text", "id": "Quick3Text", "fill": "#FFFFFF", "content": "200K", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"}
              ]},
              {"type": "frame", "id": "Quick4", "width": "fill_container", "height": 36, "fill": "$bg-page", "cornerRadius": 8, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "text", "id": "Quick4Text", "fill": "$text-secondary", "content": "500K", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
              ]}
            ]},
            {"type": "frame", "id": "NoteField", "width": "fill_container", "layout": "vertical", "gap": 6, "children": [
              {"type": "text", "id": "NoteLabel", "fill": "$text-secondary", "content": "Ghi chú", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
              {"type": "frame", "id": "NoteInput", "width": "fill_container", "height": 52, "fill": "$bg-page", "cornerRadius": 10, "stroke": {"thickness": 1, "fill": "$border-default"}, "padding": [12, 14], "children": [
                {"type": "text", "id": "NoteVal", "fill": "$text-tertiary", "content": "Bổ sung tiền lẻ đầu ca sáng...", "fontFamily": "Roboto", "fontSize": 14}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "PettyFooter",
          "width": "fill_container",
          "stroke": {"thickness": 1, "fill": "$border-subtle"},
          "gap": 12,
          "padding": [16, 20],
          "children": [
            {"type": "frame", "id": "CancelPettyBtn", "width": "fill_container", "height": 46, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "text", "id": "CancelPettyText", "fill": "$text-secondary", "content": "Hủy", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
            ]},
            {"type": "frame", "id": "ConfirmPettyBtn", "width": "fill_container", "height": 46, "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": "ConfirmPettyIcon", "width": 18, "height": 18, "iconFontName": "check", "iconFontFamily": "lucide", "fill": "#FFFFFF"},
              {"type": "text", "id": "ConfirmPettyText", "fill": "#FFFFFF", "content": "Xác nhận", "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"}
  }
}
