{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "ExpiryWarningDialog",
      "name": "Dialog/ExpiryWarning",
      "reusable": true,
      "width": 420,
      "height": 500,
      "fill": "$bg-elevated",
      "cornerRadius": 20,
      "layout": "vertical",
      "children": [
        {
          "type": "frame",
          "id": "ExpiryHeader",
          "width": "fill_container",
          "padding": [16, 20],
          "gap": 12,
          "alignItems": "center",
          "stroke": {"thickness": 1, "fill": "$border-subtle"},
          "children": [
            {"type": "frame", "id": "ExpiryIconBg", "width": 44, "height": 44, "fill": "#EF444415", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "ExpiryIcon", "width": 22, "height": 22, "iconFontName": "clock", "iconFontFamily": "lucide", "fill": "#EF4444"}
            ]},
            {"type": "frame", "id": "ExpiryTitleBox", "width": "fill_container", "layout": "vertical", "gap": 2, "children": [
              {"type": "text", "id": "ExpiryTitle", "fill": "$text-primary", "content": "Sắp Hết Hạn Sử Dụng", "fontFamily": "Roboto", "fontSize": 17, "fontWeight": "700"},
              {"type": "text", "id": "ExpiryCount", "fill": "#EF4444", "content": "3 sản phẩm cần xử lý", "fontFamily": "Roboto", "fontSize": 13}
            ]},
            {"type": "frame", "id": "ExpiryClose", "width": 32, "height": 32, "fill": "$bg-interactive", "cornerRadius": 8, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "ExpiryCloseIcon", "width": 16, "height": 16, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "$text-secondary"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "ExpiryContent",
          "width": "fill_container",
          "height": "fill_container",
          "layout": "vertical",
          "padding": [14, 20],
          "gap": 10,
          "children": [
            {"type": "frame", "id": "Exp1", "width": "fill_container", "fill": "#EF444415", "cornerRadius": 12, "padding": 14, "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "Exp1Icon", "width": 40, "height": 40, "fill": "#EF444420", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "Exp1IconI", "width": 20, "height": 20, "iconFontName": "alert-circle", "iconFontFamily": "lucide", "fill": "#EF4444"}
              ]},
              {"type": "frame", "id": "Exp1Info", "width": "fill_container", "layout": "vertical", "gap": 4, "children": [
                {"type": "text", "id": "Exp1Name", "fill": "$text-primary", "content": "Sữa tươi Vinamilk", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"},
                {"type": "frame", "id": "Exp1Meta", "gap": 8, "alignItems": "center", "children": [
                  {"type": "text", "id": "Exp1Date", "fill": "#EF4444", "content": "Hết hạn: Hôm nay", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "600"},
                  {"type": "text", "id": "Exp1Qty", "fill": "$text-tertiary", "content": "• 5 hộp", "fontFamily": "Roboto", "fontSize": 12}
                ]}
              ]},
              {"type": "frame", "id": "Exp1Action", "width": 32, "height": 32, "fill": "#EF4444", "cornerRadius": 8, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "Exp1ActionIcon", "width": 16, "height": 16, "iconFontName": "trash-2", "iconFontFamily": "lucide", "fill": "#FFFFFF"}
              ]}
            ]},
            {"type": "frame", "id": "Exp2", "width": "fill_container", "fill": "#EAB30815", "cornerRadius": 12, "padding": 14, "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "Exp2Icon", "width": 40, "height": 40, "fill": "#EAB30820", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "Exp2IconI", "width": 20, "height": 20, "iconFontName": "clock", "iconFontFamily": "lucide", "fill": "#EAB308"}
              ]},
              {"type": "frame", "id": "Exp2Info", "width": "fill_container", "layout": "vertical", "gap": 4, "children": [
                {"type": "text", "id": "Exp2Name", "fill": "$text-primary", "content": "Bánh croissant", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"},
                {"type": "frame", "id": "Exp2Meta", "gap": 8, "alignItems": "center", "children": [
                  {"type": "text", "id": "Exp2Date", "fill": "#EAB308", "content": "Hết hạn: Ngày mai", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "500"},
                  {"type": "text", "id": "Exp2Qty", "fill": "$text-tertiary", "content": "• 12 cái", "fontFamily": "Roboto", "fontSize": 12}
                ]}
              ]},
              {"type": "frame", "id": "Exp2Action", "width": 32, "height": 32, "fill": "#EAB308", "cornerRadius": 8, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "Exp2ActionIcon", "width": 16, "height": 16, "iconFontName": "badge-percent", "iconFontFamily": "lucide", "fill": "#FFFFFF"}
              ]}
            ]},
            {"type": "frame", "id": "Exp3", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 12, "padding": 14, "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "Exp3Icon", "width": 40, "height": 40, "fill": "$bg-interactive", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "Exp3IconI", "width": 20, "height": 20, "iconFontName": "calendar", "iconFontFamily": "lucide", "fill": "$text-tertiary"}
              ]},
              {"type": "frame", "id": "Exp3Info", "width": "fill_container", "layout": "vertical", "gap": 4, "children": [
                {"type": "text", "id": "Exp3Name", "fill": "$text-primary", "content": "Kem tươi Whipping", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"},
                {"type": "frame", "id": "Exp3Meta", "gap": 8, "alignItems": "center", "children": [
                  {"type": "text", "id": "Exp3Date", "fill": "$text-secondary", "content": "Hết hạn: 3 ngày nữa", "fontFamily": "Roboto", "fontSize": 12},
                  {"type": "text", "id": "Exp3Qty", "fill": "$text-tertiary", "content": "• 2 hộp", "fontFamily": "Roboto", "fontSize": 12}
                ]}
              ]},
              {"type": "frame", "id": "Exp3Action", "width": 32, "height": 32, "fill": "$bg-interactive", "cornerRadius": 8, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "Exp3ActionIcon", "width": 16, "height": 16, "iconFontName": "eye", "iconFontFamily": "lucide", "fill": "$text-secondary"}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "ExpiryFooter",
          "width": "fill_container",
          "fill": "$bg-page",
          "padding": [14, 20],
          "gap": 10,
          "layout": "vertical",
          "children": [
            {"type": "frame", "id": "QuickActions", "width": "fill_container", "gap": 10, "children": [
              {"type": "frame", "id": "DiscountBtn", "width": "fill_container", "height": 44, "fill": "#EAB30820", "cornerRadius": 10, "gap": 6, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "DiscountIcon", "width": 16, "height": 16, "iconFontName": "badge-percent", "iconFontFamily": "lucide", "fill": "#EAB308"},
                {"type": "text", "id": "DiscountText", "fill": "#EAB308", "content": "Giảm giá", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"}
              ]},
              {"type": "frame", "id": "WriteOffBtn", "width": "fill_container", "height": 44, "fill": "#EF444420", "cornerRadius": 10, "gap": 6, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "WriteOffIcon", "width": 16, "height": 16, "iconFontName": "trash-2", "iconFontFamily": "lucide", "fill": "#EF4444"},
                {"type": "text", "id": "WriteOffText", "fill": "#EF4444", "content": "Hủy bỏ", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"}
              ]}
            ]},
            {"type": "frame", "id": "DoneBtn", "width": "fill_container", "height": 46, "fill": {"type": "gradient", "gradientType": "linear", "rotation": 135, "colors": [{"color": "#FF5C00", "position": 0}, {"color": "#FF8A4C", "position": 1}]}, "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "text", "id": "DoneText", "fill": "#FFFFFF", "content": "Đã xử lý xong", "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"}
  }
}
