Consolidated Statements of Changes in Shareholders' Equity - USD ($)
$ in Thousands
Common Stock [Member]
Additional Paid-in Capital [Member]
Treasury Stock [Member]
AOCI Attributable to Parent [Member]
Retained Earnings [Member]
Total
Balance (in shares) at Dec. 31, 2013 16,596,869          
Balance at Dec. 31, 2013 $ 16,597 $ 95,673 $ (30,764) $ (5,565) $ 153,957 $ 229,898
Net Income 27,843 27,843
Dividends declared (10,208) (10,208)
Net change (6,139) (6,139)
Stock based compensation 1,256 1,256
Tax benefit from stock-based compensation 831 831
Retirement of treasury stock (in shares) (3,512)          
Retirement of treasury stock $ (3) (32) 35
Net purchase of treasury stock from stock award and deferred compensation plans.. 45 (913) (868)
Issuance costs - S-4 filing (147) (147)
Dividend Reinvestment and Stock Purchase Plan (in shares) 2,517          
Dividend Reinvestment and Stock Purchase Plan $ 2 70 $ 72
Share-based awards and options exercises (in shares) 146,261         141,370
Share-based awards and options exercises $ 146 2,790 $ 2,936
Balance (in shares) at Dec. 31, 2014 16,742,135          
Balance at Dec. 31, 2014 $ 16,742 100,486 (31,642) (11,704) 171,592 245,474
Excess tax benefit from stock-based compensation 831 831
Other comprehensive income (loss), net of tax (6,139) (6,139)
Net Income 16,754 16,754
Dividends declared (13,824) (13,824)
Net change 11,292 11,292
Stock based compensation 1,441 1,441
Tax benefit from stock-based compensation 783 783
Retirement of treasury stock (in shares) (4,418)          
Retirement of treasury stock $ (4) (40) 44
Dividend Reinvestment and Stock Purchase Plan (in shares) 663          
Dividend Reinvestment and Stock Purchase Plan $ 1 19 $ 20
Share-based awards and options exercises (in shares) 342,107         335,189
Share-based awards and options exercises $ 341 6,242 $ 6,583
Balance (in shares) at Dec. 31, 2015 20,931,416         20,931,416
Balance at Dec. 31, 2015 $ 20,931 228,814 (58,144) (412) 174,522 $ 365,711
Excess tax benefit from stock-based compensation 783 783
Cancellation of forfeited restricted stock awards (in shares) (27,375)          
Cancellation of forfeited restricted stock awards $ (27) 27
Net purchase of treasury stock (26,546) (26,546)
Shares issued in acquisitions (in shares) 3,878,304          
Shares issued in acquisitions $ 3,878 117,513 121,391
Options assumed in acquisitions 2,343 2,343
Other comprehensive income (loss), net of tax 11,292 11,292
Net Income 36,036 36,036
Dividends declared (13,989) (13,989)
Net change (1,997) (1,997)
Stock based compensation 1,713 1,713
Retirement of treasury stock (in shares) (4,320)          
Retirement of treasury stock $ (4) (39) 43
Net purchase of treasury stock from stock award and deferred compensation plans.. (878) $ (878)
Share-based awards and options exercises (in shares) 183,872         105,830
Share-based awards and options exercises $ 184 2,121 $ 2,305
Balance (in shares) at Dec. 31, 2016 21,110,968         21,110,968
Balance at Dec. 31, 2016 $ 21,111 232,806 (66,950) (2,409) 196,569 $ 381,127
Tax provision-to-return adjustment related to excess tax benefit on stock-based compensation 197 197
Other comprehensive income (loss), net of tax (1,997) (1,997)
Net purchase of treasury stock through publicly announced plans $ (7,971) $ (7,971)