Stock-Based Compensation (Details) - USD ($) $ / shares in Units, $ in Millions |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Apr. 30, 2019 |
Apr. 30, 2018 |
Apr. 30, 2019 |
Apr. 30, 2018 |
|
| Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | ||||
| Total intrinsic value of options exercised | $ 29.3 | $ 12.5 | ||
| Options granted, grant date fair value (in usd per share) | $ 12.27 | $ 9.29 | ||
| Aggregate intrinsic value of options outstanding | $ 96.5 | $ 96.5 | ||
| Aggregate intrinsic value of options exercisable | 88.3 | 88.3 | ||
| Employee Stock Option | ||||
| Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | ||||
| Share-based compensation expense | 1.4 | $ 1.3 | 8.3 | $ 6.8 |
| Tax benefit associated with stock options | 0.3 | 0.3 | 1.7 | 1.6 |
| Unrecognized compensation expense related to non-vested stock options granted | 9.5 | 9.5 | ||
| Performance Shares | ||||
| Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | ||||
| Share-based compensation expense | $ 1.5 | $ 2.0 | $ 4.5 | $ 5.7 |