XML 74 R60.htm IDEA: XBRL DOCUMENT v3.8.0.1
Stock-based compensation - Summary of stock-based compensation expense (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2017
Sep. 30, 2016
Sep. 30, 2017
Sep. 30, 2016
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]        
Share-based compensation $ 1,934 $ 8,776 $ 5,692 $ 14,445
Cost of goods sold        
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]        
Share-based compensation 340 297 811 1,605
Research and development        
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]        
Share-based compensation 606 2,981 1,779 4,508
Sales and marketing        
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]        
Share-based compensation 393 2,352 1,170 3,604
General and administrative        
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]        
Share-based compensation $ 595 $ 3,146 $ 1,932 $ 4,728