Stockholders' Equity (Details) - USD ($) $ / shares in Units, $ in Thousands |
3 Months Ended | 9 Months Ended | 40 Months Ended | ||||
|---|---|---|---|---|---|---|---|
Apr. 30, 2025 |
Apr. 30, 2024 |
Apr. 30, 2025 |
Apr. 30, 2024 |
Apr. 30, 2025 |
Jun. 24, 2022 |
Dec. 21, 2021 |
|
| Equity, Class of Treasury Stock [Line Items] | |||||||
| Stock-based compensation expense | $ 8,188 | $ 9,351 | $ 26,798 | $ 29,049 | |||
| Purchase of common shares (in shares) | 0 | 16,200 | 3,230,972 | ||||
| Average price of treasury shares acquired (in dollars per share) | $ 106.45 | $ 85.80 | |||||
| Aggregate purchase price | $ 12,997 | $ 1,725 | $ 43,034 | $ 277,225 | |||
| December Twenty Twenty One Share Repurchase Plan | |||||||
| Equity, Class of Treasury Stock [Line Items] | |||||||
| Stock repurchase program authorized amount | $ 250,000 | ||||||
| Remaining authorized repurchase amount | $ 0 | 0 | 0 | ||||
| June Twenty Twenty Two Share Repurchase Plan | |||||||
| Equity, Class of Treasury Stock [Line Items] | |||||||
| Stock repurchase program authorized amount | $ 448,321 | ||||||
| Aggregate purchase price | 1,725 | ||||||
| Remaining authorized repurchase amount | $ 421,095 | $ 421,095 | $ 421,095 | ||||