Annual report pursuant to Section 13 and 15(d)

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

v3.8.0.1
Stock-Based Compensation - Summary of Stock-Based Compensation Expense (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2017
Dec. 31, 2016
Dec. 31, 2015
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]      
Compensation expense recognized $ 22,042 $ 18,723 $ 15,823
Cost of operating leases and incentives      
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]      
Compensation expense recognized 2,299 2,039 1,649
Cost of solar energy systems and product sales      
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]      
Compensation expense recognized 609 409 236
Sales and marketing      
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]      
Compensation expense recognized 5,196 7,831 5,242
Research and development      
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]      
Compensation expense recognized 836 515 205
General and administration      
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]      
Compensation expense recognized $ 13,102 $ 7,929 $ 8,491