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