Quarterly report pursuant to Section 13 or 15(d)

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

v3.21.1
Stock-Based Compensation - Summary of Stock-Based Compensation Expense (Details) - USD ($)
$ in Thousands
3 Months Ended
Mar. 31, 2021
Mar. 31, 2020
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]    
Compensation expense recognized $ 78,029 $ 18,945
Stock-based compensation expense capitalized 2,600  
Cost of customer agreements and incentives    
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]    
Compensation expense recognized 2,232 1,946
Cost of solar energy systems and product sales    
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]    
Compensation expense recognized 1,304 673
Sales and marketing    
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]    
Compensation expense recognized 27,106 3,478
Research and development    
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]    
Compensation expense recognized 676 1,075
General and administration    
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]    
Compensation expense recognized $ 46,711 $ 11,773