Note 6 - Stockholders' Equity (Details Textual) - USD ($) | Nov. 09, 2021 | Aug. 06, 2021 | Mar. 16, 2021 | Mar. 05, 2021 | May 15, 2020 | Feb. 20, 2019 | Sep. 13, 2018 | Aug. 09, 2017 | Jun. 30, 2021 | Nov. 30, 2020 | Dec. 31, 2021 | Dec. 31, 2020 | Dec. 31, 2019 | Jun. 30, 2017 |
Class of Warrant or Right, Exercise Price of Warrants or Rights (in dollars per share) | | | | | | | | | | | $ 4.47 | | | |
Proceeds from Issuance of Common Stock, Net Issuance Costs | | | | | | | | | | | $ 74,484,000 | $ 16,820,000 | | |
Preferred Stock, Shares Outstanding, Ending Balance (in shares) | | | | | | | | | | | 0 | 0 | | |
Class of Warrant or Right, Exercised During Period (in shares) | | | | | | | | | | | 1,339,407 | | | |
Proceeds from Warrant Exercises | | | | | | | | | | | $ 5,107,000 | $ 0 | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Gross (in shares) | | | | | | | | | | | 528,000 | | | |
Share-based Payment Arrangement, Nonvested Award, Option, Cost Not yet Recognized, Amount | | | | | | | | | | | $ 7,500,000 | | | |
Share-based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Period for Recognition (Year) | | | | | | | | | | | 2 years 8 months 12 days | | | |
Share-based Payment Arrangement, Expense | | | | | | | | | | | $ 2,900,000 | 1,300,000 | | |
General and Administrative Expense [Member] | | | | | | | | | | | | | | |
Share-based Payment Arrangement, Expense | | | | | | | | | | | 2,800,000 | $ 1,300,000 | | |
Research and Development Expense [Member] | | | | | | | | | | | | | | |
Share-based Payment Arrangement, Expense | | | | | | | | | | | $ 100,000 | | | |
The 2018 Incentive Plan [Member] | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Number of Additional Shares Authorized (in shares) | 4,000,000 | | | | | | 1,750,000 | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Authorized (in shares) | | | | | | | 7,000,000 | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Available for Grant (in shares) | | | | | | | 4,429,650 | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Gross (in shares) | | | | | | | | | | | 528,000 | 1,511,000 | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Granted in Period, Fair Value | | | | | | | | | | | $ 5,600,000 | $ 4,300,000 | | |
The 2018 Incentive Plan [Member] | Share-based Payment Arrangement, Option [Member] | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Dividend Rate | | | | | | | | | | | | 0.00% | | |
The 2018 Incentive Plan [Member] | Share-based Payment Arrangement, Option [Member] | Employees [Member] | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Term (Year) | | | | | | | | | | | | 6 years | 6 years | |
The 2018 Incentive Plan [Member] | Minimum [Member] | Share-based Payment Arrangement, Option [Member] | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Discount Rate | | | | | | | | | | | 0.60% | 0.40% | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Volatility Rate | | | | | | | | | | | 81.00% | 81.00% | | |
The 2018 Incentive Plan [Member] | Maximum [Member] | Share-based Payment Arrangement, Option [Member] | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Discount Rate | | | | | | | | | | | 1.10% | 0.70% | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Volatility Rate | | | | | | | | | | | 87.00% | 84.00% | | |
June 2017 Warrants [Member] | | | | | | | | | | | | | | |
Class of Warrant or Right, Number of Securities Called by Warrants or Rights (in shares) | | | | | | | | 58,502 | | | | | | 2,646,091 |
Class of Warrant or Right, Exercise Price of Warrants or Rights (in dollars per share) | | | | | | | | $ 6.41 | | | $ 7.50 | | | $ 7.50 |
Warrants and Rights Outstanding, Term (Year) | | | | | | | | | | | | | | 10 years |
Class of Warrant or Right, Term (Year) | | | | | | | | 10 years | | | | | | |
Class of Warrant or Right, Exercised During Period (in shares) | | | | | | | | | | | 188,590 | | | |
November 2020 Warrants [Member] | | | | | | | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights (in dollars per share) | | | | | | | | | | | $ 4.31 | | | |
Class of Warrant or Right, Exercised During Period (in shares) | | | | | | | | | | | 1,121,566 | | | |
SVB Warrants [Member] | | | | | | | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights (in dollars per share) | | | | | | | | | | | $ 6.41 | | | |
Class of Warrant or Right, Exercised During Period (in shares) | | | | | | | | | | | 29,251 | | | |
June 2017 Warrants and November 2020 Warrants [Member] | | | | | | | | | | | | | | |
Class of Warrant or Right, Exercised During Period, Cashless Basis (in shares) | | | | | | | | | | | 181,477 | | | |
Class of Warrant or Right, Exercised During Period, Cash Basis (in shares) | | | | | | | | | | | 1,157,930 | | | |
Proceeds from Warrant Exercises | | | | | | | | | | | $ 5,100,000 | | | |
Adjustments to Additional Paid in Capital, Warrants Exercised | | | | | | | | | | | $ 7,300,000 | | | |
Stock Issued During Period, Shares, Exercise of Warrants (in shares) | | | | | | | | | | | 1,252,528 | | | |
Conversion Of Series A Preferred Stock To Common Stock [Member] | | | | | | | | | | | | | | |
Preferred Stock, Convertible, Conversion Price (in dollars per share) | | | | | | | | | $ 2.22 | | $ 2.22 | | | |
Conversion of Stock, Shares Converted (in shares) | | | | | | | | | 2,358 | | | | | |
Dividends Payable | | | | | | | | | $ 2,600,000 | | | | | |
Adjustments to Additional Paid in Capital, Preferred Stock Beneficial Conversion Feature, Deemed Dividend | | | | | | | | | $ 2,200,000 | | | | | |
Conversion of Stock, Shares Issued (in shares) | | | | | | | | | 1,064,516 | | | | | |
Preferred Stock, Shares Outstanding, Ending Balance (in shares) | | | | | | | | | | | 12,642 | | | |
Series A Preferred Stock [Member] | | | | | | | | | | | | | | |
Stock Issued During Period, Shares, New Issues (in shares) | | | | | | 15,000 | | | | | | | | |
Shares Issued, Price Per Share (in dollars per share) | | | | | | $ 1,000 | | | | | | | | |
Proceeds from Issuance of Private Placement | | | | | | $ 15,000,000 | | | | | | | | |
Preferred Stock, Convertible, Conversion Price (in dollars per share) | | | | | | $ 2.60 | | | | | | | | |
Preferred Stock, Dividend Rate, Percentage | | | | | | 8.00% | | | | | | | | |
Preferred Stock, Liquidation Preference, Value | | | | | | $ 1,000 | | | | | | | | |
Temporary Equity, Par Value | | | | | | | | | | | $ 13,700,000 | | | |
Dividends, Preferred Stock, Total | | | | | | | | | | | $ 2,400,000 | | | |
Preferred Stock, Dividends Per Share, Declared (in dollars per share) | | | | | | | | | | | $ 0.10 | $ 0.14 | | |
Payments of Stock Issuance Costs | | | | | | | | | | | | $ 1,300,000 | | |
Series B Preferred Stock [Member] | | | | | | | | | | | | | | |
Shares Issued, Price Per Share (in dollars per share) | | | | | $ 1,000 | | | | | | | | | |
Preferred Stock, Convertible, Conversion Price (in dollars per share) | | | | | $ 3.10 | | | | $ 3.10 | | $ 3.10 | | | |
Preferred Stock, Dividend Rate, Percentage | | | | | 8.00% | | | | | | | | | |
Preferred Stock, Liquidation Preference, Value | | | | | $ 1,000 | | | | | | | | | |
Preferred Stock, Shares Outstanding, Ending Balance (in shares) | | | | | | | | | | | 2,000 | | | |
Temporary Equity, Par Value | | | | | | | | | | | $ 2,300,000 | | | |
Preferred Stock, Dividends Per Share, Declared (in dollars per share) | | | | | | | | | | | $ 0.004 | $ 0.04 | | |
Payments of Stock Issuance Costs | | | | | | | | | | | $ 100,000 | $ 400,000 | | |
Conversion Of Series B Preferred Stock To Common Stock [Member] | | | | | | | | | | | | | | |
Preferred Stock, Convertible, Conversion Price (in dollars per share) | | | | | | | | | $ 2.91 | | $ 2.91 | | | |
Conversion of Stock, Shares Converted (in shares) | | | | | | | | | 5,636 | | | | | |
Conversion of Stock, Shares Issued (in shares) | | | | | | | | | 1,935,484 | | | | | |
Preferred Stock, Shares Outstanding, Ending Balance (in shares) | | | | | | | | | | | 364 | | | |
Dividends, Preferred Stock, Total | | | | | | | | | $ 400,000 | | | | | |
JMP Securities, Inc [Member] | | | | | | | | | | | | | | |
Stock Issued During Period, Shares, New Issues (in shares) | | | | | | | | | | | 450,368 | 0 | | |
Proceeds from Issuance of Common Stock | | | | | | | | | | | $ 8,000,000 | | | |
Distribution Agreement, Aggregate Sales Price | | $ 75,000,000 | | | | | | | | | $ 12,500,000 | | | |
Public Offering Price Allowed under Shelf Registration, Total | | $ 250,000,000 | | | | | | | | | | | | |
Sale of Stock Agent Fees Percent | | | | | | | | | | | 3.00% | | | |
Proceeds from Issuance of Common Stock, Net Issuance Costs | | | | | | | | | | | $ 7,600,000 | | | |
Distribution Agreement, Amount Available for Sale | | | | | | | | | | | $ 67,000,000 | $ 10,200,000 | | |
Common Stock [Member] | | | | | | | | | | | | | | |
Stock Issued During Period, Shares, New Issues (in shares) | | | | | | | | | | | 9,375,068 | 4,755,373 | | |
Stock Issued During Period, Shares, Exercise of Warrants (in shares) | | | | | | | | | | | 1,252,528 | | | |
Public Offering [Member] | | | | | | | | | | | | | | |
Stock Issued During Period, Shares, New Issues (in shares) | | | | 7,875,000 | | | | | | | | | | |
Shares Issued, Price Per Share (in dollars per share) | | | | $ 8 | | | | | | | | | | |
Proceeds from Issuance of Common Stock | | | | $ 63,000,000 | | | | | | | | | | |
Proceeds from Issuance of Common Stock, Net of Discounts and Issuance Costs | | | | 59,000,000 | | | | | | | | | | |
Underwriting Discounts and Commissions and Other Offering Expenses | | | | $ 4,000,000 | | | | | | | | | | |
Over-Allotment Option [Member] | | | | | | | | | | | | | | |
Stock Issued During Period, Shares, New Issues (in shares) | | | 1,049,700 | | | | | | | | | | | |
Proceeds from Issuance of Common Stock | | | $ 8,400,000 | | | | | | | | | | | |
Proceeds from Issuance of Common Stock, Net of Discounts and Issuance Costs | | | $ 7,900,000 | | | | | | | | | | | |
Sale of Stock, Option to Purchase Shares (in shares) | | | | 1,181,250 | | | | | | | | | | |
Private Placement [Member] | | | | | | | | | | | | | | |
Proceeds from Issuance or Sale of Equity, Total | | | | | | | | | | $ 18,000,000 | | | | |
Proceeds from Issuance or Sale of Equity, Net of Allocated Issuance Costs | | | | | | | | | | 16,800,000 | | | | |
Placement Agent and Other Offering Expenses | | | | | | | | | | $ 1,200,000 | | | | |
Class of Warrant or Right, Number of Securities Called by Warrants or Rights (in shares) | | | | | | | | | | 5,230,910 | | | | |
Stock Issued Per Unit Price (in dollars per share) | | | | | | | | | | $ 3.787 | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights (in dollars per share) | | | | | | | | | | $ 4.31 | | | | |
Warrants and Rights Outstanding, Term (Year) | | | | | | | | | | 5 years | | | | |
Private Placement [Member] | Series B Preferred Stock [Member] | | | | | | | | | | | | | | |
Stock Issued During Period, Shares, New Issues (in shares) | | | | | 8,000 | | | | | | | | | |
Proceeds from Issuance of Private Placement | | | | | $ 8,000,000 | | | | | | | | | |
Private Placement [Member] | Common Stock [Member] | | | | | | | | | | | | | | |
Stock Issued During Period, Shares, New Issues (in shares) | | | | | | | | | | 4,755,373 | | | | |
November 2020 Warrants [Member] | | | | | | | | | | | | | | |
Class of Warrant or Right, Number of Securities Called by Warrants or Rights (in shares) | | | | | | | | | | 5,230,910 | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights (in dollars per share) | | | | | | | | | | $ 4.31 | | | | |
Warrants and Rights Outstanding, Term (Year) | | | | | | | | | | 5 years | | | | |