Condensed Consolidating Statements of Cash Flows (Detail) - USD ($) $ in Thousands |
12 Months Ended |
Aug. 31, 2018 |
Aug. 31, 2017 |
Aug. 31, 2016 |
Operating Activities |
|
|
|
Net cash provided by (used in) operating activities |
$ 106,093
|
$ 88,499
|
$ 117,697
|
Investing Activities |
|
|
|
Capital expenditures |
(20,870)
|
(28,195)
|
(20,209)
|
Proceeds from sale of property, plant and equipment |
153
|
570
|
9,296
|
Rental asset buyout for Viking divestiture |
(27,718)
|
0
|
0
|
Proceeds from sale of businesses, net of transaction costs |
8,902
|
0
|
9,695
|
Cash paid for business acquisitions, net of cash acquired |
(23,218)
|
0
|
(81,916)
|
Intercompany investment |
0
|
0
|
0
|
Net Cash Used in Investing Activities |
(62,751)
|
(27,625)
|
(83,134)
|
Financing Activities |
|
|
|
Net repayments on revolving credit facility |
|
|
(210)
|
Principal Repayments on Term Loan |
(30,000)
|
(18,750)
|
(3,750)
|
Purchase of treasury shares |
0
|
0
|
(17,101)
|
Redemption of 5.625% Senior Notes |
|
(500)
|
|
Taxes paid related to the net share settlement of equity awards |
(1,284)
|
(1,065)
|
(1,409)
|
Stock Option Exercises Related Tax Benefits And Other |
15,681
|
8,265
|
6,416
|
Payment of deferred acquisition consideration |
0
|
(742)
|
0
|
Cash dividend |
(2,390)
|
(2,358)
|
(2,376)
|
Changes in Receivables and Payable to Subsidiaries |
0
|
|
|
Intercompany loan activity |
|
0
|
0
|
Intercompany capital contributions |
0
|
0
|
0
|
Cash (used in) provided by financing activities |
17,993
|
15,150
|
18,430
|
Effect of Exchange Rate on Cash |
(4,430)
|
4,243
|
(5,375)
|
Cash and Cash Equivalents, Period Increase (Decrease) |
20,919
|
49,967
|
10,758
|
Cash and cash equivalents - beginning of period |
229,571
|
179,604
|
168,846
|
Cash and cash equivalents - end of period |
250,490
|
229,571
|
179,604
|
Parent |
|
|
|
Operating Activities |
|
|
|
Net cash provided by (used in) operating activities |
63,264
|
99,241
|
58,926
|
Investing Activities |
|
|
|
Capital expenditures |
(2,822)
|
(3,391)
|
(2,135)
|
Proceeds from sale of property, plant and equipment |
0
|
0
|
13
|
Rental asset buyout for Viking divestiture |
0
|
|
|
Proceeds from sale of businesses, net of transaction costs |
198
|
|
0
|
Cash paid for business acquisitions, net of cash acquired |
0
|
|
0
|
Intercompany investment |
(11,754)
|
(6,900)
|
(339)
|
Net Cash Used in Investing Activities |
(14,378)
|
(10,291)
|
(2,461)
|
Financing Activities |
|
|
|
Net repayments on revolving credit facility |
|
|
0
|
Principal Repayments on Term Loan |
(30,000)
|
(18,750)
|
(3,750)
|
Purchase of treasury shares |
|
|
(17,101)
|
Redemption of 5.625% Senior Notes |
|
(500)
|
|
Taxes paid related to the net share settlement of equity awards |
(1,284)
|
(1,065)
|
(1,409)
|
Stock Option Exercises Related Tax Benefits And Other |
15,681
|
8,265
|
6,416
|
Payment of deferred acquisition consideration |
|
0
|
|
Cash dividend |
(2,390)
|
(2,358)
|
(2,376)
|
Changes in Receivables and Payable to Subsidiaries |
2,041
|
|
|
Intercompany loan activity |
|
(47,780)
|
(48,980)
|
Intercompany capital contributions |
0
|
0
|
0
|
Cash (used in) provided by financing activities |
15,952
|
62,188
|
67,200
|
Effect of Exchange Rate on Cash |
0
|
0
|
0
|
Cash and Cash Equivalents, Period Increase (Decrease) |
32,934
|
26,762
|
(10,735)
|
Cash and cash equivalents - beginning of period |
34,715
|
7,953
|
18,688
|
Cash and cash equivalents - end of period |
67,649
|
34,715
|
7,953
|
Guarantors |
|
|
|
Operating Activities |
|
|
|
Net cash provided by (used in) operating activities |
27,673
|
14,340
|
(1,953)
|
Investing Activities |
|
|
|
Capital expenditures |
(8,015)
|
(9,265)
|
(6,781)
|
Proceeds from sale of property, plant and equipment |
99
|
207
|
7,000
|
Rental asset buyout for Viking divestiture |
0
|
|
|
Proceeds from sale of businesses, net of transaction costs |
0
|
|
9,695
|
Cash paid for business acquisitions, net of cash acquired |
(1,732)
|
|
0
|
Intercompany investment |
(1)
|
0
|
(3,458)
|
Net Cash Used in Investing Activities |
(9,649)
|
(9,058)
|
6,456
|
Financing Activities |
|
|
|
Net repayments on revolving credit facility |
|
|
0
|
Principal Repayments on Term Loan |
0
|
0
|
0
|
Purchase of treasury shares |
|
|
0
|
Redemption of 5.625% Senior Notes |
|
0
|
|
Taxes paid related to the net share settlement of equity awards |
0
|
0
|
0
|
Stock Option Exercises Related Tax Benefits And Other |
0
|
0
|
0
|
Payment of deferred acquisition consideration |
|
0
|
|
Cash dividend |
0
|
(5,353)
|
(5,338)
|
Changes in Receivables and Payable to Subsidiaries |
(18,024)
|
|
|
Intercompany loan activity |
|
0
|
0
|
Intercompany capital contributions |
0
|
0
|
339
|
Cash (used in) provided by financing activities |
18,024
|
5,353
|
4,999
|
Effect of Exchange Rate on Cash |
0
|
0
|
0
|
Cash and Cash Equivalents, Period Increase (Decrease) |
0
|
(71)
|
(496)
|
Cash and cash equivalents - beginning of period |
0
|
71
|
567
|
Cash and cash equivalents - end of period |
0
|
0
|
71
|
Non-Guarantors |
|
|
|
Operating Activities |
|
|
|
Net cash provided by (used in) operating activities |
15,156
|
39,672
|
66,062
|
Investing Activities |
|
|
|
Capital expenditures |
(10,033)
|
(15,539)
|
(11,293)
|
Proceeds from sale of property, plant and equipment |
54
|
363
|
2,283
|
Rental asset buyout for Viking divestiture |
(27,718)
|
|
|
Proceeds from sale of businesses, net of transaction costs |
8,704
|
|
0
|
Cash paid for business acquisitions, net of cash acquired |
(21,486)
|
|
(81,916)
|
Intercompany investment |
0
|
0
|
0
|
Net Cash Used in Investing Activities |
(50,479)
|
(15,176)
|
(90,926)
|
Financing Activities |
|
|
|
Net repayments on revolving credit facility |
|
|
(210)
|
Principal Repayments on Term Loan |
0
|
0
|
0
|
Purchase of treasury shares |
|
|
0
|
Redemption of 5.625% Senior Notes |
|
0
|
|
Taxes paid related to the net share settlement of equity awards |
0
|
0
|
0
|
Stock Option Exercises Related Tax Benefits And Other |
0
|
0
|
0
|
Payment of deferred acquisition consideration |
|
(742)
|
|
Cash dividend |
0
|
(59,401)
|
0
|
Changes in Receivables and Payable to Subsidiaries |
15,983
|
|
|
Intercompany loan activity |
|
47,780
|
48,980
|
Intercompany capital contributions |
11,755
|
6,900
|
3,458
|
Cash (used in) provided by financing activities |
(27,738)
|
(5,463)
|
(52,228)
|
Effect of Exchange Rate on Cash |
(4,430)
|
4,243
|
(5,375)
|
Cash and Cash Equivalents, Period Increase (Decrease) |
(12,015)
|
23,276
|
21,989
|
Cash and cash equivalents - beginning of period |
194,856
|
171,580
|
149,591
|
Cash and cash equivalents - end of period |
182,841
|
194,856
|
171,580
|
Consolidation, Eliminations |
|
|
|
Operating Activities |
|
|
|
Net cash provided by (used in) operating activities |
0
|
(64,754)
|
(5,338)
|
Investing Activities |
|
|
|
Capital expenditures |
0
|
0
|
0
|
Proceeds from sale of property, plant and equipment |
0
|
0
|
0
|
Rental asset buyout for Viking divestiture |
0
|
|
|
Proceeds from sale of businesses, net of transaction costs |
0
|
|
0
|
Cash paid for business acquisitions, net of cash acquired |
0
|
|
0
|
Intercompany investment |
11,755
|
6,900
|
3,797
|
Net Cash Used in Investing Activities |
11,755
|
6,900
|
3,797
|
Financing Activities |
|
|
|
Net repayments on revolving credit facility |
|
|
0
|
Principal Repayments on Term Loan |
0
|
0
|
0
|
Purchase of treasury shares |
|
|
0
|
Redemption of 5.625% Senior Notes |
|
0
|
|
Taxes paid related to the net share settlement of equity awards |
0
|
0
|
0
|
Stock Option Exercises Related Tax Benefits And Other |
0
|
0
|
0
|
Payment of deferred acquisition consideration |
|
0
|
|
Cash dividend |
0
|
64,754
|
5,338
|
Changes in Receivables and Payable to Subsidiaries |
0
|
|
|
Intercompany loan activity |
|
0
|
0
|
Intercompany capital contributions |
(11,755)
|
(6,900)
|
(3,797)
|
Cash (used in) provided by financing activities |
11,755
|
(57,854)
|
(1,541)
|
Effect of Exchange Rate on Cash |
0
|
0
|
0
|
Cash and Cash Equivalents, Period Increase (Decrease) |
0
|
0
|
0
|
Cash and cash equivalents - beginning of period |
0
|
0
|
0
|
Cash and cash equivalents - end of period |
0
|
0
|
0
|
Senior Notes | 5.625% Senior Notes |
|
|
|
Financing Activities |
|
|
|
Redemption of 5.625% Senior Notes |
$ 0
|
$ (500)
|
$ 0
|