v3.26.3
SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES Narrative (Details)
$ in Thousands
12 Months Ended
Jul. 31, 2026
USD ($)
shares
Jul. 31, 2025
USD ($)
shares
Jul. 31, 2024
USD ($)
Maximum maturity of cash equivalents 3 months 3 months  
Accounts receivable $ 75,400 $ 69,400 $ 62,200
Inventory obsolescence reserves 3,800 3,700  
Customer list 17,778 18,907  
Goodwill 16,017 16,017  
Amortization of intangibles 1,200   500
Indefinite-lived trademarks and trade names 5,600 5,600  
Depreciation 22,000 20,800 18,800
Interest Costs Capitalized 0 0  
Impairment of property, plant and equipment 300 0 100
Pre-production overburden removal costs 0 0  
Pre-production development costs 3,100 3,500  
Stripping costs 4,800 4,700 5,400
Land 13,914 13,549  
Mineral rights 2,200 2,200  
Prepaid royalties 2,100 2,400  
Estimated net reclamation asset 3,000 3,100  
Estimated reclamation liability 5,800 5,900  
Outstanding natural gas forward contract, 2027 1,900    
Outstanding natural gas forward contract, 2028 1,200    
Outstanding natural gas forward contract, 2029 600    
Shipping and Handling Costs 67,200 64,900 59,200
Advertising expense 7,000 7,600 9,000
Research and development costs $ 2,100 $ 2,400 2,100
Stockholders' Equity Note, Stock Split, Conversion Ratio 2    
Common Stock, Shares Authorized | shares 30,000,000 15,000,000  
Adjustments to Additional Paid in Capital, Stock Split $ 800    
Common Stock      
Stock Issued During Period, Shares, Stock Splits | shares 1    
Dividend Distribution Percentage 133.33%    
Dividend Distribution Percentage Increase 33.33%    
Common Stock, Voting Rights one    
Class B      
Stock Issued During Period, Shares, Stock Splits | shares 1    
Common Stock, Voting Rights ten    
Payments in Advance      
Liability for Payments in Advance $ 200 $ 300  
Payments in Advance, Revenue Recognized $ 300    
Minimum      
Amortization period of intangible assets (years) 18 years    
Estimated useful life 2 years    
Maximum      
Amortization period of intangible assets (years) 20 years    
Estimated useful life 25 years    
Maximum | Buildings and leasehold improvements      
Estimated useful life 30 years    
Ultra Pet      
Intangible Assets     37,400
Customer list     20,400
Trade Names     5,200
Goodwill $ 12,400 $ 12,399 $ 11,800