| Consolidated Statements of Changes in Stockholders' Equity (Unaudited) - USD ($)$ in Thousands
 | Total | Common Stock - Number of Shares, Shares Issued | Common Stock - Number of Shares, Treasury Shares | Additional Paid-in Capital | Accumulated Other Comprehensive Loss | Retained Earnings | 
| Balance at beginning of period at Dec. 31, 2021 | $ 643,417 | $ 33 | $ (125,753) | $ 580,796 | $ (8,443) | $ 196,784 | 
| Beginning balance, shares issued (shares) at Dec. 31, 2021 |  | 33,603,839 |  |  |  |  | 
| Beginning balance, treasury stock (shares) at Dec. 31, 2021 |  |  | (3,196,578) |  |  |  | 
| Beginning balance, shares outstanding (shares) at Dec. 31, 2021 |  | 30,407,261 |  |  |  |  | 
| Stock options exercised | 13 |  |  | 13 |  |  | 
| Stock options exercised (shares) |  | 1,050 | 1,050 |  |  |  | 
| Issuance of awards pursuant to equity incentive plans (shares) |  | 102,134 |  |  |  |  | 
| Share-based compensation expense | 1,886 |  |  | 1,886 |  |  | 
| Shares surrendered to satisfy tax liability upon vesting of equity awards | (704) |  | $ (704) |  |  |  | 
| Shares surrendered to satisfy tax liability upon vesting of equity awards (shares) |  | (26,441) | (26,441) |  |  |  | 
| Cash dividends declared (common stock, $0.25/share, $0.25/share,0.69/shares,0.75/share) | (21,015) |  |  |  |  | (21,015) | 
| Net income | 72,915 |  |  |  |  | 72,915 | 
| Change in unrealized gain (loss) on securities available for sale, net of income taxes | (87,619) |  |  |  | (87,619) |  | 
| Balance at end of period at Sep. 30, 2022 | 608,893 | $ 33 | $ (126,457) | 582,695 | (96,062) | 248,684 | 
| Ending balance, shares issued (shares) at Sep. 30, 2022 |  | 33,705,973 |  |  |  |  | 
| Ending balance, treasury stock (shares) at Sep. 30, 2022 |  |  | (3,221,969) |  |  |  | 
| Ending balance, shares outstanding (shares) at Sep. 30, 2022 |  | 30,484,004 |  |  |  |  | 
| Balance at beginning of period at Jun. 30, 2022 | 618,296 | $ 33 | $ (126,322) | 582,018 | (66,568) | 229,135 | 
| Beginning balance, shares issued (shares) at Jun. 30, 2022 |  | 33,701,784 |  |  |  |  | 
| Beginning balance, treasury stock (shares) at Jun. 30, 2022 |  |  | (3,218,794) |  |  |  | 
| Beginning balance, shares outstanding (shares) at Jun. 30, 2022 |  | 30,482,990 |  |  |  |  | 
| Stock options exercised | 13 |  |  | 13 |  |  | 
| Stock options exercised, treasury stock (shares) |  |  | 1,050 |  |  |  | 
| Stock options exercised, shares outstanding (shares) |  | 1,050 |  |  |  |  | 
| Issuance of awards pursuant to equity incentive plans (shares) |  | 4,189 |  |  |  |  | 
| Share-based compensation expense | 664 |  |  | 664 |  |  | 
| Shares surrendered to satisfy tax liability upon vesting of equity awards | (135) |  | $ (135) |  |  |  | 
| Shares surrendered to satisfy tax liability upon vesting of equity awards (shares) |  | (4,225) | (4,225) |  |  |  | 
| Cash dividends declared (common stock, $0.25/share, $0.25/share,0.69/shares,0.75/share) | (7,620) |  |  |  |  | (7,620) | 
| Net income | 27,169 |  |  |  |  | 27,169 | 
| Change in unrealized gain (loss) on securities available for sale, net of income taxes | (29,494) |  |  |  | (29,494) |  | 
| Balance at end of period at Sep. 30, 2022 | 608,893 | $ 33 | $ (126,457) | 582,695 | (96,062) | 248,684 | 
| Ending balance, shares issued (shares) at Sep. 30, 2022 |  | 33,705,973 |  |  |  |  | 
| Ending balance, treasury stock (shares) at Sep. 30, 2022 |  |  | (3,221,969) |  |  |  | 
| Ending balance, shares outstanding (shares) at Sep. 30, 2022 |  | 30,484,004 |  |  |  |  | 
| Balance at beginning of period at Dec. 31, 2022 | $ 637,515 | $ 33 | $ (126,485) | 583,410 | (88,985) | 269,542 | 
| Beginning balance, shares issued (shares) at Dec. 31, 2022 |  | 33,708,234 |  |  |  |  | 
| Beginning balance, treasury stock (shares) at Dec. 31, 2022 | (3,222,613) |  | (3,222,613) |  |  |  | 
| Beginning balance, shares outstanding (shares) at Dec. 31, 2022 |  | 30,485,621 |  |  |  |  | 
| Stock options exercised | $ 821 |  |  | 821 |  |  | 
| Stock options exercised (shares) |  | 50,000 |  |  |  |  | 
| Stock options exercised, shares outstanding (shares) |  | 50,000 |  |  |  |  | 
| Issuance of awards pursuant to equity incentive plans | 1 | $ 1 |  |  |  |  | 
| Issuance of awards pursuant to equity incentive plans (shares) |  | 151,223 |  |  |  |  | 
| Share-based compensation expense | 1,938 |  |  | 1,938 |  |  | 
| Shares surrendered to satisfy tax liability upon vesting of equity awards | (1,599) |  | $ (1,599) |  |  |  | 
| Shares surrendered to satisfy tax liability upon vesting of equity awards (shares) |  | (76,262) | (76,262) |  |  |  | 
| Repurchase of common stock | (3,345) |  | $ (3,345) |  |  |  | 
| Repurchase of common stock (shares) |  | (200,000) | (200,000) |  |  |  | 
| Cash dividends declared (common stock, $0.25/share, $0.25/share,0.69/shares,0.75/share) | (22,943) |  |  |  |  | (22,943) | 
| Net income | 61,408 |  |  |  |  | 61,408 | 
| Change in unrealized gain (loss) on securities available for sale, net of income taxes | (10,437) |  |  |  | (10,437) |  | 
| Balance at end of period at Sep. 30, 2023 | $ 663,359 | $ 34 | $ (131,429) | 586,169 | (99,422) | 308,007 | 
| Ending balance, shares issued (shares) at Sep. 30, 2023 |  | 33,909,457 |  |  |  |  | 
| Ending balance, treasury stock (shares) at Sep. 30, 2023 | (3,498,875) |  | (3,498,875) |  |  |  | 
| Ending balance, shares outstanding (shares) at Sep. 30, 2023 |  | 30,410,582 |  |  |  |  | 
| Balance at beginning of period at Jun. 30, 2023 | $ 668,560 | $ 33 | $ (129,126) | 585,391 | (84,639) | 296,901 | 
| Beginning balance, shares issued (shares) at Jun. 30, 2023 |  | 33,863,421 |  |  |  |  | 
| Beginning balance, treasury stock (shares) at Jun. 30, 2023 |  |  | (3,377,633) |  |  |  | 
| Beginning balance, shares outstanding (shares) at Jun. 30, 2023 |  | 30,485,788 |  |  |  |  | 
| Issuance of awards pursuant to equity incentive plans | 1 | $ 1 |  |  |  |  | 
| Issuance of awards pursuant to equity incentive plans (shares) |  | 46,036 |  |  |  |  | 
| Share-based compensation expense | 778 |  |  | 778 |  |  | 
| Shares surrendered to satisfy tax liability upon vesting of equity awards | (401) |  | $ (401) |  |  |  | 
| Shares surrendered to satisfy tax liability upon vesting of equity awards (shares) |  | (21,242) | (21,242) |  |  |  | 
| Repurchase of common stock | (1,902) |  | $ (1,902) |  |  |  | 
| Repurchase of common stock (shares) |  | (100,000) | (100,000) |  |  |  | 
| Cash dividends declared (common stock, $0.25/share, $0.25/share,0.69/shares,0.75/share) | (7,690) |  |  |  |  | (7,690) | 
| Net income | 18,796 |  |  |  |  | 18,796 | 
| Change in unrealized gain (loss) on securities available for sale, net of income taxes | (14,783) |  |  |  | (14,783) |  | 
| Balance at end of period at Sep. 30, 2023 | $ 663,359 | $ 34 | $ (131,429) | $ 586,169 | $ (99,422) | $ 308,007 | 
| Ending balance, shares issued (shares) at Sep. 30, 2023 |  | 33,909,457 |  |  |  |  | 
| Ending balance, treasury stock (shares) at Sep. 30, 2023 | (3,498,875) |  | (3,498,875) |  |  |  | 
| Ending balance, shares outstanding (shares) at Sep. 30, 2023 |  | 30,410,582 |  |  |  |  |