XML 61 R47.htm IDEA: XBRL DOCUMENT v3.10.0.1
Debt (Details 1) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2018
Jun. 30, 2017
Jun. 30, 2018
Jun. 30, 2017
Debt Instrument [Line Items]        
Debt partial extinguishment $ 10,069 $ 0 $ 10,069 $ 0
Debt discount amortization     4,425 4,183
Debt financing amortization     502 456
Convertible Notes Payable        
Debt Instrument [Line Items]        
Interest expense 14,055 3,705 17,997 7,334
Convertible Note 2019 | Convertible Notes Payable        
Debt Instrument [Line Items]        
Interest expense 878 1,347 2,226 2,695
Debt partial extinguishment 10,069 0 10,069 0
Debt discount amortization 1,571 2,126 3,910 4,183
Debt financing amortization 191 232 446 456
Term Loan 2021 | Convertible Notes Payable        
Debt Instrument [Line Items]        
Interest expense 141 0 141 0
Debt discount amortization 17 0 17 0
Debt financing amortization 14 0 14  
Convertible Note 2023 | Convertible Notes Payable        
Debt Instrument [Line Items]        
Interest expense 634 0 634 0
Debt discount amortization 498 0 498 $ 0
Debt financing amortization $ 42 $ 0 $ 42