XML 45 R35.htm IDEA: XBRL DOCUMENT v3.7.0.1
Debt - Convertible Subordinated Notes (Details)
$ / shares in Units, $ in Thousands
6 Months Ended 12 Months Ended
Jan. 31, 2013
USD ($)
item
Jun. 30, 2017
USD ($)
$ / shares
$ / item
Dec. 31, 2014
USD ($)
Dec. 31, 2016
USD ($)
Debt        
Principal balance   $ 663,742   $ 728,173
Convertible subordinated notes due 2023        
Debt        
Loan amount $ 287,500      
Proceeds from issuance of notes payable, net of debt issuance costs 281,200      
Principal balance   $ 240,984   240,984
Partial conversion     $ 32,400  
Repurchase amount       $ 14,100
Convertible subordinated notes due 2023 | Privately-negotiated capped call option        
Debt        
Payments for capped call options $ 36,800      
Number of derivative instruments purchased | item 2      
Interest rate (as a percent) 2.125%      
Strike price for the underlying number of shares (in dollars per share) | $ / shares   $ 19.77    
Cap price for the underlying number of shares (in dollars per share) | $ / item   27.04