Note 9 - Debt (Details Textual) $ in Thousands, د.إ in Millions, $ in Millions, ج.م. in Billions | Dec. 17, 2020USD ($) | May 01, 2020USD ($) | Sep. 20, 2018USD ($) | Jul. 28, 2016USD ($) | Jul. 28, 2016CAD ($) | Jun. 19, 2012USD ($) | Jan. 31, 2021 | Jul. 31, 2020 | Apr. 30, 2021 | Jul. 31, 2021 | Oct. 31, 2020USD ($) | Oct. 31, 2019USD ($) | Oct. 31, 2020USD ($) | Oct. 31, 2020AED (د.إ) | Jan. 31, 2020USD ($) | Nov. 30, 2019EGP (ج.م.) |
Debt and Lease Obligation, Total | | | | | | | | | | | $ 9,700 | | $ 9,700 | | $ 16,900 | |
Proceeds from Issuance of Long-term Debt, Total | | | | | | | | | | | 19 | | | | | |
Line of Credit, Current | | | | | | | | | | | $ 1,803 | | $ 1,803 | | $ 8,577 | |
Revolving Lines, North America [Member] | | | | | | | | | | | | | | | | |
Line of Credit Facility, Maximum Borrowing Capacity | | | $ 18,000 | | | | | | | | | | | | | |
Line of Credit Facility, Unused Capacity, Commitment Fee Percentage | | | 0.375% | | | | | | | | | | | | | |
Line of Credit Facility, Capital Expenditures Restrictions | | | $ 3,000 | | | | | | | | | | | | | |
Line of Credit Facility, Covenant Terms, EBITDA Ratio, Term One | | | 1.1 | | | | | | | | | | | | | |
Line of Credit Facility, Covenant Terms, EBITDA Ratio, Term Two | | | 1.1 | | | | | | | | | | | | | |
Line of Credit Facility, Covenant, Fixed Charge Coverage Ratio | | | | | | | | | | | | | 1.1 | | | |
Line of Credit Facility, Interest Rate at Period End | | | | | | | | | | | 5.09% | | 5.09% | 5.09% | | |
Line of Credit Facility, Current Borrowing Capacity | | | | | | | | | | | $ 5,800 | | $ 5,800 | | | |
Revolving Lines, North America [Member] | Foreign Subsidiaries [Member] | | | | | | | | | | | | | | | | |
Line of Credit Facility, Cash Available to Satisfy a Future Potential Repatriation Cure of Ratio Covenant Breach | | | | | | | | | | | 6,200 | | 6,200 | | | |
Revolving Lines, North America [Member] | Forecast [Member] | The Company and Its Subsidiaries [Member] | | | | | | | | | | | | | | | | |
Line of Credit Facility, Fixed Charge Coverage Ratio Required | | | | | | | | | 1.25 | 1.25 | | | | | | |
Revolving Lines, North America [Member] | Forecast [Member] | North American Loan Parties [Member] | | | | | | | | | | | | | | | | |
Line of Credit Facility, Fixed Charge Coverage Ratio Required | | | | | | | 1.1 | | 1.1 | 1.1 | | | | | | |
Revolving Lines, North America [Member] | Subsequent Event [Member] | | | | | | | | | | | | | | | | |
Repayments of Long-term Lines of Credit | $ 1,000 | | | | | | | | | | | | | | | |
Line of Credit Facility, Additional Fees to Be Incurred | 200 | | | | | | | | | | | | | | | |
Line of Credit Facility, Maximum Borrowing Capacity, Availability Block | $ 2,000 | | | | | | | | | | | | | | | |
Foreign Revolving Lines [Member] | | | | | | | | | | | | | | | | |
Line of Credit Facility, Maximum Borrowing Capacity | | | | | | | | | | | $ 20,200 | | $ 20,200 | | | |
Line of Credit Facility, Interest Rate at Period End | | | | | | | | | | | 3.88% | | 3.88% | 3.88% | | |
Letters of Credit Outstanding, Amount | | | | | | | | | | | $ 4,500 | | $ 4,500 | | | |
Proceeds from Issuance of Debt | | | | | | | | | | | 1,000 | | | | | |
Line of Credit Facility, Remaining Borrowing Capacity | | | | | | | | | | | $ 14,700 | | $ 14,700 | | | |
Foreign Revolving Lines [Member] | Minimum [Member] | | | | | | | | | | | | | | | | |
Line of Credit Facility, Interest Rate at Period End | | | | | | | | | | | 3.70% | | 3.70% | 3.70% | | |
Debt Instrument, Interest Rate, Stated Percentage | | | | | | | | | | | 4.50% | | 4.50% | 4.50% | | |
Foreign Revolving Lines [Member] | Maximum [Member] | | | | | | | | | | | | | | | | |
Line of Credit Facility, Interest Rate at Period End | | | | | | | | | | | 11.60% | | 11.60% | 11.60% | | |
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% | | | | | |
Foreign Revolving Lines [Member] | CBE Corridor Rate [Member] | | | | | | | | | | | | | | | | |
Debt Instrument, Basis Spread on Variable Rate | | | | | | | | | | | 1.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% | | | | | | | | |
Interest Rate 1 [Member] | Revolving Lines, North America [Member] | | | | | | | | | | | | | | | | |
Line of Credit Facility, Interest Rate at Period End | | | | | | | | | | | 6.25% | | 6.25% | 6.25% | | |
Interest Rate 2 [Member] | Revolving Lines, North America [Member] | | | | | | | | | | | | | | | | |
Line of Credit Facility, Interest Rate at Period End | | | | | | | | | | | 4.15% | | 4.15% | 4.15% | | |
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 | د.إ 8.0 | | |
Line of Credit Facility, Interest Rate at Period End | | | | | | | | | | | 3.70% | | 3.70% | 3.70% | | |
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 | د.إ 19.5 | | |
Line of Credit Facility, Interest Rate at Period End | | | | | | | | | | | 4.20% | | 4.20% | 4.20% | | |
Revolving Credit Lines Used by Middle Eastern Subsidiaries, 3 [Member] | Foreign Revolving Lines [Member] | | | | | | | | | | | | | | | | |
Line of Credit Facility, Maximum Borrowing Capacity | | | | | | | | | | | $ 12,700 | | $ 12,700 | | | ج.م. 0.2 |
Line of Credit Facility, Interest Rate at Period End | | | | | | | | | | | | | | | | 11.60% |
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.55% | | 4.55% | 4.55% | | |
Mortgage Note Secured by Tennessee Manufacturing Facility [Member] | | | | | | | | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | | | | 4.50% | | | | | | | | | | |
Debt Instrument, Maturity Date | | | | | | Jul. 1, 2027 | | | | | | | | | | |
Debt Instrument, Issuance Date | | | | | | Jun. 19, 2012 | | | | | | | | | | |
Proceeds from Issuance of Secured Debt | | | | | | $ 1,800 | | | | | | | | | | |
Debt Instrument, Periodic Payment, Total | | | | | | $ 13 | | | | | | | | | | |
Debt Instrument, Adjustable Interest Rate Period, Commencement Date | | | | | | Jun. 19, 2022 | | | | | | | | | | |
Debt Instrument, Interest Rate, Maximum Annual Increase | | | | | | 2.00% | | | | | | | | | | |
Debt Instrument, Adjustable Interest Rate, Ceiling | | | | | | 18.00% | | | | | | | | | | |
Debt Instrument, Adjustable Interest Rate, Floor | | | | | | 4.50% | | | | | | | | | | |