Quarterly report pursuant to Section 13 or 15(d)

Basis of presentation, principles of consolidation and significant accounting policies - Fair Value Measurement (Details)

v3.10.0.1
Basis of presentation, principles of consolidation and significant accounting policies - Fair Value Measurement (Details) - Fair Value, Inputs, Level 3 - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2018
Jun. 30, 2018
Warrant Liability Current    
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward]    
Balance, beginning of period $ 463 $ 503
Exercise of warrants 0 (13)
Issuances of warrants 0 0
Change in fair value - net (12) (39)
Balance, end of period 451 451
Warrant Liability Long-Term    
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward]    
Balance, beginning of period 2,410 0
Exercise of warrants 0 0
Issuances of warrants 1,111 4,203
Change in fair value - net (319) (1,001)
Balance, end of period 3,202 3,202
Warrant Liabilty    
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward]    
Balance, beginning of period 2,873 503
Exercise of warrants 0 (13)
Issuances of warrants 1,111 4,203
Change in fair value - net (331) (1,040)
Balance, end of period $ 3,653 $ 3,653