Note 5 - Debt (Details Textual) $ in Thousands, د.إ in Millions, ج.م. in Millions, $ in Millions | Sep. 17, 2021USD ($) | Apr. 14, 2021USD ($) | Dec. 17, 2020USD ($) | May 01, 2020USD ($) | Jul. 28, 2016USD ($) | Jul. 28, 2016CAD ($) | Jun. 19, 2012USD ($) | Apr. 30, 2021USD ($) | Jan. 31, 2021USD ($) | Jul. 31, 2020 | Jan. 31, 2022USD ($) | Apr. 30, 2021 | Jan. 31, 2022USD ($) | Jan. 31, 2022USD ($) | Jan. 31, 2021USD ($) | Jan. 31, 2022EGP (ج.م.) | Dec. 31, 2021EGP (ج.م.) | Jun. 30, 2021EGP (ج.م.) | Jan. 31, 2021AED (د.إ) | Sep. 20, 2018USD ($) |
Line of Credit, Current | | | | | | | | | $ 2,826 | | $ 634 | | $ 634 | $ 634 | $ 2,826 | | | | | |
Line of Credit Facility, Interest Rate at Period End | | | | | | | | | | | 4.25% | | 4.25% | 4.25% | | 4.25% | | | | |
Proceeds from Sale of Property, Plant, and Equipment, Total | | | | | | | | | | | | | | $ 9 | 2 | | | | | |
Repayments of Secured Debt | | | | | | | | | | | | | | 892 | 0 | | | | | |
Finance Lease, Liability, Noncurrent | | | | | | | | | 401 | | $ 173 | | $ 173 | 173 | 401 | | | | | |
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 | | | | | | | | | $ 0 | | 9,327 | | 9,327 | 9,327 | $ 0 | | | | | |
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 | | 2,500 | 2,500 | | | | | | |
Debt Instrument, Term (Year) | 5 years | | | | | | | | | | | | | | | | | | | |
Line of Credit Facility, Unused Capacity, Commitment Fee Percentage | | | | | | | | | | | 0.25% | | | | | | | | | |
Line of Credit Facility, Current Borrowing Capacity | | | | | | | | | | | $ 8,500 | | 8,500 | 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 | | | 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 | | | | | | | | | | | 16,400 | | 16,400 | 16,400 | | | | | | |
Line of Credit Facility, Guaranteed Amount | | | | | | | | | | | 200 | | 200 | 200 | | | | | | |
Letters of Credit Outstanding, Amount | | | | | | | | | | | 1,200 | | 1,200 | 1,200 | | | | | | |
Proceeds from Issuance of Debt | | | | | | | | | | | | | | 6,000 | | | | | | |
Line of Credit Facility, Remaining Borrowing Capacity | | | | | | | | | | | $ 6,100 | | $ 6,100 | $ 6,100 | | | | | | |
Foreign Revolving Lines [Member] | Minimum [Member] | | | | | | | | | | | | | | | | | | | | |
Line of Credit Facility, Interest Rate at Period End | | | | | | | | | | | 3.77% | | 3.77% | 3.77% | | 3.77% | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | | | | | | | | | 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% | | | | |
Foreign Revolving Lines [Member] | Weighted Average [Member] | | | | | | | | | | | | | | | | | | | | |
Line of Credit Facility, Interest Rate at Period End | | | | | | | | | | | 7.31% | | 7.31% | 7.31% | | 7.31% | | | | |
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% | | | | | | |
Paycheck Protection Program CARES Act [Member] | | | | | | | | | | | | | | | | | | | | |
Proceeds from Issuance of Long-term Debt, Total | | | | $ 3,200 | | | | | | | | | | | | | | | | |
Percent of Proceeds from Issuance of Debt Used for Payroll Related Expenses | | | | | | | | | | 100.00% | | | | | | | | | | |
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 | | | | | | | | | | | | | |
Revolving Credit Lines Used by Middle Eastern Subsidiaries, 1 [Member] | Foreign Revolving Lines [Member] | | | | | | | | | | | | | | | | | | | | |
Line of Credit Facility, Maximum Borrowing Capacity | | | | | | | | | | | $ 2,200 | | $ 2,200 | $ 2,200 | | | | | د.إ 8.0 | |
Line of Credit Facility, Interest Rate at Period End | | | | | | | | | | | 3.77% | | 3.77% | 3.77% | | 3.77% | | | | |
Revolving Credit Lines Used by Middle Eastern Subsidiaries, 2 [Member] | Foreign Revolving Lines [Member] | | | | | | | | | | | | | | | | | | | | |
Line of Credit Facility, Maximum Borrowing Capacity | | | | | | | | | | | $ 5,300 | | $ 5,300 | $ 5,300 | | | | | 19.5 | |
Line of Credit Facility, Interest Rate at Period End | | | | | | | | | | | 4.50% | | 4.50% | 4.50% | | 4.50% | | | | |
Revolving Credit Lines Used by Middle Eastern Subsidiaries, 3 [Member] | Foreign Revolving Lines [Member] | | | | | | | | | | | | | | | | | | | | |
Line of Credit Facility, Maximum Borrowing Capacity | | | | | | | | | | | $ 800 | | $ 800 | $ 800 | | | | | د.إ 3.0 | |
Line of Credit Facility, Interest Rate at Period End | | | | | | | | | | | 4.50% | | 4.50% | 4.50% | | 4.50% | | | | |
Revolving Credit Lines Used by Egypt Subsidiaries [Member] | Foreign Revolving Lines [Member] | | | | | | | | | | | | | | | | | | | | |
Line of Credit Facility, Maximum Borrowing Capacity | | | | | | | | | | | $ 6,200 | | $ 6,200 | $ 6,200 | | | | ج.م. 100.0 | | |
Line of Credit Facility, Interest Rate at Period End | | | | | | | | | | | 8.00% | | 8.00% | 8.00% | | 8.00% | | | | |
Revolving Credit Lines Used by Egypt Subsidiaries 2 [Member] | Foreign Revolving Lines [Member] | | | | | | | | | | | | | | | | | | | | |
Line of Credit Facility, Maximum Borrowing Capacity | | | | | | | | | | | $ 1,800 | | $ 1,800 | $ 1,800 | | ج.م. 28.2 | ج.م. 28.2 | | | |
Line of Credit Facility, Interest Rate at Period End | | | | | | | | | | | 8.00% | | 8.00% | 8.00% | | 8.00% | | | | |
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 | | | | | | | | | | | 4.30% | | 4.30% | 4.30% | | 4.30% | | | | |