{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "StockCountScreen",
      "name": "Screen/StockCount",
      "reusable": true,
      "width": 520,
      "height": 720,
      "fill": "$bg-page",
      "cornerRadius": 20,
      "layout": "vertical",
      "children": [
        {
          "type": "frame",
          "id": "StockCountHeader",
          "width": "fill_container",
          "fill": "$bg-elevated",
          "padding": [16, 20],
          "gap": 12,
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "StockCountIconBg", "width": 44, "height": 44, "fill": "#8B5CF615", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "StockCountIcon", "width": 22, "height": 22, "iconFontName": "clipboard-check", "iconFontFamily": "lucide", "fill": "#8B5CF6"}
            ]},
            {"type": "frame", "id": "StockCountTitle", "width": "fill_container", "layout": "vertical", "gap": 2, "children": [
              {"type": "text", "id": "StockCountTitleText", "fill": "$text-primary", "content": "Kiểm Kê Tồn Kho", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"},
              {"type": "text", "id": "StockCountSubtitle", "fill": "$text-tertiary", "content": "Ca sáng - 06/02/2026", "fontFamily": "Roboto", "fontSize": 13}
            ]},
            {"type": "frame", "id": "StockCountClose", "width": 36, "height": 36, "fill": "$bg-interactive", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "StockCountCloseIcon", "width": 18, "height": 18, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "$text-secondary"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "StockCountSearch",
          "width": "fill_container",
          "padding": [12, 20],
          "children": [
            {"type": "frame", "id": "SearchBox", "width": "fill_container", "height": 44, "fill": "$bg-elevated", "cornerRadius": 12, "padding": [0, 14], "gap": 10, "alignItems": "center", "children": [
              {"type": "icon_font", "id": "SearchIcon", "width": 18, "height": 18, "iconFontName": "search", "iconFontFamily": "lucide", "fill": "$text-tertiary"},
              {"type": "text", "id": "SearchPlaceholder", "fill": "$text-tertiary", "content": "Tìm sản phẩm theo tên hoặc mã...", "fontFamily": "Roboto", "fontSize": 14}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "StockCountStats",
          "width": "fill_container",
          "padding": [0, 20],
          "gap": 12,
          "children": [
            {"type": "frame", "id": "StatTotal", "width": "fill_container", "fill": "$bg-elevated", "cornerRadius": 12, "padding": 14, "layout": "vertical", "gap": 4, "alignItems": "center", "children": [
              {"type": "text", "id": "StatTotalNum", "fill": "$text-primary", "content": "48", "fontFamily": "Roboto", "fontSize": 22, "fontWeight": "700"},
              {"type": "text", "id": "StatTotalLabel", "fill": "$text-tertiary", "content": "Tổng SP", "fontFamily": "Roboto", "fontSize": 11}
            ]},
            {"type": "frame", "id": "StatCounted", "width": "fill_container", "fill": "$bg-elevated", "cornerRadius": 12, "padding": 14, "layout": "vertical", "gap": 4, "alignItems": "center", "children": [
              {"type": "text", "id": "StatCountedNum", "fill": "#22C55E", "content": "32", "fontFamily": "Roboto", "fontSize": 22, "fontWeight": "700"},
              {"type": "text", "id": "StatCountedLabel", "fill": "$text-tertiary", "content": "Đã kiểm", "fontFamily": "Roboto", "fontSize": 11}
            ]},
            {"type": "frame", "id": "StatDiff", "width": "fill_container", "fill": "$bg-elevated", "cornerRadius": 12, "padding": 14, "layout": "vertical", "gap": 4, "alignItems": "center", "children": [
              {"type": "text", "id": "StatDiffNum", "fill": "#EF4444", "content": "3", "fontFamily": "Roboto", "fontSize": 22, "fontWeight": "700"},
              {"type": "text", "id": "StatDiffLabel", "fill": "$text-tertiary", "content": "Chênh lệch", "fontFamily": "Roboto", "fontSize": 11}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "ProductList",
          "width": "fill_container",
          "height": "fill_container",
          "layout": "vertical",
          "padding": [12, 20],
          "gap": 8,
          "children": [
            {"type": "frame", "id": "ProductItem1", "width": "fill_container", "fill": "$bg-elevated", "cornerRadius": 12, "padding": 14, "gap": 12, "children": [
              {"type": "frame", "id": "Prod1Img", "width": 48, "height": 48, "fill": "#3B82F620", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "Prod1Icon", "width": 24, "height": 24, "iconFontName": "coffee", "iconFontFamily": "lucide", "fill": "#3B82F6"}
              ]},
              {"type": "frame", "id": "Prod1Info", "width": "fill_container", "layout": "vertical", "gap": 4, "children": [
                {"type": "text", "id": "Prod1Name", "fill": "$text-primary", "content": "Cà phê sữa đá", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"},
                {"type": "text", "id": "Prod1SKU", "fill": "$text-tertiary", "content": "SKU: CF-001", "fontFamily": "Roboto", "fontSize": 12}
              ]},
              {"type": "frame", "id": "Prod1Count", "layout": "vertical", "gap": 4, "alignItems": "end", "children": [
                {"type": "frame", "id": "Prod1Expected", "gap": 6, "alignItems": "center", "children": [
                  {"type": "text", "id": "Prod1ExpLabel", "fill": "$text-tertiary", "content": "Hệ thống:", "fontFamily": "Roboto", "fontSize": 12},
                  {"type": "text", "id": "Prod1ExpVal", "fill": "$text-secondary", "content": "50", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "Prod1Actual", "gap": 6, "alignItems": "center", "children": [
                  {"type": "text", "id": "Prod1ActLabel", "fill": "$text-tertiary", "content": "Thực tế:", "fontFamily": "Roboto", "fontSize": 12},
                  {"type": "frame", "id": "Prod1ActInput", "width": 56, "height": 28, "fill": "$bg-interactive", "cornerRadius": 6, "justifyContent": "center", "alignItems": "center", "children": [
                    {"type": "text", "id": "Prod1ActVal", "fill": "#22C55E", "content": "50", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"}
                  ]}
                ]}
              ]}
            ]},
            {"type": "frame", "id": "ProductItem2", "width": "fill_container", "fill": "$bg-elevated", "cornerRadius": 12, "padding": 14, "gap": 12, "children": [
              {"type": "frame", "id": "Prod2Img", "width": 48, "height": 48, "fill": "#F9731620", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "Prod2Icon", "width": 24, "height": 24, "iconFontName": "croissant", "iconFontFamily": "lucide", "fill": "#F97316"}
              ]},
              {"type": "frame", "id": "Prod2Info", "width": "fill_container", "layout": "vertical", "gap": 4, "children": [
                {"type": "text", "id": "Prod2Name", "fill": "$text-primary", "content": "Bánh mì thịt", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"},
                {"type": "text", "id": "Prod2SKU", "fill": "$text-tertiary", "content": "SKU: BM-003", "fontFamily": "Roboto", "fontSize": 12}
              ]},
              {"type": "frame", "id": "Prod2Count", "layout": "vertical", "gap": 4, "alignItems": "end", "children": [
                {"type": "frame", "id": "Prod2Expected", "gap": 6, "alignItems": "center", "children": [
                  {"type": "text", "id": "Prod2ExpLabel", "fill": "$text-tertiary", "content": "Hệ thống:", "fontFamily": "Roboto", "fontSize": 12},
                  {"type": "text", "id": "Prod2ExpVal", "fill": "$text-secondary", "content": "25", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "Prod2Actual", "gap": 6, "alignItems": "center", "children": [
                  {"type": "text", "id": "Prod2ActLabel", "fill": "$text-tertiary", "content": "Thực tế:", "fontFamily": "Roboto", "fontSize": 12},
                  {"type": "frame", "id": "Prod2ActInput", "width": 56, "height": 28, "fill": "$bg-interactive", "cornerRadius": 6, "justifyContent": "center", "alignItems": "center", "children": [
                    {"type": "text", "id": "Prod2ActVal", "fill": "#EF4444", "content": "22", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"}
                  ]}
                ]}
              ]}
            ]},
            {"type": "frame", "id": "ProductItem3", "width": "fill_container", "fill": "$bg-elevated", "cornerRadius": 12, "padding": 14, "gap": 12, "children": [
              {"type": "frame", "id": "Prod3Img", "width": 48, "height": 48, "fill": "#10B98120", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "Prod3Icon", "width": 24, "height": 24, "iconFontName": "milk", "iconFontFamily": "lucide", "fill": "#10B981"}
              ]},
              {"type": "frame", "id": "Prod3Info", "width": "fill_container", "layout": "vertical", "gap": 4, "children": [
                {"type": "text", "id": "Prod3Name", "fill": "$text-primary", "content": "Sữa tươi không đường", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"},
                {"type": "text", "id": "Prod3SKU", "fill": "$text-tertiary", "content": "SKU: ML-012", "fontFamily": "Roboto", "fontSize": 12}
              ]},
              {"type": "frame", "id": "Prod3Count", "layout": "vertical", "gap": 4, "alignItems": "end", "children": [
                {"type": "frame", "id": "Prod3Expected", "gap": 6, "alignItems": "center", "children": [
                  {"type": "text", "id": "Prod3ExpLabel", "fill": "$text-tertiary", "content": "Hệ thống:", "fontFamily": "Roboto", "fontSize": 12},
                  {"type": "text", "id": "Prod3ExpVal", "fill": "$text-secondary", "content": "100", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "Prod3Actual", "gap": 6, "alignItems": "center", "children": [
                  {"type": "text", "id": "Prod3ActLabel", "fill": "$text-tertiary", "content": "Thực tế:", "fontFamily": "Roboto", "fontSize": 12},
                  {"type": "frame", "id": "Prod3ActInput", "width": 56, "height": 28, "fill": "$bg-interactive", "cornerRadius": 6, "justifyContent": "center", "alignItems": "center", "children": [
                    {"type": "text", "id": "Prod3ActVal", "fill": "$text-tertiary", "content": "--", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"}
                  ]}
                ]}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "StockCountFooter",
          "width": "fill_container",
          "fill": "$bg-elevated",
          "stroke": {"thickness": 1, "fill": "$border-subtle"},
          "gap": 12,
          "padding": [16, 20],
          "children": [
            {"type": "frame", "id": "SaveDraftBtn", "width": "fill_container", "height": 48, "fill": "$bg-interactive", "cornerRadius": 12, "gap": 8, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "SaveDraftIcon", "width": 18, "height": 18, "iconFontName": "save", "iconFontFamily": "lucide", "fill": "$text-secondary"},
              {"type": "text", "id": "SaveDraftText", "fill": "$text-secondary", "content": "Lưu nháp", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
            ]},
            {"type": "frame", "id": "CompleteBtn", "width": "fill_container", "height": 48, "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": "CompleteIcon", "width": 18, "height": 18, "iconFontName": "check-circle", "iconFontFamily": "lucide", "fill": "#FFFFFF"},
              {"type": "text", "id": "CompleteText", "fill": "#FFFFFF", "content": "Hoàn tất kiểm kê", "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"}
  }
}
