Share-based compensation (Details Narrative) $ / shares in Units, $ in Thousands | | | | | | | 1 Months Ended | 3 Months Ended | 6 Months Ended | 12 Months Ended | | | |
Feb. 10, 2022 shares | Jan. 05, 2022 USD ($) $ / shares shares | Jul. 16, 2021 USD ($) $ / shares shares | Jan. 27, 2021 USD ($) $ / shares shares | Jan. 20, 2021 USD ($) $ / shares shares | Aug. 28, 2020 $ / shares shares | Dec. 31, 2016 | Jun. 30, 2022 USD ($) $ / shares shares | Mar. 31, 2022 USD ($) shares | Jun. 30, 2021 USD ($) shares | Mar. 31, 2021 USD ($) shares | Jun. 30, 2022 USD ($) $ / shares shares | Jun. 30, 2021 USD ($) shares | Dec. 31, 2021 $ / shares shares | Jan. 02, 2022 shares | Jan. 22, 2021 shares | Feb. 29, 2020 $ / shares shares |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Share based compensation options, grants | shares | | | | | | | | | | | | 98,747 | | | | | |
Share based compnesation plan modification, incremental cost | | | | | | | | | | | | $ 26 | | | | | |
General and administrative expense | | | | | | | | $ 2,075 | | $ 2,345 | | $ 4,189 | $ 4,789 | | | | |
Common stock par value | $ / shares | | | | | | | | $ 0.0001 | | | | $ 0.0001 | | $ 0.0001 | | | |
Proceeds from warrant exercises | | | | $ 11,000 | | | | | | | | | 11,959 | | | | |
Number of warrants were exercisable | shares | | | | | | | | | | | | 394,577 | | | | | |
Share based compensation arrangement by share based payment award non options outstanding | $ / shares | | | | | | | | 50.87 | | | | $ 50.87 | | | | | |
Grant date fair value | $ / shares | | | | | | | | $ 5 | | | | $ 8.80 | | | | | |
Stock based compensation for stock options | | | | | | | | $ 461 | | 1,010 | | $ 982 | 1,929 | | | | |
Stock option weighted average | | | | | | | | | | | | 7 years 6 months 29 days | | | | | |
Unamortization stock compensation | | | | | | | | | | | | | | | | | |
Restricted Stock Units (RSUs) [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Vested and unissued restricted stock units | shares | | | | | | | | | | | | | | 3,140 | | | |
Unamortization stock compensation | | | | | | | | | | | | $ 575 | | | | | |
Share based payment award equity instruments other than options outstanding weighted average remaining contractual terms | | | | | | | | | | | | 10 months 13 days | | | | | |
Equity Option [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Stock based compensation for stock options | | | | | | | | | | | | $ 1,524 | | | | | |
Stock option weighted average | | | | | | | | | | | | 1 year 3 days | | | | | |
Number of outstanding options to purchase of common stock | shares | | | | | | | | 271,808 | | | | 271,808 | | | | | |
Weighted-average exercise price per share | $ / shares | | | | | | | | $ 56.16 | | | | $ 56.16 | | | | | |
Share-based compensation of stock option | | | | | | | | $ 302 | | $ 680 | | $ 586 | 1,349 | | | | |
2016 Equity Incentive Plan [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Common stock, capital shares reserved for future issuance | shares | | | | | | | | | | | | | | | 86,433 | | |
Number of common stock authorized for issuance | shares | | | | | | | | | | | | | | | 524,783 | | |
Common stock available for future grant, shares | shares | | | | | | | | 13,401 | | | | 13,401 | | | | | |
Warrant [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Fair value adjustment of warrants | | | | | $ 355 | | | | | | | | | | | | |
Share based compensation arrangement by share based payment award non options outstanding | $ / shares | | | | | | | | $ 50.87 | | | | $ 50.87 | | $ 54.76 | | | |
Warrant [Member] | Measurement Input, Risk Free Interest Rate [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | 0.19 | | | | | | | | | | | | |
Warrant [Member] | Measurement Input, Expected Term [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Warrants term | | | | | 3 years | | | | | | | | | | | | |
Warrant [Member] | Measurement Input, Price Volatility [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | 100.99 | | | | | | | | | | | | |
Warrant [Member] | Measurement Input, Expected Dividend Rate [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | 0 | | | | | | | | | | | | |
Private Placement Warrants [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Fair value of warrants outstanding | shares | | | | 400,000 | | | | | | | | | | | | | |
Warrant exercise | shares | | | | | | | | | | | | | | | | 36,681 | |
Warrant exercisable remaining | shares | | | | 400,000 | | | | | | | | | | | | | |
Cash fees | | | | | | | | | | | | | 300 | | | | |
New Warrants [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Warrants exercise price | $ / shares | | | | $ 42.40 | | | | | | | | | | | | | |
Warrants term | | | | 5 years | | | | | | | | | | | | | |
Warrant exercisable remaining | shares | | | | 300,000 | | | | | | | | | | | | | |
Share price | $ / shares | | | | $ 0.75 | | | | | | | | | | | | | |
Cash paid payment per share | $ / shares | | | | $ 2 | | | | | | | | | | | | | |
Warrants were issued | | | | $ 600,000 | | | | | | | | | | | | | |
Deemed dividend | | | | | | | | | | | | | 6,145 | | | | |
Cash fees | | | | | | | | | | | | | 200 | | | | |
New Warrants [Member] | Four Tranches [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Fair value adjustment of warrants | | | | | | | | | | | | | $ 6,745 | | | | |
Fair value of warrants outstanding | shares | | | | | | | | | | 300,000 | | | 300,000 | | | | |
New Warrants [Member] | Measurement Input, Risk Free Interest Rate [Member] | Maximum [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | 0.57 | | | | | | | | | | | | | |
New Warrants [Member] | Measurement Input, Risk Free Interest Rate [Member] | Minimum [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | 0.41 | | | | | | | | | | | | | |
New Warrants [Member] | Measurement Input, Expected Term [Member] | Maximum [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Warrants term | | | | 5 years | | | | | | | | | | | | | |
New Warrants [Member] | Measurement Input, Expected Term [Member] | Minimum [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Warrants term | | | | 4 years 11 months 12 days | | | | | | | | | | | | | |
New Warrants [Member] | Measurement Input, Price Volatility [Member] | Maximum [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | 103.23 | | | | | | | | | | | | | |
New Warrants [Member] | Measurement Input, Price Volatility [Member] | Minimum [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | 103 | | | | | | | | | | | | | |
New Warrants [Member] | Measurement Input, Expected Dividend Rate [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | 0 | | | | | | | | | | | | | |
Common Stock [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Number of shares issued during the period | shares | | | | | | | | 4,174 | 13,721 | 2,654 | 3,295 | | | | | | |
Unamortization stock compensation | | | | | | | | | | | | | | | | | |
Common Stock [Member] | 2016 Equity Incentive Plan [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Stock option annually percentage | | | | | | | 6% | | | | | | | | | | |
Services Agreement [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Warrants exercise price | $ / shares | | | | | | | | | | | | | | | | | $ 10 |
General and administrative expense | | | | | | | | 0 | | $ 89 | | $ 30 | $ 148 | | | | |
Services Agreement [Member] | Warrant [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Warrants exercise price | $ / shares | | | | | $ 35 | | | | | | | | | | | | |
Warrants to purchase common stock | shares | | | | | 17,001 | | | | | | | | | | | | |
Vesting description | | | | | vest over a one-year period on a monthly basis | | | | | | | | | | | | |
Warrants term | | | | | 3 years | | | | | | | | | | | | |
Services Agreement [Member] | Warrants [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Warrants to purchase of common stock | shares | | | | | | | | | | | | | | | | | 6,000 |
Warrants exercise price | $ / shares | | | | | | | | | | | | | | | | | $ 56.60 |
Services Agreement [Member] | Replacement Warrants [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Warrants to purchase of common stock | shares | | | | | | | | | | | | | | | | | 6,000 |
Securities Purchase Agreement [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Number of stock sold, shares | shares | | | | | | 160,000 | | | | | | | | | | | |
Common stock par value | $ / shares | | | | | | $ 0.0001 | | | | | | | | | | | |
Securities Purchase Agreement [Member] | PreFunded Warrants [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Warrants exercise price | $ / shares | | | | | | $ 0.02 | | | | | | | | | | | |
Warrants to purchase common stock | shares | | | | | | 276,681 | | | | 276,681 | | | 276,681 | | | | |
Proceeds from repurchase of equity | | | | | | | | | | | | 6 | | | | | |
Securities Purchase Agreement [Member] | Private Placement Warrants [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Warrants exercise price | $ / shares | | | | | | $ 26 | | | | | | | | | | | |
Securities Purchase Agreement [Member] | Private Placement Warrants [Member] | Maximum [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Warrants to purchase common stock | shares | | | | | | 436,681 | | | | | | | | | | | |
Kreos Loan Agreement [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Warrants exercise price | $ / shares | | | $ 20.948 | | | | | | | | | | | | | | |
Warrants to purchase common stock | shares | | | 9,547 | | | | | | | | | | | | | | |
Fair value adjustment of warrants | | | | | | | | | | | | 165 | | | | | |
Kreos Loan Agreement [Member] | Warrant [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Warrants exercise price | $ / shares | | | $ 20.95 | | | | | | | | | | | | | | |
Warrants to purchase common stock | shares | | | 9,547 | | | | | | | | | | | | | | |
Warrants term | | | 10 years | | | | | | | | | | | | | | |
Fair value adjustment of warrants | | | $ 168 | | | | | | | | | | | | | | |
Proceeds from loan received | | | $ 165 | | | | | | | | | | | | | | |
Kreos Loan Agreement [Member] | Warrant [Member] | Measurement Input, Risk Free Interest Rate [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | 1.31 | | | | | | | | | | | | | | |
Kreos Loan Agreement [Member] | Warrant [Member] | Measurement Input, Price Volatility [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | 108.87 | | | | | | | | | | | | | | |
Kreos Loan Agreement [Member] | Warrant [Member] | Measurement Input, Discount Rate [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | 0 | | | | | | | | | | | | | | |
NonEmployee [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Share based compensation options, grants | shares | | 24,458 | | | | | | | | | | | | | | | |
Fair value of common stock | $ / shares | | $ 9.60 | | | | | | | | | | | | | | | |
Cash compensation | | $ 235 | | | | | | | | | | | | | | | |
Director [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Officers compensation | | | | | | | | 61 | | | | 118 | | | | | |
Prepaid expense | | | | | | | | 117 | | | | 117 | | | | | |
Executive Officer [Member] | Restricted Stock Units (RSUs) [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Vesting description | which vest over a three-year period on a quarterly basis | | | | | | | | | | | | | | | | |
Number of shares issued during the period | shares | 18,250 | | | | | | | | | | | | | | | | |
Ceo, Executives and Directors [Member] | Restricted Stock Units (RSUs) [Member] | | | | | | | | | | | | | | | | | |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] | | | | | | | | | | | | | | | | | |
Other general and administrative expense | | | | | | | | $ 159 | | | | $ 340 | | | | | |