XML 64 R48.htm IDEA: XBRL DOCUMENT v3.22.0.1
Summary of significant accounting policies - Adoption of ASU 2020-06 (Details) - USD ($)
$ in Thousands
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Dec. 31, 2018
Stockholders equity $ 1,438 $ 481,982 $ 594,330 $ 350,727
Long-term debt 281,894 309,145    
Deferred tax liability - convertible debt   29,626    
Deferred tax valuation allowance 525,570 379,608    
Cumulative Effect Adjustment        
Stockholders equity   (120,440)    
Long-term debt   120,400    
Deferred tax liability - convertible debt   (29,600)    
Deferred tax valuation allowance   29,600    
Additional paid-in capital        
Stockholders equity 2,123,606 2,171,746 1,795,351 1,288,137
Additional paid-in capital | Cumulative Effect Adjustment        
Stockholders equity   (175,236)    
Accumulated deficit        
Stockholders equity $ (2,097,957) (1,628,877) $ (1,190,499) $ (938,923)
Accumulated deficit | Cumulative Effect Adjustment        
Stockholders equity   $ 54,796