XML 85 R75.htm IDEA: XBRL DOCUMENT 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 Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Share-based compensation $ 3,005 $ 3,139 $ 6,343 $ 6,486
Cost of goods sold        
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Share-based compensation 609 629 1,210 1,279
Research and development        
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Share-based compensation 787 829 1,668 1,602
Sales and marketing        
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Share-based compensation 599 642 1,277 1,580
General and administrative        
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Share-based compensation $ 1,010 $ 1,039 $ 2,188 $ 2,025