XML 62 R52.htm IDEA: XBRL DOCUMENT v3.10.0.1
Debt - Schedule of Outstanding Debt (Details) - USD ($)
$ in Thousands
Jun. 30, 2018
Dec. 31, 2017
Debt Instrument [Line Items]    
Principal $ 258,781  
Total debt, net carrying value 190,646 $ 32,930
Less: current portion of debt 31 336
Total debt, less current portion 190,615 32,594
Notes Payable    
Debt Instrument [Line Items]    
Principal 0 333
Less: discount 0 (7)
Total debt, net carrying value 0 326
Convertible debt    
Debt Instrument [Line Items]    
Principal 190,615 0
Line of Credit    
Debt Instrument [Line Items]    
Principal 0 32,594
Interest accretion under 2016 line of credit $ 31 $ 10