Note 7 - Debt (Details Textual) - USD ($) $ / shares in Units, $ in Thousands | | | | | | 3 Months Ended | 6 Months Ended | 89 Months Ended | | | | | | | | |
Jul. 28, 2023 | May 16, 2023 | Oct. 04, 2022 | Mar. 02, 2022 | Jul. 06, 2012 | Jun. 30, 2024 | Jun. 30, 2024 | Jun. 30, 2023 | Mar. 31, 2024 | Dec. 31, 2023 | Mar. 31, 2023 | Aug. 01, 2022 | Jul. 26, 2022 | May 01, 2020 | Mar. 06, 2020 | Feb. 27, 2019 | Jan. 09, 2012 |
Long-Term Debt | | | | | | $ 309,016 | $ 309,016 | | | | | | | | | | |
Short-Term Debt | | | | | | $ 18,822 | $ 18,822 | | | $ 23,443 | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights (in dollars per share) | | | | | | $ 11.7 | $ 11.7 | | | $ 11.7 | | | | | | | |
Warrants and Rights Outstanding, Term (Year) | | | | | | 5 years 3 months 14 days | 5 years 3 months 14 days | | | 5 years 9 months 7 days | | | | | | | |
Proceeds from Issuance of Debt | | | | | | | $ 8,436 | $ 21,627 | | | | | | | | | |
Debt, Long-Term and Short-Term, Combined Amount | | | | | | $ 309,016 | 309,016 | | | $ 294,721 | | | | | | | |
Property, Plant and Equipment, Net | | | | | | 194,042 | 194,042 | | | 195,108 | | | | | | | |
Accounts Payable, Current | | | | | | 28,769 | 28,769 | | | 32,132 | | | | | | | |
Other Long-Term Debt, Noncurrent | | | | | | 51,826 | 51,826 | | | 51,717 | | | | | | | |
AAFK [Member] | Warrants in Connection With Subordinated Notes [Member] | | | | | | | | | | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights (in dollars per share) | | | | | | | | | | | | | | | | | $ 0.01 |
Warrants and Rights Outstanding, Term (Year) | | | | | | | | | | | | | | | | | 2 years |
Capital Revolving Credit Facility Fuels And Carbon Lines [Member] | GAFI and ACCI [Member] | | | | | | | | | | | | | | | | | |
Line of Credit Facility, Maximum Borrowing Capacity | | | | $ 100,000 | | | | | | | | | | | | | |
Fuels Revolving Line [Member] | GAFI [Member] | | | | | | | | | | | | | | | | | |
Line of Credit Facility, Maximum Borrowing Capacity | | | | 50,000 | | | | | | | | | | | | | |
Carbon Revolving Line [Member] | ACCI [Member] | | | | | | | | | | | | | | | | | |
Line of Credit Facility, Maximum Borrowing Capacity | | | | $ 50,000 | | | | | | | | | | | | | |
Third Eye Capital [Member] | Mr. McAfee [Member] | | | | | | | | | | | | | | | | | |
Net Amount at Risk by Product and Guarantee, Net Amount at Risk | | | | | | 10,000 | 10,000 | | | | | | | | | | |
Third Eye Capital [Member] | Revolving Credit Facility [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | | | | | $ 18,000 | | | | | | | | | | | | |
Long-Term Debt | | | | | | 27,500 | 27,500 | | | | | | | | | | |
Debt Issuance Costs, Net | | | | | | $ 800 | $ 800 | | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | | | | 22.25% | 22.25% | | | | | | | | | | |
Third Eye Capital [Member] | Revolving Credit Facility [Member] | Prime Rate [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Basis Spread on Variable Rate | | | | | 13.75% | | | | | | | | | | | | |
Third Eye Capital [Member] | Acquisition Term Notes [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | | | | | $ 15,000 | | | | | | | | | | | | |
Third Eye Capital [Member] | Revolving Notes Series B [Member] | | | | | | | | | | | | | | | | | |
Long-Term Debt | | | | | | $ 61,600 | $ 61,600 | | | | | | | | | | |
Debt Issuance Costs, Net | | | | | | 600 | 600 | | | | | | | | | | |
Third Eye Capital [Member] | Revolving Notes Series B [Member] | Prime Rate [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | | | | | | | 22.25% | | | | | | | | |
Debt Instrument, Basis Spread on Variable Rate | | 13.75% | | | | | | | | | | | | | | | |
Term Loan [Member] | Third Eye Capital [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | | | | | 7,200 | | | | | | | | | | | | |
Long-Term Debt | | | | | | 7,200 | 7,200 | | | | | | | | | | |
Debt Issuance Costs, Net | | | | | | 81 | 81 | | | | | | | | | | |
Revenue Participation Term Notes [Member] | Third Eye Capital [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | | | | | $ 10,000 | | | | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | | | | | | | 5% | | | | | | | | |
Revenue Participation Term Notes [Member] | Third Eye Capital [Member] | AAFK [Member] | | | | | | | | | | | | | | | | | |
Long-Term Debt | | | | | | 12,200 | 12,200 | | | | | | | | | | |
Debt Issuance Costs, Net | | | | | | $ 128 | $ 128 | | | | | | | | | | |
Term Notes [Member] | Third Eye Capital [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | | | | 14% | 14% | | | | | | | | | | |
Extension Fee | | | | | | 1% | | | | | | | | | | | |
Debt Instrument, Extension Fee, Percentage Payable by Increasing Debt Outstanding | | | | | | 50% | | | | | | | | | | | |
Debt Instrument, Extension Fee, Percentage Payable with Cash | | | | | | 50% | | | | | | | | | | | |
Debt Instrument, Extension Fee, Percentage Payable with Common Stock | | | | | | 110% | | | | | | | | | | | |
Acquisition Term Notes [Member] | Third Eye Capital [Member] | | | | | | | | | | | | | | | | | |
Long-Term Debt | | | | | | $ 26,900 | $ 26,900 | | | | | | | | | | |
Debt Issuance Costs, Net | | | | | | 255 | 255 | | | | | | | | | | |
Acquisition Term Notes [Member] | Third Eye Capital [Member] | Aemetis Facility Keyes, Inc. [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Redemption Fee | | | | | | 7,500 | 7,500 | | | | | | | | | | |
Acquisition Term Notes [Member] | Third Eye Capital [Member] | Prime Rate [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | | | | | | | 19.25% | | | | | | | | |
Debt Instrument, Basis Spread on Variable Rate | | | | | 10.75% | | | | | | | | | | | | |
Reserve Liquidity Facility [Member] | Third Eye Capital [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | | | | | | | | | | | | | | | $ 18,000 | | |
Long-Term Debt | | | | | | 0 | 0 | | | | | | | | | | |
Line of Credit Facility, Maximum Borrowing Capacity | | | | | | | | | | | | | | | $ 85,000 | | |
Debt Instrument, Non-refundable Standby Fee, Percent of Difference Between Principal Amount and the Commitment | | | | | | | | | | | | | | | 2% | | |
Dbet Instrument, Non Refundable One Time Fees | | | | | | | | | | | | | | | $ 500 | | |
Reserve Liquidity Facility Paid Monthly in Arrears [Member] | Third Eye Capital [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | | | | | | | | | | | | | 30% | | |
Reserve Liquidity Facility if Event of Default Occurred and Continues [Member] | Third Eye Capital [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | | | | | | | | | | | | | 40% | | |
Fuels Revolving Line [Member] | GAFI [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | | 10% | | | | | | | | | | | | | |
Fuels Revolving Line [Member] | Prime Rate [Member] | GAFI [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Basis Spread on Variable Rate | | | | 6% | | | | | | | | | | | | | |
Carbon Revolving Line [Member] | GAFI [Member] | | | | | | | | | | | | | | | | | |
Debt Issuance Costs, Net | | | | | | 1,300 | 1,300 | | | | | | | | | | |
Short-Term Debt | | | | | | 38,700 | 38,700 | | | | | | | | | | |
Carbon Revolving Line [Member] | ACCI [Member] | | | | | | | | | | | | | | | | | |
Long-Term Debt | | | | | | 24,900 | 24,900 | | | | | | | | | | |
Debt Issuance Costs, Net | | | | | | 1,300 | 1,300 | | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | | 8% | | | | | | | | | | | | | |
Short-Term Debt | | | | | | 800 | 800 | | | | | | | | | | |
Carbon Revolving Line [Member] | Prime Rate [Member] | ACCI [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Basis Spread on Variable Rate | | | | 4% | | | | | | | | | | | | | |
Cilion Shareholder Seller Notes Payable [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | | | | | $ 5,000 | | | | | | | | | | | | |
Long-Term Debt | | | | | | 7,100 | 7,100 | | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | | | 3% | | | | | | | | | | | | |
Debt, Long-Term and Short-Term, Combined Amount | | | | | | 7,134 | 7,134 | | | 7,028 | | | | | | | |
Subordinated Notes [Member] | AAFK [Member] | | | | | | | | | | | | | | | | | |
Short-Term Debt | | | | | | 18,500 | 18,500 | | | 17,600 | | | | | | | |
Debt Instrument, Fee Amount | | | | | | | | | | | | | | | | | $ 3,400 |
Debt Instrument Fee Rate | | | | | | | | | | | | | | | | | 10% |
Debt Extension Fee, Percentage | | | | | | | | | | | | | | | | | 10% |
EB5 Phase I Notes [Member] | | | | | | | | | | | | | | | | | |
Long-Term Debt | | | | | | 38,300 | 38,300 | | | 37,900 | | | | | | | |
Debt Instrument, Convertible, Conversion Price (in dollars per share) | | | | | | | | | | | | | | | | $ 30 | |
Proceeds from Issuance of Debt | | | | | | | | | $ 4,000 | | | | | | | | |
EB5 Phase I Notes [Member] | Maximum [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Additional Investment Available to Issue | | | | | | | | | 200,000 | | | | | | | | |
EB5 Phase I Notes [Member] | Minimum [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Investment Raised Per Investor | | | | | | | | | | | $ 800 | | | $ 500 | | | |
EB5 Phase II Notes [Member] | | | | | | | | | | | | | | | | | |
Debt, Long-Term and Short-Term, Combined Amount | | | | | | 4,400 | 4,400 | | | 4,300 | | | | | | | |
Secunderabad Oils [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | | | | | | | | | | | 18% | | | | |
Short-Term Debt | | | | | | 300 | 300 | | | 3,800 | | | | | | | |
Debt Agreement, Maximum Borrowing Capacity | | | | | | | | | | | | | $ 3,600 | | | | |
Leo Edibles & Fats Limited [Member] | | | | | | | | | | | | | | | | | |
Debt Agreement, Maximum Borrowing Capacity | | | | | | | | | | | | $ 1,270 | | | | | |
Construction Loan Agreement [Member] | | | | | | | | | | | | | | | | | |
Long-Term Debt | | | | | | 25,100 | 25,100 | | | 25,100 | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | 9.25% | | | | | | | | | | | | | | |
Debt, Long-Term and Short-Term, Combined Amount | | | | | | 45,115 | 45,115 | | | 41,024 | | | | | | | |
Debt Agreement, Maximum Borrowing Capacity | | | $ 25,000 | | | | | | | | | | | | | | |
Construction Loan Agreement [Member] | US Treasury (UST) Interest Rate [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Basis Spread on Variable Rate | | | 5% | | | | | | | | | | | | | | |
Construction Loan Agreement 2 [Member] | | | | | | | | | | | | | | | | | |
Long-Term Debt | | | | | | 20,800 | 20,800 | | | 16,800 | | | | | | | |
Debt Issuance Costs, Net | | | | | | 800 | 800 | | | $ 800 | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | 8.75% | | | | | | | | | | | | | | | | |
Debt Agreement, Maximum Borrowing Capacity | $ 25,000 | | | | | | | | | | | | | | | | |
Construction Loan Agreement 2 [Member] | US Treasury (UST) Interest Rate [Member] | | | | | | | | | | | | | | | | | |
Debt Instrument, Basis Spread on Variable Rate | 5% | | | | | | | | | | | | | | | | |
Financing Agreement For Capital Expenditures [Member] | | | | | | | | | | | | | | | | | |
Long-Term Debt | | | | | | 3,600 | 3,600 | | | | | | | | | | |
Short-Term Debt | | | | | | 2,200 | 2,200 | | | | | | | | | | |
Property, Plant and Equipment, Net | | | | | | 9,600 | 9,600 | | | | | | | | | | |
Accounts Payable, Current | | | | | | $ 200 | $ 200 | | | | | | | | | | |
Other Long-Term Debt, Noncurrent | | | | | | | | | $ 3,600 | | | | | | | | |