INTEREST EXPENSE (Details) $ in Thousands  | 
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
| 
 Jun. 30, 2022  
USD ($) 
 | 
 Jun. 30, 2021  
USD ($) 
 | 
 Jun. 30, 2022  
USD ($) 
 | 
 Jun. 30, 2021  
USD ($) 
 | 
|
| INTEREST EXPENSE | ||||
| Interest payments for EWB term loan | $ 216 | $ 377 | ||
| Imputed interest on acquired intangible assets | 151 | $ 220 | 299 | $ 441 | 
| Amortization/Accretion | 87 | 167 | ||
| Fees on convertible preferred shares | 270 | 270 | ||
| Conversion premium | 584 | 584 | ||
| Interest payable on convertible preferred shares | 263 | 263 | ||
| EWB Fees | 5 | 5 | ||
| Total interest and fees | $ 454 | $ 1,342 | $ 843 | $ 1,563 | 
| Discount Rate At Which Preferred Stock is Converted | 15 | |||
| X | ||||||||||
- Definition The amount of conversion premium incurred during the period. Included as component of interest expense. No definition available. 
  | 
| X | ||||||||||
- Definition Represents discount rate at which preferred stock is converted. No definition available. 
  | 
| X | ||||||||||
- Definition The amount of fees on convertible preferred shares incurred during the period. Included as component of interest expense. No definition available. 
  | 
| X | ||||||||||
- Definition The amount of imputed interest on acquired intangible assets incurred during the period. Included as component of interest expense. No definition available. 
  | 
| X | ||||||||||
- Definition The amount of interest expense and financing fee incurred during the reporting period No definition available. 
  | 
| X | ||||||||||
- Definition The amount of interest payable on convertible preferred shares. Included as component of interest expense. No definition available. 
  | 
| X | ||||||||||
- Definition Amount of amortization expense attributable to debt issuance costs. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef 
  | 
| X | ||||||||||
- Definition Represents the charge against earnings during the period for commitment fees and debt issuance expenses. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
  | 
| X | ||||||||||
- References No definition available. 
  | 
| X | ||||||||||
- Definition Amount of the cost of borrowed funds accounted for as interest expense for debt. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
  |