{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "DataExportDialog",
      "name": "Dialog/DataExport",
      "reusable": true,
      "width": 420,
      "height": 540,
      "fill": "$bg-elevated",
      "cornerRadius": 20,
      "layout": "vertical",
      "children": [
        {
          "type": "frame",
          "id": "ExportHeader",
          "width": "fill_container",
          "padding": [16, 20],
          "gap": 12,
          "alignItems": "center",
          "stroke": {"thickness": 1, "fill": "$border-subtle"},
          "children": [
            {"type": "frame", "id": "ExportIconBg", "width": 44, "height": 44, "fill": "#3B82F615", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "ExportIcon", "width": 22, "height": 22, "iconFontName": "file-down", "iconFontFamily": "lucide", "fill": "#3B82F6"}
            ]},
            {"type": "frame", "id": "ExportTitleBox", "width": "fill_container", "layout": "vertical", "gap": 2, "children": [
              {"type": "text", "id": "ExportTitle", "fill": "$text-primary", "content": "Xuất Dữ Liệu", "fontFamily": "Roboto", "fontSize": 17, "fontWeight": "700"},
              {"type": "text", "id": "ExportSubtitle", "fill": "$text-tertiary", "content": "Tải về dữ liệu báo cáo", "fontFamily": "Roboto", "fontSize": 13}
            ]},
            {"type": "frame", "id": "ExportClose", "width": 32, "height": 32, "fill": "$bg-interactive", "cornerRadius": 8, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "ExportCloseIcon", "width": 16, "height": 16, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "$text-secondary"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "ExportContent",
          "width": "fill_container",
          "height": "fill_container",
          "layout": "vertical",
          "padding": [16, 20],
          "gap": 14,
          "children": [
            {"type": "frame", "id": "DataTypeField", "width": "fill_container", "layout": "vertical", "gap": 8, "children": [
              {"type": "text", "id": "DataTypeLabel", "fill": "$text-secondary", "content": "Loại dữ liệu", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
              {"type": "frame", "id": "DataTypeSelect", "width": "fill_container", "height": 48, "fill": "$bg-page", "cornerRadius": 12, "stroke": {"thickness": 2, "fill": "$orange-primary"}, "padding": [0, 14], "gap": 10, "alignItems": "center", "children": [
                {"type": "icon_font", "id": "DataTypeIcon", "width": 20, "height": 20, "iconFontName": "receipt", "iconFontFamily": "lucide", "fill": "$orange-primary"},
                {"type": "text", "id": "DataTypeValue", "fill": "$text-primary", "content": "Báo cáo doanh thu", "fontFamily": "Roboto", "fontSize": 14, "width": "fill_container"},
                {"type": "icon_font", "id": "DataTypeChevron", "width": 18, "height": 18, "iconFontName": "chevron-down", "iconFontFamily": "lucide", "fill": "$text-tertiary"}
              ]}
            ]},
            {"type": "frame", "id": "DateRange", "width": "fill_container", "gap": 10, "children": [
              {"type": "frame", "id": "DateFrom", "width": "fill_container", "layout": "vertical", "gap": 6, "children": [
                {"type": "text", "id": "DateFromLabel", "fill": "$text-secondary", "content": "Từ ngày", "fontFamily": "Roboto", "fontSize": 12},
                {"type": "frame", "id": "DateFromInput", "width": "fill_container", "height": 44, "fill": "$bg-page", "cornerRadius": 10, "stroke": {"thickness": 1, "fill": "$border-default"}, "padding": [0, 12], "gap": 8, "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "DateFromIcon", "width": 16, "height": 16, "iconFontName": "calendar", "iconFontFamily": "lucide", "fill": "$text-tertiary"},
                  {"type": "text", "id": "DateFromVal", "fill": "$text-primary", "content": "01/02/2026", "fontFamily": "Roboto", "fontSize": 13}
                ]}
              ]},
              {"type": "frame", "id": "DateTo", "width": "fill_container", "layout": "vertical", "gap": 6, "children": [
                {"type": "text", "id": "DateToLabel", "fill": "$text-secondary", "content": "Đến ngày", "fontFamily": "Roboto", "fontSize": 12},
                {"type": "frame", "id": "DateToInput", "width": "fill_container", "height": 44, "fill": "$bg-page", "cornerRadius": 10, "stroke": {"thickness": 1, "fill": "$border-default"}, "padding": [0, 12], "gap": 8, "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "DateToIcon", "width": 16, "height": 16, "iconFontName": "calendar", "iconFontFamily": "lucide", "fill": "$text-tertiary"},
                  {"type": "text", "id": "DateToVal", "fill": "$text-primary", "content": "06/02/2026", "fontFamily": "Roboto", "fontSize": 13}
                ]}
              ]}
            ]},
            {"type": "frame", "id": "FormatField", "width": "fill_container", "layout": "vertical", "gap": 8, "children": [
              {"type": "text", "id": "FormatLabel", "fill": "$text-secondary", "content": "Định dạng xuất", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
              {"type": "frame", "id": "FormatOptions", "width": "fill_container", "gap": 8, "children": [
                {"type": "frame", "id": "FormatExcel", "width": "fill_container", "height": 56, "fill": "$orange-primary", "cornerRadius": 12, "layout": "vertical", "gap": 4, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "FormatExcelIcon", "width": 22, "height": 22, "iconFontName": "file-spreadsheet", "iconFontFamily": "lucide", "fill": "#FFFFFF"},
                  {"type": "text", "id": "FormatExcelText", "fill": "#FFFFFF", "content": "Excel", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "FormatPDF", "width": "fill_container", "height": 56, "fill": "$bg-page", "cornerRadius": 12, "stroke": {"thickness": 1, "fill": "$border-default"}, "layout": "vertical", "gap": 4, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "FormatPDFIcon", "width": 22, "height": 22, "iconFontName": "file-text", "iconFontFamily": "lucide", "fill": "$text-secondary"},
                  {"type": "text", "id": "FormatPDFText", "fill": "$text-secondary", "content": "PDF", "fontFamily": "Roboto", "fontSize": 12}
                ]},
                {"type": "frame", "id": "FormatCSV", "width": "fill_container", "height": 56, "fill": "$bg-page", "cornerRadius": 12, "stroke": {"thickness": 1, "fill": "$border-default"}, "layout": "vertical", "gap": 4, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "FormatCSVIcon", "width": 22, "height": 22, "iconFontName": "file", "iconFontFamily": "lucide", "fill": "$text-secondary"},
                  {"type": "text", "id": "FormatCSVText", "fill": "$text-secondary", "content": "CSV", "fontFamily": "Roboto", "fontSize": 12}
                ]}
              ]}
            ]},
            {"type": "frame", "id": "EstimateInfo", "width": "fill_container", "fill": "#3B82F615", "cornerRadius": 10, "padding": 12, "gap": 10, "alignItems": "center", "children": [
              {"type": "icon_font", "id": "EstimateIcon", "width": 18, "height": 18, "iconFontName": "info", "iconFontFamily": "lucide", "fill": "#3B82F6"},
              {"type": "frame", "id": "EstimateText", "width": "fill_container", "layout": "vertical", "gap": 2, "children": [
                {"type": "text", "id": "EstimateTitle", "fill": "#3B82F6", "content": "Ước tính: 245 records", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
                {"type": "text", "id": "EstimateSize", "fill": "$text-tertiary", "content": "Kích thước file: ~1.2 MB", "fontFamily": "Roboto", "fontSize": 12}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "ExportFooter",
          "width": "fill_container",
          "stroke": {"thickness": 1, "fill": "$border-subtle"},
          "gap": 12,
          "padding": [16, 20],
          "children": [
            {"type": "frame", "id": "CancelExportBtn", "width": "fill_container", "height": 46, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "text", "id": "CancelExportText", "fill": "$text-secondary", "content": "Hủy", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
            ]},
            {"type": "frame", "id": "DownloadBtn", "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": "DownloadIcon", "width": 18, "height": 18, "iconFontName": "download", "iconFontFamily": "lucide", "fill": "#FFFFFF"},
              {"type": "text", "id": "DownloadText", "fill": "#FFFFFF", "content": "Tải xuống", "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"}
  }
}
