XML 70 R54.htm IDEA: XBRL DOCUMENT v3.22.0.1
Fair value of financial instruments and investments - Available-for-sale securities (Details) - USD ($)
$ in Thousands
Dec. 31, 2021
Dec. 31, 2020
Debt Securities, Available-for-sale [Line Items]    
Securities in an unrealized loss position less than 12 months - Unrealized losses $ (673) $ (75)
Securities in an unrealized loss position less than 12 months - Fair Value 256,801 260,970
Securities in an unrealized loss position greater than 12 months - Unrealized losses (36)  
Securities in an unrealized loss position greater than 12 months - Fair Value 4,985  
Total - Unrealized losses (709) (75)
Total - Fair Value 261,786 260,970
Commercial paper    
Debt Securities, Available-for-sale [Line Items]    
Securities in an unrealized loss position less than 12 months - Unrealized losses (1) (37)
Securities in an unrealized loss position less than 12 months - Fair Value 12,992 129,630
Total - Unrealized losses (1) (37)
Total - Fair Value 12,992 129,630
Corporate debt securities    
Debt Securities, Available-for-sale [Line Items]    
Securities in an unrealized loss position less than 12 months - Unrealized losses (608) (29)
Securities in an unrealized loss position less than 12 months - Fair Value 217,540 102,426
Securities in an unrealized loss position greater than 12 months - Unrealized losses (36)  
Securities in an unrealized loss position greater than 12 months - Fair Value 4,985  
Total - Unrealized losses (644) (29)
Total - Fair Value 222,525 102,426
Asset-backed securities    
Debt Securities, Available-for-sale [Line Items]    
Securities in an unrealized loss position less than 12 months - Unrealized losses (5) (3)
Securities in an unrealized loss position less than 12 months - Fair Value 10,786 1,830
Total - Unrealized losses (5) (3)
Total - Fair Value 10,786 1,830
Government obligations    
Debt Securities, Available-for-sale [Line Items]    
Securities in an unrealized loss position less than 12 months - Unrealized losses (59) (6)
Securities in an unrealized loss position less than 12 months - Fair Value 15,483 27,084
Total - Unrealized losses (59) (6)
Total - Fair Value $ 15,483 $ 27,084