Loans and allowance for loan losses (Details 7) - USD ($)
$ in Thousands
3 Months Ended 12 Months Ended
Mar. 31, 2016
Mar. 31, 2015
Dec. 31, 2015
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning balance $ 3,562 $ 5,729 $ 5,729
Provision for Loan and Lease Losses 0 0 (2,000)
Charge-offs (115) (279) (816)
Recoveries 164 394 649
Ending balance 3,611 5,844 3,562
Residential [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning balance 30 34 34
Provision for Loan and Lease Losses 13 51 (6)
Charge-offs 0 0 0
Recoveries 1 1 2
Ending balance 44 86 30
Commercial [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning balance 291 202 202
Provision for Loan and Lease Losses 62 242 292
Charge-offs 0 (115) (252)
Recoveries 0 1 49
Ending balance 353 330 291
Commercial Real Estate [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning balance 1,695 2,651 2,651
Provision for Loan and Lease Losses (379) 49 (866)
Charge-offs 0 0 (127)
Recoveries 126 0 37
Ending balance 1,442 2,700 1,695
Home equity lines [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning balance 448 469 469
Provision for Loan and Lease Losses (57) 214 36
Charge-offs 0 0 (62)
Recoveries 1 0 5
Ending balance 392 683 448
Construction and Land Development [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning balance 321 236 236
Provision for Loan and Lease Losses 75 293 286
Charge-offs 0 (115) (252)
Recoveries 1 2 51
Ending balance 397 416 321
Owner Occupied [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning balance 1,167 1,837 1,837
Provision for Loan and Lease Losses (182) 59 (576)
Charge-offs 0 0 (127)
Recoveries 0 0 33
Ending balance 985 1,896 1,167
Non-Owner Occupied [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning balance 460 607 607
Provision for Loan and Lease Losses (59) 76 (151)
Charge-offs 0 0 0
Recoveries 1 0 4
Ending balance 402 683 460
Multifamily [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning balance 51 77 77
Provision for Loan and Lease Losses 0 39 (26)
Charge-offs 0 0 0
Recoveries 0 0 0
Ending balance 51 116 51
Farmland [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning balance 17 130 130
Provision for Loan and Lease Losses (138) (125) (113)
Charge-offs 0 0 0
Recoveries 125 0 0
Ending balance 4 5 17
First Deed of Trust [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning balance 602 1,345 1,345
Provision for Loan and Lease Losses (35) (429) (1,020)
Charge-offs (27) 0 (103)
Recoveries 6 358 380
Ending balance 546 1,274 602
Second Deed of Trust [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning balance 111 275 275
Provision for Loan and Lease Losses (19) (67) (159)
Charge-offs 0 0 (55)
Recoveries 5 9 50
Ending balance 97 217 111
Consumer Real Estate [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning balance 1,161 2,089 2,089
Provision for Loan and Lease Losses (111) (282) (1,143)
Charge-offs (27) 0 (220)
Recoveries 12 367 435
Ending balance 1,035 2,174 1,161
Commercial and industrial loans (except those secured by real estate) [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning balance 94 506 506
Provision for Loan and Lease Losses (23) (52) (350)
Charge-offs 0 (162) (162)
Recoveries 24 12 100
Ending balance 95 304 94
Guaranteed student loans [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning balance 230 217 217
Provision for Loan and Lease Losses 63 0 13
Charge-offs (87) 0 0
Recoveries 0 0 0
Ending balance 206 217 230
Consumer And Other [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning balance 2 30 30
Provision for Loan and Lease Losses (2) (8) 1
Charge-offs (1) (2) (55)
Recoveries 1 13 26
Ending balance 0 33 2
Unallocated [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning balance 59 $ 0 0
Provision for Loan and Lease Losses 377   59
Charge-offs 0   0
Recoveries 0   0
Ending balance $ 436   $ 59