XML 45 R35.htm IDEA: XBRL DOCUMENT v3.7.0.1
Debt Convertible Notes (Details) - USD ($)
$ in Thousands
6 Months Ended 12 Months Ended
Jun. 30, 2017
Dec. 31, 2016
Dec. 31, 2014
Dec. 08, 2014
Debt Instrument [Line Items]        
Long-term debt $ 147,081 $ 144,340    
Convertible Debt [Member] | Senior 3 Point 25 Percent Convertible Notes Due 2020 [Member]        
Debt Instrument [Line Items]        
Principal amount of Convertible Senior Notes outstanding 167,314 167,314    
Unamortized discount of liability component (17,808) (20,221)    
Unamortized debt issuance costs     $ (4,200)  
Net carrying amount of liability component 147,081 144,340    
Less: current portion 0 0    
Long-term debt 147,081 144,340    
Carrying value of equity component, net of issuance costs 29,211 29,211   $ 30,700
Fair value of outstanding Convertible Senior Notes $ 186,353 $ 165,223    
Remaining amortization period of discount on the liability component 3 years 6 months 4 years 6 years  
Other Current Assets [Member] | Convertible Debt [Member] | Senior 3 Point 25 Percent Convertible Notes Due 2020 [Member]        
Debt Instrument [Line Items]        
Unamortized debt issuance costs $ (2,425) $ (2,753)