Loans and allowance for loan losses - Information about TDRs (Details)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2020
USD ($)
Jun. 30, 2021
USD ($)
loan
Jun. 30, 2020
USD ($)
loan
Commercial real estate      
Information About Tdrs Identified During Period Line Items [Line Items]      
Number of Loans 1    
Pre-Modification Recorded Investment $ 311    
Post-Modification Recorded Investment $ 311    
Commercial real estate | Owner occupied      
Information About Tdrs Identified During Period Line Items [Line Items]      
Number of Loans 1   1
Pre-Modification Recorded Investment $ 311   $ 311
Post-Modification Recorded Investment $ 311   $ 311
Consumer real estate      
Information About Tdrs Identified During Period Line Items [Line Items]      
Number of Loans | loan   1 1
Pre-Modification Recorded Investment   $ 267 $ 311
Post-Modification Recorded Investment   $ 267 $ 311
Consumer real estate | First deed of trust      
Information About Tdrs Identified During Period Line Items [Line Items]      
Number of Loans | loan   1  
Pre-Modification Recorded Investment   $ 267  
Post-Modification Recorded Investment   $ 267