Annual report pursuant to Section 13 and 15(d)

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

v3.19.3.a.u2
Stock-Based Compensation - Summary of Stock-Based Compensation Expense (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2019
Dec. 31, 2018
Dec. 31, 2017
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized $ 26,306 $ 27,856 $ 22,042
Cost of customer agreements and incentives      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized 2,434 2,568 2,299
Cost of solar energy systems and product sales      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized 844 718 609
Sales and marketing      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized 5,162 7,191 5,196
Research and development      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized 1,439 1,253 836
General and administration      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized $ 16,427 $ 16,126 $ 13,102