Loans and allowance for loan losses - Average recorded investment in impaired loans (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2021
Jun. 30, 2021
With no related allowance recorded    
Average Recorded Investment $ 10,563 $ 9,176
Interest Income Recognized 103 233
With an allowance recorded    
Average Recorded Investment 151 743
Interest Income Recognized 1 23
Total    
Average Recorded Investment 10,714 9,919
Interest Income Recognized 104 256
Construction and land development    
With no related allowance recorded    
Average Recorded Investment   72
Total    
Average Recorded Investment   98
Construction and land development | Commercial [Member]    
With no related allowance recorded    
Average Recorded Investment   72
Total    
Average Recorded Investment   98
Commercial real estate    
With no related allowance recorded    
Average Recorded Investment 7,095 5,935
Interest Income Recognized 67 155
With an allowance recorded    
Average Recorded Investment   562
Interest Income Recognized   15
Total    
Average Recorded Investment 7,095 6,497
Interest Income Recognized 67 170
Commercial real estate | Commercial [Member]    
With an allowance recorded    
Average Recorded Investment   26
Commercial real estate | Owner occupied    
With no related allowance recorded    
Average Recorded Investment 5,211 4,073
Interest Income Recognized 38 96
With an allowance recorded    
Average Recorded Investment   562
Interest Income Recognized   15
Total    
Average Recorded Investment 5,211 4,635
Interest Income Recognized 38 111
Commercial real estate | Non-Owner Occupied [Member]    
With no related allowance recorded    
Average Recorded Investment 1,884 1,862
Interest Income Recognized 29 59
Total    
Average Recorded Investment 1,884 1,862
Interest Income Recognized 29 59
Consumer real estate    
With no related allowance recorded    
Average Recorded Investment 3,266 2,996
Interest Income Recognized 35 77
With an allowance recorded    
Average Recorded Investment 151 113
Interest Income Recognized 1 2
Total    
Average Recorded Investment 3,417 3,109
Interest Income Recognized 36 79
Consumer real estate | Home equity lines [Member]    
With no related allowance recorded    
Average Recorded Investment 300 300
Interest Income Recognized 5 13
Total    
Average Recorded Investment 300 300
Interest Income Recognized 5 13
Consumer real estate | First deed of trust    
With no related allowance recorded    
Average Recorded Investment 1,989 2,001
Interest Income Recognized 22 45
With an allowance recorded    
Average Recorded Investment 151 113
Interest Income Recognized 1 2
Total    
Average Recorded Investment 2,140 2,114
Interest Income Recognized 23 47
Consumer real estate | Second Deed of Trust [Member]    
With no related allowance recorded    
Average Recorded Investment 977 695
Interest Income Recognized 8 19
Total    
Average Recorded Investment 977 695
Interest Income Recognized 8 19
Commercial and industrial loans | Commercial and industrial loans (except those secured by real estate)    
With no related allowance recorded    
Average Recorded Investment 202 173
Interest Income Recognized 1 1
With an allowance recorded    
Average Recorded Investment   42
Interest Income Recognized   6
Total    
Average Recorded Investment 202 215
Interest Income Recognized $ 1 $ 7