XML 51 R40.htm IDEA: XBRL DOCUMENT v3.22.2
Fair value measurements - Schedule of Unrealized Loss on Investments (Details) - USD ($)
$ in Thousands
Jun. 30, 2022
Dec. 31, 2021
Fair value    
Less than 12 months $ 74,801 $ 153,737
12 months or greater 14,351 6,392
Total 89,152 160,129
Unrealized losses    
Less than 12 months (1,893) (561)
12 months or greater (192) (6)
Total (2,085) (567)
U.S. government agency securities and treasuries    
Fair value    
Less than 12 months 68,129 108,695
12 months or greater 7,834 2,496
Total 75,963 111,191
Unrealized losses    
Less than 12 months (1,814) (505)
12 months or greater (166) (4)
Total (1,980) (509)
Corporate bonds    
Fair value    
Less than 12 months 6,672 45,042
12 months or greater 6,517 3,896
Total 13,189 48,938
Unrealized losses    
Less than 12 months (79) (56)
12 months or greater (26) (2)
Total $ (105) $ (58)