Quarterly report pursuant to Section 13 or 15(d)

NOTES PAYABLE (Details)

v3.21.2
NOTES PAYABLE (Details)
$ in Thousands
6 Months Ended 12 Months Ended
Jun. 30, 2021
USD ($)
Equity_Instrument
Dec. 31, 2020
USD ($)
Equity_Instrument
Feb. 21, 2020
Debt Instrument [Line Items]      
Interest rate     10.00%
Principal Outstanding $ 22,531 $ 15,294  
Unamortized Discount 5,114 1,720  
Carrying Amount $ 17,417 $ 13,574  
Shares Underlying Notes | Equity_Instrument 10,172,962 3,946,723  
2013 Notes payable [Member]      
Debt Instrument [Line Items]      
Interest rate 10.00% 10.00%  
Term of Notes Due on demand Due on demand  
Principal Outstanding $ 903 $ 969  
Carrying Amount $ 903 $ 969  
2019 Notes payable [Member]      
Debt Instrument [Line Items]      
Interest rate   11.00%  
Term of Notes   Due on demand  
Principal Outstanding   $ 2,899  
Carrying Amount   2,899  
2020 Notes payable [Member]      
Debt Instrument [Line Items]      
Interest rate 1.00%    
Term of Notes 2 years    
Principal Outstanding $ 798 942  
Carrying Amount $ 798 $ 942  
2020 Notes payable [Member] | Minimum [Member]      
Debt Instrument [Line Items]      
Interest rate   1.00%  
Term of Notes   Due on demand  
2020 Notes payable [Member] | Maximum [Member]      
Debt Instrument [Line Items]      
Interest rate   11.00%  
Term of Notes   2 years  
2021 Notes payable [Member]      
Debt Instrument [Line Items]      
Interest rate 11.00%    
Principal Outstanding $ 3,090    
Carrying Amount $ 3,090    
2021 Notes payable [Member] | Minimum [Member]      
Debt Instrument [Line Items]      
Term of Notes Due on demand    
2021 Notes payable [Member] | Maximum [Member]      
Debt Instrument [Line Items]      
Term of Notes 2 years    
Notes Payable [Member]      
Debt Instrument [Line Items]      
Principal Outstanding $ 4,791 $ 4,810  
Carrying Amount 4,791 4,810  
Principal Outstanding, Current 3,291 4,588  
Notes payable, current 3,291 4,588  
Principal Outstanding, Non Current 1,500 222  
Notes payable, non-current $ 1,500 $ 222  
2020 Notes payable - related parties [Member]      
Debt Instrument [Line Items]      
Interest rate 12.00% 12.00%  
Term of Notes Due on demand Due on demand  
Principal Outstanding $ 100 $ 100  
Carrying Amount 100 $ 100  
2016 Notes payable - related parties [Member]      
Debt Instrument [Line Items]      
Interest rate   10.00%  
Term of Notes   Due on demand  
Principal Outstanding   $ 20  
Carrying Amount   20  
Notes payable - related parties [Member]      
Debt Instrument [Line Items]      
Principal Outstanding 100 134  
Carrying Amount 100 134  
Principal Outstanding, Current 100 134  
Notes payable, current $ 100 $ 134  
2019 Notes payable - related parties [Member]      
Debt Instrument [Line Items]      
Interest rate   10.00%  
Term of Notes   Due on demand  
Principal Outstanding   $ 14  
Carrying Amount   $ 14