{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "StockTransferDialog",
      "name": "Dialog/StockTransfer",
      "reusable": true,
      "width": 440,
      "height": 560,
      "fill": "$bg-elevated",
      "cornerRadius": 20,
      "layout": "vertical",
      "children": [
        {
          "type": "frame",
          "id": "TransferHeader",
          "width": "fill_container",
          "padding": [16, 20],
          "gap": 12,
          "alignItems": "center",
          "stroke": {"thickness": 1, "fill": "$border-subtle"},
          "children": [
            {"type": "frame", "id": "TransferIconBg", "width": 40, "height": 40, "fill": "#3B82F615", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "TransferIcon", "width": 20, "height": 20, "iconFontName": "arrow-left-right", "iconFontFamily": "lucide", "fill": "#3B82F6"}
            ]},
            {"type": "frame", "id": "TransferTitleBox", "width": "fill_container", "layout": "vertical", "gap": 2, "children": [
              {"type": "text", "id": "TransferTitle", "fill": "$text-primary", "content": "Chuyển Kho", "fontFamily": "Roboto", "fontSize": 17, "fontWeight": "700"},
              {"type": "text", "id": "TransferSubtitle", "fill": "$text-tertiary", "content": "Di chuyển hàng giữa các kho", "fontFamily": "Roboto", "fontSize": 12}
            ]},
            {"type": "frame", "id": "TransferClose", "width": 32, "height": 32, "fill": "$bg-interactive", "cornerRadius": 8, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "TransferCloseIcon", "width": 16, "height": 16, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "$text-secondary"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "TransferContent",
          "width": "fill_container",
          "height": "fill_container",
          "layout": "vertical",
          "gap": 16,
          "padding": [20, 20],
          "children": [
            {"type": "frame", "id": "ProductField", "width": "fill_container", "layout": "vertical", "gap": 6, "children": [
              {"type": "text", "id": "ProductLabel", "fill": "$text-secondary", "content": "Sản phẩm chuyển", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
              {"type": "frame", "id": "ProductSelect", "width": "fill_container", "height": 48, "fill": "$bg-page", "cornerRadius": 12, "stroke": {"thickness": 1, "fill": "$border-default"}, "padding": [0, 14], "gap": 10, "alignItems": "center", "justifyContent": "space_between", "children": [
                {"type": "frame", "id": "SelectedProduct", "gap": 10, "alignItems": "center", "children": [
                  {"type": "frame", "id": "ProdIcon", "width": 32, "height": 32, "fill": "#10B98120", "cornerRadius": 8, "justifyContent": "center", "alignItems": "center", "children": [
                    {"type": "icon_font", "id": "ProdIconI", "width": 16, "height": 16, "iconFontName": "milk", "iconFontFamily": "lucide", "fill": "#10B981"}
                  ]},
                  {"type": "text", "id": "ProdName", "fill": "$text-primary", "content": "Sữa tươi không đường", "fontFamily": "Roboto", "fontSize": 14}
                ]},
                {"type": "icon_font", "id": "DropdownIcon", "width": 18, "height": 18, "iconFontName": "chevron-down", "iconFontFamily": "lucide", "fill": "$text-tertiary"}
              ]}
            ]},
            {"type": "frame", "id": "LocationRow", "width": "fill_container", "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "FromField", "width": "fill_container", "layout": "vertical", "gap": 6, "children": [
                {"type": "text", "id": "FromLabel", "fill": "$text-secondary", "content": "Từ kho", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
                {"type": "frame", "id": "FromSelect", "width": "fill_container", "height": 48, "fill": "$bg-page", "cornerRadius": 12, "stroke": {"thickness": 1, "fill": "$border-default"}, "padding": [0, 14], "gap": 8, "alignItems": "center", "justifyContent": "space_between", "children": [
                  {"type": "frame", "id": "FromContent", "gap": 8, "alignItems": "center", "children": [
                    {"type": "icon_font", "id": "FromIcon", "width": 16, "height": 16, "iconFontName": "warehouse", "iconFontFamily": "lucide", "fill": "#EF4444"},
                    {"type": "text", "id": "FromVal", "fill": "$text-primary", "content": "Kho chính", "fontFamily": "Roboto", "fontSize": 13}
                  ]},
                  {"type": "icon_font", "id": "FromDropdown", "width": 14, "height": 14, "iconFontName": "chevron-down", "iconFontFamily": "lucide", "fill": "$text-tertiary"}
                ]}
              ]},
              {"type": "frame", "id": "ArrowBox", "width": 32, "height": 32, "fill": "$bg-interactive", "cornerRadius": 8, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "ArrowIcon", "width": 16, "height": 16, "iconFontName": "arrow-right", "iconFontFamily": "lucide", "fill": "#3B82F6"}
              ]},
              {"type": "frame", "id": "ToField", "width": "fill_container", "layout": "vertical", "gap": 6, "children": [
                {"type": "text", "id": "ToLabel", "fill": "$text-secondary", "content": "Đến kho", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
                {"type": "frame", "id": "ToSelect", "width": "fill_container", "height": 48, "fill": "$bg-page", "cornerRadius": 12, "stroke": {"thickness": 1, "fill": "$border-default"}, "padding": [0, 14], "gap": 8, "alignItems": "center", "justifyContent": "space_between", "children": [
                  {"type": "frame", "id": "ToContent", "gap": 8, "alignItems": "center", "children": [
                    {"type": "icon_font", "id": "ToIcon", "width": 16, "height": 16, "iconFontName": "warehouse", "iconFontFamily": "lucide", "fill": "#22C55E"},
                    {"type": "text", "id": "ToVal", "fill": "$text-primary", "content": "Chi nhánh 2", "fontFamily": "Roboto", "fontSize": 13}
                  ]},
                  {"type": "icon_font", "id": "ToDropdown", "width": 14, "height": 14, "iconFontName": "chevron-down", "iconFontFamily": "lucide", "fill": "$text-tertiary"}
                ]}
              ]}
            ]},
            {"type": "frame", "id": "QuantityRow", "width": "fill_container", "gap": 12, "children": [
              {"type": "frame", "id": "AvailableField", "width": "fill_container", "layout": "vertical", "gap": 6, "children": [
                {"type": "text", "id": "AvailableLabel", "fill": "$text-secondary", "content": "Tồn kho nguồn", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
                {"type": "frame", "id": "AvailableBox", "width": "fill_container", "height": 48, "fill": "$bg-page", "cornerRadius": 12, "padding": [0, 14], "alignItems": "center", "justifyContent": "center", "children": [
                  {"type": "text", "id": "AvailableVal", "fill": "$text-primary", "content": "100 hộp", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "600"}
                ]}
              ]},
              {"type": "frame", "id": "TransferQtyField", "width": "fill_container", "layout": "vertical", "gap": 6, "children": [
                {"type": "text", "id": "TransferQtyLabel", "fill": "$text-secondary", "content": "Số lượng chuyển", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
                {"type": "frame", "id": "TransferQtyInput", "width": "fill_container", "height": 48, "fill": "$bg-page", "cornerRadius": 12, "stroke": {"thickness": 2, "fill": "#3B82F6"}, "padding": [0, 14], "alignItems": "center", "justifyContent": "center", "children": [
                  {"type": "text", "id": "TransferQtyVal", "fill": "#3B82F6", "content": "30", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"}
                ]}
              ]}
            ]},
            {"type": "frame", "id": "NoteField", "width": "fill_container", "layout": "vertical", "gap": 6, "children": [
              {"type": "text", "id": "NoteLabel", "fill": "$text-secondary", "content": "Lý do chuyển kho", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
              {"type": "frame", "id": "NoteInput", "width": "fill_container", "height": 72, "fill": "$bg-page", "cornerRadius": 12, "stroke": {"thickness": 1, "fill": "$border-default"}, "padding": [12, 14], "children": [
                {"type": "text", "id": "NoteVal", "fill": "$text-tertiary", "content": "Bổ sung hàng cho chi nhánh 2 do thiếu hàng...", "fontFamily": "Roboto", "fontSize": 14}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "TransferFooter",
          "width": "fill_container",
          "stroke": {"thickness": 1, "fill": "$border-subtle"},
          "gap": 12,
          "padding": [16, 20],
          "children": [
            {"type": "frame", "id": "TransferCancelBtn", "width": "fill_container", "height": 48, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "text", "id": "TransferCancelText", "fill": "$text-secondary", "content": "Hủy", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
            ]},
            {"type": "frame", "id": "TransferConfirmBtn", "width": "fill_container", "height": 48, "fill": {"type": "gradient", "gradientType": "linear", "rotation": 135, "colors": [{"color": "#3B82F6", "position": 0}, {"color": "#2563EB", "position": 1}]}, "cornerRadius": 12, "gap": 8, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "TransferConfirmIcon", "width": 18, "height": 18, "iconFontName": "arrow-left-right", "iconFontFamily": "lucide", "fill": "#FFFFFF"},
              {"type": "text", "id": "TransferConfirmText", "fill": "#FFFFFF", "content": "Xác nhận chuyể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"}
  }
}
