XML 45 R35.htm IDEA: XBRL DOCUMENT v3.20.2
Fair Value Measurements - Additional Information (Details)
6 Months Ended 12 Months Ended
Jun. 30, 2020
USD ($)
security
Dec. 31, 2019
USD ($)
Apr. 30, 2020
Apr. 13, 2020
USD ($)
Jun. 30, 2019
USD ($)
Jan. 07, 2019
USD ($)
Feb. 29, 2016
USD ($)
Fair Value Disclosures [Line Items]              
Fair Value, net transfers $ 0 $ 0          
Fiscal Year End Tags [Abstract]              
Average maturity of investments in available-for-sale marketable securities 4 months 21 days            
Realized gains or losses on marketable securities $ 0 0          
Investments in marketable securities has been in an unrealized loss position for more than one year | security 0            
Credit losses of marketable securities in continuous loss position $ 0       $ 0    
2026 Convertible Notes              
Fair Value Disclosures [Line Items]              
Convertible notes, interest rate     1.50%        
Debt instrument fair value 252,200,000            
Aggregate principal amount 230,000,000.0            
2022 Convertible Notes              
Fair Value Disclosures [Line Items]              
Convertible notes, interest rate             8.20%
Aggregate principal amount 100,000,000.0           $ 100,000,000.0
Term Loan              
Fair Value Disclosures [Line Items]              
Aggregate principal amount 75,000,000 $ 75,000,000          
Level 3 | 2022 Convertible Notes              
Fair Value Disclosures [Line Items]              
Debt instrument fair value $ 113,000,000.0            
Maximum              
Fiscal Year End Tags [Abstract]              
Remaining contractual maturities of available-for-sale securities 1 year            
Maximum | Term Loan              
Fair Value Disclosures [Line Items]              
Aggregate principal amount       $ 230,000,000.0      
Lender              
Fair Value Disclosures [Line Items]              
Aggregate principal amount             $ 75,000,000.0
Lender | Term Loan              
Fair Value Disclosures [Line Items]              
Aggregate principal amount $ 75,000,000         $ 75,000,000.0