XML 58 R38.htm IDEA: XBRL DOCUMENT v3.19.3
Summary of significant accounting policies - Narrative (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2018
Sep. 30, 2019
Sep. 30, 2018
Jan. 01, 2019
Dec. 31, 2018
Jan. 01, 2018
Revenue, Initial Application Period Cumulative Effect Transition [Line Items]            
Inventory Write-down $ 1,600          
Letters of Credit   $ 7,500        
Term for letter of credit (in years)   5 years        
Operating lease ROU asset   $ 13,708   $ 11,300    
Allowance for doubtful accounts receivable   300     $ 700  
Deferred tax liability         122,000  
Retained earnings (accumulated deficit)   (1,112,822)     $ (938,923)  
ASC 606 Adjustment   0 $ (3,937)      
Adjustments            
Revenue, Initial Application Period Cumulative Effect Transition [Line Items]            
Retained earnings (accumulated deficit)           $ 3,300
Fifth Anniversary            
Revenue, Initial Application Period Cumulative Effect Transition [Line Items]            
Letters of Credit   $ 3,800