Condensed Consolidating Statements of Cash Flows (Detail) - USD ($) $ in Thousands |
12 Months Ended |
Aug. 31, 2017 |
Aug. 31, 2016 |
Aug. 31, 2015 |
Operating Activities |
|
|
|
Net cash provided by (used in) operating activities |
$ 87,847
|
$ 117,697
|
$ 131,434
|
Investing Activities |
|
|
|
Capital expenditures |
(28,195)
|
(20,209)
|
(22,516)
|
Proceeds from sale of property, plant and equipment |
570
|
9,296
|
1,244
|
Proceeds from sale of businesses, net of transaction costs |
0
|
9,695
|
0
|
Intercompany investment |
0
|
0
|
0
|
Business acquisitions, net of cash acquired |
0
|
(81,916)
|
0
|
Cash (used in ) provided by investing activities |
(27,625)
|
(83,134)
|
(21,272)
|
Financing Activities |
|
|
|
Proceeds from (Repayments of) Lines of Credit |
(18,750)
|
|
|
Intercompany loan activity |
0
|
0
|
0
|
Intercompany capital contributions |
0
|
0
|
0
|
Payment of deferred acquisition consideration |
(742)
|
0
|
0
|
Taxes paid related to the net share settlement of equity awards |
(1,065)
|
(1,409)
|
(2,466)
|
Debt issuance costs |
0
|
0
|
(2,025)
|
Purchase of treasury shares |
0
|
(17,101)
|
(212,003)
|
Repayments of Senior Debt |
500
|
|
|
Stock option exercises, related tax benefits and other |
8,917
|
6,416
|
5,396
|
Cash dividend |
(2,358)
|
(2,376)
|
(2,598)
|
Cash (used in) provided by financing activities |
(14,498)
|
(18,430)
|
(15,417)
|
Effect of exchange rate changes on cash |
4,243
|
(5,375)
|
(34,911)
|
Net increase in cash and cash equivalents |
49,967
|
10,758
|
59,834
|
Cash and cash equivalents - beginning of period |
179,604
|
168,846
|
109,012
|
Cash and cash equivalents - end of period |
229,571
|
179,604
|
168,846
|
Parent |
|
|
|
Operating Activities |
|
|
|
Net cash provided by (used in) operating activities |
98,589
|
58,926
|
90,632
|
Investing Activities |
|
|
|
Capital expenditures |
(3,391)
|
(2,135)
|
(1,086)
|
Proceeds from sale of property, plant and equipment |
0
|
13
|
0
|
Proceeds from sale of businesses, net of transaction costs |
|
0
|
|
Intercompany investment |
(6,900)
|
(339)
|
(3,727)
|
Business acquisitions, net of cash acquired |
|
0
|
|
Cash (used in ) provided by investing activities |
(10,291)
|
(2,461)
|
(4,813)
|
Financing Activities |
|
|
|
Intercompany loan activity |
(47,780)
|
(48,980)
|
(79,425)
|
Intercompany capital contributions |
0
|
0
|
0
|
Payment of deferred acquisition consideration |
0
|
|
|
Taxes paid related to the net share settlement of equity awards |
(1,065)
|
(1,409)
|
(2,466)
|
Debt issuance costs |
|
|
(2,025)
|
Purchase of treasury shares |
|
(17,101)
|
(212,003)
|
Stock option exercises, related tax benefits and other |
8,917
|
6,416
|
5,396
|
Cash dividend |
(2,358)
|
(2,376)
|
(2,598)
|
Cash (used in) provided by financing activities |
(61,536)
|
(67,200)
|
(95,062)
|
Effect of exchange rate changes on cash |
0
|
0
|
0
|
Net increase in cash and cash equivalents |
26,762
|
(10,735)
|
(9,243)
|
Cash and cash equivalents - beginning of period |
7,953
|
18,688
|
27,931
|
Cash and cash equivalents - end of period |
34,715
|
7,953
|
18,688
|
Guarantors |
|
|
|
Operating Activities |
|
|
|
Net cash provided by (used in) operating activities |
14,340
|
(1,953)
|
(20,750)
|
Investing Activities |
|
|
|
Capital expenditures |
(9,265)
|
(6,781)
|
(5,848)
|
Proceeds from sale of property, plant and equipment |
207
|
7,000
|
273
|
Proceeds from sale of businesses, net of transaction costs |
|
9,695
|
|
Intercompany investment |
0
|
(3,458)
|
0
|
Business acquisitions, net of cash acquired |
|
0
|
|
Cash (used in ) provided by investing activities |
(9,058)
|
6,456
|
(5,575)
|
Financing Activities |
|
|
|
Proceeds from (Repayments of) Lines of Credit |
0
|
|
|
Intercompany loan activity |
0
|
0
|
34,081
|
Intercompany capital contributions |
0
|
339
|
0
|
Payment of deferred acquisition consideration |
0
|
|
|
Taxes paid related to the net share settlement of equity awards |
0
|
0
|
0
|
Debt issuance costs |
|
|
0
|
Purchase of treasury shares |
|
0
|
0
|
Repayments of Senior Debt |
0
|
|
|
Stock option exercises, related tax benefits and other |
0
|
0
|
0
|
Cash dividend |
(5,353)
|
(5,338)
|
(10,676)
|
Cash (used in) provided by financing activities |
(5,353)
|
(4,999)
|
23,405
|
Effect of exchange rate changes on cash |
0
|
0
|
0
|
Net increase in cash and cash equivalents |
(71)
|
(496)
|
(2,920)
|
Cash and cash equivalents - beginning of period |
71
|
567
|
3,487
|
Cash and cash equivalents - end of period |
0
|
71
|
567
|
Non-Guarantors |
|
|
|
Operating Activities |
|
|
|
Net cash provided by (used in) operating activities |
39,672
|
66,062
|
72,228
|
Investing Activities |
|
|
|
Capital expenditures |
(15,539)
|
(11,293)
|
(15,582)
|
Proceeds from sale of property, plant and equipment |
363
|
2,283
|
971
|
Proceeds from sale of businesses, net of transaction costs |
|
0
|
|
Intercompany investment |
0
|
0
|
0
|
Business acquisitions, net of cash acquired |
|
(81,916)
|
|
Cash (used in ) provided by investing activities |
(15,176)
|
(90,926)
|
(14,611)
|
Financing Activities |
|
|
|
Proceeds from (Repayments of) Lines of Credit |
0
|
|
|
Intercompany loan activity |
47,780
|
48,980
|
45,344
|
Intercompany capital contributions |
6,900
|
3,458
|
3,727
|
Payment of deferred acquisition consideration |
(742)
|
|
|
Taxes paid related to the net share settlement of equity awards |
0
|
0
|
0
|
Debt issuance costs |
|
|
0
|
Purchase of treasury shares |
|
0
|
0
|
Repayments of Senior Debt |
0
|
|
|
Stock option exercises, related tax benefits and other |
0
|
0
|
0
|
Cash dividend |
(59,401)
|
0
|
0
|
Cash (used in) provided by financing activities |
(5,463)
|
52,228
|
49,291
|
Effect of exchange rate changes on cash |
4,243
|
(5,375)
|
(34,911)
|
Net increase in cash and cash equivalents |
23,276
|
21,989
|
71,997
|
Cash and cash equivalents - beginning of period |
171,580
|
149,591
|
77,594
|
Cash and cash equivalents - end of period |
194,856
|
171,580
|
149,591
|
Senior Credit Facility - Revolver | Senior Credit Facility |
|
|
|
Financing Activities |
|
|
|
Proceeds from (Repayments of) Lines of Credit |
0
|
(210)
|
220
|
Senior Credit Facility - Revolver | Senior Credit Facility | Parent |
|
|
|
Financing Activities |
|
|
|
Proceeds from (Repayments of) Lines of Credit |
|
0
|
0
|
Senior Credit Facility - Revolver | Senior Credit Facility | Guarantors |
|
|
|
Financing Activities |
|
|
|
Proceeds from (Repayments of) Lines of Credit |
|
0
|
0
|
Senior Credit Facility - Revolver | Senior Credit Facility | Non-Guarantors |
|
|
|
Financing Activities |
|
|
|
Proceeds from (Repayments of) Lines of Credit |
|
(210)
|
220
|
Senior Credit Facility - Term Loan | Senior Credit Facility |
|
|
|
Financing Activities |
|
|
|
Proceeds from (Repayments of) Lines of Credit |
(18,750)
|
(3,750)
|
(3,375)
|
Proceeds from term loan |
0
|
0
|
213,375
|
Senior Credit Facility - Term Loan | Senior Credit Facility | Parent |
|
|
|
Financing Activities |
|
|
|
Proceeds from (Repayments of) Lines of Credit |
(18,750)
|
(3,750)
|
(3,375)
|
Proceeds from term loan |
|
|
213,375
|
Senior Credit Facility - Term Loan | Senior Credit Facility | Guarantors |
|
|
|
Financing Activities |
|
|
|
Proceeds from (Repayments of) Lines of Credit |
|
0
|
0
|
Proceeds from term loan |
|
|
0
|
Senior Credit Facility - Term Loan | Senior Credit Facility | Non-Guarantors |
|
|
|
Financing Activities |
|
|
|
Proceeds from (Repayments of) Lines of Credit |
|
0
|
0
|
Proceeds from term loan |
|
|
0
|
5.625% Senior Notes | Senior Notes |
|
|
|
Financing Activities |
|
|
|
Repayments of Senior Debt |
500
|
0
|
11,941
|
5.625% Senior Notes | Senior Notes | Parent |
|
|
|
Financing Activities |
|
|
|
Repayments of Senior Debt |
500
|
|
11,941
|
5.625% Senior Notes | Senior Notes | Guarantors |
|
|
|
Financing Activities |
|
|
|
Repayments of Senior Debt |
|
|
0
|
5.625% Senior Notes | Senior Notes | Non-Guarantors |
|
|
|
Financing Activities |
|
|
|
Repayments of Senior Debt |
|
|
0
|
Consolidation, Eliminations |
|
|
|
Operating Activities |
|
|
|
Net cash provided by (used in) operating activities |
(64,754)
|
(5,338)
|
(10,676)
|
Investing Activities |
|
|
|
Capital expenditures |
0
|
0
|
0
|
Proceeds from sale of property, plant and equipment |
0
|
0
|
0
|
Proceeds from sale of businesses, net of transaction costs |
|
0
|
|
Intercompany investment |
6,900
|
3,797
|
3,727
|
Business acquisitions, net of cash acquired |
|
0
|
|
Cash (used in ) provided by investing activities |
6,900
|
3,797
|
3,727
|
Financing Activities |
|
|
|
Proceeds from (Repayments of) Lines of Credit |
0
|
|
|
Intercompany loan activity |
0
|
0
|
0
|
Intercompany capital contributions |
(6,900)
|
(3,797)
|
(3,727)
|
Payment of deferred acquisition consideration |
0
|
|
|
Taxes paid related to the net share settlement of equity awards |
0
|
0
|
0
|
Debt issuance costs |
|
|
0
|
Purchase of treasury shares |
|
0
|
0
|
Repayments of Senior Debt |
0
|
|
|
Stock option exercises, related tax benefits and other |
0
|
0
|
0
|
Cash dividend |
64,754
|
5,338
|
10,676
|
Cash (used in) provided by financing activities |
57,854
|
1,541
|
6,949
|
Effect of exchange rate changes on cash |
0
|
0
|
0
|
Net increase in cash and cash equivalents |
0
|
0
|
0
|
Cash and cash equivalents - beginning of period |
0
|
0
|
0
|
Cash and cash equivalents - end of period |
$ 0
|
0
|
0
|
Consolidation, Eliminations | Senior Credit Facility - Revolver | Senior Credit Facility |
|
|
|
Financing Activities |
|
|
|
Proceeds from (Repayments of) Lines of Credit |
|
0
|
0
|
Consolidation, Eliminations | Senior Credit Facility - Term Loan | Senior Credit Facility |
|
|
|
Financing Activities |
|
|
|
Proceeds from (Repayments of) Lines of Credit |
|
$ 0
|
0
|
Proceeds from term loan |
|
|
0
|
Consolidation, Eliminations | 5.625% Senior Notes | Senior Notes |
|
|
|
Financing Activities |
|
|
|
Repayments of Senior Debt |
|
|
$ 0
|