Stock-Based Compensation - Nonvested Stock Award Activity (Details) - USD ($) $ / shares in Units, $ in Thousands |
12 Months Ended |
Jul. 31, 2018 |
Jul. 31, 2017 |
Jul. 31, 2016 |
| Number of Shares |
|
|
|
| Nonvested stock awards at the beginning of the period (in shares) |
222,298,000
|
331,367,000
|
343,519,000
|
| Granted (in shares) |
122,260,000
|
113,065,000
|
175,700,000
|
| Vested (in shares) |
(121,788,000)
|
(216,212,000)
|
(183,045,000)
|
| Forfeited (in shares) |
(10,664,000)
|
(5,922,000)
|
(4,807,000)
|
| Nonvested stock awards at the end of the period (in shares) |
212,106,000
|
222,298,000
|
331,367,000
|
| Weighted Average Fair Value |
|
|
|
| Nonvested stock awards at the beginning of the period (in dollars per share) |
$ 66.28
|
$ 46.09
|
$ 32.77
|
| Granted (in dollars per share) |
101.74
|
81.77
|
55.40
|
| Vested (in dollars per share) |
60.25
|
43.62
|
30.06
|
| Forfeited (in dollars per share) |
95.09
|
59.40
|
45.06
|
| Nonvested stock awards at the end of the period (in dollars per share) |
$ 88.87
|
$ 66.28
|
$ 46.09
|
| Aggregate fair value, vested in period |
$ 7,338
|
$ 9,431
|
$ 5,503
|
| Number of Time-based Shares |
|
|
|
| Number of Shares |
|
|
|
| Nonvested stock awards at the beginning of the period (in shares) |
196,818,000
|
331,367,000
|
343,519,000
|
| Granted (in shares) |
94,309,000
|
86,305,000
|
175,700,000
|
| Vested (in shares) |
(115,943,000)
|
(214,932,000)
|
(183,045,000)
|
| Forfeited (in shares) |
(6,864,000)
|
(5,922,000)
|
(4,807,000)
|
| Nonvested stock awards at the end of the period (in shares) |
168,320,000
|
196,818,000
|
331,367,000
|
| Number of Performance-based Shares |
|
|
|
| Number of Shares |
|
|
|
| Nonvested stock awards at the beginning of the period (in shares) |
16,235,000
|
|
|
| Granted (in shares) |
17,486,000
|
16,960,000
|
|
| Vested (in shares) |
(5,845,000)
|
(725,000)
|
|
| Forfeited (in shares) |
(1,800,000)
|
|
|
| Nonvested stock awards at the end of the period (in shares) |
26,076,000
|
16,235,000
|
|
| Number of Market-based Shares |
|
|
|
| Number of Shares |
|
|
|
| Nonvested stock awards at the beginning of the period (in shares) |
9,245,000
|
|
|
| Granted (in shares) |
10,465,000
|
9,800,000
|
|
| Vested (in shares) |
0
|
(555,000)
|
|
| Forfeited (in shares) |
(2,000,000)
|
|
|
| Nonvested stock awards at the end of the period (in shares) |
17,710,000
|
9,245,000
|
|