Quarterly report pursuant to Section 13 or 15(d)

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

v3.22.1
Stock-Based Compensation - Summary of Stock-Based Compensation Expense (Details) - USD ($)
$ in Thousands
3 Months Ended
Mar. 31, 2022
Mar. 31, 2021
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]    
Compensation expense recognized $ 39,219 $ 78,029
Stock-based compensation expense capitalized 4,900  
Cost of customer agreements and incentives    
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]    
Compensation expense recognized 3,187 2,232
Cost of solar energy systems and product sales    
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]    
Compensation expense recognized 3,332 1,304
Sales and marketing    
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]    
Compensation expense recognized 24,134 27,106
Research and development    
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]    
Compensation expense recognized 953 676
General and administration    
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]    
Compensation expense recognized $ 7,613 $ 46,711