XML 78 R64.htm IDEA: XBRL DOCUMENT v3.8.0.1
DEBT - Long-term debt (Details) - USD ($)
$ in Thousands
Dec. 31, 2017
Dec. 31, 2016
Debt Instrument [Line Items]    
Carrying amount of debt $ 49,751 $ 23,800
Long-term debt 32,322 20,768
Secured Debt | Term Loan Agreement, July 2016    
Debt Instrument [Line Items]    
Long-term debt gross 50,000 25,000
Less unamortized discount and issuance costs (2,111) (1,200)
Carrying amount of debt 47,889 23,800
Less current portion (15,715) (3,032)
Financing Receivable | Financing Receivable Recorded As Debt    
Debt Instrument [Line Items]    
Long-term debt gross 2,562 0
Less value of future purchase option (700) 0
Carrying amount of debt 1,862 0
Less current portion $ (1,714) $ 0