XML 53 R32.htm IDEA: XBRL DOCUMENT v3.22.0.1
Fair value measurements (Details) - USD ($)
$ in Thousands
Dec. 31, 2021
Dec. 31, 2020
Nov. 24, 2020
Apr. 12, 2017
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]        
Cash $ 217,800 $ 308,200    
Marketable securities 137,830 0    
Restricted Cash 0 2,000    
Fair Value, Recurring [Member]        
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]        
Cash and Cash Equivalents 183,304 19,445    
Marketable securities 137,830 0    
Fair Value, Recurring [Member] | Money Market Funds [Member]        
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]        
Cash and Cash Equivalents 183,304 19,445    
Fair Value, Recurring [Member] | Level 1 [Member]        
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]        
Cash and Cash Equivalents 183,304 19,445    
Marketable securities 0 0    
Fair Value, Recurring [Member] | Level 1 [Member] | Money Market Funds [Member]        
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]        
Cash and Cash Equivalents 183,304 19,445    
Fair Value, Recurring [Member] | Level 2 [Member]        
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]        
Cash and Cash Equivalents 0 0    
Marketable securities 137,830 0    
Fair Value, Recurring [Member] | Level 2 [Member] | Money Market Funds [Member]        
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]        
Cash and Cash Equivalents 0 0    
Convertible Senior Notes due 2022 [Member]        
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]        
Debt Instrument       $ 175,000
Convertible Senior Notes due 2022 [Member] | Level 2 [Member]        
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]        
Fair value of convertible senior notes 132,400 146,000    
Convertible Senior Notes due 2025 [Member]        
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]        
Debt Instrument     $ 143,800  
Convertible Senior Notes due 2025 [Member] | Level 2 [Member]        
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]        
Fair value of convertible senior notes 189,000 166,800    
Corporate Debt Securities [Member] | Fair Value, Recurring [Member]        
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]        
Marketable securities 41,108 0    
Corporate Debt Securities [Member] | Fair Value, Recurring [Member] | Level 1 [Member]        
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]        
Marketable securities 0 0    
Corporate Debt Securities [Member] | Fair Value, Recurring [Member] | Level 2 [Member]        
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]        
Marketable securities 41,108 0    
Commercial Paper | Fair Value, Recurring [Member]        
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]        
Marketable securities 72,323 0    
Commercial Paper | Fair Value, Recurring [Member] | Level 1 [Member]        
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]        
Marketable securities 0 0    
Commercial Paper | Fair Value, Recurring [Member] | Level 2 [Member]        
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]        
Marketable securities 72,323 0    
US Government Debt Securities [Member] | Fair Value, Recurring [Member]        
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]        
Marketable securities 24,399 0    
US Government Debt Securities [Member] | Fair Value, Recurring [Member] | Level 1 [Member]        
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]        
Marketable securities 0 0    
US Government Debt Securities [Member] | Fair Value, Recurring [Member] | Level 2 [Member]        
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]        
Marketable securities $ 24,399 $ 0