Note 5 - Debt (Details Textual) | | | | | | | | | 1 Months Ended | 12 Months Ended | | | | | | |
Sep. 11, 2023 USD ($) d $ / shares | Jun. 30, 2023 USD ($) $ / shares shares | Mar. 28, 2023 USD ($) shares | Jan. 23, 2023 USD ($) | Nov. 03, 2022 USD ($) $ / shares shares | Jul. 15, 2022 USD ($) $ / shares | Mar. 24, 2022 USD ($) | Mar. 18, 2022 USD ($) | Oct. 31, 2023 USD ($) | Dec. 31, 2023 USD ($) $ / shares | Dec. 31, 2022 USD ($) $ / shares | Sep. 01, 2023 USD ($) | Apr. 30, 2023 USD ($) | Dec. 13, 2022 USD ($) | Sep. 22, 2022 USD ($) | Dec. 31, 2021 $ / shares | Dec. 21, 2021 USD ($) |
Gain (Loss) on Extinguishment of Debt | | | | | | | | | | $ 0 | $ 4,277,000 | | | | | | |
Repayments of Subordinated Debt, Total | | | | | | | | | | $ 0 | $ 145,000 | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights (in dollars per share) | $ / shares | | | | | | | | | | $ 0.95 | $ 3.1 | | | | | $ 3.57 | |
Debt Conversion, Original Debt, Amount | | | | | | | | | | $ 0 | $ 1,200,000 | | | | | | |
Proceeds From Financed Insurance | | | | | | | | | | 1,800,000 | | | | | | | |
Interest Expense | | | | | | | | | | 2,121,000 | 1,383,000 | | | | | | |
Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net | | | | | | | | | | 295,000 | 548,000 | | | | | | |
Chief Executive Officer [Member] | | | | | | | | | | | | | | | | | |
Proceeds from Convertible Debt | | | | | | | | | $ 100,000 | | | | | | | | |
March 2022 Convertible Note Into Common Stock [Member] | | | | | | | | | | | | | | | | | |
Debt Conversion, Original Debt, Amount | | $ 148,950 | $ 1,100,000 | | | | | | | | | | | | | | |
Stock Issued During Period, Shares, Conversion of Convertible Securities (in shares) | shares | | 322,402 | 2,275,000 | | | | | | | | | | | | | | |
July 2022 Convertible Note Into Common Stock [Member] | | | | | | | | | | | | | | | | | |
Debt Conversion, Original Debt, Amount | | $ 1,200,000 | | | | | | | | | | | | | | | |
Stock Issued During Period, Shares, Conversion of Convertible Securities (in shares) | shares | | 2,400,000 | | | | | | | | | | | | | | | |
Conversion of New Convertible Notes into Equity [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Convertible, Conversion Price (in dollars per share) | $ / shares | $ 0.5 | | | | | | | | | | | | | | | | |
Debt Instrument, Convertible, Threshold Percentage of Stock Price Trigger | 25% | | | | | | | | | | | | | | | | |
Conversion of New Convertible Notes into Equity [Member] | Common Stock [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Convertible, Conversion Price (in dollars per share) | $ / shares | $ 0.5 | | | | | | | | | | | | | | | | |
Conversion of New Convertible Notes into Equity [Member] | Scenario, Plan [Member] | | | | | | | | | | | | | | | | | |
Stock Issued During Period, Value, Conversion of Convertible Securities | $ 5,000,000 | | | | | | | | | | | | | | | | |
Debt Instrument, Convertible, Threshold Percentage of Stock Price Trigger | 25% | | | | | | | | | | | | | | | | |
Debt Instrument, Convertible, Premium as A Percentage of Outstanding Principal | 25% | | | | | | | | | | | | | | | | |
Debt Instrument, Convertible, Threshold Trading Days (Day) | d | 5 | | | | | | | | | | | | | | | | |
One Parcels of Real Property in North Dakota [Member] | Disposal Group, Disposed of by Sale, Not Discontinued Operations [Member] | | | | | | | | | | | | | | | | | |
Disposal Group, Including Discontinued Operation, Consideration | | | | | | | | | | | | | | $ 550,000 | | | |
Cross River Warrants [Member] | | | | | | | | | | | | | | | | | |
Warrants and Rights Outstanding, Term (Year) | | | | | 5 years | | | | | | | | | | | | |
Class of Warrant or Right, Number of Securities Called by Warrants or Rights (in shares) | shares | | | | | 568,720 | | | | | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights (in dollars per share) | $ / shares | | | | | $ 2.11 | | | | | | | | | | | | |
Warrants Issued With July 2022 Converitble Note [Member] | | | | | | | | | | | | | | | | | |
Warrants and Rights Outstanding, Term (Year) | | 5 years | | | | | | | | | | | | | | | |
Class of Warrant or Right, Number of Securities Called by Warrants or Rights (in shares) | shares | | 2,400,000 | | | | | | | | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights (in dollars per share) | $ / shares | | $ 0.55 | | | | | | | | | | | | | | | |
Heat Waves Hot Oil Service LLC at Colorado [Member] | | | | | | | | | | | | | | | | | |
Maximum Percentage on Advance to Accounts Receivable Factored | | | | | | | 85% | | | | | | | | | | |
Maximum Amount on Advance to Accounts Receivable Factored | | | | | | | $ 10,000,000 | | | | | | | | | | |
Receivable Fee, Percentage of Receivable Purchased in Addition to Fund Usage Daily Fee | | | | | | | 0.10% | | | | | | | | | | |
Funds Usage Daily Fee, Percentage | | | | | | | 0.021% | | | | | | | | | | |
Utica Leaseco, LLC [Member] | Master Lease Agreement [Member] | Heat Waves Hot Oil Service LLC at Colorado [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | | | | | | | $ 6.225 | | | | | | | | | | |
Debt Instrument, Term (Month) | | | | | | | 51 months | | | | | | | | | | |
Debt Instrument, Periodic Payment, Total | | | | | | | $ 168,075 | | | | | | | | | | |
Debt Instrument, Surcharge Percentage Per Month | | | | | | | 1% | | | | | | | | | | |
Debt Instrument, Percentage That Exceeds Prime Rate for Surcharge | | | | | | | 0.25% | | | | | | | | | | |
Debt Instrument, Minimum Prime Rate Percentage That Triggers Surcharge | | | | | | | 3.25% | | | | | | | | | | |
Debt Instrument, Covenant, Option, Payment of Lease Facility in Exchange for Reduced Payment schedule | | | | | | | $ 1,000,000 | | | | | | | | | | |
Utica Leaseco, LLC [Member] | Master Lease Agreement [Member] | Heat Waves Hot Oil Service LLC at Colorado [Member] | Minimum [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Periodic Payment, Total | | | | $ 198,000 | | | | | | | | | | | | | |
Debt Instrument, Periodic Payment Terms, Balloon Payment to be Paid, Percentage of Principle | | | | | | | 1% | | | | | | | | | | |
Debt Instrument, Periodic Payment Terms, Balloon Payment to be Paid | | | | | | | $ 62,250 | | | | | | | | | | |
Utica Leaseco, LLC [Member] | Master Lease Agreement [Member] | Heat Waves Hot Oil Service LLC at Colorado [Member] | Maximum [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Periodic Payment Terms, Balloon Payment to be Paid, Percentage of Principle | | | | | | | 10% | | | | | | | | | | |
Debt Instrument, Periodic Payment Terms, Balloon Payment to be Paid | | | | | | | $ 622,500 | | | | | | | | | | |
Cross River [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | 16% | | | | | | | | | | | | | | | | |
The 2022 Refinancing Agreement [Member] | East West Bank [Member] | Revolving Credit Facility [Member] | | | | | | | | | | | | | | | | | |
Repayments of Lines of Credit | | | | | | | | $ 8,400,000 | | | | | | | | | |
Lines of Credit, Percentage of Net Proceeds From Receivables Financing, Payments for Refinancing. | | | | | | | | 5% | | | | | | | | | |
Lines of Credit, Value of Net Proceeds From Receivables Financing, Payments for Refinancing | | | | | | | | | | | | | $ 1,000,000 | | | | |
The 2017 Credit Agreement [Member] | East West Bank [Member] | | | | | | | | | | | | | | | | | |
Interest Expense | | | | | | | | | | $ 277,000 | 100,000 | | | | | | |
The 2017 Credit Agreement [Member] | East West Bank [Member] | Revolving Credit Facility [Member] | | | | | | | | | | | | | | | | | |
Line of Credit Facility, Maximum Borrowing Capacity | | | | | | | | $ 1,000,000 | | | | | | | | | |
Cross River Working Capital Note [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | | | | | | | $ 1,200,000 | | | | | | | | | | |
Debt Instrument, Term (Month) | | | | | | | 6 years | | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | | | | | 7% | | | | | | | | | | |
Gain (Loss) on Extinguishment of Debt | | | | | | | | | | | 4,300,000 | | | | | | |
Subordinated Debt with Related Party [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | | | | | | | | | | | | | | | | | $ 220,000 |
Repayments of Subordinated Debt, Total | | | | | | | | | | | $ 162,000 | | | | | | |
July 2022 Convertible Note [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | | | | 7.75% | | | | | | | | | | | |
Proceeds from Convertible Debt | | | | | | $ 1,200,000 | | | | | | | | | | | |
Debt Instrument, Convertible, Conversion Price (in dollars per share) | $ / shares | | | | | | $ 1.69 | | | | | | | | | | | |
Cross River Revolver [Member] | Cross River [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | | | | | | | | | | | | | | | $ 750,000 | | |
Cross River Exchange Note [Member] | Cross River [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | | | | | $ 750,000 | | | | | | | | | | | | |
Payment of Financing and Stock Issuance Costs, Total | | | | | 450,000 | | | | | | | | | | | | |
November 2022 Convertible Note [Member] | Cross River [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | | | | | $ 1,200,000 | | | | | | | | | | | | |
Debt Instrument, Term (Month) | | | | | 2 years | | | | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | | | 10% | | | | | | | | | | | | |
Debt Instrument, Convertible, Conversion Price (in dollars per share) | $ / shares | | | | | $ 2.11 | | | | | | | | | | | | |
November 2022 Convertible Note [Member] | Cross River [Member] | Minimum [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument Convertible, Price Per Share, Minimum Equity Offering Amount Received | | | | | $ 2,000,000 | | | | | | | | | | | | |
Cross River Convertible Notes [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | $ 750,000 | | | | | | | | | | | $ 750,000 | | | | | |
Proceeds from Convertible Debt | | | | | | | | | 150,000 | | | | | | | | |
Chesser Convertible Note [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | 50,000 | | | | | | | | | | | $ 50,000 | | | | | |
Angel Capital Convertible Note [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | 125,000 | | | | | | | | | | | | | | | | |
Proceeds from Convertible Debt | | | | | | | | | 125,000 | | | | | | | | |
Equigen Convertible Note [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | $ 187,500 | | | | | | | | | | | | | | | | |
Proceeds from Convertible Debt | | | | | | | | | $ 187,500 | | | | | | | | |