Stock-Based Compensation - Income Tax Benefit From Stock-based Awards (Details) - USD ($) |
9 Months Ended | |||
|---|---|---|---|---|
Apr. 30, 2017 |
Apr. 30, 2016 |
Jul. 31, 2016 |
Aug. 01, 2005 |
|
| Income Tax Benefits From Stock Based Awards [Abstract] | ||||
| Actual income tax benefit recorded for the tax deductions relating to the settlement of stock-based awards | $ 352,000 | $ 150,000 | ||
| Less: Tax benefit initially recognized on settled stock-based awards vesting subsequent to the adoption of accounting standards that require us to expense stock-based awards | 274,000 | 127,000 | ||
| Excess income tax benefit from settled equity-classified stock-based awards recorded as an increase to additional paid-in capital and reported as a cash inflow from financing activities in our Condensed Consolidated Statements of Cash Flows | 78,000 | 23,000 | ||
| Hypothetical tax benefits related to stock-based awards | 16,347,000 | $ 16,937,000 | $ 8,593,000 | |
| Reduction to APIC and accumulated hypothetical tax benefits | $ 590,000 | $ 81,000 | ||