XML 76 R75.htm IDEA: XBRL DOCUMENT v3.19.3
Stock-based compensation - Summary of Stock-based Compensation Expense (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2019
Sep. 30, 2018
Sep. 30, 2019
Sep. 30, 2018
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Share-based compensation $ 2,951 $ 4,041 $ 9,294 $ 10,527
Cost of goods sold        
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Share-based compensation 441 553 1,651 1,832
Research and development        
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Share-based compensation 715 1,016 2,383 2,618
Sales and marketing        
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Share-based compensation 575 931 1,852 2,511
General and administrative        
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Share-based compensation $ 1,220 $ 1,541 $ 3,408 $ 3,566