Quarterly report pursuant to Section 13 or 15(d)

Fair Value Measurements (Details)

v3.7.0.1
Fair Value Measurements (Details) - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2017
Dec. 31, 2016
Nov. 19, 2015
Dec. 15, 2014
Fair Value Measurements        
Convertible Debt, Noncurrent $ 155,729 $ 152,575    
Term Notes $ 65,350 100,409    
Liabilities        
Debt instrument covenant, prepayment term 90 days      
Debt instrument covenant, leverage ratio 2.00%      
Excess cash flow payment $ 31,862      
Non-current liabilities, other        
Assets        
Total Assets 4,776      
Fair Value | Recurring Basis        
Assets        
Total Assets 16,936 34,382    
Liabilities        
Total liabilities 6,823 7,753    
Fair Value | Recurring Basis | Contingent consideration        
Liabilities        
Total liabilities 2,612 4,868    
Fair Value | Recurring Basis | Deferred compensation liability        
Liabilities        
Total liabilities 4,211 2,885    
Fair Value | Recurring Basis | Money market funds        
Assets        
Total Assets 12,160 31,644    
Fair Value | Recurring Basis | Asset to fund deferred compensation liability        
Assets        
Total Assets 4,776 2,738    
Fair Value | Level 1 | Recurring Basis        
Assets        
Total Assets 12,160 31,644    
Liabilities        
Total liabilities 4,211 2,885    
Fair Value | Level 1 | Recurring Basis | Deferred compensation liability        
Liabilities        
Total liabilities 4,211 2,885    
Fair Value | Level 1 | Recurring Basis | Money market funds        
Assets        
Total Assets 12,160 31,644    
Fair Value | Level 3 | Recurring Basis        
Assets        
Total Assets 4,776 2,738    
Liabilities        
Total liabilities 2,612 4,868    
Fair Value | Level 3 | Recurring Basis | Contingent consideration        
Liabilities        
Total liabilities 2,612 4,868    
Fair Value | Level 3 | Recurring Basis | Asset to fund deferred compensation liability        
Assets        
Total Assets 4,776 2,738    
Convertible Notes        
Fair Value Measurements        
Face amount       $ 172,500
Convertible Debt, Noncurrent 155,729 152,575    
Liabilities        
Total liabilities 167,325 164,824    
Convertible Notes | Carrying Value        
Fair Value Measurements        
Convertible Debt, Noncurrent 155,729 152,575    
Term Notes        
Fair Value Measurements        
Face amount     $ 160,000  
Term Notes 104,046 138,335    
Liabilities        
Total liabilities 106,138 142,000    
Revolving credit facility        
Liabilities        
Total liabilities $ 0 $ 0