Quarterly report pursuant to Section 13 or 15(d)

Debt - Narrative (Details)

v3.10.0.1
Debt - Narrative (Details)
1 Months Ended 3 Months Ended 6 Months Ended
Jun. 30, 2020
USD ($)
Jun. 30, 2018
USD ($)
$ / shares
shares
Dec. 31, 2017
USD ($)
May 23, 2017
USD ($)
$ / shares
shares
Feb. 29, 2016
USD ($)
Jun. 30, 2018
USD ($)
$ / shares
consecutivetradingdays
tradingdays
shares
Jun. 30, 2018
USD ($)
$ / shares
consecutivetradingdays
tradingdays
increase
shares
Jun. 30, 2017
USD ($)
Mar. 12, 2018
USD ($)
Dec. 05, 2017
USD ($)
May 31, 2017
USD ($)
Sep. 30, 2014
USD ($)
Line of Credit Facility [Line Items]                        
Carrying value   $ 313,057,000       $ 313,057,000 $ 313,057,000          
Ratio of indebtedness   3.75       3.75 3.75          
Covenant, interest coverage ratio   3.00       3.00 3.00          
Revolving line of credit facility, available borrowing capacity   $ 350,000,000       $ 350,000,000 $ 350,000,000          
Proceeds from borrowings on convertible notes             0 $ 345,000,000        
Convertible notes, net   $ 0 $ 281,199,000     $ 0 0          
Common stock warrants (in shares) | shares       8,200,000                
Purchases of convertible note hedges       $ 62,500,000                
Proceeds from issuance of warrants       $ 31,500,000     $ 0 $ 31,499,000        
Warrants strike price (in dollars per share) | $ / shares       $ 57.58                
Number of warrants exercised (in shares) | shares   0       0 0          
Maximum                        
Line of Credit Facility [Line Items]                        
Common stock warrants (in shares) | shares       8,200,000                
Revolving Facility                        
Line of Credit Facility [Line Items]                        
Line of credit facility, maximum borrowing capacity   $ 350,000,000       $ 350,000,000 $ 350,000,000          
Line of credit facility, additional borrowing capacity   150,000,000       150,000,000 150,000,000   $ 150,000,000      
Debt issuance costs                 $ 1,100,000      
Revolving line of credit outstanding borrowings   50,000,000 0     50,000,000 50,000,000          
Revolving line of credit facility, available borrowing capacity   350,000,000       350,000,000 350,000,000          
Unamortized debt issuance costs   $ (1,500,000) (600,000)     $ (1,500,000) $ (1,500,000)          
Revolving Facility | Maximum                        
Line of Credit Facility [Line Items]                        
Ratio of indebtedness   3.5       3.5 3.5          
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
Line of Credit | Revolving Facility                        
Line of Credit Facility [Line Items]                        
Revolving line of credit outstanding borrowings     0                  
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              
Revolving line of credit facility, available borrowing capacity   $ 0       $ 0 $ 0          
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 5.0          
Delayed Draw Term Loan | Term Loan                        
Line of Credit Facility [Line Items]                        
Carrying value   $ 193,821,000 197,439,000     $ 193,821,000 $ 193,821,000     $ 200,000,000    
Periodic principal payment   $ 2,500,000 1,300,000                  
Seventh Amendment                        
Line of Credit Facility [Line Items]                        
Ratio of indebtedness   4.25       4.25 4.25          
Seventh Amendment | Line of Credit | Base Rate                        
Line of Credit Facility [Line Items]                        
Ratio of indebtedness   5.50       5.50 5.50          
Debt covenant consolidated net leverage ratio number of times allowable increase allowed over consecutive 24 month period | increase             1          
Debt covenant measurement period             24 months          
Debt covenant allowable duration of net coverage ratio increase             9 months          
Seventh Amendment | Convertible Debt                        
Line of Credit Facility [Line Items]                        
Principal amount   $ 150,000,000       $ 150,000,000 $ 150,000,000          
Debt covenant measurement period             24 months          
Debt covenant, acquisition floor for one time leverage extension   150,000,000       150,000,000 $ 150,000,000          
Debt covenant consolidated senior secured net leverage ratio number of times allowable increase allowed over consecutive 24 month period | increase             1          
Convertible Senior Notes Due November 2022 | Convertible Senior Notes                        
Line of Credit Facility [Line Items]                        
Debt issuance costs                     $ 9,800,000  
Principal amount   $ 345,000,000 345,000,000 $ 345,000,000   $ 345,000,000 $ 345,000,000          
Interest rate stated percentage       1.50%                
Effective interest rate of the liability component   5.87%       5.87% 5.87% 5.87%        
Conversion rate, convertible notes             0.02384          
Conversion price (in dollars per share) | $ / shares       $ 41.95                
Long-term debt fair value   $ 108,200,000                    
Threshold trading days | tradingdays           20 20          
Threshold consecutive trading days | consecutivetradingdays           30 30          
Measurement period threshold trading days | tradingdays             5          
Measurement period threshold consecutive trading days | consecutivetradingdays             5          
Redemption price (percentage)             100.00%          
Convertible notes, net   286,908,000 281,199,000     $ 286,908,000 $ 286,908,000       282,500,000  
Carrying amount of convertible debt equity component   $ 61,390,000 $ 61,390,000     $ 61,390,000 $ 61,390,000       $ 62,500,000  
Convertible Senior Notes Due November 2022 | Convertible Senior Notes | Minimum                        
Line of Credit Facility [Line Items]                        
Threshold percentage of stock price trigger           130.00% 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   55.10       55.10 55.10