STOCK BASED COMPENSATION - RSUs (Details) - USD ($)
$ / shares in Units, $ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Stock-based compensation    
Stock-based compensation expense $ 11,177 $ 8,026
Restricted Stock Units (RSUs)    
Stock-based compensation    
Stock-based compensation expense 1,900 $ 1,000
Unamortized stock-based compensation costs for unvested awards $ 7,200  
Summary of restricted stock units outstanding    
Outstanding at beginning of period ( in shares) 206,529  
Awarded (in shares) 348,536  
Released (in shares) (52,562)  
Forfeited (in shares) (33,018)  
Outstanding at end of period ( in shares) 469,485 206,529
Nonvested at end of period (in shares) 469,485  
Weighted-Average Grant Date Fair Value    
Outstanding at beginning of period (in dollars per share) $ 36.08  
Awarded (in dollars per share) 11.03  
Released (in dollars per share) 33.52  
Forfeited (in dollars per share) 32.07  
Outstanding at end of period (in dollars per share) $ 18.05 $ 36.08
Aggregate Intrinsic Value    
Outstanding at end of period (in dollars) $ 4,202 $ 4,546
Nonvested at end of period (in dollars) $ 4,202  
Unrecognized stock-based compensation balance for unvested options expected to be recognized (in years) 3 years 4 months 24 days