XML 59 R48.htm IDEA: XBRL DOCUMENT v3.10.0.1
Debt - Additional Information (Details) - USD ($)
1 Months Ended
Jun. 30, 2017
Sep. 30, 2018
Jul. 18, 2018
Jun. 30, 2018
Mar. 31, 2018
Dec. 31, 2017
Oct. 31, 2017
Debt Instrument [Line Items]              
Outstanding debt   $ 0       $ 0  
Letters of credit outstanding   $ 23,000,000       1,500,000  
Warrants outstanding   0          
Second Amendment To Restated 2014 Loan and Security Agreement              
Debt Instrument [Line Items]              
Minimum current ratio required under financial covenant 1.25%            
Line of credit, termination date Jun. 30, 2019            
Letters of credit outstanding   $ 23,000,000       $ 1,500,000  
Interest rate on line of credit   5.01%       4.31%  
Second Amendment To Restated 2014 Loan and Security Agreement | LIBOR              
Debt Instrument [Line Items]              
Basis spread on variable rate 2.75%            
Second Amendment To Restated 2014 Loan and Security Agreement | Prime Rate              
Debt Instrument [Line Items]              
Basis spread on variable rate 1.00%            
2017 Subordinated Loan Agreement | Term Loan              
Debt Instrument [Line Items]              
Subordinated loan agreement maximum borrowing capacity $ 40,000,000            
Subordinated loan agreement minimum borrowing capacity $ 25,000,000            
Duration of remaining amount available 24 months            
Facility fee, percentage 1.00%            
LIBOR Floor rate 1.00%            
Payment in kind interest fees, percent 2.50%            
Warrants outstanding   0          
Warrants cancelled             100,000
Warrants exercised         200,000 100,000  
2017 Subordinated Loan Agreement | Term Loan | Series H Convertible Preferred Stock Warrants              
Debt Instrument [Line Items]              
Warrants outstanding 400,000            
Warrants, exercise price $ 9.17340            
Warrants, exercisable period 10 years            
2017 Subordinated Loan Agreement | Term Loan | Minimum              
Debt Instrument [Line Items]              
Remaining amount to be drawn as installment $ 5,000,000            
Line of credit facility final payment fees, percent 1.00%            
2017 Subordinated Loan Agreement | Term Loan | Maximum              
Debt Instrument [Line Items]              
Line of credit facility final payment fees, percent 4.00%            
2017 Subordinated Loan Agreement | LIBOR | Term Loan              
Debt Instrument [Line Items]              
Basis spread on variable rate 6.50%            
2017 Subordinated Loan Agreement | Prime Rate | Term Loan              
Debt Instrument [Line Items]              
Basis spread on variable rate 3.50%            
Silicon Valley Bank | Restated 2014 LSA              
Debt Instrument [Line Items]              
Maximum borrowing capacity   $ 5,000,000          
Silicon Valley Bank | Third Amendment To Restated 2014 Loan and Security Agreement              
Debt Instrument [Line Items]              
Maximum borrowing capacity       $ 5,000,000      
Maximum borrowing capacity     $ 30,000,000        
Revolving Credit Facility | Second Amendment To Restated 2014 Loan and Security Agreement              
Debt Instrument [Line Items]              
Line of credit outstanding   0       $ 0  
Revolving Credit Facility | Silicon Valley Bank | Restated 2014 LSA              
Debt Instrument [Line Items]              
Maximum borrowing capacity   $ 30,000,000