XML 34 R24.htm IDEA: XBRL DOCUMENT v3.22.1
Summary of Significant Accounting Policies - Additional Information (Details) - USD ($)
$ in Thousands
Mar. 31, 2022
Dec. 31, 2021
Mar. 31, 2021
Dec. 31, 2020
New Accounting Pronouncements or Change in Accounting Principle [Line Items]        
Long-term convertible senior notes $ 195,079 $ 150,038    
Stockholders' equity 30,159 121,463 $ 272,084 $ 320,684
Additional paid-in capital        
New Accounting Pronouncements or Change in Accounting Principle [Line Items]        
Stockholders' equity 891,121 932,944 907,089 897,607
Accumulated deficit        
New Accounting Pronouncements or Change in Accounting Principle [Line Items]        
Stockholders' equity $ (860,630) (811,534) $ (635,171) $ (577,530)
Cumulative Effect, Period of Adoption, Adjustment        
New Accounting Pronouncements or Change in Accounting Principle [Line Items]        
Long-term convertible senior notes   44,800    
Deferred income tax liabilities   (9,400)    
Stockholders' equity   (44,838)    
Cumulative Effect, Period of Adoption, Adjustment | Additional paid-in capital        
New Accounting Pronouncements or Change in Accounting Principle [Line Items]        
Stockholders' equity   (53,527)    
Cumulative Effect, Period of Adoption, Adjustment | Accumulated deficit        
New Accounting Pronouncements or Change in Accounting Principle [Line Items]        
Stockholders' equity   $ 8,689