Revenue (Narrative) (Details) - USD ($) $ in Millions |
3 Months Ended | 9 Months Ended | |||
|---|---|---|---|---|---|
Apr. 30, 2019 |
Apr. 30, 2018 |
Apr. 30, 2019 |
Apr. 30, 2018 |
Jul. 31, 2018 |
|
| New Accounting Pronouncements or Change in Accounting Principle [Line Items] | |||||
| Contract assets | $ 12.3 | $ 12.3 | |||
| Contract liabilities | 15.1 | $ 15.1 | $ 10.5 | ||
| Description of performance obligation timing | Generally, these contracts have terms of one year or less | ||||
| Increase in net sales and cost of sales | 240.7 | $ 239.8 | $ 704.5 | $ 683.0 | |
| Calculated under Revenue Guidance in Effect before Topic 606 | Accounting Standards Update 2014-09 | |||||
| New Accounting Pronouncements or Change in Accounting Principle [Line Items] | |||||
| Increase in net sales and cost of sales | $ 3.6 | $ 12.3 | |||