<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.19.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>676</ContextCount>
  <ElementCount>366</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>70</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>10</UnitCount>
  <MyReports>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0001000 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1001000 - Statement - Consolidated Balance Sheets (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/ConsolidatedBalanceSheetsUnaudited</Role>
      <ShortName>Consolidated Balance Sheets (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1001501 - Statement - Consolidated Balance Sheets (Unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/ConsolidatedBalanceSheetsUnauditedParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1002000 - Statement - Consolidated Statements of Income and Comprehensive Income (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited</Role>
      <ShortName>Consolidated Statements of Income and Comprehensive Income (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1002001 - Statement - Consolidated Statements of Income and Comprehensive Income (Unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnauditedParenthetical</Role>
      <ShortName>Consolidated Statements of Income and Comprehensive Income (Unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1003000 - Statement - Consolidated Statements of Changes in Shareholders' Equity (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/ConsolidatedStatementsOfChangesInShareholdersEquityUnaudited</Role>
      <ShortName>Consolidated Statements of Changes in Shareholders' Equity (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>1003501 - Statement - Consolidated Statements of Changes in Shareholders' Equity (Unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/ConsolidatedStatementsOfChangesInShareholdersEquityUnauditedParenthetical</Role>
      <ShortName>Consolidated Statements of Changes in Shareholders' Equity (Unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>1004000 - Statement - Consolidated Statements of Cash Flows (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/ConsolidatedStatementsOfCashFlowsUnaudited</Role>
      <ShortName>Consolidated Statements of Cash Flows (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>2101100 - Disclosure - Basis of Presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/BasisOfPresentation</Role>
      <ShortName>Basis of Presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>2101100 - Disclosure - Investment Securities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/InvestmentSecurities</Role>
      <ShortName>Investment Securities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>2102100 - Disclosure - Loans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/Loans</Role>
      <ShortName>Loans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>2104100 - Disclosure - Allowance for Loan Losses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/AllowanceForLoanLosses</Role>
      <ShortName>Allowance for Loan Losses</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>2105100 - Disclosure - Stock-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/StockBasedCompensation</Role>
      <ShortName>Stock-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2106100 - Disclosure - Preferred and Common Stock</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/PreferredAndCommonStock</Role>
      <ShortName>Preferred and Common Stock</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2107100 - Disclosure - Earnings Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/EarningsPerShare</Role>
      <ShortName>Earnings Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2108100 - Disclosure - Employee Benefit Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/EmployeeBenefitPlans</Role>
      <ShortName>Employee Benefit Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2109100 - Disclosure - Other Comprehensive Income (Loss)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/OtherComprehensiveIncomeLoss</Role>
      <ShortName>Other Comprehensive Income (Loss)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2110100 - Disclosure - Financial Derivative Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/FinancialDerivativeInstruments</Role>
      <ShortName>Financial Derivative Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2111100 - Disclosure - Mortgage Servicing Rights</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/MortgageServicingRights</Role>
      <ShortName>Mortgage Servicing Rights</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>2112100 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>2113100 - Disclosure - Certificates of Deposit</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/CertificatesOfDeposit</Role>
      <ShortName>Certificates of Deposit</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>2114100 - Disclosure - Reclassifications</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/Reclassifications</Role>
      <ShortName>Reclassifications</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>2115100 - Disclosure - Fair Value</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/FairValue</Role>
      <ShortName>Fair Value</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>2117100 - Disclosure - Impact of Recently Issued Accounting Standards</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/ImpactOfRecentlyIssuedAccountingStandards</Role>
      <ShortName>Impact of Recently Issued Accounting Standards</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2201201 - Disclosure - Basis of Presentation (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/BasisOfPresentationPolicies</Role>
      <ShortName>Basis of Presentation (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.thefirst.com/role/ImpactOfRecentlyIssuedAccountingStandards</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2301301 - Disclosure - Investment Securities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/InvestmentSecuritiesTables</Role>
      <ShortName>Investment Securities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.thefirst.com/role/InvestmentSecurities</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2302301 - Disclosure - Loans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/LoansTables</Role>
      <ShortName>Loans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.thefirst.com/role/Loans</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2304301 - Disclosure - Allowance for Loan Losses (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/AllowanceForLoanLossesTables</Role>
      <ShortName>Allowance for Loan Losses (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.thefirst.com/role/AllowanceForLoanLosses</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>2305301 - Disclosure - Stock-Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/StockBasedCompensationTables</Role>
      <ShortName>Stock-Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.thefirst.com/role/StockBasedCompensation</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>2307301 - Disclosure - Earnings Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/EarningsPerShareTables</Role>
      <ShortName>Earnings Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.thefirst.com/role/EarningsPerShare</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>2308301 - Disclosure - Employee Benefit Plans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/EmployeeBenefitPlansTables</Role>
      <ShortName>Employee Benefit Plans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.thefirst.com/role/EmployeeBenefitPlans</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>2309301 - Disclosure - Other Comprehensive Income (Loss) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/OtherComprehensiveIncomeLossTables</Role>
      <ShortName>Other Comprehensive Income (Loss) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.thefirst.com/role/OtherComprehensiveIncomeLoss</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>2310301 - Disclosure - Financial Derivative Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/FinancialDerivativeInstrumentsTables</Role>
      <ShortName>Financial Derivative Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.thefirst.com/role/FinancialDerivativeInstruments</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>2311301 - Disclosure - Mortgage Servicing Rights (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/MortgageServicingRightsTables</Role>
      <ShortName>Mortgage Servicing Rights (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.thefirst.com/role/MortgageServicingRights</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>2313301 - Disclosure - Certificates of Deposit (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/CertificatesOfDepositTables</Role>
      <ShortName>Certificates of Deposit (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.thefirst.com/role/CertificatesOfDeposit</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>2315301 - Disclosure - Fair Value (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/FairValueTables</Role>
      <ShortName>Fair Value (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.thefirst.com/role/FairValue</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>2401402 - Disclosure - Investment Securities - Amortized Cost and Estimated Fair Value of Available for Sale Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/InvestmentSecuritiesAmortizedCostAndEstimatedFairValueOfAvailableForSaleSecuritiesDetails</Role>
      <ShortName>Investment Securities - Amortized Cost and Estimated Fair Value of Available for Sale Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>2401403 - Disclosure - Investment Securities - Amortized Cost and Estimated Fair Value of Held to Maturity Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/InvestmentSecuritiesAmortizedCostAndEstimatedFairValueOfHeldToMaturitySecuritiesDetails</Role>
      <ShortName>Investment Securities - Amortized Cost and Estimated Fair Value of Held to Maturity Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>2401404 - Disclosure - Investment Securities - Amortized Cost and Estimated Fair Value of Restricted Equity Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/InvestmentSecuritiesAmortizedCostAndEstimatedFairValueOfRestrictedEquitySecuritiesDetails</Role>
      <ShortName>Investment Securities - Amortized Cost and Estimated Fair Value of Restricted Equity Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>2401405 - Disclosure - Investment Securities - Contractual Maturities of Investment Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/InvestmentSecuritiesContractualMaturitiesOfInvestmentSecuritiesDetails</Role>
      <ShortName>Investment Securities - Contractual Maturities of Investment Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>2401406 - Disclosure - Investment Securities - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/InvestmentSecuritiesAdditionalInformationDetails</Role>
      <ShortName>Investment Securities - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>2401407 - Disclosure - Investment Securities - Gains and Losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/InvestmentSecuritiesGainsAndLossesDetails</Role>
      <ShortName>Investment Securities - Gains and Losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>2401408 - Disclosure - Investment Securities - Temporarily Impaired Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/InvestmentSecuritiesTemporarilyImpairedSecuritiesDetails</Role>
      <ShortName>Investment Securities - Temporarily Impaired Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>2402402 - Disclosure - Loans - Loan Portfolio (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/LoansLoanPortfolioDetails</Role>
      <ShortName>Loans - Loan Portfolio (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>2402403 - Disclosure - Loans - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/LoansNarrativeDetails</Role>
      <ShortName>Loans - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>2402404 - Disclosure - Loans - Past-due Status of Loans by Class (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/LoansPastDueStatusOfLoansByClassDetails</Role>
      <ShortName>Loans - Past-due Status of Loans by Class (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>2402405 - Disclosure - Loans - Nonaccrual Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/LoansNonaccrualLoansDetails</Role>
      <ShortName>Loans - Nonaccrual Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>2402406 - Disclosure - Loans - Impaired Loans by Class (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/LoansImpairedLoansByClassDetails</Role>
      <ShortName>Loans - Impaired Loans by Class (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>2402407 - Disclosure - Loans - TDR's by Class and Specific Reserves (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/LoansTdrsByClassAndSpecificReservesDetails</Role>
      <ShortName>Loans - TDR's by Class and Specific Reserves (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>2402408 - Disclosure - Loans - TDR's by Class and Specific Reserves More Than 30 Days Past Due (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/LoansTdrsByClassAndSpecificReservesMoreThan30DaysPastDueDetails</Role>
      <ShortName>Loans - TDR's by Class and Specific Reserves More Than 30 Days Past Due (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>2402409 - Disclosure - Loans - Pre-Modification and Post-Modification Outstanding Recorded Investment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/LoansPreModificationAndPostModificationOutstandingRecordedInvestmentDetails</Role>
      <ShortName>Loans - Pre-Modification and Post-Modification Outstanding Recorded Investment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>2404402 - Disclosure - Allowance for Loan Losses - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/AllowanceForLoanLossesNarrativeDetails</Role>
      <ShortName>Allowance for Loan Losses - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>2404403 - Disclosure - Allowance for Loan Losses - Financing Receivable and Allowance Element by Class (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/AllowanceForLoanLossesFinancingReceivableAndAllowanceElementByClassDetails</Role>
      <ShortName>Allowance for Loan Losses - Financing Receivable and Allowance Element by Class (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>2404404 - Disclosure - Allowance for Loan Losses - Risk Ratings by Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/AllowanceForLoanLossesRiskRatingsBySegmentDetails</Role>
      <ShortName>Allowance for Loan Losses - Risk Ratings by Segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>2404405 - Disclosure - Allowance for Loan Losses - Allowance for Loan Loss Activity by Class (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/AllowanceForLoanLossesAllowanceForLoanLossActivityByClassDetails</Role>
      <ShortName>Allowance for Loan Losses - Allowance for Loan Loss Activity by Class (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>2405402 - Disclosure - Stock-Based Compensation - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/StockBasedCompensationNarrativeDetails</Role>
      <ShortName>Stock-Based Compensation - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>2405403 - Disclosure - Stock-Based Compensation - Shares of Restricted Stock Granted under 2010 Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/StockBasedCompensationSharesOfRestrictedStockGrantedUnder2010PlanDetails</Role>
      <ShortName>Stock-Based Compensation - Shares of Restricted Stock Granted under 2010 Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>2406401 - Disclosure - Preferred and Common Stock (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/PreferredAndCommonStockDetails</Role>
      <ShortName>Preferred and Common Stock (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.thefirst.com/role/PreferredAndCommonStock</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>2407402 - Disclosure - Earnings Per Share - Schedule of Basic and Diluted Earnings per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/EarningsPerShareScheduleOfBasicAndDilutedEarningsPerShareDetails</Role>
      <ShortName>Earnings Per Share - Schedule of Basic and Diluted Earnings per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>2408402 - Disclosure - Employee Benefit Plans - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/EmployeeBenefitPlansNarrativeDetails</Role>
      <ShortName>Employee Benefit Plans - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>2408403 - Disclosure - Employee Benefit Plans - Accumulated Post-Retirement Benefit Obligation, Funded Status, and Net Periodic Benefit Cost (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/EmployeeBenefitPlansAccumulatedPostRetirementBenefitObligationFundedStatusAndNetPeriodicBenefitCostDetails</Role>
      <ShortName>Employee Benefit Plans - Accumulated Post-Retirement Benefit Obligation, Funded Status, and Net Periodic Benefit Cost (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>2408404 - Disclosure - Employee Benefit Plans - Schedule of Net Periodic Benefit Cost Not Yet Recognized (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/EmployeeBenefitPlansScheduleOfNetPeriodicBenefitCostNotYetRecognizedDetails</Role>
      <ShortName>Employee Benefit Plans - Schedule of Net Periodic Benefit Cost Not Yet Recognized (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>2409402 - Disclosure - Other Comprehensive Income (Loss) - Summary of Available for Sale Securities Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryOfAvailableForSaleSecuritiesActivityDetails</Role>
      <ShortName>Other Comprehensive Income (Loss) - Summary of Available for Sale Securities Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.thefirst.com/role/OtherComprehensiveIncomeLossTables</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>2409403 - Disclosure - Other Comprehensive Income (Loss) - Reclassification of Available-for-Sale Securities to Held-to-Maturity Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/OtherComprehensiveIncomeLossReclassificationOfAvailableForSaleSecuritiesToHeldToMaturitySecuritiesDetails</Role>
      <ShortName>Other Comprehensive Income (Loss) - Reclassification of Available-for-Sale Securities to Held-to-Maturity Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.thefirst.com/role/OtherComprehensiveIncomeLossTables</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>2409404 - Disclosure - Other Comprehensive Income (Loss) - Derivative Instruments Included in Other Comprehensive Income (Loss) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/OtherComprehensiveIncomeLossDerivativeInstrumentsIncludedInOtherComprehensiveIncomeLossDetails</Role>
      <ShortName>Other Comprehensive Income (Loss) - Derivative Instruments Included in Other Comprehensive Income (Loss) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.thefirst.com/role/OtherComprehensiveIncomeLossTables</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>2409405 - Disclosure - Other Comprehensive Income (Loss) - Reclassification out of Accumulated Other Comprehensive Income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/OtherComprehensiveIncomeLossReclassificationOutOfAccumulatedOtherComprehensiveIncomeDetails</Role>
      <ShortName>Other Comprehensive Income (Loss) - Reclassification out of Accumulated Other Comprehensive Income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.thefirst.com/role/OtherComprehensiveIncomeLossTables</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>2410402 - Disclosure - Financial Derivative Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails</Role>
      <ShortName>Financial Derivative Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.thefirst.com/role/FinancialDerivativeInstrumentsTables</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>2411402 - Disclosure - Mortgage Servicing Rights - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/MortgageServicingRightsNarrativeDetails</Role>
      <ShortName>Mortgage Servicing Rights - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>2411403 - Disclosure - Mortgage Servicing Rights - Schedule of Mortgage Servicing Rights (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/MortgageServicingRightsScheduleOfMortgageServicingRightsDetails</Role>
      <ShortName>Mortgage Servicing Rights - Schedule of Mortgage Servicing Rights (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>2413402 - Disclosure - Certificates of Deposit (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/CertificatesOfDepositDetails</Role>
      <ShortName>Certificates of Deposit (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.thefirst.com/role/CertificatesOfDepositTables</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>2415402 - Disclosure - Fair Value - Assets Recorded at Fair Value on a Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/FairValueAssetsRecordedAtFairValueOnRecurringBasisDetails</Role>
      <ShortName>Fair Value - Assets Recorded at Fair Value on a Recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>2415403 - Disclosure - Fair Value - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/FairValueAdditionalInformationDetails</Role>
      <ShortName>Fair Value - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>2415404 - Disclosure - Fair Value - Assets Recorded at Fair Value on a Non-Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/FairValueAssetsRecordedAtFairValueOnNonRecurringBasisDetails</Role>
      <ShortName>Fair Value - Assets Recorded at Fair Value on a Non-Recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>2415405 - Disclosure - Fair Value - Assets and Liabilities at Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/FairValueAssetsAndLiabilitiesAtFairValueDetails</Role>
      <ShortName>Fair Value - Assets and Liabilities at Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="fnlc-20190331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>2417401 - Disclosure - Impact of Recently Issued Accounting Standards (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirst.com/role/ImpactOfRecentlyIssuedAccountingStandardsDetails</Role>
      <ShortName>Impact of Recently Issued Accounting Standards (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" original="fnlc-20190331x10q.htm">fnlc-20190331x10q.htm</File>
    <File>fnlc-20190331.xsd</File>
    <File>fnlc-20190331_cal.xml</File>
    <File>fnlc-20190331_def.xml</File>
    <File>fnlc-20190331_lab.xml</File>
    <File>fnlc-20190331_pre.xml</File>
    <File>fnlc-20190331xex311.htm</File>
    <File>fnlc-20190331xex312.htm</File>
    <File>fnlc-20190331xex321.htm</File>
    <File>fnlc-20190331xex322.htm</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy>http://fasb.org/us-gaap/2018-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/invest/2013-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2018-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/srt/2018-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
