XML 67 R52.htm IDEA: XBRL DOCUMENT v3.10.0.1
Debt (Details 1) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2018
Sep. 30, 2017
Sep. 30, 2018
Sep. 30, 2017
Debt Instrument [Line Items]        
Debt partial extinguishment $ 0 $ 0 $ 2,467 $ 0
Debt discount amortization     6,353 6,376
Debt financing amortization     727 695
Convertible Notes Payable        
Debt Instrument [Line Items]        
Interest expense 4,345 3,780 14,740 11,114
Convertible Note 2019 | Convertible Notes Payable        
Debt Instrument [Line Items]        
Interest expense 644 1,348 2,870 4,043
Debt partial extinguishment 0 0 2,467 0
Debt discount amortization 1,192 2,193 5,102 6,376
Debt financing amortization 130 239 576 695
Term Loan 2021 | Convertible Notes Payable        
Debt Instrument [Line Items]        
Interest expense 659 0 800 0
Debt discount amortization 22 0 36 0
Debt financing amortization 30 0 47 0
Convertible Note 2023 | Convertible Notes Payable        
Debt Instrument [Line Items]        
Interest expense 889 0 1,523 0
Debt discount amortization 717 0 1,215 0
Debt financing amortization $ 62 $ 0 $ 104 $ 0