Annual report pursuant to Section 13 and 15(d)

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

v3.20.4
Stock-Based Compensation - Summary of Stock-Based Compensation Expense (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2020
Dec. 31, 2019
Dec. 31, 2018
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized $ 170,587 $ 26,306 $ 27,856
Stock-based compensation expense capitalized 6,500    
Cost of customer agreements and incentives      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized 4,315 2,434 2,568
Cost of solar energy systems and product sales      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized 1,582 844 718
Sales and marketing      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized 53,366 5,162 7,191
Research and development      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized 2,518 1,439 1,253
General and administration      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized $ 108,806 $ 16,427 $ 16,126