Note 9 - Debt (Details Textual) $ in Thousands, د.إ in Millions, ج.م. in Millions, $ in Millions | Sep. 17, 2021USD ($) | Apr. 14, 2021USD ($) | Dec. 17, 2020USD ($) | Jul. 28, 2016USD ($) | Jul. 28, 2016CAD ($) | Jun. 19, 2012USD ($) | Apr. 30, 2022USD ($) | Apr. 30, 2022USD ($) | Apr. 30, 2021USD ($) | Apr. 30, 2022USD ($) | Apr. 30, 2022USD ($) | Apr. 30, 2022AED (د.إ) | Jan. 31, 2022USD ($) | Dec. 31, 2021EGP (ج.م.) | Jun. 30, 2021EGP (ج.م.) | Sep. 20, 2018USD ($) |
Debt and Lease Obligation, Total | | | | | | | $ 26,300 | $ 26,300 | | $ 26,300 | $ 26,300 | | $ 21,900 | | | |
Line of Credit, Current | | | | | | | $ 5,246 | $ 5,246 | | $ 5,246 | $ 5,246 | | 634 | | | |
Line of Credit Facility, Interest Rate at Period End | | | | | | | 4.50% | 4.50% | | 4.50% | 4.50% | 4.50% | | | | |
Line of Credit Facility, Current Borrowing Capacity | | | | | | | $ 4,900 | $ 4,900 | | $ 4,900 | $ 4,900 | | | | | |
Proceeds from Sale of Property, Plant, and Equipment, Total | | | | | | | | 70 | $ 0 | | | | | | | |
Repayments of Secured Debt | | | | | | | | 0 | $ 892 | | | | | | | |
Finance Lease, Liability, Noncurrent | | | | | | | $ 9,301 | $ 9,301 | | $ 9,301 | $ 9,301 | | 9,327 | | | |
Mortgage Note Secured by Tennessee Manufacturing Facility [Member] | | | | | | | | | | | | | | | | |
Repayments of Secured Debt | | $ 900 | | | | | | | | | | | | | | |
Debt Instrument, Issuance Date | | | | | | Jun. 19, 2012 | | | | | | | | | | |
Proceeds from Issuance of Secured Debt | | | | | | $ 1,800 | | | | | | | | | | |
Canadian Mortgage Note [Member] | | | | | | | | | | | | | | | | |
Proceeds from Issuance of Debt | | | | $ 6,100 | $ 8 | | | | | | | | | | | |
Debt Instrument, Maturity Date | | | | Dec. 23, 2042 | Dec. 23, 2042 | | | | | | | | | | | |
Debt Instrument, Interest Rate, Effective Percentage | | | | | | | 5.05% | 5.05% | | 5.05% | 5.05% | 5.05% | | | | |
UNITED ARAB EMIRATES | | | | | | | | | | | | | | | | |
Foreign Earnings Repatriated | | | | | | | $ 800 | | | | | | | | | |
Land and Buildings in Lebanon, Tennessee [Member] | | | | | | | | | | | | | | | | |
Lessee, Finance Lease, Term of Contract (Year) | | 15 years | | | | | | | | | | | | | | |
Lessee, Finance Lease, Annual Rent Increase, Percentage | | 2.00% | | | | | | | | | | | | | | |
Lessee, Finance Lease, Number of Options to Extend | | 4 | | | | | | | | | | | | | | |
Lessee, Finance Lease, Renewal Term (Year) | | 5 years | | | | | | | | | | | | | | |
Lessee, Finance Lease, Discount Rate | | 8.00% | | | | | | | | | | | | | | |
Finance Lease, Liability, Noncurrent | | | | | | | 9,300 | $ 9,300 | | $ 9,300 | $ 9,300 | | | | | |
Land and Buildings in Lebanon, Tennessee [Member] | | | | | | | | | | | | | | | | |
Disposal Group, Including Discontinued Operation, Consideration | | $ 10,400 | | | | | | | | | | | | | | |
Proceeds from Sale of Property, Plant, and Equipment, Total | | 9,100 | | | | | | | | | | | | | | |
Escrow Deposit | | $ 400 | | | | | | | | | | | | | | |
Maximum [Member] | | | | | | | | | | | | | | | | |
Foreign Earnings Repatriated | | | | | | | | 100 | | | | | | | | |
Revolving Lines, North America [Member] | | | | | | | | | | | | | | | | |
Line of Credit Facility, Maximum Borrowing Capacity | $ 18,000 | | | | | | | | | | | | | | | $ 18,000 |
Line of Credit Facility, Covenant Terms, EBITDA Ratio, Term One | | | | | | | | | | | | | | | | 1.10 |
Repayments of Long-term Lines of Credit | | | $ 1,000 | | | | | | | | | | | | | |
Line of Credit Facility, Additional Fees to Be Incurred | | | 100 | | | | | | | | | | | | | |
Line of Credit Facility, Maximum Borrowing Capacity, Availability Block | | | $ 2,000 | | | | | | | | | | 2,500 | | | |
Debt Instrument, Term (Year) | 5 years | | | | | | | | | | | | | | | |
Line of Credit Facility, Unused Capacity, Commitment Fee Percentage | | | | | | | | | | 0.25% | | | | | | |
Line of Credit, Current | | | | | | | | | | | | | 600 | | | |
Line of Credit Facility, Current Borrowing Capacity | | | | | | | | | | | | | $ 8,500 | | | |
Revolving Lines, North America [Member] | North American Loan Parties [Member] | | | | | | | | | | | | | | | | |
Line of Credit Facility, Capital Expenditures Restrictions | $ 5,000 | | | | | | | | | | | | | | | |
Line of Credit Facility, Common Stock Repurchase Restrictions | 3,000 | | | | | | | | | | | | | | | |
Line of Credit Facility, Fixed Charge Coverage Ratio Required | | | | | | | | | | | 1.10 | | | | | |
Line of Credit Facility, Covenant Terms, EBITDA Ratio, Minimum Undrawn Availability for Five Consecutive Days | 3,000 | | | | | | | | | | | | | | | |
Line of Credit Facility, Covenant Terms, EBITDA Ratio, Minimum Undrawn Availability | $ 2,000 | | | | | | | | | | | | | | | |
Line of Credit Facility, Default, Additional Interest Rate | 2.00% | | | | | | | | | | | | | | | |
Revolving Lines, North America [Member] | Base Rate [Member] | Minimum [Member] | | | | | | | | | | | | | | | | |
Debt Instrument, Basis Spread on Variable Rate | 1.00% | | | | | | | | | | | | | | | |
Revolving Lines, North America [Member] | Base Rate [Member] | Maximum [Member] | | | | | | | | | | | | | | | | |
Debt Instrument, Basis Spread on Variable Rate | 1.50% | | | | | | | | | | | | | | | |
Revolving Lines, North America [Member] | London Interbank Offered Rate (LIBOR) [Member] | Minimum [Member] | | | | | | | | | | | | | | | | |
Debt Instrument, Basis Spread on Variable Rate | 2.00% | | | | | | | | | | | | | | | |
Revolving Lines, North America [Member] | London Interbank Offered Rate (LIBOR) [Member] | Maximum [Member] | | | | | | | | | | | | | | | | |
Debt Instrument, Basis Spread on Variable Rate | 2.50% | | | | | | | | | | | | | | | |
Foreign Revolving Lines [Member] | | | | | | | | | | | | | | | | |
Line of Credit Facility, Maximum Borrowing Capacity | | | | | | | 14,900 | 14,900 | | $ 14,900 | $ 14,900 | | | | | |
Line of Credit Facility, Guaranteed Amount | | | | | | | 100 | 100 | | 100 | 100 | | | | | |
Letters of Credit Outstanding, Amount | | | | | | | 2,300 | 2,300 | | 2,300 | 2,300 | | | | | |
Proceeds from Issuance of Debt | | | | | | | | 6,100 | | | | | | | | |
Line of Credit Facility, Remaining Borrowing Capacity | | | | | | | 6,500 | 6,500 | | 6,500 | 6,500 | | | | | |
Foreign Revolving Lines [Member] | Revolving Credit Lines Used by Middle Eastern Subsidiaries, 1 [Member] | | | | | | | | | | | | | | | | |
Line of Credit Facility, Maximum Borrowing Capacity | | | | | | | $ 2,200 | $ 2,200 | | $ 2,200 | $ 2,200 | د.إ 8.0 | | | | |
Line of Credit Facility, Interest Rate at Period End | | | | | | | 4.54% | 4.54% | | 4.54% | 4.54% | 4.54% | | | | |
Foreign Revolving Lines [Member] | Revolving Credit Lines Used by Middle Eastern Subsidiaries, 2 [Member] | | | | | | | | | | | | | | | | |
Line of Credit Facility, Maximum Borrowing Capacity | | | | | | | $ 4,800 | $ 4,800 | | $ 4,800 | $ 4,800 | د.إ 17.5 | | | | |
Line of Credit Facility, Interest Rate at Period End | | | | | | | 4.50% | 4.50% | | 4.50% | 4.50% | 4.50% | | | | |
Foreign Revolving Lines [Member] | Revolving Credit Lines Used by Middle Eastern Subsidiaries, 3 [Member] | | | | | | | | | | | | | | | | |
Line of Credit Facility, Maximum Borrowing Capacity | | | | | | | $ 800 | $ 800 | | $ 800 | $ 800 | د.إ 3.0 | | | | |
Line of Credit Facility, Interest Rate at Period End | | | | | | | 4.50% | 4.50% | | 4.50% | 4.50% | 4.50% | | | | |
Foreign Revolving Lines [Member] | Revolving Credit Lines Used by Egypt Subsidiaries [Member] | | | | | | | | | | | | | | | | |
Line of Credit Facility, Maximum Borrowing Capacity | | | | | | | $ 5,400 | $ 5,400 | | $ 5,400 | $ 5,400 | | | | ج.م. 100.0 | |
Foreign Revolving Lines [Member] | Revolving Credit Lines Used by Egypt Subsidiaries 2 [Member] | | | | | | | | | | | | | | | | |
Line of Credit Facility, Maximum Borrowing Capacity | | | | | | | $ 1,500 | $ 1,500 | | $ 1,500 | $ 1,500 | | | ج.م. 28.2 | | |
Line of Credit Facility, Interest Rate at Period End | | | | | | | 8.00% | 8.00% | | 8.00% | 8.00% | 8.00% | | | | |
Foreign Revolving Lines [Member] | Minimum [Member] | | | | | | | | | | | | | | | | |
Line of Credit Facility, Interest Rate at Period End | | | | | | | 4.50% | 4.50% | | 4.50% | 4.50% | 4.50% | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | | | | | 4.50% | 4.50% | | 4.50% | 4.50% | 4.50% | | | | |
Foreign Revolving Lines [Member] | Maximum [Member] | | | | | | | | | | | | | | | | |
Line of Credit Facility, Interest Rate at Period End | | | | | | | 8.00% | 8.00% | | 8.00% | 8.00% | 8.00% | | | | |
Foreign Revolving Lines [Member] | Weighted Average [Member] | | | | | | | | | | | | | | | | |
Line of Credit Facility, Interest Rate at Period End | | | | | | | 7.63% | 7.63% | | 7.63% | 7.63% | 7.63% | | | | |
Foreign Revolving Lines [Member] | EIBOR [Member] | Minimum [Member] | | | | | | | | | | | | | | | | |
Debt Instrument, Basis Spread on Variable Rate | | | | | | | | 3.00% | | | | | | | | |
Foreign Revolving Lines [Member] | EIBOR [Member] | Maximum [Member] | | | | | | | | | | | | | | | | |
Debt Instrument, Basis Spread on Variable Rate | | | | | | | | 3.50% | | | | | | | | |