Securities (Details 2) - USD ($) $ in Thousands  | 
9 Months Ended | |
|---|---|---|
Sep. 30, 2018  | 
Sep. 30, 2017  | 
|
| Realized Gain Loss [Line Items] | ||
| Proceeds | $ 29,049 | $ 48,063 | 
| Gross gains | 1,159 | 848 | 
| Gross losses | $ (4) | $ (90) | 
| 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 
  |