v3.26.1
DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES - Effect of cash flow hedging and fair value (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2026
Jun. 30, 2025
Location, Statement of Income, Balance [Axis]: us-gaap:BorrowingsMember        
DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES        
Income and expense line items presented in the consolidated statements of income $ 3,349 $ 3,282 $ 6,838 $ 6,301
Location, Statement of Income, Balance [Axis]: us-gaap:DepositsMember        
DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES        
Income and expense line items presented in the consolidated statements of income 14,638 15,511 29,527 31,023
Location, Statement of Income, Balance [Axis]: us-gaap:LoansMember        
DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES        
Income and expense line items presented in the consolidated statements of income 49,151 42,726 97,809 84,530
Location, Statement of Income, Balance [Axis]: bhb:InterestAndDividendIncomeSecuritiesAndOtherMember        
DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES        
Income and expense line items presented in the consolidated statements of income 6,319 5,474 12,523 10,757
Location, Statement of Income, Balance [Axis]: bhb:NonInterestIncomeMember        
DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES        
Income and expense line items presented in the consolidated statements of income 11,732 4,646 22,146 13,564
Interest rate swap on wholesale funding | Cash flow hedges | Location, Statement of Income, Balance [Axis]: us-gaap:BorrowingsMember        
DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES        
Gain (loss) on cash flow hedges   17   269
Interest rate swap on variable rate loans | Cash flow hedges | Location, Statement of Income, Balance [Axis]: us-gaap:LoansMember        
DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES        
Gain (loss) on cash flow hedges   (459) (339) (914)
Interest rate swap on securities | Fair Value Hedging | Location, Statement of Income, Balance [Axis]: bhb:InterestAndDividendIncomeSecuritiesAndOtherMember        
DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES        
Gain (loss) on fair value hedges $ 210 $ 278 $ 420 $ 552