Quarterly report pursuant to Section 13 or 15(d)

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

v3.10.0.1
Stock-Based Compensation - Summary of Stock-Based Compensation Expense (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2018
Sep. 30, 2017
Sep. 30, 2018
Sep. 30, 2017
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]        
Compensation expense recognized $ 5,741 $ 5,105 $ 21,982 $ 16,494
Cost of customer agreements and incentives        
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]        
Compensation expense recognized 648 (69) 1,926 1,792
Cost of solar energy systems and product sales        
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]        
Compensation expense recognized 188 171 545 441
Sales and marketing        
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]        
Compensation expense recognized 1,102 1,580 6,086 4,304
Research and development        
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]        
Compensation expense recognized 313 259 918 594
General and administration        
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]        
Compensation expense recognized $ 3,490 $ 3,164 $ 12,507 $ 9,363