XML 44 R33.htm IDEA: XBRL DOCUMENT v3.10.0.1
Summary of significant accounting policies - Narrative (Details) - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2018
Jan. 01, 2018
Dec. 31, 2017
Revenue, Initial Application Period Cumulative Effect Transition [Line Items]      
Retained earnings (accumulated deficit) $ (839,624)   $ (814,108)
ASC 606 Adjustment (3,937)    
Allowance for doubtful accounts receivable 500   $ 800
Adjustments      
Revenue, Initial Application Period Cumulative Effect Transition [Line Items]      
Retained earnings (accumulated deficit)   $ 3,300  
Variable consideration $ 600