{
  "version": "2.7",
  "children": [
    {
      "type": "frame",
      "id": "ExpenseEntryDialog",
      "x": 0,
      "y": 0,
      "name": "Dialog/ExpenseEntry",
      "reusable": true,
      "width": 420,
      "height": 635,
      "fill": "$bg-elevated",
      "cornerRadius": 20,
      "layout": "vertical",
      "children": [
        {
          "type": "frame",
          "id": "ExpenseHeader",
          "width": "fill_container",
          "stroke": {
            "thickness": 1,
            "fill": "$border-subtle"
          },
          "gap": 12,
          "padding": [
            16,
            20
          ],
          "alignItems": "center",
          "children": [
            {
              "type": "frame",
              "id": "ExpenseIconBg",
              "width": 44,
              "height": 44,
              "fill": "#EF444415",
              "cornerRadius": 12,
              "justifyContent": "center",
              "alignItems": "center",
              "children": [
                {
                  "type": "icon_font",
                  "id": "ExpenseIcon",
                  "width": 22,
                  "height": 22,
                  "iconFontName": "receipt",
                  "iconFontFamily": "lucide",
                  "fill": "#EF4444"
                }
              ]
            },
            {
              "type": "frame",
              "id": "ExpenseTitleBox",
              "width": "fill_container",
              "layout": "vertical",
              "gap": 2,
              "children": [
                {
                  "type": "text",
                  "id": "ExpenseTitle",
                  "fill": "$text-primary",
                  "content": "Nhập Chi Phí",
                  "fontFamily": "Roboto",
                  "fontSize": 17,
                  "fontWeight": "700"
                },
                {
                  "type": "text",
                  "id": "ExpenseSubtitle",
                  "fill": "$text-tertiary",
                  "content": "Ghi nhận chi phí phát sinh",
                  "fontFamily": "Roboto",
                  "fontSize": 13,
                  "fontWeight": "normal"
                }
              ]
            },
            {
              "type": "frame",
              "id": "ExpenseClose",
              "width": 32,
              "height": 32,
              "fill": "$bg-interactive",
              "cornerRadius": 8,
              "justifyContent": "center",
              "alignItems": "center",
              "children": [
                {
                  "type": "icon_font",
                  "id": "ExpenseCloseIcon",
                  "width": 16,
                  "height": 16,
                  "iconFontName": "x",
                  "iconFontFamily": "lucide",
                  "fill": "$text-secondary"
                }
              ]
            }
          ]
        },
        {
          "type": "frame",
          "id": "ExpenseContent",
          "width": "fill_container",
          "height": "fill_container",
          "layout": "vertical",
          "gap": 14,
          "padding": [
            16,
            20
          ],
          "children": [
            {
              "type": "frame",
              "id": "CategoryField",
              "width": "fill_container",
              "layout": "vertical",
              "gap": 8,
              "children": [
                {
                  "type": "text",
                  "id": "CategoryLabel",
                  "fill": "$text-secondary",
                  "content": "Danh mục chi phí",
                  "fontFamily": "Roboto",
                  "fontSize": 13,
                  "fontWeight": "500"
                },
                {
                  "type": "frame",
                  "id": "CategorySelect",
                  "width": "fill_container",
                  "height": 48,
                  "fill": "$bg-page",
                  "cornerRadius": 12,
                  "stroke": {
                    "thickness": 1,
                    "fill": "$border-default"
                  },
                  "gap": 10,
                  "padding": [
                    0,
                    14
                  ],
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "CatIcon",
                      "width": 32,
                      "height": 32,
                      "fill": "#F9731620",
                      "cornerRadius": 8,
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "icon_font",
                          "id": "CatIconI",
                          "width": 16,
                          "height": 16,
                          "iconFontName": "utensils",
                          "iconFontFamily": "lucide",
                          "fill": "#F97316"
                        }
                      ]
                    },
                    {
                      "type": "text",
                      "id": "CatValue",
                      "fill": "$text-primary",
                      "content": "Nguyên liệu",
                      "fontFamily": "Roboto",
                      "fontSize": 14,
                      "fontWeight": "normal"
                    },
                    {
                      "type": "icon_font",
                      "id": "CatChevron",
                      "width": 18,
                      "height": 18,
                      "iconFontName": "chevron-down",
                      "iconFontFamily": "lucide",
                      "fill": "$text-tertiary"
                    }
                  ]
                }
              ]
            },
            {
              "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"
                  },
                  "gap": 8,
                  "padding": [
                    0,
                    16
                  ],
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "text",
                      "id": "AmountVal",
                      "fill": "$text-primary",
                      "content": "150,000",
                      "fontFamily": "Roboto",
                      "fontSize": 20,
                      "fontWeight": "700"
                    },
                    {
                      "type": "text",
                      "id": "AmountUnit",
                      "fill": "$text-tertiary",
                      "content": "đ",
                      "fontFamily": "Roboto",
                      "fontSize": 16,
                      "fontWeight": "normal"
                    }
                  ]
                }
              ]
            },
            {
              "type": "frame",
              "id": "DescField",
              "width": "fill_container",
              "layout": "vertical",
              "gap": 8,
              "children": [
                {
                  "type": "text",
                  "id": "DescLabel",
                  "fill": "$text-secondary",
                  "content": "Mô tả chi tiết",
                  "fontFamily": "Roboto",
                  "fontSize": 13,
                  "fontWeight": "500"
                },
                {
                  "type": "frame",
                  "id": "DescInput",
                  "width": "fill_container",
                  "height": 72,
                  "fill": "$bg-page",
                  "cornerRadius": 10,
                  "stroke": {
                    "thickness": 1,
                    "fill": "$border-default"
                  },
                  "padding": [
                    12,
                    14
                  ],
                  "children": [
                    {
                      "type": "text",
                      "id": "DescVal",
                      "fill": "$text-primary",
                      "content": "Mua thêm sữa tươi, đường cát...",
                      "fontFamily": "Roboto",
                      "fontSize": 14,
                      "fontWeight": "normal"
                    }
                  ]
                }
              ]
            },
            {
              "type": "frame",
              "id": "ReceiptField",
              "width": "fill_container",
              "layout": "vertical",
              "gap": 8,
              "children": [
                {
                  "type": "text",
                  "id": "ReceiptLabel",
                  "fill": "$text-secondary",
                  "content": "Chứng từ đính kèm",
                  "fontFamily": "Roboto",
                  "fontSize": 13,
                  "fontWeight": "500"
                },
                {
                  "type": "frame",
                  "id": "ReceiptUpload",
                  "width": "fill_container",
                  "height": 80,
                  "fill": "$bg-page",
                  "cornerRadius": 12,
                  "stroke": {
                    "thickness": 2,
                    "fill": "$border-default"
                  },
                  "layout": "vertical",
                  "gap": 6,
                  "justifyContent": "center",
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "icon_font",
                      "id": "UploadIcon",
                      "width": 24,
                      "height": 24,
                      "iconFontName": "camera",
                      "iconFontFamily": "lucide",
                      "fill": "$text-tertiary"
                    },
                    {
                      "type": "text",
                      "id": "UploadText",
                      "fill": "$text-tertiary",
                      "content": "Chụp hoặc tải lên hóa đơn",
                      "fontFamily": "Roboto",
                      "fontSize": 13,
                      "fontWeight": "normal"
                    }
                  ]
                }
              ]
            },
            {
              "type": "frame",
              "id": "PaymentMethod",
              "width": "fill_container",
              "gap": 10,
              "children": [
                {
                  "type": "frame",
                  "id": "PayCash",
                  "width": "fill_container",
                  "height": 44,
                  "fill": "$orange-primary",
                  "cornerRadius": 10,
                  "gap": 6,
                  "justifyContent": "center",
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "icon_font",
                      "id": "PayCashIcon",
                      "width": 16,
                      "height": 16,
                      "iconFontName": "banknote",
                      "iconFontFamily": "lucide",
                      "fill": "#FFFFFF"
                    },
                    {
                      "type": "text",
                      "id": "PayCashText",
                      "fill": "#FFFFFF",
                      "content": "Tiền mặt",
                      "fontFamily": "Roboto",
                      "fontSize": 13,
                      "fontWeight": "600"
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "PayCard",
                  "width": "fill_container",
                  "height": 44,
                  "fill": "$bg-page",
                  "cornerRadius": 10,
                  "stroke": {
                    "thickness": 1,
                    "fill": "$border-default"
                  },
                  "gap": 6,
                  "justifyContent": "center",
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "icon_font",
                      "id": "PayCardIcon",
                      "width": 16,
                      "height": 16,
                      "iconFontName": "credit-card",
                      "iconFontFamily": "lucide",
                      "fill": "$text-secondary"
                    },
                    {
                      "type": "text",
                      "id": "PayCardText",
                      "fill": "$text-secondary",
                      "content": "Thẻ/CK",
                      "fontFamily": "Roboto",
                      "fontSize": 13,
                      "fontWeight": "normal"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "type": "frame",
          "id": "ExpenseFooter",
          "width": "fill_container",
          "stroke": {
            "thickness": 1,
            "fill": "$border-subtle"
          },
          "gap": 12,
          "padding": [
            16,
            20
          ],
          "children": [
            {
              "type": "frame",
              "id": "CancelExpenseBtn",
              "width": "fill_container",
              "height": 46,
              "fill": "$bg-interactive",
              "cornerRadius": 12,
              "justifyContent": "center",
              "alignItems": "center",
              "children": [
                {
                  "type": "text",
                  "id": "CancelExpenseText",
                  "fill": "$text-secondary",
                  "content": "Hủy",
                  "fontFamily": "Roboto",
                  "fontSize": 14,
                  "fontWeight": "500"
                }
              ]
            },
            {
              "type": "frame",
              "id": "SaveExpenseBtn",
              "width": "fill_container",
              "height": 46,
              "fill": {
                "type": "gradient",
                "gradientType": "linear",
                "enabled": true,
                "rotation": 135,
                "size": {
                  "height": 1
                },
                "colors": [
                  {
                    "color": "#FF5C00",
                    "position": 0
                  },
                  {
                    "color": "#FF8A4C",
                    "position": 1
                  }
                ]
              },
              "cornerRadius": 12,
              "gap": 8,
              "justifyContent": "center",
              "alignItems": "center",
              "children": [
                {
                  "type": "icon_font",
                  "id": "SaveExpenseIcon",
                  "width": 18,
                  "height": 18,
                  "iconFontName": "save",
                  "iconFontFamily": "lucide",
                  "fill": "#FFFFFF"
                },
                {
                  "type": "text",
                  "id": "SaveExpenseText",
                  "fill": "#FFFFFF",
                  "content": "Lưu chi phí",
                  "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"
    }
  }
}