Note 5 - Debt (Details Textual) - USD ($) | | | | | | | | | | | | | 1 Months Ended | 2 Months Ended | 3 Months Ended | 6 Months Ended | 12 Months Ended | | | | | | | | |
Jan. 01, 2023 | Nov. 03, 2022 | Sep. 22, 2022 | Jul. 15, 2022 | Mar. 24, 2022 | Mar. 18, 2022 | Mar. 09, 2022 | Jul. 08, 2021 | Apr. 26, 2021 | Feb. 11, 2021 | Sep. 23, 2020 | Apr. 10, 2020 | Mar. 31, 2022 | Dec. 31, 2021 | Nov. 30, 2021 | May 31, 2022 | Mar. 31, 2022 | Mar. 31, 2021 | Sep. 30, 2022 | Dec. 31, 2022 | Dec. 31, 2021 | Mar. 28, 2023 | Dec. 13, 2022 | Mar. 22, 2022 | Dec. 21, 2021 | Nov. 12, 2021 | Mar. 18, 2021 | Dec. 31, 2020 | Aug. 10, 2017 |
Repayments of Long-term Debt, Total | | | | | | | | | | | | | | | | | | | | $ 58,000 | $ 100,000 | | | | | | | | |
Long-term Debt, Total | | | | | | | | | | | | | | $ 14,434,000 | | | | | | $ 11,978,000 | $ 14,434,000 | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights (in dollars per share) | | | | | | | | | | | | | | $ 3.57 | | | | | | $ 3.10 | $ 3.57 | | | | | | | $ 3.73 | |
Proceeds from Sale of Productive Assets, Total | | | | | | | | | | | | | | $ 272,000 | | | | | | | | | | | | | | | |
Interest Expense, Total | | | | | | | | | | | | | | | | | | | | $ 1,383,000 | $ 57,000 | | | | | | | | |
Gain (Loss) on Extinguishment of Debt, Total | | | | | | | | | | | | | | | | | | | | 4,277,000 | 0 | | | | | | | | |
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 | | | | | | |
Subsequent Event [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights (in dollars per share) | | | | | | | | | | | | | | | | | | | | | | $ 0.55 | | | | | | | |
Class of Warrant or Right, Number of Securities Called by Warrants or Rights (in shares) | | | | | | | | | | | | | | | | | | | | | | 2,400,000 | | | | | | | |
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% | | | | | | | | | | | | | | | | | | | | | | | | |
Warrant Issued in Connection with Amended 2017 Credit Agreement [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and Rights Outstanding, Term (Year) | | | | | | | | | | | 5 years | | | | | | | | | | | | | | | | | | |
Class of Warrant or Right, Number of Securities Called by Each Warrant or Right (in shares) | | | | | | | | | | | 1,000,000 | | | | | | | | | | | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights (in dollars per share) | | | | | | | | | | | $ 3.75 | | | | | | | | | | | | | | | | | | |
Warrants and Rights Outstanding | | | | | | | | | | | $ 1,400,000 | | | | | | | | | | | | | | | | | | |
Cross River Warrants [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and Rights Outstanding, Term (Year) | | 5 years | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Warrant or Right, Number of Securities Called by Each Warrant or Right (in shares) | | 568,720 | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights (in dollars per share) | | $ 2.11 | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Warrant or Right, Number of Securities Called by Warrants or Rights (in shares) | | 568,720 | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Conversion from 2017 Credit Agreement Loan Concession to Common Stock [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Conversion, Converted Instrument, Shares Issued (in shares) | | | | | | | | | | | 533,334 | | | | | | | | | | | | | | | | | | |
Shares Issued, Price Per Share (in dollars per share) | | | | | | | | | | | $ 2.0775 | | | | | | | | | | | | | | | | | | |
Debt Conversion, Converted Instrument, Amount | | | | | | | | | | | $ 1,100,000 | | | | | | | | | | | | | | | | | | |
Revolving Credit Facility [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Long-term Debt, Total | | | | | | | | | | | | | | $ 14,102,000 | | | | | | 0 | 14,102,000 | | | | | | | | |
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 (Year) | | | | | 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 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 | | | | | | | | | | | | | | | | | | | | | | | | |
Utica Leaseco, LLC [Member] | Master Lease Agreement [Member] | Heat Waves Hot Oil Service LLC at Colorado [Member] | Subsequent Event [Member] | Minimum [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument, Periodic Payment, Total | $ 198,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Cross River [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Repayments of Subordinated Debt, Total | | | | | | | | | | | | | | | | | | | | 145,000 | 0 | | | | | | | | |
The 2017 Credit Agreement [Member] | East West Bank [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | | | | | | | | | 8.25% | | | | | | | | | | | | | | | | | | |
Debt Instrument, Interest Rate, Calculated Monthly and Paid in Arrears | | | | | | | | | | | 5.25% | | | | | | | | | | | | | | | | | | |
Debt Instrument, Interest Rate, Accrued on Principal Balance | | | | | | | | | | | 3% | | | | | | | | | | | | | | | | | | |
Debt Instrument, Covenant, Minimum Liquidity | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 1,500,000 | |
Debt Instrument, Covenant, Percentage of Projected Gross Revenue Achieved | | | | | | | | | | | | | | 80% | 80% | 80% | 80% | 70% | 70% | | | | | | | | | | |
Debt Instrument, Covenant, Maximum Capital Expenditures | | | | | | | | | | | | | $ 1,200,000 | | | | $ 1,200,000 | | | | | | | | | | | | |
Repayments of Long-term Debt, Total | | | | | | | | | | $ 3,000,000 | | | | | | | | | | | | | | | | | | | |
Long-term Debt, Total | | | | | | | | | | | | | | $ 13,500,000 | | | | | | | $ 13,500,000 | | | | | | | | |
Debt, Weighted Average Interest Rate | | | | | | | | | | | | | | 8.25% | | | | | | | 8.25% | | | | | | | | |
Line of Credit Facility, Remaining Borrowing Capacity | | | | | | | | | | | | | | $ 1,000,000 | | | | | | | $ 1,000,000 | | | | | | | | |
Long-term Debt, Gross | | | | | | | | | | | | | | 14,100,000 | | | | | | | 14,100,000 | | | | | | | | |
Interest Payable | | | | | | | | | | | | | | 38,000 | | | | | | | 38,000 | | | | | | | | |
Debt Instrument, Fee Amount | | | | | | | | | | | | | | | | | | | | | | | | | | $ 70,000 | | | |
Interest Expense, Total | | | | | | | | | | | | | | | | | | | | 100,000 | 9,000 | | | | | | | | |
Debt Instrument, Unamortized Discount, Total | | | | | | | | | | | | | | | | | | | | 165,000 | | | | | | | | | |
The 2017 Credit Agreement [Member] | East West Bank [Member] | Equipment Term Loan [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | | | | | | | | | | | $ 17,000,000 | | | | | | | | | | | | | | | | | | |
The 2017 Credit Agreement [Member] | East West Bank [Member] | Revolving Credit Facility [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Line of Credit Facility, Maximum Borrowing Capacity, Percent of Eligible Receivables | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 85% |
Line of Credit Facility, Maximum Borrowing Capacity, Percentage of Trucks and Equipment | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 85% |
Line of Credit Facility, Decrease, Forgiveness | | | | | | | | | | | 16,000,000 | | | | | | | | | | | | | | | | | | |
Line of Credit Facility, Maximum Borrowing Capacity | | | | | | | | | | | $ 1,000,000 | | | | | | | | | | | | | | | | | | |
Debt Instrument, Term (Year) | | | | | | | | | 10 years | | | | | | | | | | | | | | | | | | | | |
Line of Credit Facility, Unused Capacity, Commitment Fee Percentage | | | | | | | | | | | 0.50% | | | | | | | | | | | | | | | | | | |
Debt Instrument, Decrease, Forgiveness | | | | | | | | | | | | | $ 4,300,000 | | | | | | | | | | | | | | | | |
The 2022 Refinancing Agreement [Member] | East West Bank [Member] | Revolving Credit Facility [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Long-term Debt, Gross | | | | | | | | | | | | | | | | | | | | 14,100,000 | | | | | | | | | |
Line of Credit Facility, Fair Value of Amount Outstanding | | | | | $ 13,800,000 | $ 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 | | | | | | | | | | | | | | | | | | | | | $ 1,000,000 | | |
Long-Term Line of Credit, Noncurrent | | | | | | | | | | | | | | | | | | | | 5,400,000 | | | | | | | | | |
Cross River Working Capital Note [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | | | | | | | | | | | | | | | | | | | | | | | | $ 1,200,000 | | | | | |
Debt Instrument, Term (Year) | | | | | | | 6 years | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | | | | | | | | | | | 7% | | | | 7% | | | | | | | | | | | | |
Subordinated Debt with Related Party [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | | | | | | | | | | | | | | | | | | | | | | | | | $ 220,000 | | | | |
Long-term Debt, Total | | | | | | | | | | | | | | 220,000 | | | | | | 0 | 220,000 | | | | | | | | |
Interest Payable | | | | | | | | | | | | | | | | | | | | | | | | | 10,000 | | | | |
Deposit Assets, Total | | | | | | | | | | | | | | | | | | | | | | | | | $ 210,000 | | | | |
Interest Expense, Total | | | | | | | | | | | | | | | | | | | | 5,000 | 1,000 | | | | | | | | |
Repayments of Subordinated Debt, Total | | | | | | | | | | | | | | | | | $ 162,000 | | | | | | | | | | | | |
July 2022 Convertible Note [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | | | | | | | | | | | | | | | | | | | | $ 1,200,000 | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | | 7.75% | | | | | | | | | | | | | | | | 7.75% | | | | | | | | | |
Long-term Debt, Total | | | | | | | | | | | | | | 0 | | | | | | $ 1,200,000 | 0 | | | | | | | | |
Proceeds from Convertible Debt | | | | $ 1,200,000 | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument, Convertible, Conversion Price (in dollars per share) | | | | $ 1.69 | | | | | | | | | | | | | | | | $ 1.69 | | | | | | | | | |
Cross River Revolver [Member] | Cross River [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | | | $ 750,000 | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument, Term (Year) | | | 1 year | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | 8% | | | | | | | | | | | | | | | | | | | | | | | | | | |
Cross River Revolver [Member] | Cross River [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | | | $ 750,000 | | | | | | | | | | | | | | | | | | | | | | | | | | |
Payment of Financing and Stock Issuance Costs, Total | | $ 450,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Cross River Exchange Note [Member] | Cross River [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Payment of Financing and Stock Issuance Costs, Total | | 450,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Extinguishment of Debt, Amount | | 750,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | |
November 2022 Convertible Note [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | | | | | | | | | | | | | | | | | | 10% | | | | | | | | | |
Long-term Debt, Total | | | | | | | | | | | | | | $ 0 | | | | | | $ 1,200,000 | 0 | | | | | | | | |
November 2022 Convertible Note [Member] | East West Bank [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument, Unamortized Discount, Total | | | | | | | | | | | | | | | | | | | | 382,000 | | | | | | | | | |
November 2022 Convertible Note [Member] | Cross River [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | | $ 1,200,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument, Term (Year) | | 2 years | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | 10% | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument, Convertible, Conversion Price (in dollars per share) | | $ 2.11 | | | | | | | | | | | | | | | | | | | | | | | | | | | |
November 2022 Convertible Note [Member] | Cross River [Member] | Minimum [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument Convertible, Price Per Share, Minimum Equity Offering Amount Received | | $ 2 | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Paycheck Protection Program CARES Act [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Gain (Loss) on Extinguishment of Debt, Total | | | | | | | | | | | | | | | | | | | | $ 0 | 1,964,000 | | | | | | | | |
Paycheck Protection Program CARES Act [Member] | East West Bank [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Proceeds from Issuance of Long-Term Debt, Total | | | | | | | | | | | | $ 1,900,000 | | | | | | | | | | | | | | | | | |
Debt Instrument, Decrease, Forgiveness | | | | | | | | $ 1,900,000 | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument, Decrease, Forgiveness of Accrued Interest | | | | | | | | $ 24,000 | | | | | | | | | | | | | | | | | | | | | |
Gain (Loss) on Extinguishment of Debt, Total | | | | | | | | | | | | | | | | | | | | | $ 2,000,000 | | | | | | | | |