XML 73 R59.htm IDEA: XBRL DOCUMENT v3.10.0.1
Debt (Details 1) - USD ($)
$ in Thousands
1 Months Ended 3 Months Ended 6 Months Ended
Apr. 30, 2018
Jun. 30, 2018
Jun. 30, 2017
Jun. 30, 2018
Jun. 30, 2017
Debt Instrument [Line Items]          
Debt partial extinguishment   $ 2,467 $ 0 $ 2,467 $ 0
Debt discount amortization       4,422 4,183
Debt financing amortization       505 456
Convertible Notes Payable          
Debt Instrument [Line Items]          
Interest expense   6,453 3,705 10,395 7,334
Convertible Note 2019          
Debt Instrument [Line Items]          
Debt partial extinguishment $ 75,100        
Convertible Note 2019 | Convertible Notes Payable          
Debt Instrument [Line Items]          
Interest expense   878 1,347 2,226 2,695
Debt partial extinguishment   2,467 0 2,467 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   14 0 14 0
Debt financing amortization   17 0 17 0
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 $ 0