Quarterly report pursuant to Section 13 or 15(d)

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

v3.19.2
Stock-Based Compensation - Summary of Stock-Based Compensation Expense (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2019
Jun. 30, 2018
Jun. 30, 2019
Jun. 30, 2018
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]        
Compensation expense recognized $ 6,783 $ 5,547 $ 12,566 $ 16,242
Cost of customer agreements and incentives        
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]        
Compensation expense recognized 624 667 1,255 1,279
Cost of solar energy systems and product sales        
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]        
Compensation expense recognized 190 186 358 357
Sales and marketing        
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]        
Compensation expense recognized 1,303 834 2,431 4,984
Research and development        
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]        
Compensation expense recognized 408 311 744 605
General and administration        
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]        
Compensation expense recognized $ 4,258 $ 3,549 $ 7,778 $ 9,017