Accumulated Other Comprehensive (Loss) Income (Details) - USD ($) |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Apr. 30, 2017 |
Apr. 30, 2016 |
Apr. 30, 2017 |
Apr. 30, 2016 |
|
| Components and changes in accumulated other comprehensive (loss) income | ||||
| Balance | $ 454,370,000 | |||
| Balance | $ 503,877,000 | 503,877,000 | ||
| Accumulated Other Comprehensive Income | ||||
| Components and changes in accumulated other comprehensive (loss) income | ||||
| Balance | (15,728,000) | $ (6,802,000) | (11,795,000) | $ 1,224,000 |
| Balance | (14,344,000) | (2,803,000) | (14,344,000) | (2,803,000) |
| Foreign Currency Translation Adjustments | ||||
| Components and changes in accumulated other comprehensive (loss) income | ||||
| Other comprehensive loss for foreign currency translation | $ 1,384,000 | $ 3,999,000 | $ (2,549,000) | $ (4,027,000) |