CONDENSED CONSOLIDATED STATEMENT OF SHAREHOLDERS' EQUITY - USD ($) $ in Thousands | Common Stock [Member] | Additional Paid-In Capital [Member] | Retained Earnings [Member] | Accumulated Other Comprehensive Income (Loss) [Member] | Treasury Stock [Member] | Total |
Beginning balance at Aug. 31, 2017 | $ 20 | $ 150,692 | $ 315,764 | $ (28,075) | $ (299,014) | $ 139,387 |
Beginning balance, shares at Aug. 31, 2017 | 19,688,238 | | | | 5,704,055 | |
Issuance of common stock under share-based compensation plan, net of shares withheld for taxes | | (1,548) | | | | (1,548) |
Issuance of common stock under share-based compensation plan, net of shares withheld for taxes, shares | 32,279 | | | | | |
Stock-based compensation | | 1,777 | | | | 1,777 |
Cash dividends | | | (6,888) | | | (6,888) |
Acquisition of treasury stock | | | | | $ (3,893) | (3,893) |
Acquisition of treasury stock, shares | | | | | 35,250 | |
Foreign currency translation adjustment | | | | 3,827 | | 3,827 |
Net income | | | 12,630 | | | 12,630 |
Ending balance at Nov. 30, 2017 | $ 20 | 151,110 | 321,378 | (24,248) | $ (302,907) | 145,353 |
Ending balance, shares at Nov. 30, 2017 | 19,720,517 | | | | 5,739,305 | |
Beginning balance at Aug. 31, 2017 | $ 20 | 150,692 | 315,764 | (28,075) | $ (299,014) | 139,387 |
Beginning balance, shares at Aug. 31, 2017 | 19,688,238 | | | | 5,704,055 | |
Foreign currency translation adjustment | | | | | | 3,273 |
Net income | | | | | | 43,578 |
Ending balance at May. 31, 2018 | $ 20 | 152,953 | 337,169 | (24,802) | $ (316,798) | 148,542 |
Ending balance, shares at May. 31, 2018 | 19,729,708 | | | | 5,849,061 | |
Cumulative effect of change in accounting principle | | 189 | (128) | | | 61 |
Beginning balance at Nov. 30, 2017 | $ 20 | 151,110 | 321,378 | (24,248) | $ (302,907) | 145,353 |
Beginning balance, shares at Nov. 30, 2017 | 19,720,517 | | | | 5,739,305 | |
Issuance of common stock under share-based compensation plan, net of shares withheld for taxes | | (35) | | | | (35) |
Issuance of common stock under share-based compensation plan, net of shares withheld for taxes, shares | 8,875 | | | | | |
Stock-based compensation | | 1,461 | | | | 1,461 |
Cash dividends | | | (7,598) | | | (7,598) |
Acquisition of treasury stock | | | | | $ (7,484) | (7,484) |
Acquisition of treasury stock, shares | | | | | 61,150 | |
Foreign currency translation adjustment | | | | 7,827 | | 7,827 |
Net income | | | 14,818 | | | 14,818 |
Ending balance at Feb. 28, 2018 | $ 20 | 152,536 | 328,598 | (16,421) | $ (310,391) | 154,342 |
Ending balance, shares at Feb. 28, 2018 | 19,729,392 | | | | 5,800,455 | |
Issuance of common stock under share-based compensation plan, net of shares withheld for taxes | | (19) | | | | (19) |
Issuance of common stock under share-based compensation plan, net of shares withheld for taxes, shares | 316 | | | | | |
Stock-based compensation | | 436 | | | | 436 |
Cash dividends | | | (7,559) | | | (7,559) |
Acquisition of treasury stock | | | | | $ (6,407) | (6,407) |
Acquisition of treasury stock, shares | | | | | 48,606 | |
Foreign currency translation adjustment | | | | (8,381) | | (8,381) |
Net income | | | 16,130 | | | 16,130 |
Ending balance at May. 31, 2018 | $ 20 | 152,953 | 337,169 | (24,802) | $ (316,798) | 148,542 |
Ending balance, shares at May. 31, 2018 | 19,729,708 | | | | 5,849,061 | |
Beginning balance at Aug. 31, 2018 | $ 20 | 153,469 | 351,266 | (27,636) | $ (321,630) | $ 155,489 |
Beginning balance, shares at Aug. 31, 2018 | 19,729,774 | | | | 5,879,361 | 13,850,413 |
Issuance of common stock under share-based compensation plan, net of shares withheld for taxes | | (2,425) | | | | $ (2,425) |
Issuance of common stock under share-based compensation plan, net of shares withheld for taxes, shares | 24,062 | | | | | |
Stock-based compensation | | 1,965 | | | | 1,965 |
Cash dividends | | | (7,522) | | | (7,522) |
Acquisition of treasury stock | | | | | $ (6,863) | (6,863) |
Acquisition of treasury stock, shares | | | | | 41,184 | |
Foreign currency translation adjustment | | | | (1,631) | | (1,631) |
Net income | | | 13,279 | | | 13,279 |
Ending balance at Nov. 30, 2018 | $ 20 | 153,009 | 356,699 | (29,267) | $ (328,493) | 151,968 |
Ending balance, shares at Nov. 30, 2018 | 19,753,836 | | | | 5,920,545 | |
Beginning balance at Aug. 31, 2018 | $ 20 | 153,469 | 351,266 | (27,636) | $ (321,630) | $ 155,489 |
Beginning balance, shares at Aug. 31, 2018 | 19,729,774 | | | | 5,879,361 | 13,850,413 |
Foreign currency translation adjustment | | | | | | $ (3,724) |
Net income | | | | | | 47,324 |
Ending balance at May. 31, 2019 | $ 20 | 154,983 | 373,896 | (31,458) | $ (344,014) | $ 153,427 |
Ending balance, shares at May. 31, 2019 | 19,770,339 | | | | 6,011,545 | 13,758,794 |
Cumulative effect of change in accounting principle | | | (324) | | | $ (324) |
Beginning balance at Nov. 30, 2018 | $ 20 | 153,009 | 356,699 | (29,267) | $ (328,493) | 151,968 |
Beginning balance, shares at Nov. 30, 2018 | 19,753,836 | | | | 5,920,545 | |
Issuance of common stock under share-based compensation plan, net of shares withheld for taxes | | (8) | | | | (8) |
Issuance of common stock under share-based compensation plan, net of shares withheld for taxes, shares | 16,503 | | | | | |
Stock-based compensation | | 1,393 | | | | 1,393 |
Cash dividends | | | (8,489) | | | (8,489) |
Acquisition of treasury stock | | | | | $ (5,198) | (5,198) |
Acquisition of treasury stock, shares | | | | | 29,500 | |
Foreign currency translation adjustment | | | | 313 | | 313 |
Net income | | | 15,906 | | | 15,906 |
Ending balance at Feb. 28, 2019 | $ 20 | 154,394 | 364,116 | (28,954) | $ (333,691) | 155,885 |
Ending balance, shares at Feb. 28, 2019 | 19,770,339 | | | | 5,950,045 | |
Stock-based compensation | | 589 | | | | 589 |
Cash dividends | | | (8,457) | | | (8,457) |
Acquisition of treasury stock | | | | | $ (10,323) | (10,323) |
Acquisition of treasury stock, shares | | | | | 61,500 | |
Foreign currency translation adjustment | | | | (2,406) | | (2,406) |
Net income | | | 18,139 | | | 18,139 |
Ending balance at May. 31, 2019 | $ 20 | $ 154,983 | 373,896 | (31,458) | $ (344,014) | $ 153,427 |
Ending balance, shares at May. 31, 2019 | 19,770,339 | | | | 6,011,545 | 13,758,794 |
Cumulative effect of change in accounting principle | | | $ 98 | $ (98) | | |