Derivative instruments and hedging activities - Effect on Condensed Consolidated Statements of Comprehensive Income and Change in FV (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Jul. 31, 2026 |
Jul. 31, 2025 |
Jul. 31, 2024 |
|
| Derivative instruments and hedging activities | |||
| Gain (loss) recognized due to ineffectiveness | $ 0 | $ 0 | |
| Commodity derivatives | |||
| Derivative instruments and hedging activities | |||
| Amount of (Loss) Gain Recognized in AOCI | (14,677) | 6,258 | $ 3,448 |
| Gain (loss) recognized due to ineffectiveness | 0 | 0 | 0 |
| Location, Statement of Income, Balance [Axis]: us-gaap:CostOfGoodsAndServiceExcludingDepreciationDepletionAndAmortization | Commodity derivatives | |||
| Derivative instruments and hedging activities | |||
| Amount of Gain (Loss) Reclassified from AOCI into Income | $ (10,662) | $ 8,400 | $ 2,472 |
| X | ||||||||||
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition The net gain (loss) relating to components of the gain (loss) on the cash flow hedging instrument excluded from the assessment of cash flow hedge effectiveness. Recognized in earnings. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount, before tax and reclassification, of gain (loss) from derivative instrument designated and qualifying cash flow hedge included in assessment of hedge effectiveness. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount, before tax, of reclassification of gain (loss) from accumulated other comprehensive income (AOCI) for derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|