Loans and allowance for loan losses (Details 3) - USD ($) $ in Thousands |
Sep. 30, 2017 |
Dec. 31, 2016 |
| With no related allowance recorded [Abstract] |
|
|
| Recorded Investment |
$ 11,414
|
$ 9,199
|
| Unpaid Principal Balance |
11,919
|
9,746
|
| With an allowance recorded [Abstract] |
|
|
| Recorded Investment |
4,160
|
6,242
|
| Unpaid Principal Balance |
4,291
|
6,373
|
| Related Allowance |
327
|
335
|
| Total [Abstract] |
|
|
| Recorded Investment |
15,574
|
15,441
|
| Unpaid Principal Balance |
16,210
|
16,119
|
| Related Allowance |
327
|
335
|
| Construction and Land Development Commercial [Member] |
|
|
| With an allowance recorded [Abstract] |
|
|
| Related Allowance |
2
|
9
|
| Total [Abstract] |
|
|
| Recorded Investment |
561
|
581
|
| Unpaid Principal Balance |
628
|
648
|
| Related Allowance |
2
|
9
|
| Commercial [Member] |
|
|
| With no related allowance recorded [Abstract] |
|
|
| Recorded Investment |
97
|
102
|
| Unpaid Principal Balance |
164
|
169
|
| With an allowance recorded [Abstract] |
|
|
| Recorded Investment |
464
|
479
|
| Unpaid Principal Balance |
464
|
479
|
| Related Allowance |
2
|
9
|
| Total [Abstract] |
|
|
| Recorded Investment |
561
|
581
|
| Unpaid Principal Balance |
628
|
648
|
| Related Allowance |
2
|
9
|
| Commercial Real Estate [Member] |
|
|
| With no related allowance recorded [Abstract] |
|
|
| Recorded Investment |
5,688
|
3,723
|
| Unpaid Principal Balance |
5,688
|
3,723
|
| With an allowance recorded [Abstract] |
|
|
| Recorded Investment |
1,922
|
4,117
|
| Unpaid Principal Balance |
1,937
|
4,132
|
| Related Allowance |
21
|
86
|
| Total [Abstract] |
|
|
| Recorded Investment |
7,610
|
7,840
|
| Unpaid Principal Balance |
7,625
|
7,855
|
| Related Allowance |
21
|
86
|
| Owner Occupied [Member] |
|
|
| With no related allowance recorded [Abstract] |
|
|
| Recorded Investment |
3,512
|
1,487
|
| Unpaid Principal Balance |
3,512
|
1,487
|
| With an allowance recorded [Abstract] |
|
|
| Recorded Investment |
1,922
|
4,117
|
| Unpaid Principal Balance |
1,937
|
4,132
|
| Related Allowance |
21
|
86
|
| Total [Abstract] |
|
|
| Recorded Investment |
5,434
|
5,604
|
| Unpaid Principal Balance |
5,449
|
5,619
|
| Related Allowance |
21
|
86
|
| Non-Owner Occupied [Member] |
|
|
| With no related allowance recorded [Abstract] |
|
|
| Recorded Investment |
2,176
|
2,236
|
| Unpaid Principal Balance |
2,176
|
2,236
|
| With an allowance recorded [Abstract] |
|
|
| Recorded Investment |
|
0
|
| Unpaid Principal Balance |
|
0
|
| Related Allowance |
0
|
0
|
| Total [Abstract] |
|
|
| Recorded Investment |
2,176
|
2,236
|
| Unpaid Principal Balance |
2,176
|
2,236
|
| Related Allowance |
0
|
0
|
| Home equity lines [Member] |
|
|
| With no related allowance recorded [Abstract] |
|
|
| Recorded Investment |
601
|
703
|
| Unpaid Principal Balance |
601
|
703
|
| With an allowance recorded [Abstract] |
|
|
| Recorded Investment |
138
|
|
| Unpaid Principal Balance |
138
|
|
| Related Allowance |
4
|
0
|
| Total [Abstract] |
|
|
| Recorded Investment |
739
|
703
|
| Unpaid Principal Balance |
739
|
703
|
| Related Allowance |
4
|
0
|
| First Deed of Trust [Member] |
|
|
| With no related allowance recorded [Abstract] |
|
|
| Recorded Investment |
3,968
|
3,514
|
| Unpaid Principal Balance |
3,968
|
3,518
|
| With an allowance recorded [Abstract] |
|
|
| Recorded Investment |
765
|
1,550
|
| Unpaid Principal Balance |
765
|
1,550
|
| Related Allowance |
62
|
144
|
| Total [Abstract] |
|
|
| Recorded Investment |
4,733
|
5,064
|
| Unpaid Principal Balance |
4,733
|
5,068
|
| Related Allowance |
62
|
144
|
| Second Deed of Trust [Member] |
|
|
| With no related allowance recorded [Abstract] |
|
|
| Recorded Investment |
594
|
619
|
| Unpaid Principal Balance |
802
|
865
|
| With an allowance recorded [Abstract] |
|
|
| Recorded Investment |
86
|
90
|
| Unpaid Principal Balance |
86
|
90
|
| Related Allowance |
5
|
90
|
| Total [Abstract] |
|
|
| Recorded Investment |
680
|
709
|
| Unpaid Principal Balance |
888
|
955
|
| Related Allowance |
5
|
90
|
| Consumer Real Estate [Member] |
|
|
| With no related allowance recorded [Abstract] |
|
|
| Recorded Investment |
5,163
|
4,836
|
| Unpaid Principal Balance |
5,371
|
5,086
|
| With an allowance recorded [Abstract] |
|
|
| Recorded Investment |
989
|
1,640
|
| Unpaid Principal Balance |
989
|
1,640
|
| Related Allowance |
71
|
234
|
| Total [Abstract] |
|
|
| Recorded Investment |
6,152
|
6,476
|
| Unpaid Principal Balance |
6,360
|
6,726
|
| Related Allowance |
71
|
234
|
| Commercial and industrial loans (except those secured by real estate) [Member] |
|
|
| With no related allowance recorded [Abstract] |
|
|
| Recorded Investment |
463
|
538
|
| Unpaid Principal Balance |
693
|
768
|
| With an allowance recorded [Abstract] |
|
|
| Recorded Investment |
785
|
6
|
| Unpaid Principal Balance |
901
|
122
|
| Related Allowance |
233
|
6
|
| Total [Abstract] |
|
|
| Recorded Investment |
1,248
|
544
|
| Unpaid Principal Balance |
1,594
|
890
|
| Related Allowance |
233
|
$ 6
|
| Consumer And Other [Member] |
|
|
| With no related allowance recorded [Abstract] |
|
|
| Recorded Investment |
3
|
|
| Unpaid Principal Balance |
3
|
|
| With an allowance recorded [Abstract] |
|
|
| Related Allowance |
0
|
|
| Total [Abstract] |
|
|
| Recorded Investment |
3
|
|
| Unpaid Principal Balance |
3
|
|
| Related Allowance |
$ 0
|
|