v3.26.3
DERIVATIVES AND HEDGING - Schedule of Consolidated Statements of Income and Comprehensive Income Due to Changes in Fair Value of Derivative Instruments (Details) - USD ($)
$ in Thousands
12 Months Ended
Jul. 31, 2026
Jul. 31, 2025
Jul. 31, 2024
Income Statement Location [Axis]: us-gaap:InterestIncomeExpenseNonoperatingNet      
Derivative [Line Items]      
Derivative, Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration] Interest Income (Expense), Nonoperating Interest Income (Expense), Nonoperating Interest Income (Expense), Nonoperating
Total gain (loss) $ 156 $ (5) $ (160)
Income Statement Location [Axis]: us-gaap:OtherNonoperatingIncomeExpense      
Derivative [Line Items]      
Derivative, Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration] Other income, net Other income, net Other income, net
Total gain (loss) $ 10,826 $ 5,843 $ 0
Income Statement Location [Axis]: us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax      
Derivative [Line Items]      
Derivative, Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration] Net sales Net sales Net sales
Total gain (loss) $ (1,173) $ (559) $ (962)
Foreign currency forward contracts | Income Statement Location [Axis]: us-gaap:InterestIncomeExpenseNonoperatingNet      
Derivative [Line Items]      
Gain (loss) recognized in income, net of tax 0 0 0
Foreign currency forward contracts | Income Statement Location [Axis]: us-gaap:OtherNonoperatingIncomeExpense      
Derivative [Line Items]      
Gain (loss) recognized in income, net of tax 66 0 0
Foreign currency forward contracts | Income Statement Location [Axis]: us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax      
Derivative [Line Items]      
Gain (loss) recognized in income, net of tax (1,173) (559) (962)
Warrants to purchase shares | Income Statement Location [Axis]: us-gaap:InterestIncomeExpenseNonoperatingNet      
Derivative [Line Items]      
Gain (loss) recognized in income, net of tax 0 0  
Warrants to purchase shares | Income Statement Location [Axis]: us-gaap:OtherNonoperatingIncomeExpense      
Derivative [Line Items]      
Gain (loss) recognized in income, net of tax 10,760 5,843  
Warrants to purchase shares | Income Statement Location [Axis]: us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax      
Derivative [Line Items]      
Gain (loss) recognized in income, net of tax 0 0  
Interest rate swap agreements | Income Statement Location [Axis]: us-gaap:InterestIncomeExpenseNonoperatingNet      
Derivative [Line Items]      
Gain (loss) recognized in income, net of tax 156 (5) (160)
Interest rate swap agreements | Income Statement Location [Axis]: us-gaap:OtherNonoperatingIncomeExpense      
Derivative [Line Items]      
Gain (loss) recognized in income, net of tax 0 0 0
Interest rate swap agreements | Income Statement Location [Axis]: us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax      
Derivative [Line Items]      
Gain (loss) recognized in income, net of tax $ 0 $ 0 $ 0