Quarterly report pursuant to Section 13 or 15(d)

Debt - Convertible Notes (Details)

v3.8.0.1
Debt - Convertible Notes (Details)
1 Months Ended 3 Months Ended 9 Months Ended
Sep. 28, 2016
USD ($)
$ / shares
shares
Dec. 31, 2017
USD ($)
$ / shares
shares
Sep. 30, 2017
USD ($)
$ / shares
shares
Dec. 31, 2017
USD ($)
$ / shares
shares
Dec. 31, 2016
USD ($)
Dec. 31, 2017
USD ($)
day
trading_day
$ / shares
shares
Dec. 31, 2016
USD ($)
Sep. 20, 2017
$ / shares
Mar. 31, 2017
USD ($)
Debt Instrument [Line Items]                  
Notes exchange cap   19.99%   19.99%   19.99%      
Repayments of debt $ 11,000,000                
Extinguishment of debt   $ 1,368,000 $ 6,000,000 $ 1,368,000   $ 7,368,000      
Repayments of debt           847,000 $ 11,000,000    
Loss on extinguishment of debt       284,000 $ 0 1,166,000 293,000    
Convertible notes, net of debt issuance costs and discounts of $2,881 and $6,315, respectively   5,751,000   5,751,000   5,751,000     $ 9,685,000
Amortization of debt discount and debt issuance costs           875,000 969,000    
Convertible notes                  
Debt Instrument [Line Items]                  
Debt face amount $ 16,000,000 $ 8,632,000   $ 8,632,000   $ 8,632,000      
Interest rate 8.75%                
Gross amount $ 11,084,000                
Original discount 4,916,000                
Issuance costs $ 1,700,000       212,000   212,000    
Purchase price of principal 92.75%                
Warrants issued (shares) | shares 250,000 4,105,600   4,105,600   4,105,600      
Right to receive cash           2.50%      
Convertible debt conversion price (in dollars per share) | $ / shares $ 1.364 $ 1.364 $ 1.364 $ 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   256.60   256.60      
Warrant exercise price (in dollars per share) | $ / shares $ 1.364                
Proceeds from debt $ 14,316,000                
Notes converted   $ 1,368,000 $ 6,000,000            
Write off of debt discount   328,000 1,579,000            
Write off of deferred debt issuance cost   129,000 621,000            
Extinguishment of debt   $ 911,000 $ 3,800,000            
Conversion of stock, shares issued | shares   1,149,424 5,043,018            
Repayments of debt     $ 247,000            
Adjustments to additional paid in capital   $ 2,074,000 7,187,000            
Loss on extinguishment of debt     $ 882,000 $ (284,000)          
Debt issuance costs and discount   2,881,000   2,881,000   $ 2,881,000     6,315,000
Convertible notes, net of debt issuance costs and discounts of $2,881 and $6,315, respectively   $ 5,751,000   5,751,000   5,751,000     $ 9,685,000
Amortization of debt discount and debt issuance costs       $ 195,000 $ 288,000 $ 875,000 $ 969,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