Earnings per common share (Details) - USD ($)
$ / shares in Units, shares in Thousands, $ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2016
Sep. 30, 2015
Sep. 30, 2016
Sep. 30, 2015
Numerator        
Net income - basic and diluted $ 11,932 $ 471 $ 12,993 $ 550
Preferred stock dividend and accretion (186) (170) (547) (500)
Preferred stock principal forgiveness 0 0 0 4,404
Preferred stock dividend forgiveness 0 0 0 2,215
Net income available to common shareholders $ 11,746 $ 301 $ 12,446 $ 6,669
Denominator        
Weighted average shares outstanding - basic (in shares) 1,430 1,418 1,423 1,081
Dilutive effect of common stock options and restricted stock awards (in shares) 0 5 0 5
Weighted average shares outstanding - diluted (in shares) 1,430 1,423 1,423 1,086
Earnings per share - basic (in dollars per share) $ 8.21 $ 0.21 $ 8.74 $ 6.17
Earnings per share - diluted (in dollars per share) $ 8.21 $ 0.21 $ 8.74 $ 6.14