v3.24.1.1.u2
Inventories - Narrative (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Apr. 30, 2024
Apr. 30, 2023
Apr. 30, 2024
Apr. 30, 2023
Jul. 31, 2023
Inventory Disclosure [Abstract]          
Excess and obsolete inventory reserve $ 800   $ 800   $ 900
Capitalized depreciation costs 6,800 $ 4,900 16,800 $ 13,500  
Capitalized leases costs used in production of inventory 1,100 $ 1,200 3,400    
Sonoma-Cutrer Vineyards          
ScheduleOfBusinessAcquisitionsByAcquisitionTable [Line Items]          
Inventories $ 61,419   $ 61,419