XML 77 R59.htm IDEA: XBRL DOCUMENT v3.8.0.1
Debt - Components (Details) - USD ($)
$ in Thousands
Dec. 31, 2017
Dec. 31, 2016
Debt Instrument [Line Items]    
Net carrying amount $ 153,463  
Convertible Debt    
Debt Instrument [Line Items]    
Principal 105,125 $ 120,000
Less: unamortized debt discount and debt issuance costs (20,352) (29,092)
Net carrying amount 84,773 90,908
Equity component 41,905 $ 38,305
Term Loan [Member] | Secured Debt [Member]    
Debt Instrument [Line Items]    
Principal 48,000  
Less: unamortized debt discount and debt issuance costs (3,945)  
Net carrying amount $ 44,055