Quarterly report pursuant to Section 13 or 15(d)

Debt - Narrative (Details)

v3.19.1
Debt - Narrative (Details)
$ / shares in Units, shares in Millions
1 Months Ended 3 Months Ended
Jun. 30, 2020
USD ($)
Mar. 31, 2019
USD ($)
$ / shares
Jun. 30, 2018
USD ($)
Mar. 31, 2018
USD ($)
May 23, 2017
USD ($)
$ / shares
shares
Feb. 29, 2016
USD ($)
Mar. 31, 2019
USD ($)
$ / shares
day
Dec. 31, 2018
USD ($)
Dec. 31, 2017
USD ($)
May 31, 2017
USD ($)
Sep. 30, 2014
USD ($)
Line of Credit Facility [Line Items]                      
Carrying value   $ 300,957,000         $ 300,957,000        
Ratio of indebtedness   3.75         3.75        
Covenant, interest coverage ratio   3.00         3.00        
Convertible notes, net   $ 0         $ 0 $ 292,843,000      
Common stock warrants (in shares) | shares         8.2            
Purchases of convertible note hedges         $ 62,500,000            
Proceeds from issuance of warrants         $ 31,500,000            
Warrants strike price (in dollars per share) | $ / shares         $ 57.58            
Maximum                      
Line of Credit Facility [Line Items]                      
Common stock warrants (in shares) | shares         8.2            
Revolving Facility                      
Line of Credit Facility [Line Items]                      
Line of credit facility, additional borrowing capacity   150,000,000         150,000,000        
Revolving line of credit facility, available borrowing capacity   350,000,000         350,000,000 350,000,000      
Unamortized debt issuance costs   $ (1,200,000)         $ (1,200,000) (1,300,000)      
Revolving Facility | Maximum                      
Line of Credit Facility [Line Items]                      
Ratio of indebtedness   3.50         3.50        
Revolving Facility | LIBOR                      
Line of Credit Facility [Line Items]                      
Basis spread on interest rate             1.00%        
Revolving Facility | LIBOR | Minimum                      
Line of Credit Facility [Line Items]                      
Basis spread on interest rate             1.25%        
Revolving Facility | LIBOR | Maximum                      
Line of Credit Facility [Line Items]                      
Basis spread on interest rate             2.25%        
Revolving Facility | Federal Funds Rate                      
Line of Credit Facility [Line Items]                      
Basis spread on interest rate             0.50%        
Revolving Facility | Base Rate | Minimum                      
Line of Credit Facility [Line Items]                      
Basis spread on interest rate             0.25%        
Revolving Facility | Base Rate | Maximum                      
Line of Credit Facility [Line Items]                      
Basis spread on interest rate             1.25%        
Letters of credit                      
Line of Credit Facility [Line Items]                      
Line of credit facility, maximum borrowing capacity                     $ 350,000,000
Sub limit for issuance of letters of credit                     10,000,000
Swingline Loan                      
Line of Credit Facility [Line Items]                      
Sub limit for issuance of letters of credit                     $ 20,000,000
Convertible Senior Notes                      
Line of Credit Facility [Line Items]                      
Proceeds from borrowings on convertible notes         $ 304,200,000            
Delayed Draw Term Loan                      
Line of Credit Facility [Line Items]                      
Periodic payment     $ 1,500,000     $ 800,000          
Delayed Draw Term Loan | Line of Credit                      
Line of Credit Facility [Line Items]                      
Line of credit facility, maximum borrowing capacity           $ 125,000,000          
Delayed Draw Term Loan | Line of Credit | Base Rate                      
Line of Credit Facility [Line Items]                      
Ratio of indebtedness   5.0         5.0        
Delayed Draw Term Loan | Term Loan                      
Line of Credit Facility [Line Items]                      
Carrying value   $ 186,617,000         $ 186,617,000 189,033,000 $ 200,000,000    
Periodic principal payment     $ 2,500,000 $ 1,300,000              
Convertible Senior Notes Due November 2022 | Convertible Senior Notes                      
Line of Credit Facility [Line Items]                      
Principal amount   345,000,000     $ 345,000,000   $ 345,000,000 345,000,000      
Interest rate stated percentage         1.50%            
Conversion rate, convertible notes             0.02384        
Conversion price (in dollars per share) | $ / shares         $ 41.95            
Long-term debt fair value   154,100,000                  
Threshold trading days | day             20        
Threshold consecutive trading days | day             30        
Measurement period threshold trading days | day             5        
Measurement period threshold consecutive trading days | day             5        
Redemption price (percentage)             100.00%        
Convertible notes, net   295,862,000         $ 295,862,000 292,843,000   $ 282,500,000  
Carrying amount of convertible debt equity component   $ 61,390,000         $ 61,390,000 61,390,000   62,500,000  
Debt issuance costs                   $ 9,800,000  
Effective interest rate of the liability component   5.87%   5.87%     5.87%        
Convertible Senior Notes Due November 2022 | Convertible Senior Notes | Minimum                      
Line of Credit Facility [Line Items]                      
Threshold percentage of stock price trigger             130.00%        
Ratio of trading price per $1000 principle amount             98.00%        
Percentage of debt held by individual owner             25.00%        
Over-Allotment Option | Convertible Senior Notes                      
Line of Credit Facility [Line Items]                      
Principal amount         $ 45,000,000            
Scenario, Forecast | Delayed Draw Term Loan                      
Line of Credit Facility [Line Items]                      
Periodic payment $ 3,100,000                    
Scenario, Forecast | Delayed Draw Term Loan | Term Loan                      
Line of Credit Facility [Line Items]                      
Periodic principal payment $ 5,000,000                    
Share Price | Convertible Senior Notes Due November 2022 | Convertible Senior Notes                      
Line of Credit Facility [Line Items]                      
Debt instrument measurement input | $ / shares   60.69         60.69        
Non recurring | Carrying Value                      
Line of Credit Facility [Line Items]                      
Convertible debt fair value   $ 295,900,000         $ 295,900,000        
Level 2 | Term Loan                      
Line of Credit Facility [Line Items]                      
Long-term debt fair value   294,300,000         294,300,000 298,900,000      
Level 2 | Convertible Senior Notes                      
Line of Credit Facility [Line Items]                      
Convertible debt fair value   $ 532,600,000         $ 532,600,000 $ 441,400,000