Quarterly report pursuant to Section 13 or 15(d)

Debt - Convertible Notes (Details)

v3.10.0.1
Debt - Convertible Notes (Details)
3 Months Ended 12 Months Ended
Sep. 28, 2016
USD ($)
$ / shares
shares
Jun. 30, 2018
USD ($)
day
trading_day
shares
Jun. 30, 2017
USD ($)
Mar. 31, 2018
USD ($)
$ / shares
shares
Sep. 20, 2017
$ / shares
Dec. 31, 2016
USD ($)
Debt Instrument [Line Items]            
Notes exchange cap   19.99%        
Repayments of debt $ 11,000,000          
Debt issuance costs and discount   $ 1,709,000   $ 1,827,000    
Convertible notes, net of debt issuance costs and discounts of $1,709 and $1,827, respectively   3,991,000   3,873,000    
Amortization of debt discount and debt issuance costs   161,000 $ 353,000      
Convertible note embedded derivative liability            
Debt Instrument [Line Items]            
Derivative liability   3,056,000   4,676,000    
Warrant liability            
Debt Instrument [Line Items]            
Derivative liability   2,410,000   $ 3,980,000    
Convertible notes            
Debt Instrument [Line Items]            
Debt face amount $ 16,000,000 $ 5,700,000        
Interest rate 8.75%          
Gross amount $ 11,084,000          
Original discount 4,916,000          
Issuance costs $ 1,700,000         $ 212,000
Purchase price of principal 92.75%          
Warrants issued (shares) | shares 250,000 4,105,600        
Right to receive cash   2.50%        
Convertible debt conversion price (in dollars per share) | $ / shares $ 1.364     $ 1.364 $ 1.364  
Redemption price   $ 1,000        
Redemption price as of principal if fundamental change   120.00%        
Common equity threshold   50.00%        
Warrant to purchase (in shares) | shares   256.60        
Warrant exercise price (in dollars per share) | $ / shares $ 1.364          
Proceeds from debt $ 14,316,000          
Notes converted       $ 10,300,000    
Write off of debt discount       2,591,000    
Write off of deferred debt issuance cost       1,019,000    
Extinguishment of debt       $ 6,690,000    
Conversion of stock, shares issued | shares       8,624,445    
Repayments of debt       $ 247,000    
Adjustments to additional paid in capital       14,238,000    
Loss on extinguishment of debt       $ 1,785,000    
Debt issuance costs and discount   $ 1,709,000        
Convertible notes, net of debt issuance costs and discounts of $1,709 and $1,827, respectively   3,991,000        
Amortization of debt discount and debt issuance costs   $ 161,000 $ 353,000      
Convertible notes | Conversion period one            
Debt Instrument [Line Items]            
Stock price threshold   200.00%        
Number of trading days threshold | trading_day   20        
Consecutive trading day period | day   30        
Trading day threshold after notice given   5 days        
Convertible notes | Conversion period two            
Debt Instrument [Line Items]            
Stock price threshold   150.00%        
Consecutive trading day period | day   15        
Convertible notes | Convertible note embedded derivative liability            
Debt Instrument [Line Items]            
Derivative liability 3,693,000          
Convertible notes | Warrant liability            
Debt Instrument [Line Items]            
Derivative liability $ 1,223,000