XML 79 R57.htm IDEA: XBRL DOCUMENT v3.22.0.1
Investments and Fair Value Measurements - Convertible senior notes (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Maturity period for marketable securities      
Maximum contractual maturity period 6 months    
Weighted average contractual maturity period 2 months    
Fair value transfers      
Fair value of assets transferred from Level 1 to Level 2 $ 0 $ 0  
Fair value of assets transferred from Level 2 to Level 1 0 0  
Unrealized losses      
Net unrealized losses $ 0    
Available-for-sale securities sold   $ 19,900 $ 0