Stockholders' Equity (Details) - USD ($) $ / shares in Units, $ in Thousands |
3 Months Ended | 9 Months Ended | ||||
|---|---|---|---|---|---|---|
Apr. 30, 2026 |
Apr. 30, 2025 |
Apr. 30, 2026 |
Apr. 30, 2025 |
Dec. 17, 2025 |
Jun. 18, 2025 |
|
| Equity, Class of Treasury Stock [Line Items] | ||||||
| Stock-based compensation expense | $ 6,702 | $ 8,188 | $ 25,599 | $ 26,798 | ||
| Purchase of common shares (in shares) | 538,560 | 831,526 | ||||
| Average price of treasury shares acquired (in dollars per share) | $ 93.77 | $ 97.15 | ||||
| Aggregate purchase price | $ 50,500 | $ 80,780 | $ 1,725 | |||
| June Twenty Twenty Five Share Repurchase Plan | ||||||
| Equity, Class of Treasury Stock [Line Items] | ||||||
| Stock repurchase program authorized amount | $ 400,000 | |||||
| Remaining authorized repurchase amount | $ 298,520 | $ 298,520 | ||||
| Amended and Restated Equity and Incentive Plan | ||||||
| Equity, Class of Treasury Stock [Line Items] | ||||||
| Maximum number of shares issuable (in shares) | 2,800,000 | |||||
| Remaining shares available for grant (in shares) | 2,799,761 | 2,799,761 | ||||