XML 50 R35.htm IDEA: XBRL DOCUMENT v3.10.0.1
Summary of significant accounting policies - Narrative (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2018
Sep. 30, 2018
Jan. 01, 2018
Dec. 31, 2017
Revenue, Initial Application Period Cumulative Effect Transition [Line Items]        
Inventory write-down $ 1,600      
Allowance for doubtful accounts receivable 600 $ 600   $ 800
Deferred tax liability 115,200 115,200   0
Retained earnings (accumulated deficit) $ (890,593) (890,593)   $ (814,108)
ASC 606 Adjustment   (3,937)    
Adjustments        
Revenue, Initial Application Period Cumulative Effect Transition [Line Items]        
Retained earnings (accumulated deficit)     $ 3,300  
Variable consideration   $ 600