XML 47 R30.htm IDEA: XBRL DOCUMENT v3.22.4
Fair value measurements (Details) - USD ($)
$ in Thousands
Dec. 31, 2022
Dec. 31, 2021
Nov. 24, 2020
Apr. 12, 2017
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]        
Cash $ 85,300 $ 217,800    
Marketable securities 143,602 137,830    
Fair Value, Recurring [Member]        
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]        
Cash and Cash Equivalents 138,394 183,304    
Marketable securities 143,602 137,830    
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 138,394 183,304    
Fair Value, Recurring [Member] | Level 1 [Member]        
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]        
Cash and Cash Equivalents 138,394 183,304    
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 138,394 183,304    
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 143,602 137,830    
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    
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 130,100 189,000    
Corporate Debt Securities [Member] | Fair Value, Recurring [Member]        
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]        
Marketable securities 29,637 41,108    
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 29,637 41,108    
Commercial Paper | Fair Value, Recurring [Member]        
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]        
Marketable securities 87,436 72,323    
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 87,436 72,323    
US Government Debt Securities [Member] | Fair Value, Recurring [Member]        
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]        
Marketable securities 26,529 24,399    
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 $ 26,529 $ 24,399