Quarterly report pursuant to Section 13 or 15(d)

Debt - Narrative (Details)

v3.21.2
Debt - Narrative (Details) - USD ($)
3 Months Ended 6 Months Ended 12 Months Ended
Jun. 30, 2021
Jun. 30, 2020
Jun. 30, 2021
Jun. 30, 2020
Dec. 31, 2020
Dec. 31, 2018
Debt Instrument [Line Items]            
Interest expense debt $ 4,225,000 $ 6,634,000 $ 8,440,000 $ 13,768,000    
Interest expense debt excluding amortization 2,480,000 $ 1,510,000 4,960,000 $ 3,011,000    
Convertible Notes due 2023            
Debt Instrument [Line Items]            
Face amount 345,000,000.0   345,000,000.0   $ 345,000,000  
Unamortized issuance costs on convertible notes $ 3,999,000   $ 3,999,000   4,306,000  
Issuance costs           $ 10,000,000.0
Debt issuance cost           8,600,000
Convertible debt, carrying amount of equity component, offering costs           $ 1,400,000
Effective interest rate 2.40% 6.00% 2.40% 6.00%    
Convertible Notes due 2025            
Debt Instrument [Line Items]            
Face amount $ 517,500,000   $ 517,500,000   517,500,000  
Unamortized issuance costs on convertible notes $ 12,090,000   $ 12,090,000   11,731,000  
Issuance costs         14,500,000  
Debt issuance cost         12,600,000  
Convertible debt, carrying amount of equity component, offering costs         $ 1,900,000  
Effective interest rate 1.30%   1.30%      
Line of Credit | Revolving Credit Facility            
Debt Instrument [Line Items]            
Current borrowing capacity $ 500,000,000.0   $ 500,000,000.0      
Convertible Notes Payable            
Debt Instrument [Line Items]            
Interest expense debt 3,700,000 $ 4,300,000 7,400,000 $ 8,500,000    
Interest expense debt excluding amortization 2,500,000 1,500,000 5,000,000.0 3,000,000.0    
Amortization of debt discount and issuance costs $ 1,200,000 $ 2,800,000 $ 2,400,000 $ 5,500,000