Quarterly report pursuant to Section 13 or 15(d)

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

v3.20.1
Stock-Based Compensation - Summary of Stock-Based Compensation Expense (Details) - USD ($)
$ in Thousands
3 Months Ended
Mar. 31, 2020
Mar. 31, 2019
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]    
Compensation expense recognized $ 18,945 $ 5,783
Cost of customer agreements and incentives    
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]    
Compensation expense recognized 1,946 632
Cost of solar energy systems and product sales    
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]    
Compensation expense recognized 673 167
Sales and marketing    
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]    
Compensation expense recognized 3,478 1,128
Research and development    
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]    
Compensation expense recognized 1,075 336
General and administration    
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]    
Compensation expense recognized $ 11,773 $ 3,520