Securities (Details 2) - USD ($) $ in Thousands  | 
12 Months Ended | |
|---|---|---|
Dec. 31, 2018  | 
Dec. 31, 2017  | 
|
| Realized Gain Loss [Line Items] | ||
| Proceeds | $ 34,545 | $ 56,347 | 
| Gross gains | 1,216 | 972 | 
| Gross losses | $ (16) | $ (112) | 
| X | ||||||||||
- References No definition available. 
  | 
| X | ||||||||||
- Definition This item represents the gross profit realized on the sale of debt or equity securities categorized neither as held-to-maturity nor trading securities. No definition available. 
  | 
| X | ||||||||||
- Definition This item represents the gross loss realized on the sale of debt or equity securities categorized neither as held-to-maturity nor trading securities. No definition available. 
  | 
| X | ||||||||||
- Definition The cash inflow associated with the sale of debt and equity securities classified as available-for-sale securities. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
  |