CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS’ EQUITY - USD ($)
$ in Thousands
Total
Private Placement
IPO
Preferred Stock
Common Stock
Common Stock
Private Placement
Common Stock
IPO
Capital Surplus
Capital Surplus
Private Placement
Capital Surplus
IPO
Retained Earnings
Accumulated Other Comprehensive Income (Loss)
Treasury Stock
Treasury Stock
Private Placement
Balance (in shares) at Dec. 31, 2013       0 6,964,551                  
Balance at Dec. 31, 2013 $ 109,736     $ 0 $ 6,965     $ 93,459     $ 10,179 $ (669) $ (198)  
Increase (Decrease) in Stockholders' Equity [Roll Forward]                            
Net income 9,005                   9,005      
Other comprehensive Income (loss) 1,218                     1,218    
Common stock issued in connection with the exercise of stock options and restricted stock awards (in shares)         36,566                  
Common stock issued in connection with the exercise of stock options and restricted stock awards 612       $ 36     378         0  
Issuance of common stock (in shares)         476,192                  
Issuance of common stock in initial public offering, net of offering expenses 10,476       $ 476     10,000            
Stock based compensation expense 731             731            
Balance (in shares) at Dec. 31, 2014       0 7,477,309                  
Balance at Dec. 31, 2014 131,778     $ 0 $ 7,477     104,568     19,184 549 0  
Increase (Decrease) in Stockholders' Equity [Roll Forward]                            
Net income 15,786                   15,786      
Other comprehensive Income (loss) 1,468                     1,468    
Common stock issued in connection with the exercise of stock options and restricted stock awards (in shares)         3,983                  
Common stock issued in connection with the exercise of stock options and restricted stock awards 11       $ 4     7            
Repurchase of treasury stock (52)                       (52)  
Issuance of common stock (in shares)           4,884 2,990,000              
Issuance of common stock in initial public offering, net of offering expenses   $ 122 $ 57,138     $ 5 $ 2,990   $ 103 $ 54,148       $ 14
Common stock issued in connection with the acquisition of F&M Bancshares, Inc. (in shares)         2,338,520                  
Common stock issued in connection with the acquisition of F&M Bancshares, Inc. 51,447       $ 2,339     49,108            
Preferred stock issued in connection with the acquisition of F&M Bancshares, Inc. (in shares)       11,550                    
Preferred stock issued in connection with the acquisition of F&M Bancshares, Inc. 11,550     $ 11,550                    
Redemption of preferred stock (in shares)       (11,550)                    
Redemption of preferred stock (11,550)     $ (11,550)                    
Preferred stock dividends (559)                   (559)      
Stock based compensation expense 1,351             1,351            
Balance (in shares) at Dec. 31, 2015       0 12,814,696                  
Balance at Dec. 31, 2015 258,490     $ 0 $ 12,815     209,285     34,411 2,017 (38)  
Increase (Decrease) in Stockholders' Equity [Roll Forward]                            
Net income 22,851                   22,851      
Other comprehensive Income (loss) (5,069)                     (5,069)    
Common stock issued in connection with the exercise of stock options and restricted stock awards (in shares)         143,645                  
Common stock issued in connection with the exercise of stock options and restricted stock awards 2,006       $ 143     1,863            
Issuance of common stock (in shares)     2,990,000                      
Issuance of treasury stock 38                       38  
Stock based compensation expense 1,501             1,501            
Balance (in shares) at Dec. 31, 2016       0 12,958,341                  
Balance at Dec. 31, 2016 $ 279,817     $ 0 $ 12,958     $ 212,649     $ 57,262 $ (3,052) $ 0