<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.25.0.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>669</ContextCount>
  <ElementCount>684</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>160</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>7</UnitCount>
  <MyReports>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>995200090 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>995200100 - Statement - CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/StatementConsolidatedBalanceSheets</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>995200105 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/StatementConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>995200200 - Statement - CONSOLIDATED STATEMENTS OF INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/StatementConsolidatedStatementsOfIncome</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF INCOME</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>995200300 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (LOSS)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/StatementConsolidatedStatementsOfComprehensiveIncomeLoss</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (LOSS)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>995200400 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquity</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>995200405 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>995200500 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/StatementConsolidatedStatementsOfCashFlows</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>995210101 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>995210201 - Disclosure - SECURITIES AVAILABLE FOR SALE</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSale</Role>
      <ShortName>SECURITIES AVAILABLE FOR SALE</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>995210301 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLosses</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>995210401 - Disclosure - PREMISES AND EQUIPMENT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosurePremisesAndEquipment</Role>
      <ShortName>PREMISES AND EQUIPMENT</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>995210501 - Disclosure - GOODWILL AND OTHER INTANGIBLES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureGoodwillAndOtherIntangibles</Role>
      <ShortName>GOODWILL AND OTHER INTANGIBLES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>995210601 - Disclosure - DEPOSITS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureDeposits</Role>
      <ShortName>DEPOSITS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>995210701 - Disclosure - BORROWED FUNDS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureBorrowedFunds</Role>
      <ShortName>BORROWED FUNDS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>995210801 - Disclosure - EMPLOYEE BENEFIT PLANS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureEmployeeBenefitPlans</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>995210901 - Disclosure - INCOME TAXES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureIncomeTaxes</Role>
      <ShortName>INCOME TAXES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>995211001 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureDerivativeFinancialInstrumentsAndHedgingActivities</Role>
      <ShortName>DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>995211101 - Disclosure - OTHER COMMITMENTS, CONTINGENCIES, AND OFF-BALANCE SHEET ACTIVITIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureOtherCommitmentsContingenciesAndOffBalanceSheetActivities</Role>
      <ShortName>OTHER COMMITMENTS, CONTINGENCIES, AND OFF-BALANCE SHEET ACTIVITIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>995211201 - Disclosure - SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureShareholdersEquityAndEarningsPerCommonShare</Role>
      <ShortName>SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>995211301 - Disclosure - STOCK-BASED COMPENSATION PLANS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureStockBasedCompensationPlans</Role>
      <ShortName>STOCK-BASED COMPENSATION PLANS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>995211401 - Disclosure - FAIR VALUE MEASUREMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureFairValueMeasurements</Role>
      <ShortName>FAIR VALUE MEASUREMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>995211501 - Disclosure - REVENUE FROM CONTRACTS WITH CUSTOMERS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureRevenueFromContractsWithCustomers</Role>
      <ShortName>REVENUE FROM CONTRACTS WITH CUSTOMERS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>995211601 - Disclosure - LEASES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLeases</Role>
      <ShortName>LEASES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>995211701 - Disclosure - CONDENSED FINANCIAL STATEMENTS OF PARENT COMPANY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureCondensedFinancialStatementsOfParentCompany</Role>
      <ShortName>CONDENSED FINANCIAL STATEMENTS OF PARENT COMPANY</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>995211801 - Disclosure - SUBSEQUENT EVENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSubsequentEvents</Role>
      <ShortName>SUBSEQUENT EVENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>995447 - Disclosure - Insider Trading Policies and Procedures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc</Role>
      <ShortName>Insider Trading Policies and Procedures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>995550 - Disclosure - Cybersecurity Risk Management and Strategy Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureCybersecurityRiskManagementAndStrategyDisclosure</Role>
      <ShortName>Cybersecurity Risk Management and Strategy Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>99920102 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>99930203 - Disclosure - SECURITIES AVAILABLE FOR SALE (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSaleTables</Role>
      <ShortName>SECURITIES AVAILABLE FOR SALE (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSale</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>99930303 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesTables</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLosses</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>99930403 - Disclosure - PREMISES AND EQUIPMENT (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosurePremisesAndEquipmentTables</Role>
      <ShortName>PREMISES AND EQUIPMENT (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosurePremisesAndEquipment</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>99930503 - Disclosure - GOODWILL AND OTHER INTANGIBLES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureGoodwillAndOtherIntangiblesTables</Role>
      <ShortName>GOODWILL AND OTHER INTANGIBLES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureGoodwillAndOtherIntangibles</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>99930603 - Disclosure - DEPOSITS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureDepositsTables</Role>
      <ShortName>DEPOSITS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureDeposits</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>99930703 - Disclosure - BORROWED FUNDS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureBorrowedFundsTables</Role>
      <ShortName>BORROWED FUNDS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureBorrowedFunds</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>99930803 - Disclosure - EMPLOYEE BENEFIT PLANS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureEmployeeBenefitPlansTables</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureEmployeeBenefitPlans</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>99930903 - Disclosure - INCOME TAXES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureIncomeTaxesTables</Role>
      <ShortName>INCOME TAXES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureIncomeTaxes</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>99931003 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureDerivativeFinancialInstrumentsAndHedgingActivitiesTables</Role>
      <ShortName>DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureDerivativeFinancialInstrumentsAndHedgingActivities</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>99931103 - Disclosure - OTHER COMMITMENTS, CONTINGENCIES, AND OFF-BALANCE SHEET ACTIVITIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureOtherCommitmentsContingenciesAndOffBalanceSheetActivitiesTables</Role>
      <ShortName>OTHER COMMITMENTS, CONTINGENCIES, AND OFF-BALANCE SHEET ACTIVITIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureOtherCommitmentsContingenciesAndOffBalanceSheetActivities</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>99931203 - Disclosure - SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureShareholdersEquityAndEarningsPerCommonShareTables</Role>
      <ShortName>SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureShareholdersEquityAndEarningsPerCommonShare</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>99931303 - Disclosure - STOCK-BASED COMPENSATION PLANS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureStockBasedCompensationPlansTables</Role>
      <ShortName>STOCK-BASED COMPENSATION PLANS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureStockBasedCompensationPlans</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>99931403 - Disclosure - FAIR VALUE MEASUREMENTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureFairValueMeasurementsTables</Role>
      <ShortName>FAIR VALUE MEASUREMENTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureFairValueMeasurements</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>99931503 - Disclosure - REVENUE FROM CONTRACTS WITH CUSTOMERS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureRevenueFromContractsWithCustomersTables</Role>
      <ShortName>REVENUE FROM CONTRACTS WITH CUSTOMERS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureRevenueFromContractsWithCustomers</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>99931603 - Disclosure - LEASES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLeasesTables</Role>
      <ShortName>LEASES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureLeases</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>99931703 - Disclosure - CONDENSED FINANCIAL STATEMENTS OF PARENT COMPANY (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureCondensedFinancialStatementsOfParentCompanyTables</Role>
      <ShortName>CONDENSED FINANCIAL STATEMENTS OF PARENT COMPANY (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureCondensedFinancialStatementsOfParentCompany</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>99940101 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>99940201 - Disclosure - SECURITIES AVAILABLE FOR SALE - Summary of Securities Available for Sale (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSaleSummaryOfSecuritiesAvailableForSaleDetails</Role>
      <ShortName>SECURITIES AVAILABLE FOR SALE - Summary of Securities Available for Sale (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>99940202 - Disclosure - SECURITIES AVAILABLE FOR SALE - Maturity of Available for Sale Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSaleMaturityOfAvailableForSaleSecuritiesDetails</Role>
      <ShortName>SECURITIES AVAILABLE FOR SALE - Maturity of Available for Sale Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>99940203 - Disclosure - SECURITIES AVAILABLE FOR SALE - Proceeds from the Sale of Securities and Realized Gains and Losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSaleProceedsFromSaleOfSecuritiesAndRealizedGainsAndLossesDetails</Role>
      <ShortName>SECURITIES AVAILABLE FOR SALE - Proceeds from the Sale of Securities and Realized Gains and Losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>99940204 - Disclosure - SECURITIES AVAILABLE FOR SALE - Summary of Securities with Unrealized Losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSaleSummaryOfSecuritiesWithUnrealizedLossesDetails</Role>
      <ShortName>SECURITIES AVAILABLE FOR SALE - Summary of Securities with Unrealized Losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>99940205 - Disclosure - SECURITIES AVAILABLE FOR SALE - Basis for Impairment Conclusion (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSaleBasisForImpairmentConclusionDetails</Role>
      <ShortName>SECURITIES AVAILABLE FOR SALE - Basis for Impairment Conclusion (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>99940206 - Disclosure - SECURITIES AVAILABLE FOR SALE - Allowance for Credit Losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSaleAllowanceForCreditLossesDetails</Role>
      <ShortName>SECURITIES AVAILABLE FOR SALE - Allowance for Credit Losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>99940207 - Disclosure - SECURITIES AVAILABLE FOR SALE - Securities Pledged for Collateral (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSaleSecuritiesPledgedForCollateralDetails</Role>
      <ShortName>SECURITIES AVAILABLE FOR SALE - Securities Pledged for Collateral (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>99940208 - Disclosure - SECURITIES AVAILABLE FOR SALE - Securities Available For Sale Greater Than Ten Percent of Shareholders' Equity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSaleSecuritiesAvailableForSaleGreaterThanTenPercentOfShareholdersEquityDetails</Role>
      <ShortName>SECURITIES AVAILABLE FOR SALE - Securities Available For Sale Greater Than Ten Percent of Shareholders' Equity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>99940301 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Summary of Total Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfTotalLoansDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Summary of Total Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>99940302 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Unamortized Net Costs and Premiums (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesUnamortizedNetCostsAndPremiumsDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Unamortized Net Costs and Premiums (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>99940303 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Allowance Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesAllowanceActivityDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Allowance Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>99940304 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Loans by Year of Origination, Loan Segmentation and Risk Indicator (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesLoansByYearOfOriginationLoanSegmentationAndRiskIndicatorDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Loans by Year of Origination, Loan Segmentation and Risk Indicator (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>99940305 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Summary of Past Due Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfPastDueLoansDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Summary of Past Due Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>99940306 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Non-accrual Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesNonAccrualLoansDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Non-accrual Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>99940307 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Amortized Cost Basis of Collateral Dependent Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Amortized Cost Basis of Collateral Dependent Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>99940308 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Loan Modifications (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesLoanModificationsDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Loan Modifications (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>99940309 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - TDR, Recorded Investment and Number of Modifications (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesTdrRecordedInvestmentAndNumberOfModificationsDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - TDR, Recorded Investment and Number of Modifications (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>99940310 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Concentrations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesConcentrationsDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Concentrations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>99940311 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Loans to Related Parties (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesLoansToRelatedPartiesDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Loans to Related Parties (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>99940312 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Mortgage Banking (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesMortgageBankingDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Mortgage Banking (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>99940401 - Disclosure - PREMISES AND EQUIPMENT (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosurePremisesAndEquipmentDetails</Role>
      <ShortName>PREMISES AND EQUIPMENT (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosurePremisesAndEquipmentTables</ParentRole>
      <Position>69</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>99940501 - Disclosure - GOODWILL AND OTHER INTANGIBLES - Goodwill (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureGoodwillAndOtherIntangiblesGoodwillDetails</Role>
      <ShortName>GOODWILL AND OTHER INTANGIBLES - Goodwill (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>99940502 - Disclosure - GOODWILL AND OTHER INTANGIBLES - Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureGoodwillAndOtherIntangiblesIntangibleAssetsDetails</Role>
      <ShortName>GOODWILL AND OTHER INTANGIBLES - Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>99940601 - Disclosure - DEPOSITS - Components (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureDepositsComponentsDetails</Role>
      <ShortName>DEPOSITS - Components (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>99940602 - Disclosure - DEPOSITS - Maturities, Brokered, Reciprocal (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureDepositsMaturitiesBrokeredReciprocalDetails</Role>
      <ShortName>DEPOSITS - Maturities, Brokered, Reciprocal (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>99940701 - Disclosure - BORROWED FUNDS - Summary of Borrowed Funds (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureBorrowedFundsSummaryOfBorrowedFundsDetails</Role>
      <ShortName>BORROWED FUNDS - Summary of Borrowed Funds (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>99940702 - Disclosure - BORROWED FUNDS - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureBorrowedFundsAdditionalInformationDetails</Role>
      <ShortName>BORROWED FUNDS - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>99940703 - Disclosure - BORROWED FUNDS - Maturities of FHLB Advances (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureBorrowedFundsMaturitiesOfFhlbAdvancesDetails</Role>
      <ShortName>BORROWED FUNDS - Maturities of FHLB Advances (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>99940704 - Disclosure - BORROWED FUNDS - Subordinated and Junior Subordinated Borrowings (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureBorrowedFundsSubordinatedAndJuniorSubordinatedBorrowingsDetails</Role>
      <ShortName>BORROWED FUNDS - Subordinated and Junior Subordinated Borrowings (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>99940705 - Disclosure - BORROWED FUNDS - Repurchase Agreements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureBorrowedFundsRepurchaseAgreementsDetails</Role>
      <ShortName>BORROWED FUNDS - Repurchase Agreements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>99940801 - Disclosure - EMPLOYEE BENEFIT PLANS - Information about the plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureEmployeeBenefitPlansInformationAboutPlanDetails</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS - Information about the plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>99940802 - Disclosure - EMPLOYEE BENEFIT PLANS - Schedule of Net Benefit Costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureEmployeeBenefitPlansScheduleOfNetBenefitCostsDetails</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS - Schedule of Net Benefit Costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>99940803 - Disclosure - EMPLOYEE BENEFIT PLANS - Amounts Recognized in Other Comprehensive Income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureEmployeeBenefitPlansAmountsRecognizedInOtherComprehensiveIncomeDetails</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS - Amounts Recognized in Other Comprehensive Income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>99940804 - Disclosure - EMPLOYEE BENEFIT PLANS - Assumptions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureEmployeeBenefitPlansAssumptionsDetails</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS - Assumptions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>99940805 - Disclosure - EMPLOYEE BENEFIT PLANS - Allocation of Plan Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureEmployeeBenefitPlansAllocationOfPlanAssetsDetails</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS - Allocation of Plan Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>99940806 - Disclosure - EMPLOYEE BENEFIT PLANS - Estimated Benefit Payments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureEmployeeBenefitPlansEstimatedBenefitPaymentsDetails</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS - Estimated Benefit Payments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>99940807 - Disclosure - EMPLOYEE BENEFIT PLANS - 401(k) and Other plans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureEmployeeBenefitPlans401KAndOtherPlansDetails</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS - 401(k) and Other plans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>99940901 - Disclosure - INCOME TAXES - Components of Income Tax Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails</Role>
      <ShortName>INCOME TAXES - Components of Income Tax Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>99940902 - Disclosure - INCOME TAXES - Effective Income Tax Reconciliation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureIncomeTaxesEffectiveIncomeTaxReconciliationDetails</Role>
      <ShortName>INCOME TAXES - Effective Income Tax Reconciliation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>99940903 - Disclosure - INCOME TAXES - Deferred Tax Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureIncomeTaxesDeferredTaxAssetsAndLiabilitiesDetails</Role>
      <ShortName>INCOME TAXES - Deferred Tax Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>99940904 - Disclosure - INCOME TAXES - Tax Cuts and Jobs Act (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureIncomeTaxesTaxCutsAndJobsActDetails</Role>
      <ShortName>INCOME TAXES - Tax Cuts and Jobs Act (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>99941001 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureDerivativeFinancialInstrumentsAndHedgingActivitiesDetails</Role>
      <ShortName>DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureDerivativeFinancialInstrumentsAndHedgingActivitiesTables</ParentRole>
      <Position>90</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>99941002 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES - Amount of Gain (Loss) recognized in Other Comprehensive Income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureDerivativeFinancialInstrumentsAndHedgingActivitiesAmountOfGainLossRecognizedInOtherComprehensiveIncomeDetails</Role>
      <ShortName>DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES - Amount of Gain (Loss) recognized in Other Comprehensive Income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>99941003 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES - Effect of cash flow hedging and fair value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureDerivativeFinancialInstrumentsAndHedgingActivitiesEffectOfCashFlowHedgingAndFairValueDetails</Role>
      <ShortName>DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES - Effect of cash flow hedging and fair value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>92</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>99941004 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES - Consolidated statements of income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureDerivativeFinancialInstrumentsAndHedgingActivitiesConsolidatedStatementsOfIncomeDetails</Role>
      <ShortName>DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES - Consolidated statements of income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>93</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>99941005 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES - Additional information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureDerivativeFinancialInstrumentsAndHedgingActivitiesAdditionalInformationDetails</Role>
      <ShortName>DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES - Additional information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>94</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>99941006 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES - Offsetting Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureDerivativeFinancialInstrumentsAndHedgingActivitiesOffsettingAssetsAndLiabilitiesDetails</Role>
      <ShortName>DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES - Offsetting Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>95</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>99941101 - Disclosure - OTHER COMMITMENTS, CONTINGENCIES, AND OFF-BALANCE SHEET ACTIVITIES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureOtherCommitmentsContingenciesAndOffBalanceSheetActivitiesDetails</Role>
      <ShortName>OTHER COMMITMENTS, CONTINGENCIES, AND OFF-BALANCE SHEET ACTIVITIES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureOtherCommitmentsContingenciesAndOffBalanceSheetActivitiesTables</ParentRole>
      <Position>96</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>99941201 - Disclosure - SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE - Actual and Required Capital Ratios (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureShareholdersEquityAndEarningsPerCommonShareActualAndRequiredCapitalRatiosDetails</Role>
      <ShortName>SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE - Actual and Required Capital Ratios (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>97</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>99941202 - Disclosure - SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE - Components of AOCIL (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureShareholdersEquityAndEarningsPerCommonShareComponentsOfAocilDetails</Role>
      <ShortName>SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE - Components of AOCIL (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>98</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>99941203 - Disclosure - SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE - Components of OCIL (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureShareholdersEquityAndEarningsPerCommonShareComponentsOfOcilDetails</Role>
      <ShortName>SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE - Components of OCIL (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>99</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>99941204 - Disclosure - SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE - Changes in AOCI (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureShareholdersEquityAndEarningsPerCommonShareChangesInAociDetails</Role>
      <ShortName>SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE - Changes in AOCI (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>100</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R101.htm</HtmlFileName>
      <LongName>99941205 - Disclosure - SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE - Amounts Reclassified Out of AOCI (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureShareholdersEquityAndEarningsPerCommonShareAmountsReclassifiedOutOfAociDetails</Role>
      <ShortName>SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE - Amounts Reclassified Out of AOCI (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>101</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R102.htm</HtmlFileName>
      <LongName>99941206 - Disclosure - SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE - Earnings Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureShareholdersEquityAndEarningsPerCommonShareEarningsPerShareDetails</Role>
      <ShortName>SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE - Earnings Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>102</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R103.htm</HtmlFileName>
      <LongName>99941301 - Disclosure - STOCK-BASED COMPENSATION PLANS - (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureStockBasedCompensationPlansDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION PLANS - (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureStockBasedCompensationPlansTables</ParentRole>
      <Position>103</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R104.htm</HtmlFileName>
      <LongName>99941302 - Disclosure - STOCK-BASED COMPENSATION PLANS - Compensation Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureStockBasedCompensationPlansCompensationExpenseDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION PLANS - Compensation Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>104</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R105.htm</HtmlFileName>
      <LongName>99941303 - Disclosure - STOCK-BASED COMPENSATION PLANS - Tax Benefits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureStockBasedCompensationPlansTaxBenefitsDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION PLANS - Tax Benefits (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>105</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R106.htm</HtmlFileName>
      <LongName>99941304 - Disclosure - STOCK-BASED COMPENSATION PLANS - Stock Options Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureStockBasedCompensationPlansStockOptionsActivityDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION PLANS - Stock Options Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>106</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R107.htm</HtmlFileName>
      <LongName>99941305 - Disclosure - STOCK-BASED COMPENSATION PLANS - Restricted Stock Award Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureStockBasedCompensationPlansRestrictedStockAwardActivityDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION PLANS - Restricted Stock Award Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>107</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R108.htm</HtmlFileName>
      <LongName>99941306 - Disclosure - STOCK-BASED COMPENSATION PLANS - Intrinsic value, Unrecognized compensation and Contractual term (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureStockBasedCompensationPlansIntrinsicValueUnrecognizedCompensationAndContractualTermDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION PLANS - Intrinsic value, Unrecognized compensation and Contractual term (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>108</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R109.htm</HtmlFileName>
      <LongName>99941307 - Disclosure - STOCK-BASED COMPENSATION PLANS - Stock Units Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureStockBasedCompensationPlansStockUnitsActivityDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION PLANS - Stock Units Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>109</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R110.htm</HtmlFileName>
      <LongName>99941308 - Disclosure - STOCK-BASED COMPENSATION PLANS - Employee Stock Purchase Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureStockBasedCompensationPlansEmployeeStockPurchasePlanDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION PLANS - Employee Stock Purchase Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>110</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R111.htm</HtmlFileName>
      <LongName>99941401 - Disclosure - FAIR VALUE MEASUREMENTS - Measured on Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureFairValueMeasurementsMeasuredOnRecurringBasisDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS - Measured on Recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>111</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R112.htm</HtmlFileName>
      <LongName>99941402 - Disclosure - FAIR VALUE MEASUREMENTS - Changes in Level 3 (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureFairValueMeasurementsChangesInLevel3Details</Role>
      <ShortName>FAIR VALUE MEASUREMENTS - Changes in Level 3 (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>112</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R113.htm</HtmlFileName>
      <LongName>99941403 - Disclosure - FAIR VALUE MEASUREMENTS - Unobservable Inputs Recurring (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureFairValueMeasurementsUnobservableInputsRecurringDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS - Unobservable Inputs Recurring (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>113</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R114.htm</HtmlFileName>
      <LongName>99941404 - Disclosure - FAIR VALUE MEASUREMENTS - Measured on Non-recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureFairValueMeasurementsMeasuredOnNonRecurringBasisDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS - Measured on Non-recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>114</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R115.htm</HtmlFileName>
      <LongName>99941405 - Disclosure - FAIR VALUE MEASUREMENTS - Unobservable Inputs Non-recurring (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureFairValueMeasurementsUnobservableInputsNonRecurringDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS - Unobservable Inputs Non-recurring (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>115</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R116.htm</HtmlFileName>
      <LongName>99941406 - Disclosure - FAIR VALUE MEASUREMENTS - Fair Values and Carrying Amounts (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureFairValueMeasurementsFairValuesAndCarryingAmountsDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS - Fair Values and Carrying Amounts (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>116</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R117.htm</HtmlFileName>
      <LongName>99941501 - Disclosure - REVENUE FROM CONTRACTS WITH CUSTOMERS - Disaggregation of Revenue (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureRevenueFromContractsWithCustomersDisaggregationOfRevenueDetails</Role>
      <ShortName>REVENUE FROM CONTRACTS WITH CUSTOMERS - Disaggregation of Revenue (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>117</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R118.htm</HtmlFileName>
      <LongName>99941502 - Disclosure - REVENUE FROM CONTRACTS WITH CUSTOMERS - Contract Balances from Contracts with Customers (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureRevenueFromContractsWithCustomersContractBalancesFromContractsWithCustomersDetails</Role>
      <ShortName>REVENUE FROM CONTRACTS WITH CUSTOMERS - Contract Balances from Contracts with Customers (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>118</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R119.htm</HtmlFileName>
      <LongName>99941601 - Disclosure - LEASES - Assets and liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLeasesAssetsAndLiabilitiesDetails</Role>
      <ShortName>LEASES - Assets and liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>119</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R120.htm</HtmlFileName>
      <LongName>99941602 - Disclosure - LEASES - Lease Term and Cost (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLeasesLeaseTermAndCostDetails</Role>
      <ShortName>LEASES - Lease Term and Cost (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>120</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R121.htm</HtmlFileName>
      <LongName>99941603 - Disclosure - LEASES - Future Minimum Payments for Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLeasesFutureMinimumPaymentsForLeasesDetails</Role>
      <ShortName>LEASES - Future Minimum Payments for Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>121</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R122.htm</HtmlFileName>
      <LongName>99941701 - Disclosure - CONDENSED FINANCIAL STATEMENTS OF PARENT COMPANY - Balance Sheets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureCondensedFinancialStatementsOfParentCompanyBalanceSheetsDetails</Role>
      <ShortName>CONDENSED FINANCIAL STATEMENTS OF PARENT COMPANY - Balance Sheets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>122</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R123.htm</HtmlFileName>
      <LongName>99941702 - Disclosure - CONDENSED FINANCIAL STATEMENTS OF PARENT COMPANY - Statements of Income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureCondensedFinancialStatementsOfParentCompanyStatementsOfIncomeDetails</Role>
      <ShortName>CONDENSED FINANCIAL STATEMENTS OF PARENT COMPANY - Statements of Income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>123</Position>
    </Report>
    <Report instance="bhb-20241231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R124.htm</HtmlFileName>
      <LongName>99941703 - Disclosure - CONDENSED FINANCIAL STATEMENTS OF PARENT COMPANY - Cash Flows (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureCondensedFinancialStatementsOfParentCompanyCashFlowsDetails</Role>
      <ShortName>CONDENSED FINANCIAL STATEMENTS OF PARENT COMPANY - Cash Flows (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>124</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>bhb-20241231.xsd</File>
    <File>bhb-20241231_cal.xml</File>
    <File>bhb-20241231_def.xml</File>
    <File>bhb-20241231_lab.xml</File>
    <File>bhb-20241231_pre.xml</File>
    <File doctype="10-K" isDefinitelyFs="true" isUsgaap="true" original="bhb-20241231x10k.htm">bhb-20241231x10k.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>bhb-20241231x10k001.jpg</File>
    <File>bhb-20241231x10k002.jpg</File>
    <File>bhb-20241231x10k003.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="3">http://fasb.org/srt/2023</BaseTaxonomy>
    <BaseTaxonomy items="2735">http://fasb.org/us-gaap/2023</BaseTaxonomy>
    <BaseTaxonomy items="38">http://xbrl.sec.gov/dei/2023</BaseTaxonomy>
    <BaseTaxonomy items="5">http://xbrl.sec.gov/ecd/2023</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
