Quarterly report pursuant to Section 13 or 15(d)

Stock-Based Compensation - Summary of Stock-Based Compensation Expense (Details)

v3.21.2
Stock-Based Compensation - Summary of Stock-Based Compensation Expense (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2021
Jun. 30, 2020
Jun. 30, 2021
Jun. 30, 2020
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Compensation expense recognized $ 43,463 $ 10,382 $ 121,492 $ 29,327
Stock-based compensation expense capitalized 2,900   5,500  
Cost of customer agreements and incentives        
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Compensation expense recognized 1,992 930 4,224 2,876
Cost of solar energy systems and product sales        
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Compensation expense recognized 1,045 270 2,349 943
Sales and marketing        
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Compensation expense recognized 23,227 1,821 50,333 5,299
Research and development        
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Compensation expense recognized 803 466 1,479 1,541
General and administration        
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Compensation expense recognized $ 16,396 $ 6,895 $ 63,107 $ 18,668