Share-Based Payments (Details) - USD ($) | 12 Months Ended | | |
Aug. 31, 2020 | Aug. 31, 2019 | Aug. 31, 2018 | Jan. 31, 2018 | Aug. 31, 2017 |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | |
Share-based payment expense | $ 38,200,000 | $ 29,200,000 | $ 32,300,000 | | |
Restricted Stock | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number of Shares [Roll Forward] | | | | | |
Forfeited (in shares) | (100,000) | 0 | | | |
Weighted Average Grant Date Fair Value Per Share [Roll Forward] | | | | | |
Forfeited, Weighted Average Grant Date Fair Value Per Share (in dollars per share) | $ 135.43 | $ 159.88 | | | |
Stock Options | $40.01 - $100.00 (average life - 2.1 years) | | | | | |
Share-based Payment Arrangement, Option, Exercise Price Range, End of Period [Abstract] | | | | | |
Range of option exercise prices: lower range limit (in dollars per share) | 40.01 | | | | |
Range of option exercise prices: upper range limit (in dollars per share) | $ 100 | | | | |
Range of option exercise prices: average life | 2 years 1 month 6 days | | | | |
Stock Options | $100.01 - $160.00 (average life - 8.3 years) | | | | | |
Share-based Payment Arrangement, Option, Exercise Price Range, End of Period [Abstract] | | | | | |
Range of option exercise prices: lower range limit (in dollars per share) | $ 100.01 | | | | |
Range of option exercise prices: upper range limit (in dollars per share) | $ 160 | | | | |
Range of option exercise prices: average life | 8 years 3 months 19 days | | | | |
Stock Options | $160.01 - $210.00 (average life - 5.2 years) | | | | | |
Share-based Payment Arrangement, Option, Exercise Price Range, End of Period [Abstract] | | | | | |
Range of option exercise prices: lower range limit (in dollars per share) | $ 160.01 | | | | |
Range of option exercise prices: upper range limit (in dollars per share) | $ 210 | | | | |
Range of option exercise prices: average life | 5 years 2 months 12 days | | | | |
Stock Options | $210.01 - $239.76 (average life - 6.1 years) | | | | | |
Share-based Payment Arrangement, Option, Exercise Price Range, End of Period [Abstract] | | | | | |
Range of option exercise prices: lower range limit (in dollars per share) | $ 210.01 | | | | |
Range of option exercise prices: upper range limit (in dollars per share) | $ 239.76 | | | | |
Range of option exercise prices: average life | 6 years 1 month 6 days | | | | |
Stock Incentive Plan | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | |
Number of shares authorized for issuance (in shares) | | | | 2,700,000 | |
Number of shares available for grant (in shares) | 700,000 | 1,400,000 | 1,600,000 | | |
Years of service eligible for continued vesting | 60 years | | | | |
Age to be attained allowing for continued vesting | 10 years | | | | |
Share-based payment expense | $ 38,200,000 | $ 29,200,000 | $ 32,300,000 | | |
Stock Incentive Plan | $40.01 - $100.00 (average life - 2.1 years) | | | | | |
Share-based Payment Arrangement, Option, Exercise Price Range, End of Period [Abstract] | | | | | |
Range of option exercise prices: Number of Shares, Outstanding | 100,000 | | | | |
Range of option exercise prices: Weighted Average Exercise Price, Outstanding (in dollars per share) | $ 62.25 | | | | |
Range of option exercise prices: Number of Shares, Exercisable | 100,000 | | | | |
Range of option exercise prices: Weighted Average Exercise Price, Exercisable (in dollars per share) | $ 62.25 | | | | |
Stock Incentive Plan | $100.01 - $160.00 (average life - 8.3 years) | | | | | |
Share-based Payment Arrangement, Option, Exercise Price Range, End of Period [Abstract] | | | | | |
Range of option exercise prices: Number of Shares, Outstanding | 700,000 | | | | |
Range of option exercise prices: Weighted Average Exercise Price, Outstanding (in dollars per share) | $ 123.01 | | | | |
Range of option exercise prices: Number of Shares, Exercisable | 200,000 | | | | |
Range of option exercise prices: Weighted Average Exercise Price, Exercisable (in dollars per share) | $ 126.16 | | | | |
Stock Incentive Plan | $160.01 - $210.00 (average life - 5.2 years) | | | | | |
Share-based Payment Arrangement, Option, Exercise Price Range, End of Period [Abstract] | | | | | |
Range of option exercise prices: Number of Shares, Outstanding | 100,000 | | | | |
Range of option exercise prices: Weighted Average Exercise Price, Outstanding (in dollars per share) | $ 207.80 | | | | |
Range of option exercise prices: Number of Shares, Exercisable | 100,000 | | | | |
Range of option exercise prices: Weighted Average Exercise Price, Exercisable (in dollars per share) | $ 207.80 | | | | |
Stock Incentive Plan | $210.01 - $239.76 (average life - 6.1 years) | | | | | |
Share-based Payment Arrangement, Option, Exercise Price Range, End of Period [Abstract] | | | | | |
Range of option exercise prices: Number of Shares, Outstanding | 0 | | | | |
Range of option exercise prices: Weighted Average Exercise Price, Outstanding (in dollars per share) | $ 239.76 | | | | |
Range of option exercise prices: Number of Shares, Exercisable | 0 | | | | |
Range of option exercise prices: Weighted Average Exercise Price, Exercisable (in dollars per share) | $ 239.76 | | | | |
Stock Incentive Plan | Restricted Stock | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | |
Share-based payment expense | $ 24,600,000 | $ 25,100,000 | $ 27,900,000 | | |
Share-based Compensation Arrangement, Restricted Stock Awards [Abstract] | | | | | |
Share-based compensation vesting period (years) | 4 years | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number of Shares [Roll Forward] | | | | | |
Beginning of period, Outstanding (in shares) | 400,000 | 400,000 | 400,000 | | |
Granted (in shares) | 200,000 | 200,000 | 200,000 | | |
Vested (in shares) | (100,000) | (200,000) | (200,000) | | |
End of period, Outstanding (in shares) | 350,000 | 400,000 | 400,000 | | |
Weighted Average Grant Date Fair Value Per Share [Roll Forward] | | | | | |
Beginning of period, Outstanding, Weighted Average Grant date Fair Value Per Share (in dollars per share) | $ 156.32 | $ 186.63 | $ 197.41 | | |
Granted, Weighted Average Grant Date Fair Value Per Share (in dollars per share) | 122.10 | 120.73 | 154.95 | | |
Vested, Weighted Average Grant Date Fair Value Per Share (in dollars per share) | 171.92 | 184.60 | 177.79 | | |
End of period, Outstanding, Weighted Average Grant Date Fair Value Per Share (in dollars per share) | $ 134.68 | $ 156.32 | $ 186.63 | | |
Unrecognized compensation cost | $ 26,200,000 | | | | |
Unrecognized compensation cost period of recognition (years) | 1 year 7 months 6 days | | | | |
Total fair value of shares vested | $ 22,800,000 | $ 26,900,000 | $ 26,600,000 | | |
Stock Incentive Plan | Stock Options | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | |
Share-based payment expense | $ 4,900,000 | $ 2,700,000 | $ 3,100,000 | | |
Share-based Compensation Arrangement, Restricted Stock Awards [Abstract] | | | | | |
Share-based compensation vesting period (years) | 3 years | | | | |
Weighted Average Grant Date Fair Value Per Share [Roll Forward] | | | | | |
Unrecognized compensation cost | $ 15,200,000 | | | | |
Unrecognized compensation cost period of recognition (years) | 1 year 10 months 24 days | | | | |
Share-based Compensation Arrangement, Stock Options [Abstract] | | | | | |
Award expiration term | 10 years | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding [Roll Forward] | | | | | |
Beginning of period, Outstanding, Number of Shares | 400,000 | 300,000 | 300,000 | | |
Granted, Number of Shares | 500,000 | 100,000 | 0 | | |
Stock options exercised (in shares) | 0 | 0 | 0 | | |
End of period, Outstanding, Number of Shares | 915,000 | 400,000 | 300,000 | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Weighted Average Exercise Price [Roll Forward] | | | | | |
Beginning of period, Outstanding, Weighted average exercise price (in dollars per share) | $ 146.70 | $ 154.69 | $ 156.43 | | |
Granted, Weighted average exercise price (in dollars per share) | 121.87 | 116.40 | 156.39 | | |
Exercised, Weighted average exercise price (in dollars per share) | 116.36 | | 115.27 | | |
End of period, Outstanding, Weighted average exercise price (in dollars per share) | $ 133.19 | $ 146.70 | $ 154.69 | | |
Exercisable, Number of shares outstanding (in shares) | 400,000 | 300,000 | 200,000 | | 200,000 |
Exercisable, Weighted average exercise price (in dollars per share) | $ 151.07 | $ 147.51 | $ 134.13 | | $ 106.54 |
Share-based Payment Arrangement, Option, Exercise Price Range, End of Period [Abstract] | | | | | |
Total intrinsic value of stock options expected to vest | | | $ 500,000 | | |
Stock options exercised (in shares) | 0 | 0 | 0 | | |
Total intrinsic value of stock options outstanding | $ 3,300,000 | | | | |
Total intrinsic value of stock options expected to vest | 0 | | | | |
Total intrinsic value of stock options exercisable | 3,300,000 | | | | |
Stock Incentive Plan | Performance stock units | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | |
Share-based payment expense | 7,300,000 | $ 0 | $ 0 | | |
Stock Incentive Plan | Director share units | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | |
Share-based payment expense | $ 1,400,000 | $ 1,400,000 | $ 1,300,000 | | |
Supplemental Deferred Savings Plan | Performance stock units | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number of Shares [Roll Forward] | | | | | |
Beginning of period, Outstanding (in shares) | 0 | 0 | | | |
End of period, Outstanding (in shares) | 67,000 | 0 | 0 | | |
Weighted Average Grant Date Fair Value Per Share [Roll Forward] | | | | | |
Unrecognized compensation cost | $ 1,900,000 | | | | |
Unrecognized compensation cost period of recognition (years) | 2 years 1 month 6 days | | | | |
Supplemental Deferred Savings Plan | Employee Deferred Share Units | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | |
Share-based payment expense | $ 0 | $ 0 | $ 0 | | |
Share-based Payment Arrangement, Option, Exercise Price Range, End of Period [Abstract] | | | | | |
Deferred compensation, number of share units outstanding | 7,500 | | | | |
Supplemental Deferred Savings Plan | Restricted Stock Units (RSUs) | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | |
Share-based payment expense | | $ 0 | $ 0 | | |
Directors' Deferred Compensation Plan | Restricted Stock Units (RSUs) | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | |
Number of shares available for grant (in shares) | 320,000 | 360,000 | 370,000 | | |
Share-based Payment Arrangement, Option, Exercise Price Range, End of Period [Abstract] | | | | | |
Deferred compensation, number of share units outstanding | 98,000 | | | | |
Employee Stock Purchase Plan | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | |
Number of shares authorized for issuance (in shares) | 1,500,000 | | | | |
Number of shares available for grant (in shares) | 1,000,000 | | | | |
Share-based Payment Arrangement, Option, Exercise Price Range, End of Period [Abstract] | | | | | |
Employee discount on purchases of common stock | 5.00% | | | | |
Service Options | Stock Incentive Plan | Stock Options | | | | | |
Share-based Compensation Arrangement, Restricted Stock Awards [Abstract] | | | | | |
Share-based compensation vesting period (years) | 3 years | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions and Methodology [Abstract] | | | | | |
Dividend yield | 0.40% | 0.40% | 0.30% | | |
Expected volatility | 33.70% | 32.80% | 30.90% | | |
Risk-free interest rate | 1.30% | 3.00% | 2.00% | | |
Expected life of options | 5 years | 4 years | 4 years | | |
Weighted-average fair value of options (in dollars per share) | $ 34.22 | $ 34.06 | $ 41.87 | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding [Roll Forward] | | | | | |
End of period, Outstanding, Number of Shares | 815,000 | | | | |
Market Options | Stock Incentive Plan | Stock Options | | | | | |
Share-based Compensation Arrangement, Restricted Stock Awards [Abstract] | | | | | |
Share-based compensation vesting period (years) | 4 years | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number of Shares [Roll Forward] | | | | | |
Granted (in shares) | | 0 | 0 | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions and Methodology [Abstract] | | | | | |
Dividend yield | 0.40% | | | | |
Expected volatility | 33.70% | | | | |
Risk-free interest rate | 1.50% | | | | |
Expected life of options | 7 years | | | | |
Weighted-average fair value of options (in dollars per share) | $ 44.74 | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding [Roll Forward] | | | | | |
End of period, Outstanding, Number of Shares | 100,000 | | | | |