XML 48 R32.htm IDEA: XBRL DOCUMENT v3.8.0.1
DEBT (Details)
Mar. 08, 2016
USD ($)
installment
Sep. 30, 2017
USD ($)
May 09, 2017
USD ($)
Dec. 31, 2016
USD ($)
Sep. 09, 2016
USD ($)
Debt Instrument [Line Items]          
Current portion of term loan credit agreement, deferred costs   $ 110,000   $ 0  
Silicon Valley Bank          
Debt Instrument [Line Items]          
Weighted average interest rate   7.80%      
Silicon Valley Bank | Revolving Credit Facility | December 31, 2017          
Debt Instrument [Line Items]          
Minimum revenue covenant     $ 51,700,000    
Silicon Valley Bank | Debt Financing Agreement          
Debt Instrument [Line Items]          
Debt instrument, face amount $ 15,000,000.0        
Maximum borrowing capacity (up to)         $ 20,000,000
Silicon Valley Bank | Debt Financing Agreement | Revolving Credit Facility | Line of Credit          
Debt Instrument [Line Items]          
Line of credit facility, maximum borrowing capacity $ 10,000,000.0        
Line of credit, current   $ 2,500,000      
Current portion of term loan credit agreement, deferred costs   300,000      
Remaining borrowing capacity   3,300,000.0      
Silicon Valley Bank | Term Loan          
Debt Instrument [Line Items]          
Short-term bank loans and notes payable   $ 7,800,000      
Silicon Valley Bank | Term Loan | Prime Rate          
Debt Instrument [Line Items]          
Basis spread on variable rate 5.00%        
Number of installments | installment 36        
Silicon Valley Bank | Term Loan | Prime Rate | Minimum          
Debt Instrument [Line Items]          
Basis spread on variable rate 1.25%        
Silicon Valley Bank | Term Loan | Debt Instrument, Redemption, Period One          
Debt Instrument [Line Items]          
Debt instrument, face amount $ 4,000,000.0        
Silicon Valley Bank | Term Loan | Debt Instrument, Redemption, Period Two          
Debt Instrument [Line Items]          
Debt instrument, face amount 4,000,000.0        
Silicon Valley Bank | Term Loan | Debt Instrument, Redemption, Period Three          
Debt Instrument [Line Items]          
Debt instrument, face amount $ 2,000,000.0