Stockholders' Equity (Details) - USD ($) $ / shares in Units, $ in Thousands |
3 Months Ended | 6 Months Ended | 37 Months Ended | ||||
|---|---|---|---|---|---|---|---|
Jan. 31, 2025 |
Jan. 31, 2024 |
Jan. 31, 2025 |
Jan. 31, 2024 |
Jan. 31, 2025 |
Jun. 24, 2022 |
Dec. 21, 2021 |
|
| Equity, Class of Treasury Stock [Line Items] | |||||||
| Stock-based compensation expense | $ 8,073 | $ 9,246 | $ 18,610 | $ 19,698 | |||
| Purchase of common shares (in shares) | 16,200 | 16,200 | 3,230,972 | ||||
| Average price of treasury shares acquired (in dollars per share) | $ 106.45 | $ 106.45 | $ 85.80 | ||||
| Aggregate purchase price | $ 1,725 | $ 0 | $ 1,725 | $ 30,037 | $ 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 | ||||