XML 58 R45.htm IDEA: XBRL DOCUMENT v3.22.2
Fair value of financial instruments and investments - Available-for-sale securities (Details) - USD ($)
$ in Thousands
Jun. 30, 2022
Dec. 31, 2021
Debt Securities, Available-for-sale [Line Items]    
Securities in an unrealized loss position less than 12 months - Unrealized losses $ (3,361) $ (673)
Securities in an unrealized loss position less than 12 months - Fair Value 139,228 256,801
Securities in an unrealized loss position greater than 12 months - Unrealized losses (310) (36)
Securities in an unrealized loss position greater than 12 months - Fair Value 10,745 4,985
Total - Unrealized losses (3,671) (709)
Total - Fair Value 149,973 261,786
Commercial paper    
Debt Securities, Available-for-sale [Line Items]    
Securities in an unrealized loss position less than 12 months - Unrealized losses   (1)
Securities in an unrealized loss position less than 12 months - Fair Value   12,992
Total - Unrealized losses   (1)
Total - Fair Value   12,992
Corporate debt securities    
Debt Securities, Available-for-sale [Line Items]    
Securities in an unrealized loss position less than 12 months - Unrealized losses (3,173) (608)
Securities in an unrealized loss position less than 12 months - Fair Value 133,542 217,540
Securities in an unrealized loss position greater than 12 months - Unrealized losses (310) (36)
Securities in an unrealized loss position greater than 12 months - Fair Value 10,745 4,985
Total - Unrealized losses (3,483) (644)
Total - Fair Value 144,287 222,525
Asset-backed securities    
Debt Securities, Available-for-sale [Line Items]    
Securities in an unrealized loss position less than 12 months - Unrealized losses   (5)
Securities in an unrealized loss position less than 12 months - Fair Value   10,786
Total - Unrealized losses   (5)
Total - Fair Value   10,786
Government obligations    
Debt Securities, Available-for-sale [Line Items]    
Securities in an unrealized loss position less than 12 months - Unrealized losses (188) (59)
Securities in an unrealized loss position less than 12 months - Fair Value 5,686 15,483
Total - Unrealized losses (188) (59)
Total - Fair Value $ 5,686 $ 15,483