Quarterly report pursuant to Section 13 or 15(d)

DEBT (Details)

v3.22.2.2
DEBT (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2022
Sep. 30, 2021
Sep. 30, 2022
Sep. 30, 2021
May 31, 2022
Dec. 31, 2021
May 31, 2020
Debt Instrument [Line Items]              
Unamortized issuance costs and debt discounts           $ 100  
Interest expense $ 826 $ 1,317 $ 2,600 $ 3,561      
Credit Facility with MidCap              
Debt Instrument [Line Items]              
Maximum borrowing capacity 60,000   60,000        
Remaining borrowing capacity 20,000   20,000        
Outstanding balance 40,000   40,000        
Debt issuance costs being amortized ratably 400   400        
Unamortized issuance costs and debt discounts 500   500        
Interest expense $ 800 $ 400 1,900 $ 1,200      
Accrued interest     $ 700        
Credit Facility with MidCap | Prior to Third Amendment              
Debt Instrument [Line Items]              
Final payment fee, percentage of principal     2.50%        
Credit Facility with MidCap | Following Third Amendment              
Debt Instrument [Line Items]              
Final payment fee, percentage of principal     2.50%        
Credit Facility with MidCap | LIBOR | Prior to Third Amendment              
Debt Instrument [Line Items]              
Basis spread on variable rate     5.65%        
Floor rate 1.50%   1.50%        
Credit Facility with MidCap | SOFR | Following Third Amendment              
Debt Instrument [Line Items]              
Rate adjustment     0.11448%        
Basis spread on variable rate     5.65%        
Floor rate 1.50%   1.50%        
Credit Facility with MidCap | Tranche 1              
Debt Instrument [Line Items]              
Outstanding balance $ 10,000   $ 10,000        
Credit Facility with MidCap | Tranche 2              
Debt Instrument [Line Items]              
Outstanding balance             $ 10,000
Credit Facility with MidCap | Tranche 3              
Debt Instrument [Line Items]              
Outstanding balance         $ 10,000    
Credit Facility with MidCap | Tranche 4              
Debt Instrument [Line Items]              
Outstanding balance         $ 10,000    
Credit Facility with MidCap | Initial interest-only payment period | Prior to Third Amendment              
Debt Instrument [Line Items]              
Interest-only payments period     24 months        
Credit Facility with MidCap | First conditional interest-only payment period | Prior to Third Amendment              
Debt Instrument [Line Items]              
Interest-only payments period     36 months        
Credit Facility with MidCap | Second conditional interest-only payment period | Prior to Third Amendment              
Debt Instrument [Line Items]              
Interest-only payments period     48 months