Note 5 - Debt (Details Textual) - USD ($) | | | | | | | | | 3 Months Ended | 6 Months Ended | | | | | | | | |
Jun. 30, 2023 | Mar. 28, 2023 | Jan. 01, 2023 | Nov. 03, 2022 | Jul. 15, 2022 | Mar. 24, 2022 | Mar. 18, 2022 | Mar. 09, 2022 | Jun. 30, 2023 | Jun. 30, 2022 | Mar. 31, 2022 | Jun. 30, 2023 | Jun. 30, 2022 | Jun. 13, 2023 | Dec. 31, 2022 | Dec. 13, 2022 | Sep. 22, 2022 | Mar. 22, 2022 | Dec. 21, 2021 | Mar. 18, 2021 | Sep. 23, 2020 |
Gain (Loss) on Extinguishment of Debt | | | | | | | | | $ 0 | $ 0 | | $ 0 | $ 4,277,000 | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights (in dollars per share) | $ 0.78 | | | | | | | | $ 0.78 | | | $ 0.78 | | | $ 3.10 | | | | | | |
Proceeds From Financed Insurance | | | | | | | | | $ 1,500,000 | | | | | | | | | | | | |
Debt Instrument, Unamortized Discount | $ 409,000 | | | | | | | | 409,000 | | | $ 409,000 | | | | | | | | | |
Interest Expense, Debt | | | | | | | | | $ 69,000 | $ 20,000 | | $ 139,000 | $ 27,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) | 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) | 2,400,000 | | | | | | | | | | | | | | | | | | | | |
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 | | | | | | | | | | 5 years | | | | | | | |
Class of Warrant or Right, Number of Securities Called by Warrants or Rights (in shares) | | | | 568,720 | | | | | | | | | | 2,400,000 | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights (in dollars per share) | | | | $ 2.11 | | | | | | | | | | | | | | | | | |
Warrants Issued With July 2022 Converitble Note [Member] | | | | | | | | | | | | | | | | | | | | | |
Warrants and Rights Outstanding, Term (Year) | 5 years | | | | | | | | 5 years | | | 5 years | | | | | | | | | |
Class of Warrant or Right, Number of Securities Called by Warrants or Rights (in shares) | 2,400,000 | | | | | | | | 2,400,000 | | | 2,400,000 | | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights (in dollars per share) | $ 0.55 | | | | | | | | $ 0.55 | | | $ 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,000 | | | | | | | | | | | | | | | |
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, Interest Rate, Stated Percentage | | | | | | 15.50% | | | | | | | | | | | | | | | |
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 | | | | | | | | | | | | | | | |
The 2022 Refinancing Agreement [Member] | East West Bank [Member] | Revolving Credit Facility [Member] | | | | | | | | | | | | | | | | | | | | | |
Line of Credit Facility, Fair Value of Amount Outstanding | | | | | | | $ 13,800,000 | | | | | | | | | | | | | | |
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] | 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) | | | | | $ 1.69 | | | | | | | | | | | | | | | | |
Cross River Revolver [Member] | Cross River [Member] | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | | | | | | | | | | | | | | | | | $ 750,000 | | | | |
Cross River Exchange Note [Member] | Cross River [Member] | | | | | | | | | | | | | | | | | | | | | |
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) | | | | $ 2.11 | | | | | | | | | | | | | | | | | |
Convertible Notes [Member] | | | | | | | | | | | | | | | | | | | | | |
Convertible Preferred Stock, Shares Issued upon Conversion (in shares) | | 5,122,402 | | | | | | | | | | | | | | | | | | | |