Quarterly report pursuant to Section 13 or 15(d)

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

v3.20.2
Stock-Based Compensation - Summary of Stock-Based Compensation Expense (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2020
Sep. 30, 2019
Sep. 30, 2020
Sep. 30, 2019
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Compensation expense recognized $ 8,217 $ 6,854 $ 37,544 $ 19,420
Cost of customer agreements and incentives        
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Compensation expense recognized 922 594 3,798 1,849
Cost of solar energy systems and product sales        
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Compensation expense recognized 205 209 1,148 566
Sales and marketing        
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Compensation expense recognized 1,890 1,352 7,189 3,782
Research and development        
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Compensation expense recognized 317 404 1,858 1,149
General and administration        
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Compensation expense recognized $ 4,883 $ 4,295 $ 23,551 $ 12,074