{
 "instance": {
  "fnlc-20201231.htm": {
   "axisCustom": 4,
   "axisStandard": 29,
   "contextCount": 684,
   "dts": {
    "calculationLink": {
     "local": [
      "fnlc-20201231_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "fnlc-20201231_def.xml"
     ],
     "remote": [
      "http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-eedm-def-2020-01-31.xml",
      "http://xbrl.fasb.org/srt/2020/elts/srt-eedm1-def-2020-01-31.xml"
     ]
    },
    "inline": {
     "local": [
      "fnlc-20201231.htm"
     ]
    },
    "labelLink": {
     "local": [
      "fnlc-20201231_lab.xml"
     ],
     "remote": [
      "https://xbrl.sec.gov/dei/2020/dei-doc-2020-01-31.xml",
      "http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-doc-2020-01-31.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "fnlc-20201231_pre.xml"
     ]
    },
    "referenceLink": {
     "remote": [
      "http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-ref-2020-01-31.xml",
      "https://xbrl.sec.gov/dei/2020/dei-ref-2020-01-31.xml"
     ]
    },
    "schema": {
     "local": [
      "fnlc-20201231.xsd"
     ],
     "remote": [
      "http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd",
      "http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xl-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xlink-2003-12-31.xsd",
      "http://www.xbrl.org/dtr/type/numeric-2009-12-16.xsd",
      "http://www.xbrl.org/dtr/type/nonNumeric-2009-12-16.xsd",
      "http://www.xbrl.org/2005/xbrldt-2005.xsd",
      "http://www.xbrl.org/2006/ref-2006-02-27.xsd",
      "http://xbrl.fasb.org/srt/2020/elts/srt-types-2020-01-31.xsd",
      "http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd",
      "http://xbrl.fasb.org/us-gaap/2020/elts/us-roles-2020-01-31.xsd",
      "http://xbrl.fasb.org/srt/2020/elts/srt-roles-2020-01-31.xsd",
      "https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd",
      "http://xbrl.fasb.org/us-gaap/2020/elts/us-types-2020-01-31.xsd",
      "https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/net-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/reference-2009-12-16.xsd",
      "http://xbrl.fasb.org/us-gaap/2020/elts/us-parts-codification-2020-01-31.xsd",
      "http://www.xbrl.org/lrr/role/deprecated-2009-12-16.xsd"
     ]
    }
   },
   "elementCount": 954,
   "entityCount": 1,
   "hidden": {
    "http://fasb.org/us-gaap/2020-01-31": 5,
    "http://www.thefirst.com/20201231": 4,
    "http://xbrl.sec.gov/dei/2020-01-31": 6,
    "total": 15
   },
   "keyCustom": 163,
   "keyStandard": 545,
   "memberCustom": 66,
   "memberStandard": 52,
   "nsprefix": "fnlc",
   "nsuri": "http://www.thefirst.com/20201231",
   "report": {
    "R1": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "true",
     "longName": "000010001 - Document - Cover",
     "role": "http://www.thefirst.com/role/Cover",
     "shortName": "Cover",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R10": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CashAndCashEquivalentsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210041002 - Disclosure - Cash and Cash Equivalents",
     "role": "http://www.thefirst.com/role/CashandCashEquivalents",
     "shortName": "Cash and Cash Equivalents",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CashAndCashEquivalentsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R100": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfNonvestedRestrictedStockUnitsActivityTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i5623ff0ec9a349f08d4c562a0b9bc4d5_I20201231",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
      "reportCount": 1,
      "unique": true,
      "unitRef": "shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240734043 - Disclosure - Stock Options and Stock-Based Compensation - Summary of Restricted Stock Granted (Details)",
     "role": "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails",
     "shortName": "Stock Options and Stock-Based Compensation - Summary of Restricted Stock Granted (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfNonvestedRestrictedStockUnitsActivityTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i5623ff0ec9a349f08d4c562a0b9bc4d5_I20201231",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
      "reportCount": 1,
      "unique": true,
      "unitRef": "shares",
      "xsiNil": "false"
     }
    },
    "R101": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfQuarterlyFinancialInformationTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "ie22714e0c06d45159c95483b525b8e21_D20201001-20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240764044 - Disclosure - Earnings Per Share (Details)",
     "role": "http://www.thefirst.com/role/EarningsPerShareDetails",
     "shortName": "Earnings Per Share (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:NetIncomeLossAvailableToCommonStockholdersBasic",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R102": {
     "firstAnchor": {
      "ancestors": [
       "fnlc:RetainedEarningsFromPriorTwoYearsAvailableForDividends",
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "fnlc:RetainedEarningsFromPriorTwoYearsAvailableForDividends",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240794045 - Disclosure - Regulatory Capital Requirements (Details)",
     "role": "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails",
     "shortName": "Regulatory Capital Requirements (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "fnlc:RetainedEarningsFromPriorTwoYearsAvailableForDividends",
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "fnlc:RetainedEarningsFromPriorTwoYearsAvailableForDividends",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R103": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "fnlc:OffBalanceSheetFinancialInstrumentsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosureOffbalanceSheetRisksAmountLiability",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240824046 - Disclosure - Off-Balance-Sheet Financial Instruments and Concentrations of Credit Risk (Details)",
     "role": "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRiskDetails",
     "shortName": "Off-Balance-Sheet Financial Instruments and Concentrations of Credit Risk (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "fnlc:OffBalanceSheetFinancialInstrumentsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosureOffbalanceSheetRisksAmountLiability",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R104": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "fnlc:ScheduleOfAvailableForSaleHeldToMaturityAndNonMarketableSecuritiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AvailableForSaleSecuritiesDebtSecurities",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240854047 - Disclosure - Fair Value Disclosures - Assets and Liabilities Recorded on a Recurring and Nonrecurring Basis (Details)",
     "role": "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails",
     "shortName": "Fair Value Disclosures - Assets and Liabilities Recorded on a Recurring and Nonrecurring Basis (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "us-gaap:FairValueAssetsMeasuredOnNonrecurringBasisTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "lang": "en-US",
      "name": "fnlc:ImpairedFinancingReceivableRelatedAllowanceMeasuredatFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R105": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:HeldToMaturitySecuritiesFairValue",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240864048 - Disclosure - Fair Value Disclosures - Carrying Amounts and Estimated Fair Values (Details)",
     "role": "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails",
     "shortName": "Fair Value Disclosures - Carrying Amounts and Estimated Fair Values (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueByBalanceSheetGroupingTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i8afdc3dca1d143d9b7a9297d6005ff6e_I20201231",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:HeldToMaturitySecuritiesFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R106": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "fnlc:ScheduleOfOtherOperatingIncomeAndExpenseTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:MarketingAndAdvertisingExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240894049 - Disclosure - Other Operating Income and Expense (Details)",
     "role": "http://www.thefirst.com/role/OtherOperatingIncomeandExpenseDetails",
     "shortName": "Other Operating Income and Expense (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "fnlc:ScheduleOfOtherOperatingIncomeAndExpenseTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:MarketingAndAdvertisingExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R107": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentNet",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240944050 - Disclosure - Condensed Financial Information of Parent (Details)",
     "role": "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
     "shortName": "Condensed Financial Information of Parent (Details)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "ie4702737a99a4928ad5d5a89d71b5900_D20200101-20201231",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:OtherOperatingIncome",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R108": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240984051 - Disclosure - Quarterly Information (Details)",
     "role": "http://www.thefirst.com/role/QuarterlyInformationDetails",
     "shortName": "Quarterly Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfQuarterlyFinancialInformationTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i65d30c57c3ef439bb60fc62febaaaccf_I20200930",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:InterestBearingDepositsInBanks",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R109": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:Goodwill",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "241014052 - Disclosure - Acquisitions and Intangible Assets - Additional Information (Details)",
     "role": "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsAdditionalInformationDetails",
     "shortName": "Acquisitions and Intangible Assets - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i3c928a344bcf48c7b2db4648a133b96b_I20201211",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R11": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210061003 - Disclosure - Investment Securities",
     "role": "http://www.thefirst.com/role/InvestmentSecurities",
     "shortName": "Investment Securities",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R110": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:Goodwill",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "241024053 - Disclosure - Acquisitions and Intangible Assets - Summary of Consideration Paid (Details)",
     "role": "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsSummaryofConsiderationPaidDetails",
     "shortName": "Acquisitions and Intangible Assets - Summary of Consideration Paid (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfBusinessAcquisitionsByAcquisitionTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i3c928a344bcf48c7b2db4648a133b96b_I20201211",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R12": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:TransfersAndServicingOfFinancialAssetsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210141004 - Disclosure - Mortgage Servicing Rights",
     "role": "http://www.thefirst.com/role/MortgageServicingRights",
     "shortName": "Mortgage Servicing Rights",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:TransfersAndServicingOfFinancialAssetsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R13": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210171005 - Disclosure - Loans",
     "role": "http://www.thefirst.com/role/Loans",
     "shortName": "Loans",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R14": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AllowanceForCreditLossesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210301006 - Disclosure - Allowance for Loan Losses",
     "role": "http://www.thefirst.com/role/AllowanceforLoanLosses",
     "shortName": "Allowance for Loan Losses",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AllowanceForCreditLossesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R15": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210371007 - Disclosure - Premises and Equipment",
     "role": "http://www.thefirst.com/role/PremisesandEquipment",
     "shortName": "Premises and Equipment",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R16": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RealEstateOwnedTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210421008 - Disclosure - Other Real Estate Owned",
     "role": "http://www.thefirst.com/role/OtherRealEstateOwned",
     "shortName": "Other Real Estate Owned",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RealEstateOwnedTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R17": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210451009 - Disclosure - Income Taxes",
     "role": "http://www.thefirst.com/role/IncomeTaxes",
     "shortName": "Income Taxes",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R18": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DepositLiabilitiesDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210481010 - Disclosure - Certificates of Deposit",
     "role": "http://www.thefirst.com/role/CertificatesofDeposit",
     "shortName": "Certificates of Deposit",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DepositLiabilitiesDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R19": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210511011 - Disclosure - Borrowed Funds",
     "role": "http://www.thefirst.com/role/BorrowedFunds",
     "shortName": "Borrowed Funds",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R2": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100010002 - Statement - Consolidated Balance Sheets",
     "role": "http://www.thefirst.com/role/ConsolidatedBalanceSheets",
     "shortName": "Consolidated Balance Sheets",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "lang": "en-US",
      "name": "fnlc:RestrictedEquitySecuritiesAtCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R20": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210541012 - Disclosure - Employee Benefit Plans",
     "role": "http://www.thefirst.com/role/EmployeeBenefitPlans",
     "shortName": "Employee Benefit Plans",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R21": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ComprehensiveIncomeNoteTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210591013 - Disclosure - Other Comprehensive Income (Loss)",
     "role": "http://www.thefirst.com/role/OtherComprehensiveIncomeLoss",
     "shortName": "Other Comprehensive Income (Loss)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ComprehensiveIncomeNoteTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R22": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210651014 - Disclosure - Financial Derivative Instruments",
     "role": "http://www.thefirst.com/role/FinancialDerivativeInstruments",
     "shortName": "Financial Derivative Instruments",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R23": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210681015 - Disclosure - Common Stock",
     "role": "http://www.thefirst.com/role/CommonStock",
     "shortName": "Common Stock",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R24": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210701016 - Disclosure - Stock Options and Stock-Based Compensation",
     "role": "http://www.thefirst.com/role/StockOptionsandStockBasedCompensation",
     "shortName": "Stock Options and Stock-Based Compensation",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R25": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210741017 - Disclosure - Earnings Per Share",
     "role": "http://www.thefirst.com/role/EarningsPerShare",
     "shortName": "Earnings Per Share",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R26": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210771018 - Disclosure - Regulatory Capital Requirements",
     "role": "http://www.thefirst.com/role/RegulatoryCapitalRequirements",
     "shortName": "Regulatory Capital Requirements",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R27": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210801019 - Disclosure - Off-Balance-Sheet Financial Instruments and Concentrations of Credit Risk",
     "role": "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRisk",
     "shortName": "Off-Balance-Sheet Financial Instruments and Concentrations of Credit Risk",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R28": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210831020 - Disclosure - Fair Value Disclosures",
     "role": "http://www.thefirst.com/role/FairValueDisclosures",
     "shortName": "Fair Value Disclosures",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R29": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OtherIncomeAndOtherExpenseDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210871021 - Disclosure - Other Operating Income and Expense",
     "role": "http://www.thefirst.com/role/OtherOperatingIncomeandExpense",
     "shortName": "Other Operating Income and Expense",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OtherIncomeAndOtherExpenseDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R3": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:HeldToMaturitySecuritiesFairValue",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100020003 - Statement - Consolidated Balance Sheets (Parenthetical)",
     "role": "http://www.thefirst.com/role/ConsolidatedBalanceSheetsParenthetical",
     "shortName": "Consolidated Balance Sheets (Parenthetical)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:CommonStockParOrStatedValuePerShare",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "INF",
      "lang": "en-US",
      "name": "us-gaap:CommonStockParOrStatedValuePerShare",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usdPerShare",
      "xsiNil": "false"
     }
    },
    "R30": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LossContingencyDisclosures",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210901022 - Disclosure - Legal Contingencies",
     "role": "http://www.thefirst.com/role/LegalContingencies",
     "shortName": "Legal Contingencies",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LossContingencyDisclosures",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R31": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:PriorPeriodReclassificationAdjustmentDescription",
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfReclassificationAmountTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210911023 - Disclosure - Reclassifications",
     "role": "http://www.thefirst.com/role/Reclassifications",
     "shortName": "Reclassifications",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:PriorPeriodReclassificationAdjustmentDescription",
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfReclassificationAmountTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R32": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210921024 - Disclosure - Condensed Financial Information of Parent",
     "role": "http://www.thefirst.com/role/CondensedFinancialInformationofParent",
     "shortName": "Condensed Financial Information of Parent",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R33": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210951025 - Disclosure - New Accounting Pronouncements",
     "role": "http://www.thefirst.com/role/NewAccountingPronouncements",
     "shortName": "New Accounting Pronouncements",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R34": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:QuarterlyFinancialInformationTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210961026 - Disclosure - Quarterly Information",
     "role": "http://www.thefirst.com/role/QuarterlyInformation",
     "shortName": "Quarterly Information",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:QuarterlyFinancialInformationTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R35": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BusinessCombinationDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210991027 - Disclosure - Acquisitions and Intangible Assets",
     "role": "http://www.thefirst.com/role/AcquisitionsandIntangibleAssets",
     "shortName": "Acquisitions and Intangible Assets",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BusinessCombinationDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R36": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ConsolidationPolicyTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "220022001 - Disclosure - Summary of Significant Accounting Policies (Policies)",
     "role": "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesPolicies",
     "shortName": "Summary of Significant Accounting Policies (Policies)",
     "subGroupType": "policies",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ConsolidationPolicyTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R37": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "fnlc:ScheduleOfAvailableForSaleHeldToMaturityAndNonMarketableSecuritiesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230073001 - Disclosure - Investment Securities (Tables)",
     "role": "http://www.thefirst.com/role/InvestmentSecuritiesTables",
     "shortName": "Investment Securities (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "fnlc:ScheduleOfAvailableForSaleHeldToMaturityAndNonMarketableSecuritiesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R38": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "fnlc:ReconciliationOfMortgageServicingRightsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230153002 - Disclosure - Mortgage Servicing Rights (Tables)",
     "role": "http://www.thefirst.com/role/MortgageServicingRightsTables",
     "shortName": "Mortgage Servicing Rights (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "fnlc:ReconciliationOfMortgageServicingRightsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R39": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "fnlc:ScheduleOfCompositionOfLoanPortfolioTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230183003 - Disclosure - Loans (Tables)",
     "role": "http://www.thefirst.com/role/LoansTables",
     "shortName": "Loans (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "fnlc:ScheduleOfCompositionOfLoanPortfolioTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R4": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InterestAndFeeIncomeLoansAndLeases",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100030004 - Statement - Consolidated Statements of Income and Comprehensive Income",
     "role": "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome",
     "shortName": "Consolidated Statements of Income and Comprehensive Income",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InterestAndFeeIncomeLoansAndLeases",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R40": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230313004 - Disclosure - Allowance for Loan Losses (Tables)",
     "role": "http://www.thefirst.com/role/AllowanceforLoanLossesTables",
     "shortName": "Allowance for Loan Losses (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R41": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230383005 - Disclosure - Premises and Equipment (Tables)",
     "role": "http://www.thefirst.com/role/PremisesandEquipmentTables",
     "shortName": "Premises and Equipment (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R42": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "fnlc:OtherRealEstateOwnedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230433006 - Disclosure - Other Real Estate Owned (Tables)",
     "role": "http://www.thefirst.com/role/OtherRealEstateOwnedTables",
     "shortName": "Other Real Estate Owned (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "fnlc:OtherRealEstateOwnedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R43": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230463007 - Disclosure - Income Taxes (Tables)",
     "role": "http://www.thefirst.com/role/IncomeTaxesTables",
     "shortName": "Income Taxes (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R44": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "fnlc:TimeDepositsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230493008 - Disclosure - Certificates of Deposit (Tables)",
     "role": "http://www.thefirst.com/role/CertificatesofDepositTables",
     "shortName": "Certificates of Deposit (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "fnlc:TimeDepositsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R45": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "fnlc:ScheduleOfBorrowedFundsOfMaturitiesAndRangeOfInterestRatesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230523009 - Disclosure - Borrowed Funds (Tables)",
     "role": "http://www.thefirst.com/role/BorrowedFundsTables",
     "shortName": "Borrowed Funds (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "fnlc:ScheduleOfBorrowedFundsOfMaturitiesAndRangeOfInterestRatesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R46": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ChangesInProjectedBenefitObligationsFairValueOfPlanAssetsAndFundedStatusOfPlanTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230553010 - Disclosure - Employee Benefit Plans (Tables)",
     "role": "http://www.thefirst.com/role/EmployeeBenefitPlansTables",
     "shortName": "Employee Benefit Plans (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ChangesInProjectedBenefitObligationsFairValueOfPlanAssetsAndFundedStatusOfPlanTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R47": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230603011 - Disclosure - Other Comprehensive Income (Loss) (Tables)",
     "role": "http://www.thefirst.com/role/OtherComprehensiveIncomeLossTables",
     "shortName": "Other Comprehensive Income (Loss) (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R48": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDerivativeInstrumentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230663012 - Disclosure - Financial Derivative Instruments (Tables)",
     "role": "http://www.thefirst.com/role/FinancialDerivativeInstrumentsTables",
     "shortName": "Financial Derivative Instruments (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDerivativeInstrumentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R49": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfNonvestedRestrictedStockUnitsActivityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230713013 - Disclosure - Stock Options and Stock-Based Compensation (Tables)",
     "role": "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationTables",
     "shortName": "Stock Options and Stock-Based Compensation (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfNonvestedRestrictedStockUnitsActivityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R5": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "fnlc:InterestIncomeandFeesonLoansTaxExempt",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100040005 - Statement - Consolidated Statements of Income and Comprehensive Income (Parenthetical)",
     "role": "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncomeParenthetical",
     "shortName": "Consolidated Statements of Income and Comprehensive Income (Parenthetical)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "fnlc:InterestIncomeandFeesonLoansTaxExempt",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R50": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230753014 - Disclosure - Earnings Per Share (Tables)",
     "role": "http://www.thefirst.com/role/EarningsPerShareTables",
     "shortName": "Earnings Per Share (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R51": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230783015 - Disclosure - Regulatory Capital Requirements (Tables)",
     "role": "http://www.thefirst.com/role/RegulatoryCapitalRequirementsTables",
     "shortName": "Regulatory Capital Requirements (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R52": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "fnlc:OffBalanceSheetFinancialInstrumentsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230813016 - Disclosure - Off-Balance-Sheet Financial Instruments and Concentrations of Credit Risk (Tables)",
     "role": "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRiskTables",
     "shortName": "Off-Balance-Sheet Financial Instruments and Concentrations of Credit Risk (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "fnlc:OffBalanceSheetFinancialInstrumentsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R53": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230843017 - Disclosure - Fair Value Disclosures (Tables)",
     "role": "http://www.thefirst.com/role/FairValueDisclosuresTables",
     "shortName": "Fair Value Disclosures (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R54": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "fnlc:ScheduleOfOtherOperatingIncomeAndExpenseTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230883018 - Disclosure - Other Operating Income and Expense (Tables)",
     "role": "http://www.thefirst.com/role/OtherOperatingIncomeandExpenseTables",
     "shortName": "Other Operating Income and Expense (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "fnlc:ScheduleOfOtherOperatingIncomeAndExpenseTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R55": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "fnlc:CondensedFinancialInformationForParentTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230933019 - Disclosure - Condensed Financial Information of Parent (Tables)",
     "role": "http://www.thefirst.com/role/CondensedFinancialInformationofParentTables",
     "shortName": "Condensed Financial Information of Parent (Tables)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "fnlc:CondensedFinancialInformationForParentTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R56": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfQuarterlyFinancialInformationTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230973020 - Disclosure - Quarterly Information (Tables)",
     "role": "http://www.thefirst.com/role/QuarterlyInformationTables",
     "shortName": "Quarterly Information (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfQuarterlyFinancialInformationTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R57": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfBusinessAcquisitionsByAcquisitionTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "231003021 - Disclosure - Acquisitions and Intangible Assets (Tables)",
     "role": "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsTables",
     "shortName": "Acquisitions and Intangible Assets (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfBusinessAcquisitionsByAcquisitionTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R58": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "us-gaap:SegmentReportingPolicyPolicyTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NumberOfOperatingSegments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "limitedpartnership",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240034001 - Disclosure - Summary of Significant Accounting Policies (Details)",
     "role": "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesDetails",
     "shortName": "Summary of Significant Accounting Policies (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "us-gaap:SegmentReportingPolicyPolicyTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NumberOfOperatingSegments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "limitedpartnership",
      "xsiNil": "false"
     }
    },
    "R59": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CompensatingBalanceAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240054002 - Disclosure - Cash and Cash Equivalents (Details)",
     "role": "http://www.thefirst.com/role/CashandCashEquivalentsDetails",
     "shortName": "Cash and Cash Equivalents (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CompensatingBalanceAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R6": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i91520531def74a6681a6a7dc588ed05b_I20171231",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommonStockSharesOutstanding",
      "reportCount": 1,
      "unique": true,
      "unitRef": "shares",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100050006 - Statement - Consolidated Statements of Changes in Shareholders' Equity",
     "role": "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquity",
     "shortName": "Consolidated Statements of Changes in Shareholders' Equity",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i91520531def74a6681a6a7dc588ed05b_I20171231",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommonStockSharesOutstanding",
      "reportCount": 1,
      "unique": true,
      "unitRef": "shares",
      "xsiNil": "false"
     }
    },
    "R60": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "fnlc:ScheduleOfAvailableForSaleHeldToMaturityAndNonMarketableSecuritiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240084003 - Disclosure - Investment Securities - Summary of Amortized Cost and Estimated Fair Value, AFS (Details)",
     "role": "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueAFSDetails",
     "shortName": "Investment Securities - Summary of Amortized Cost and Estimated Fair Value, AFS (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "fnlc:ScheduleOfAvailableForSaleHeldToMaturityAndNonMarketableSecuritiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R61": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:HeldToMaturitySecurities",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240094004 - Disclosure - Investment Securities - Summary of Amortized Cost and Estimated Fair Value, HTM and Restricted Equity Securities (Details)",
     "role": "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails",
     "shortName": "Investment Securities - Summary of Amortized Cost and Estimated Fair Value, HTM and Restricted Equity Securities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "fnlc:ScheduleOfAvailableForSaleHeldToMaturityAndNonMarketableSecuritiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R62": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240104005 - Disclosure - Investment Securities - Summary of Contractual Maturities (Details)",
     "role": "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails",
     "shortName": "Investment Securities - Summary of Contractual Maturities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R63": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "us-gaap:ScheduleOfTemporaryImpairmentLossesInvestmentsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i1e555442c7864b949f191f3da0d63c98_I20191231",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "fnlc:NumberOfSecuritiesTemporarilyImpaired",
      "reportCount": 1,
      "unitRef": "security",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240114006 - Disclosure - Investment Securities - Narrative (Details)",
     "role": "http://www.thefirst.com/role/InvestmentSecuritiesNarrativeDetails",
     "shortName": "Investment Securities - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "INF",
      "lang": "en-US",
      "name": "fnlc:NumberOfSecuritiesTemporarilyImpaired",
      "reportCount": 1,
      "unique": true,
      "unitRef": "security",
      "xsiNil": "false"
     }
    },
    "R64": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfRealizedGainLossTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ProceedsFromSaleAndMaturityOfMarketableSecurities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240124007 - Disclosure - Investment Securities - Securities Gains and Losses (Details)",
     "role": "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesGainsandLossesDetails",
     "shortName": "Investment Securities - Securities Gains and Losses (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfRealizedGainLossTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ProceedsFromSaleAndMaturityOfMarketableSecurities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R65": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfTemporaryImpairmentLossesInvestmentsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240134008 - Disclosure - Investment Securities - Securities Temporarily Impaired (Details)",
     "role": "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesTemporarilyImpairedDetails",
     "shortName": "Investment Securities - Securities Temporarily Impaired (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfTemporaryImpairmentLossesInvestmentsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R66": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "fnlc:ResidentialMortgageLoansServicedForOthersOutstandingPrincipal",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240164009 - Disclosure - Mortgage Servicing Rights (Details)",
     "role": "http://www.thefirst.com/role/MortgageServicingRightsDetails",
     "shortName": "Mortgage Servicing Rights (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "fnlc:ResidentialMortgageLoansServicedForOthersOutstandingPrincipal",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R67": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NotesReceivableGross",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240194010 - Disclosure - Loans - Portfolio (Details)",
     "role": "http://www.thefirst.com/role/LoansPortfolioDetails",
     "shortName": "Loans - Portfolio (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "fnlc:ScheduleOfCompositionOfLoanPortfolioTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "3",
      "lang": "en-US",
      "name": "fnlc:PercentageOfLoansReceivableByType",
      "reportCount": 1,
      "unique": true,
      "unitRef": "number",
      "xsiNil": "false"
     }
    },
    "R68": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LoansAndLeasesReceivableDeferredIncome",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240204011 - Disclosure - Loans - Narrative (Details)",
     "role": "http://www.thefirst.com/role/LoansNarrativeDetails",
     "shortName": "Loans - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LoansAndLeasesReceivableDeferredIncome",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R69": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i1e555442c7864b949f191f3da0d63c98_I20191231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "fnlc:RelatedPartyLoanReceivableAggregatedOver60000Dollars",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240214012 - Disclosure - Loans - Summary of Loans to Directors and Executive Officers (Details)",
     "role": "http://www.thefirst.com/role/LoansSummaryofLoanstoDirectorsandExecutiveOfficersDetails",
     "shortName": "Loans - Summary of Loans to Directors and Executive Officers (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i92b1652a21f04586b70ddba35658ff49_I20181231",
      "decimals": "-3",
      "lang": "en-US",
      "name": "fnlc:RelatedPartyLoanReceivableAggregatedOver60000Dollars",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R7": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommonStockDividendsPerShareDeclared",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usdPerShare",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100060007 - Statement - Consolidated Statements of Changes in Shareholders' Equity (Parenthetical)",
     "role": "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquityParenthetical",
     "shortName": "Consolidated Statements of Changes in Shareholders' Equity (Parenthetical)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommonStockDividendsPerShareDeclared",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usdPerShare",
      "xsiNil": "false"
     }
    },
    "R70": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FinancingReceivableModificationsNumberOfContracts2",
      "reportCount": 1,
      "unitRef": "loan",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240224013 - Disclosure - Loans - Modification Statuses by Portfolio Segment (Details)",
     "role": "http://www.thefirst.com/role/LoansModificationStatusesbyPortfolioSegmentDetails",
     "shortName": "Loans - Modification Statuses by Portfolio Segment (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4900bf6e87cb4e83a452df78f9a1c6c4_D20200101-20201231",
      "decimals": "INF",
      "lang": "en-US",
      "name": "us-gaap:FinancingReceivableModificationsNumberOfContracts2",
      "reportCount": 1,
      "unique": true,
      "unitRef": "loan",
      "xsiNil": "false"
     }
    },
    "R71": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FinancingReceivableRecordedInvestmentPastDue",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240234014 - Disclosure - Loans - Past-due Status of Loans by Class (Details)",
     "role": "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails",
     "shortName": "Loans - Past-due Status of Loans by Class (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:FinancingReceivableRecordedInvestmentCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R72": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FinancingReceivableRecordedInvestmentNonaccrualStatus",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240244015 - Disclosure - Loans - Nonaccrual Loans (Details)",
     "role": "http://www.thefirst.com/role/LoansNonaccrualLoansDetails",
     "shortName": "Loans - Nonaccrual Loans (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i502da8135f944d298daf8c4e7cf68230_I20201231",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:FinancingReceivableRecordedInvestmentNonaccrualStatus",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R73": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "fnlc:ImpairedLoansInformationTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ImpairedFinancingReceivableAverageRecordedInvestment",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240254016 - Disclosure - Loans - Information Regarding Impaired Loans (Details)",
     "role": "http://www.thefirst.com/role/LoansInformationRegardingImpairedLoansDetails",
     "shortName": "Loans - Information Regarding Impaired Loans (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "fnlc:ImpairedLoansInformationTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "lang": "en-US",
      "name": "fnlc:ImpairedFinancingReceivableWithNoAllowance",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R74": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ImpairedFinancingReceivablesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240264017 - Disclosure - Loans - Impaired Loans by Class (Details)",
     "role": "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails",
     "shortName": "Loans - Impaired Loans by Class (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ImpairedFinancingReceivablesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R75": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FinancingReceivableModificationsNumberOfContracts2",
      "reportCount": 1,
      "unitRef": "loan",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240274018 - Disclosure - Loans - TDRs by Class and Specific Reserve (Details)",
     "role": "http://www.thefirst.com/role/LoansTDRsbyClassandSpecificReserveDetails",
     "shortName": "Loans - TDRs by Class and Specific Reserve (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:TroubledDebtRestructuringsOnFinancingReceivablesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "lang": "en-US",
      "name": "fnlc:TroubledDebtRestructuringLoansandLeasesReceivableSpecificAllowance",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R76": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "fnlc:FinancingReceivableModificationsNumberOfContractsGreaterThan30DaysPastDuePlaceInTDRInPrevious12Months",
      "reportCount": 1,
      "unitRef": "loan",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240284019 - Disclosure - Loans - TDRs by Class and Associated Specific Reserves (Details)",
     "role": "http://www.thefirst.com/role/LoansTDRsbyClassandAssociatedSpecificReservesDetails",
     "shortName": "Loans - TDRs by Class and Associated Specific Reserves (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "lang": "en-US",
      "name": "fnlc:FinancingReceivableRecordedInvestmentGreaterThan30DaysPastDuePlacedInTDRInPrevious12Months",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R77": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "fnlc:FinancingReceivableModificationsNumberOfContractsDuringPeriod",
      "reportCount": 1,
      "unitRef": "loan",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240294020 - Disclosure - Loans - Pre-Modification and Post-Modification Outstanding Recorded Investment (Details)",
     "role": "http://www.thefirst.com/role/LoansPreModificationandPostModificationOutstandingRecordedInvestmentDetails",
     "shortName": "Loans - Pre-Modification and Post-Modification Outstanding Recorded Investment (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:FinancingReceivableModificationsPreModificationRecordedInvestment2",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R78": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240324021 - Disclosure - Allowance for Loan Losses - Composition of Allowance for Loans Losses, by Class (Details)",
     "role": "http://www.thefirst.com/role/AllowanceforLoanLossesCompositionofAllowanceforLoansLossesbyClassDetails",
     "shortName": "Allowance for Loan Losses - Composition of Allowance for Loans Losses, by Class (Details)",
     "subGroupType": "details",
     "uniqueAnchor": null
    },
    "R79": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "fnlc:ActivityInAllowanceForLoanLossesByPortfolioAndSegmentTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FinancingReceivableAllowanceForCreditLosses",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240334022 - Disclosure - Allowance for Loan Losses - Financing Receivable and Allowance Element by Class (Details)",
     "role": "http://www.thefirst.com/role/AllowanceforLoanLossesFinancingReceivableandAllowanceElementbyClassDetails",
     "shortName": "Allowance for Loan Losses - Financing Receivable and Allowance Element by Class (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "fnlc:LoanLossesByLoanSegmentAndAllowanceElementTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i3fcaaac7b16e420799a3e7789ebe644b_I20201231",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:FinancingReceivableAllowanceForCreditLosses",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R8": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100070008 - Statement - Consolidated Statements of Cash Flows",
     "role": "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows",
     "shortName": "Consolidated Statements of Cash Flows",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:DeferredIncomeTaxExpenseBenefit",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R80": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "4",
      "first": true,
      "lang": "en-US",
      "name": "fnlc:AllowanceforLoanandLeaseLossesRelatedLoansPercentage",
      "reportCount": 1,
      "unique": true,
      "unitRef": "number",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240344023 - Disclosure - Allowance for Loan Losses - Narrative (Details)",
     "role": "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails",
     "shortName": "Allowance for Loan Losses - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "4",
      "first": true,
      "lang": "en-US",
      "name": "fnlc:AllowanceforLoanandLeaseLossesRelatedLoansPercentage",
      "reportCount": 1,
      "unique": true,
      "unitRef": "number",
      "xsiNil": "false"
     }
    },
    "R81": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FinancingReceivableCreditQualityIndicatorsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "fnlc:CommercialAndMunicipalRiskRatedLoansReceivable",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240354024 - Disclosure - Allowance for Loan Losses - Risk Ratings by Segment (Details)",
     "role": "http://www.thefirst.com/role/AllowanceforLoanLossesRiskRatingsbySegmentDetails",
     "shortName": "Allowance for Loan Losses - Risk Ratings by Segment (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FinancingReceivableCreditQualityIndicatorsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "fnlc:CommercialAndMunicipalRiskRatedLoansReceivable",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R82": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i1e555442c7864b949f191f3da0d63c98_I20191231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FinancingReceivableAllowanceForCreditLosses",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240364025 - Disclosure - Allowance for Loan Losses - Activity by Class (Details)",
     "role": "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails",
     "shortName": "Allowance for Loan Losses - Activity by Class (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "fnlc:ActivityInAllowanceForLoanLossesByPortfolioAndSegmentTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:AllowanceForLoanAndLeaseLossRecoveryOfBadDebts",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R83": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:PropertyPlantAndEquipmentTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "fnlc:PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240394026 - Disclosure - Premises and Equipment - Schedule of Premises and Equipment (Details)",
     "role": "http://www.thefirst.com/role/PremisesandEquipmentScheduleofPremisesandEquipmentDetails",
     "shortName": "Premises and Equipment - Schedule of Premises and Equipment (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:PropertyPlantAndEquipmentTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "fnlc:PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R84": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FinanceLeaseLiabilityMaturityTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FinanceLeaseLiabilityPaymentsDueInNextRollingTwelveMonths",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240404027 - Disclosure - Premises and Equipment - Anticipated Rental Revenue (Details)",
     "role": "http://www.thefirst.com/role/PremisesandEquipmentAnticipatedRentalRevenueDetails",
     "shortName": "Premises and Equipment - Anticipated Rental Revenue (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FinanceLeaseLiabilityMaturityTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FinanceLeaseLiabilityPaymentsDueInNextRollingTwelveMonths",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R85": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LesseeOperatingLeaseRemainingLeaseTerm",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240414028 - Disclosure - Premises and Equipment - Leases (Details)",
     "role": "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails",
     "shortName": "Premises and Equipment - Leases (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LesseeOperatingLeaseRemainingLeaseTerm",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R86": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "fnlc:OtherRealEstateOwnedTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RealEstateAcquiredThroughForeclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240444029 - Disclosure - Other Real Estate Owned (Details)",
     "role": "http://www.thefirst.com/role/OtherRealEstateOwnedDetails",
     "shortName": "Other Real Estate Owned (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "fnlc:OtherRealEstateOwnedTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RealEstateAcquiredThroughForeclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R87": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CurrentFederalTaxExpenseBenefit",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240474030 - Disclosure - Income Taxes (Details)",
     "role": "http://www.thefirst.com/role/IncomeTaxesDetails",
     "shortName": "Income Taxes (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CurrentFederalTaxExpenseBenefit",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R88": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "fnlc:TimeDepositsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:TimeDepositsLessThan100000",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240504031 - Disclosure - Certificates of Deposit (Details)",
     "role": "http://www.thefirst.com/role/CertificatesofDepositDetails",
     "shortName": "Certificates of Deposit (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "fnlc:TimeDepositsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:TimeDepositsLessThan100000",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R89": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-6",
      "first": true,
      "lang": "en-US",
      "name": "fnlc:LineOfCreditWithCorrespondentBanks",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240534032 - Disclosure - Borrowed Funds (Details)",
     "role": "http://www.thefirst.com/role/BorrowedFundsDetails",
     "shortName": "Borrowed Funds (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-6",
      "first": true,
      "lang": "en-US",
      "name": "fnlc:LineOfCreditWithCorrespondentBanks",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R9": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210011001 - Disclosure - Summary of Significant Accounting Policies",
     "role": "http://www.thefirst.com/role/SummaryofSignificantAccountingPolicies",
     "shortName": "Summary of Significant Accounting Policies",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R90": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "fnlc:DefinedContributionPlanEmployerMaximumProfitSharingContributions",
      "reportCount": 1,
      "unique": true,
      "unitRef": "number",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240564033 - Disclosure - Employee Benefit Plans (Details)",
     "role": "http://www.thefirst.com/role/EmployeeBenefitPlansDetails",
     "shortName": "Employee Benefit Plans (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "fnlc:DefinedContributionPlanEmployerMaximumProfitSharingContributions",
      "reportCount": 1,
      "unique": true,
      "unitRef": "number",
      "xsiNil": "false"
     }
    },
    "R91": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ChangesInProjectedBenefitObligationsFairValueOfPlanAssetsAndFundedStatusOfPlanTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i1e555442c7864b949f191f3da0d63c98_I20191231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DefinedBenefitPlanBenefitObligation",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240574034 - Disclosure - Employee Benefit Plans - Accumulated Post-Retirement Benefit Obligation, Funded Status, and Net Periodic Benefit Cost (Details)",
     "role": "http://www.thefirst.com/role/EmployeeBenefitPlansAccumulatedPostRetirementBenefitObligationFundedStatusandNetPeriodicBenefitCostDetails",
     "shortName": "Employee Benefit Plans - Accumulated Post-Retirement Benefit Obligation, Funded Status, and Net Periodic Benefit Cost (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ChangesInProjectedBenefitObligationsFairValueOfPlanAssetsAndFundedStatusOfPlanTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i09dfc356cc754cd382e3d18c468e0adb_I20171231",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:DefinedBenefitPlanBenefitObligation",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R92": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfNetPeriodicBenefitCostNotYetRecognizedTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240584035 - Disclosure - Employee Benefit Plans - Schedule of Net Periodic Benefit Cost Not Yet Recognized (Details)",
     "role": "http://www.thefirst.com/role/EmployeeBenefitPlansScheduleofNetPeriodicBenefitCostNotYetRecognizedDetails",
     "shortName": "Employee Benefit Plans - Schedule of Net Periodic Benefit Cost Not Yet Recognized (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfNetPeriodicBenefitCostNotYetRecognizedTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i272fbc5d4d4f45c5ba18c0dc9fc597bd_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R93": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfQuarterlyFinancialInformationTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i65d30c57c3ef439bb60fc62febaaaccf_I20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquity",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240614036 - Disclosure - Other Comprehensive Income (Loss) - Summary of Unrealized Gains and Losses on Available-for-Sale Securities (Details)",
     "role": "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonAvailableforSaleSecuritiesDetails",
     "shortName": "Other Comprehensive Income (Loss) - Summary of Unrealized Gains and Losses on Available-for-Sale Securities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i2ddca39eedd2409b9b0d31f2de102815_I20171231",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquity",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R94": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfQuarterlyFinancialInformationTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i65d30c57c3ef439bb60fc62febaaaccf_I20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquity",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240624037 - Disclosure - Other Comprehensive Income (Loss) - Summary of Transfer of AFS Securities to HTM (Details)",
     "role": "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofTransferofAFSSecuritiestoHTMDetails",
     "shortName": "Other Comprehensive Income (Loss) - Summary of Transfer of AFS Securities to HTM (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "icc67d05be6d143648a07e46627324ef9_I20171231",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquity",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R95": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfQuarterlyFinancialInformationTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i65d30c57c3ef439bb60fc62febaaaccf_I20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquity",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240634038 - Disclosure - Other Comprehensive Income (Loss) - Summary of Derivative Financial Instruments (Details)",
     "role": "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofDerivativeFinancialInstrumentsDetails",
     "shortName": "Other Comprehensive Income (Loss) - Summary of Derivative Financial Instruments (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i874a31e6cdaf4500b825f13856ec0070_I20171231",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquity",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R96": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfQuarterlyFinancialInformationTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i65d30c57c3ef439bb60fc62febaaaccf_I20200930",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquity",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240644039 - Disclosure - Other Comprehensive Income (Loss) - Summary of Unrealized Gains and Losses on Postretirement Benefits (Details)",
     "role": "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonPostretirementBenefitsDetails",
     "shortName": "Other Comprehensive Income (Loss) - Summary of Unrealized Gains and Losses on Postretirement Benefits (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i96a0d6efd8894491ab3205eb68558b9f_I20171231",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquity",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R97": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i8a1b6934bd0b402fa83b1bf7b9ebee94_D20200101-20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "fnlc:DerivativeInstrumentsExpenseFromRestructuring",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240674040 - Disclosure - Financial Derivative Instruments (Details)",
     "role": "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails",
     "shortName": "Financial Derivative Instruments (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i8a1b6934bd0b402fa83b1bf7b9ebee94_D20200101-20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "fnlc:DerivativeInstrumentsExpenseFromRestructuring",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R98": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i09dfc356cc754cd382e3d18c468e0adb_I20171231",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "fnlc:NumberOfSharesAvailableForGrantUnderEmployeeSavingsAndInvestmentPlan",
      "reportCount": 1,
      "unique": true,
      "unitRef": "shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240694041 - Disclosure - Common Stock (Details)",
     "role": "http://www.thefirst.com/role/CommonStockDetails",
     "shortName": "Common Stock (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i09dfc356cc754cd382e3d18c468e0adb_I20171231",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "fnlc:NumberOfSharesAvailableForGrantUnderEmployeeSavingsAndInvestmentPlan",
      "reportCount": 1,
      "unique": true,
      "unitRef": "shares",
      "xsiNil": "false"
     }
    },
    "R99": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "us-gaap:ScheduleOfNonvestedRestrictedStockUnitsActivityTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
      "reportCount": 1,
      "unique": true,
      "unitRef": "shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240724042 - Disclosure - Stock Options and Stock-Based Compensation - Narrative (Details)",
     "role": "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationNarrativeDetails",
     "shortName": "Stock Options and Stock-Based Compensation - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "us-gaap:ScheduleOfNonvestedRestrictedStockUnitsActivityTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "fnlc-20201231.htm",
      "contextRef": "i4e76e7e0210c435fb6b2e1ae892d4f9f_D20200101-20201231",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
      "reportCount": 1,
      "unique": true,
      "unitRef": "shares",
      "xsiNil": "false"
     }
    }
   },
   "segmentCount": 118,
   "tag": {
    "dei_AmendmentFlag": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission.",
        "label": "Amendment Flag",
        "terseLabel": "Amendment Flag"
       }
      }
     },
     "localname": "AmendmentFlag",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_CityAreaCode": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Area code of city",
        "label": "City Area Code",
        "terseLabel": "City Area Code"
       }
      }
     },
     "localname": "CityAreaCode",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_CoverAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cover page.",
        "label": "Cover [Abstract]",
        "terseLabel": "Cover [Abstract]"
       }
      }
     },
     "localname": "CoverAbstract",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "dei_CurrentFiscalYearEndDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "End date of current fiscal year in the format --MM-DD.",
        "label": "Current Fiscal Year End Date",
        "terseLabel": "Current Fiscal Year End Date"
       }
      }
     },
     "localname": "CurrentFiscalYearEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "gMonthDayItemType"
    },
    "dei_DocumentAnnualReport": {
     "auth_ref": [
      "r737",
      "r738",
      "r739"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true only for a form used as an annual report.",
        "label": "Document Annual Report",
        "terseLabel": "Document Annual Report"
       }
      }
     },
     "localname": "DocumentAnnualReport",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_DocumentFiscalPeriodFocus": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fiscal period values are FY, Q1, Q2, and Q3.  1st, 2nd and 3rd quarter 10-Q or 10-QT statements have value Q1, Q2, and Q3 respectively, with 10-K, 10-KT or other fiscal year statements having FY.",
        "label": "Document Fiscal Period Focus",
        "terseLabel": "Document Fiscal Period Focus"
       }
      }
     },
     "localname": "DocumentFiscalPeriodFocus",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "fiscalPeriodItemType"
    },
    "dei_DocumentFiscalYearFocus": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This is focus fiscal year of the document report in YYYY format. For a 2006 annual report, which may also provide financial information from prior periods, fiscal 2006 should be given as the fiscal year focus. Example: 2006.",
        "label": "Document Fiscal Year Focus",
        "terseLabel": "Document Fiscal Year Focus"
       }
      }
     },
     "localname": "DocumentFiscalYearFocus",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "gYearItemType"
    },
    "dei_DocumentPeriodEndDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The end date of the period reflected on the cover page if a periodic report. For all other reports and registration statements containing historical data, it is the date up through which that historical data is presented.  If there is no historical data in the report, use the filing date. The format of the date is YYYY-MM-DD.",
        "label": "Document Period End Date",
        "terseLabel": "Document Period End Date"
       }
      }
     },
     "localname": "DocumentPeriodEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "dateItemType"
    },
    "dei_DocumentTransitionReport": {
     "auth_ref": [
      "r740"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true only for a form used as a transition report.",
        "label": "Document Transition Report",
        "terseLabel": "Document Transition Report"
       }
      }
     },
     "localname": "DocumentTransitionReport",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_DocumentType": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The type of document being provided (such as 10-K, 10-Q, 485BPOS, etc). The document type is limited to the same value as the supporting SEC submission type, or the word 'Other'.",
        "label": "Document Type",
        "terseLabel": "Document Type"
       }
      }
     },
     "localname": "DocumentType",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "submissionTypeItemType"
    },
    "dei_EntityAddressAddressLine1": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Address Line 1 such as Attn, Building Name, Street Name",
        "label": "Entity Address, Address Line One",
        "terseLabel": "Entity Address, Address Line One"
       }
      }
     },
     "localname": "EntityAddressAddressLine1",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressCityOrTown": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the City or Town",
        "label": "Entity Address, City or Town",
        "terseLabel": "Entity Address, City or Town"
       }
      }
     },
     "localname": "EntityAddressCityOrTown",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressPostalZipCode": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Code for the postal or zip code",
        "label": "Entity Address, Postal Zip Code",
        "terseLabel": "Entity Address, Postal Zip Code"
       }
      }
     },
     "localname": "EntityAddressPostalZipCode",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressStateOrProvince": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the state or province.",
        "label": "Entity Address, State or Province",
        "terseLabel": "Entity Address, State or Province"
       }
      }
     },
     "localname": "EntityAddressStateOrProvince",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "stateOrProvinceItemType"
    },
    "dei_EntityCentralIndexKey": {
     "auth_ref": [
      "r742"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A unique 10-digit SEC-issued value to identify entities that have filed disclosures with the SEC. It is commonly abbreviated as CIK.",
        "label": "Entity Central Index Key",
        "terseLabel": "Entity Central Index Key"
       }
      }
     },
     "localname": "EntityCentralIndexKey",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "centralIndexKeyItemType"
    },
    "dei_EntityCommonStockSharesOutstanding": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate number of shares or other units outstanding of each of registrant's classes of capital or common stock or other ownership interests, if and as stated on cover of related periodic report. Where multiple classes or units exist define each class/interest by adding class of stock items such as Common Class A [Member], Common Class B [Member] or Partnership Interest [Member] onto the Instrument [Domain] of the Entity Listings, Instrument.",
        "label": "Entity Common Stock, Shares Outstanding",
        "terseLabel": "Entity Common Stock, Shares Outstanding"
       }
      }
     },
     "localname": "EntityCommonStockSharesOutstanding",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "sharesItemType"
    },
    "dei_EntityCurrentReportingStatus": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate 'Yes' or 'No' whether registrants (1) have filed all reports required to be filed by Section 13 or 15(d) of the Securities Exchange Act of 1934 during the preceding 12 months (or for such shorter period that registrants were required to file such reports), and (2) have been subject to such filing requirements for the past 90 days. This information should be based on the registrant's current or most recent filing containing the related disclosure.",
        "label": "Entity Current Reporting Status",
        "terseLabel": "Entity Current Reporting Status"
       }
      }
     },
     "localname": "EntityCurrentReportingStatus",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "All the names of the entities being reported upon in a document. Any legal structure used to conduct activities or to hold assets. Some examples of such structures are corporations, partnerships, limited liability companies, grantor trusts, and other trusts. This item does not include business and geographical segments which are included in the geographical or business segments domains.",
        "label": "Entity [Domain]",
        "terseLabel": "Entity [Domain]"
       }
      }
     },
     "localname": "EntityDomain",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "dei_EntityEmergingGrowthCompany": {
     "auth_ref": [
      "r742"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate if registrant meets the emerging growth company criteria.",
        "label": "Entity Emerging Growth Company",
        "terseLabel": "Entity Emerging Growth Company"
       }
      }
     },
     "localname": "EntityEmergingGrowthCompany",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityFileNumber": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commission file number. The field allows up to 17 characters. The prefix may contain 1-3 digits, the sequence number may contain 1-8 digits, the optional suffix may contain 1-4 characters, and the fields are separated with a hyphen.",
        "label": "Entity File Number",
        "terseLabel": "Entity File Number"
       }
      }
     },
     "localname": "EntityFileNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "fileNumberItemType"
    },
    "dei_EntityFilerCategory": {
     "auth_ref": [
      "r742"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate whether the registrant is one of the following: Large Accelerated Filer, Accelerated Filer, Non-accelerated Filer. Definitions of these categories are stated in Rule 12b-2 of the Exchange Act. This information should be based on the registrant's current or most recent filing containing the related disclosure.",
        "label": "Entity Filer Category",
        "terseLabel": "Entity Filer Category"
       }
      }
     },
     "localname": "EntityFilerCategory",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "filerCategoryItemType"
    },
    "dei_EntityIncorporationStateCountryCode": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two-character EDGAR code representing the state or country of incorporation.",
        "label": "Entity Incorporation, State or Country Code",
        "terseLabel": "Entity Incorporation, State or Country Code"
       }
      }
     },
     "localname": "EntityIncorporationStateCountryCode",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "edgarStateCountryItemType"
    },
    "dei_EntityInteractiveDataCurrent": {
     "auth_ref": [
      "r743"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true when the registrant has submitted electronically every Interactive Data File required to be submitted pursuant to Rule 405 of Regulation S-T during the preceding 12 months (or for such shorter period that the registrant was required to submit such files).",
        "label": "Entity Interactive Data Current",
        "terseLabel": "Entity Interactive Data Current"
       }
      }
     },
     "localname": "EntityInteractiveDataCurrent",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityPublicFloat": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate market value of the voting and non-voting common equity held by non-affiliates computed by reference to the price at which the common equity was last sold, or the average bid and asked price of such common equity, as of the last business day of the registrant's most recently completed second fiscal quarter.",
        "label": "Entity Public Float",
        "terseLabel": "Entity Public Float"
       }
      }
     },
     "localname": "EntityPublicFloat",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "monetaryItemType"
    },
    "dei_EntityRegistrantName": {
     "auth_ref": [
      "r742"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The exact name of the entity filing the report as specified in its charter, which is required by forms filed with the SEC.",
        "label": "Entity Registrant Name",
        "terseLabel": "Entity Registrant Name"
       }
      }
     },
     "localname": "EntityRegistrantName",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityShellCompany": {
     "auth_ref": [
      "r742"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true when the registrant is a shell company as defined in Rule 12b-2 of the Exchange Act.",
        "label": "Entity Shell Company",
        "terseLabel": "Entity Shell Company"
       }
      }
     },
     "localname": "EntityShellCompany",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntitySmallBusiness": {
     "auth_ref": [
      "r742"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates that the company is a Smaller Reporting Company (SRC).",
        "label": "Entity Small Business",
        "terseLabel": "Entity Small Business"
       }
      }
     },
     "localname": "EntitySmallBusiness",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityTaxIdentificationNumber": {
     "auth_ref": [
      "r742"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The Tax Identification Number (TIN), also known as an Employer Identification Number (EIN), is a unique 9-digit value assigned by the IRS.",
        "label": "Entity Tax Identification Number",
        "terseLabel": "Entity Tax Identification Number"
       }
      }
     },
     "localname": "EntityTaxIdentificationNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "employerIdItemType"
    },
    "dei_EntityVoluntaryFilers": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate 'Yes' or 'No' if the registrant is not required to file reports pursuant to Section 13 or Section 15(d) of the Act.",
        "label": "Entity Voluntary Filers",
        "terseLabel": "Entity Voluntary Filers"
       }
      }
     },
     "localname": "EntityVoluntaryFilers",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityWellKnownSeasonedIssuer": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate 'Yes' or 'No' if the registrant is a well-known seasoned issuer, as defined in Rule 405 of the Securities Act. Is used on Form Type: 10-K, 10-Q, 8-K, 20-F, 6-K, 10-K/A, 10-Q/A, 20-F/A, 6-K/A, N-CSR, N-Q, N-1A.",
        "label": "Entity Well-known Seasoned Issuer",
        "terseLabel": "Entity Well-known Seasoned Issuer"
       }
      }
     },
     "localname": "EntityWellKnownSeasonedIssuer",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_IcfrAuditorAttestationFlag": {
     "auth_ref": [
      "r737",
      "r738",
      "r739"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ICFR Auditor Attestation Flag",
        "terseLabel": "ICFR Auditor Attestation Flag"
       }
      }
     },
     "localname": "IcfrAuditorAttestationFlag",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_LegalEntityAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The set of legal entities associated with a report.",
        "label": "Legal Entity [Axis]",
        "terseLabel": "Legal Entity [Axis]"
       }
      }
     },
     "localname": "LegalEntityAxis",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "dei_LocalPhoneNumber": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Local phone number for entity.",
        "label": "Local Phone Number",
        "terseLabel": "Local Phone Number"
       }
      }
     },
     "localname": "LocalPhoneNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Cover"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "fnlc_A2020EquityIncentivePlanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "2020 Equity Incentive Plan",
        "label": "2020 Equity Incentive Plan [Member]",
        "terseLabel": "2020 Plan"
       }
      }
     },
     "localname": "A2020EquityIncentivePlanMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationNarrativeDetails",
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_AboveAverage2Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Credit quality indicators that are developed and used internally by the company-level 2.",
        "label": "Above Average 2 [Member]",
        "terseLabel": "2 Above average"
       }
      }
     },
     "localname": "AboveAverage2Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesRiskRatingsbySegmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_AccrualOfInterestIncomeAndExpensePolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for recognizing interest income and expense, including the method of accrual of income and expense on loans.",
        "label": "Accrual of Interest Income and Expense [Policy Text Block]",
        "verboseLabel": "Accrual of Interest Income and Expense"
       }
      }
     },
     "localname": "AccrualOfInterestIncomeAndExpensePolicyTextBlock",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fnlc_AccumulatedAmortizationMortgageServicingRights": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/MortgageServicingRightsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_ServicingAssetAtAmortizedValue",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cumulative amount of amortization for mortgage servicing rights that has been recognized in the income statement.",
        "label": "Accumulated Amortization Mortgage Servicing Rights",
        "negatedLabel": "Accumulated amortization"
       }
      }
     },
     "localname": "AccumulatedAmortizationMortgageServicingRights",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/MortgageServicingRightsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_AccumulatedNetGainLossonSecuritiesTransferredfromAvailableforSaletoHeldtoMaturityMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accumulated Net Gain (Loss) on Securities Transferred from Available-for-Sale to Held-to-Maturity [Member]",
        "label": "Accumulated Net Gain (Loss) on Securities Transferred from Available-for-Sale to Held-to-Maturity [Member]",
        "terseLabel": "Accumulated Net Gain (Loss) on Securities Transferred from Available-for-Sale to Held-to-Maturity"
       }
      }
     },
     "localname": "AccumulatedNetGainLossonSecuritiesTransferredfromAvailableforSaletoHeldtoMaturityMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofTransferofAFSSecuritiestoHTMDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_AccumulatedOtherComprehensiveIncomeDefinedBenefitPlansTaxDeferredTaxBenefit": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tax effects of the increase (decrease) to accumulated comprehensive income during the period related to benefit plans.",
        "label": "Accumulated Other Comprehensive Income Defined Benefit Plans Tax, Deferred Tax Benefit",
        "terseLabel": "Deferred tax expense at 21%"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeDefinedBenefitPlansTaxDeferredTaxBenefit",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansScheduleofNetPeriodicBenefitCostNotYetRecognizedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_ActivityInAllowanceForLoanLossesByPortfolioAndSegmentTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure for the roll forward of change in allowance for loan losses from period to period and related loan balances.",
        "label": "Activity In Allowance For Loan Losses By Portfolio And Segment [Table Text Block]",
        "verboseLabel": "Allowance for loan losses transactions"
       }
      }
     },
     "localname": "ActivityInAllowanceForLoanLossesByPortfolioAndSegmentTableTextBlock",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fnlc_Actuarialgainloss": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Actuarial (gain) loss",
        "label": "Actuarial (gain) loss",
        "terseLabel": "Actuarial (gain) loss"
       }
      }
     },
     "localname": "Actuarialgainloss",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansAccumulatedPostRetirementBenefitObligationFundedStatusandNetPeriodicBenefitCostDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_AllowanceForLoanLossesOfLoansExcludingPPPLoansPercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Allowance for Loan Losses of Loans Excluding PPP Loans, Percentage",
        "label": "Allowance for Loan Losses of Loans Excluding PPP Loans, Percentage",
        "terseLabel": "Allowance for loan losses as a percent of total loans, excluding PPP loan balances"
       }
      }
     },
     "localname": "AllowanceForLoanLossesOfLoansExcludingPPPLoansPercentage",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_AllowanceforLoanLossesofTotalLoansPercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Allowance for Loan Losses of Total Loans, Percentage",
        "label": "Allowance for Loan Losses of Total Loans, Percentage",
        "terseLabel": "Allowance for loan losses as a percent of total loans"
       }
      }
     },
     "localname": "AllowanceforLoanLossesofTotalLoansPercentage",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_AllowanceforLoanandLeaseLossesRelatedLoansPercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Allowance for Loan and Lease Losses, Related Loans, Percentage",
        "label": "Allowance for Loan and Lease Losses, Related Loans, Percentage",
        "terseLabel": "Percent of related loans"
       }
      }
     },
     "localname": "AllowanceforLoanandLeaseLossesRelatedLoansPercentage",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_AllowanceforLoanandLeaseLossesRelatedLoansPeriodIncreaseDecrease": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Allowance for Loan and Lease Losses, Related Loans, Period Increase (Decrease)",
        "label": "Allowance for Loan and Lease Losses, Related Loans, Period Increase (Decrease)",
        "terseLabel": "Increase (decrease) in qualitative portion"
       }
      }
     },
     "localname": "AllowanceforLoanandLeaseLossesRelatedLoansPeriodIncreaseDecrease",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_AmortizationofIntangibleAssetsYearlyExpensetillFullyAmortized": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortization of Intangible Assets, Yearly Expense till Fully Amortized",
        "label": "Amortization of Intangible Assets, Yearly Expense till Fully Amortized",
        "terseLabel": "Yearly amortization expense until fully amortized"
       }
      }
     },
     "localname": "AmortizationofIntangibleAssetsYearlyExpensetillFullyAmortized",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_AssetsAndLiabilitiesLesseeTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Assets And Liabilities, Lessee",
        "label": "Assets And Liabilities, Lessee [Table Text Block]",
        "terseLabel": "Right-of-use Asset and Lease Liability"
       }
      }
     },
     "localname": "AssetsAndLiabilitiesLesseeTableTextBlock",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fnlc_AtmAndDebitCardIncomeMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Income derived from processing ATM and debit card transaction fees.",
        "label": "ATM And Debit Card Income [Member]",
        "terseLabel": "ATM and debit card income"
       }
      }
     },
     "localname": "AtmAndDebitCardIncomeMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/OtherOperatingIncomeandExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_AtmAndInterchangeExpense": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fees incurred from processing ATM and debit card transaction fees.",
        "label": "ATM and interchange expense",
        "terseLabel": "ATM and interchange expense"
       }
      }
     },
     "localname": "AtmAndInterchangeExpense",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/OtherOperatingIncomeandExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_AvailableforSaleSecuritiesTransferredSecurityatCarryingValue": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Available-for-Sale Securities, Transferred Security, at Carrying Value",
        "label": "Available-for-Sale Securities, Transferred Security, at Carrying Value",
        "terseLabel": "Amortized cost of securities transferred"
       }
      }
     },
     "localname": "AvailableforSaleSecuritiesTransferredSecurityatCarryingValue",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_AvailableforSaleSecuritiesTransferredSecurityatFairValue": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Available-for-Sale, Transferred Security, at Fair Value",
        "label": "Available-for-Sale Securities, Transferred Security, at Fair Value",
        "terseLabel": "Fair value of securities transferred"
       }
      }
     },
     "localname": "AvailableforSaleSecuritiesTransferredSecurityatFairValue",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_AvailableforsaleSecuritiesTransferredtoHeldtomaturitySecuritiesAccumulatedUnrealizedGainLoss": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Available-for-sale Securities, Transferred to Held-to-maturity Securities, Accumulated Unrealized Gain (Loss)",
        "label": "Available-for-sale Securities, Transferred to Held-to-maturity Securities, Accumulated Unrealized Gain (Loss)",
        "verboseLabel": "Net unrealized gains (losses) on securities transferred"
       }
      }
     },
     "localname": "AvailableforsaleSecuritiesTransferredtoHeldtomaturitySecuritiesAccumulatedUnrealizedGainLoss",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_AvailableforsaleSecuritiesTransferredtoHeldtomaturitySecuritiesUnrealizedGainLoss": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 3.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Available-for-sale Securities, Transferred to Held-to-maturity Securities, Unrealized Gain (Loss)",
        "label": "Available-for-sale Securities, Transferred to Held-to-maturity Securities, Unrealized Gain (Loss)",
        "terseLabel": "Net unrealized gain (loss) on securities transferred from available for sale to held to maturity, net of amortization",
        "verboseLabel": "Net unrealized gain on securities transferred from available for sale to held to maturity, net of tax"
       }
      }
     },
     "localname": "AvailableforsaleSecuritiesTransferredtoHeldtomaturitySecuritiesUnrealizedGainLoss",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquity",
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_Average4Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Credit quality indicators that are developed and used internally by the company-level 4.",
        "label": "Average 4 [Member]",
        "terseLabel": "4\u00a0Average"
       }
      }
     },
     "localname": "Average4Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesRiskRatingsbySegmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_BankAcquisitionsFromCamdenNationalBankMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the purchase of a branch at 63 Union Street in Rockland, Maine and a full-service bank building at 145 Exchange Street in Bangor, Maine from Camden National Bank.",
        "label": "Bank Acquisitions From Camden National Bank [Member]",
        "terseLabel": "Bank Acquisitions From Camden National Bank"
       }
      }
     },
     "localname": "BankAcquisitionsFromCamdenNationalBankMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_BelfastMaineBranchMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Belfast, Maine Branch",
        "label": "Belfast, Maine Branch [Member]",
        "terseLabel": "Belfast, Maine Branch"
       }
      }
     },
     "localname": "BelfastMaineBranchMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsAdditionalInformationDetails",
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsSummaryofConsiderationPaidDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_BookValuePerCommonShare": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Book value of common stock per share.",
        "label": "Book value per common share",
        "terseLabel": "Book value per common share (usd per share)"
       }
      }
     },
     "localname": "BookValuePerCommonShare",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "perShareItemType"
    },
    "fnlc_BorrowedFundsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "-- None. No documentation exists for this element. --",
        "label": "Borrowed Funds [Abstract]",
        "terseLabel": "Borrowed Funds [Abstract]"
       }
      }
     },
     "localname": "BorrowedFundsAbstract",
     "nsuri": "http://www.thefirst.com/20201231",
     "xbrltype": "stringItemType"
    },
    "fnlc_CapitalConservationBuffer": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Capital Conservation Buffer",
        "label": "Capital Conservation Buffer",
        "terseLabel": "Capital conservation buffer"
       }
      }
     },
     "localname": "CapitalConservationBuffer",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_CapitalConservationBufferPhaseinMinimum": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Capital Conservation Buffer Phase in Minimum",
        "label": "Capital Conservation Buffer Phase in Minimum",
        "terseLabel": "Capital conservation buffer, minimum"
       }
      }
     },
     "localname": "CapitalConservationBufferPhaseinMinimum",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_CapitalPurchaseProgramMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Capital Purchase Program [Member]",
        "label": "Capital Purchase Program [Member]",
        "terseLabel": "Capital Purchase Program"
       }
      }
     },
     "localname": "CapitalPurchaseProgramMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CommonStockDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_ChangeInAllowanceForLossesFromOtherRealEstateOwnedTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the change in the allowance for real estate owned and acquired in settlement of troubled loans through surrender or foreclosure during the period.",
        "label": "Change In Allowance for Losses From Other Real Estate Owned [Table Text Block]",
        "verboseLabel": "Change in Allowance for Losses from Other Real Estate Owned"
       }
      }
     },
     "localname": "ChangeInAllowanceForLossesFromOtherRealEstateOwnedTableTextBlock",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/OtherRealEstateOwnedTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fnlc_CollateralizedConsumerLoansToIndividualsLoanToValue": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Collateralized Consumer Loans To Individuals Loan To Value",
        "label": "Collateralized Consumer Loans To Individuals Loan To Value",
        "terseLabel": "Consumer loans, loan to value percent, minimum"
       }
      }
     },
     "localname": "CollateralizedConsumerLoansToIndividualsLoanToValue",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_CollateralizedConsumerLoansToIndividualsLoanToValueMaximumRangeHigh": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The high maximum percentage of loan to value for consumer loans based on purchase price of the collateral.",
        "label": "Collateralized Consumer Loans To Individuals Loan To Value Maximum Range High",
        "terseLabel": "Consumer loans, loan to value percent, maximum"
       }
      }
     },
     "localname": "CollateralizedConsumerLoansToIndividualsLoanToValueMaximumRangeHigh",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_CommercialAndMunicipalRiskRatedLoansReceivable": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loans subject to review and validation annually by independent consulting firm as well internal credit review function.",
        "label": "Commercial And Municipal Risk Rated Loans Receivable",
        "terseLabel": "Risk rated loans receivable"
       }
      }
     },
     "localname": "CommercialAndMunicipalRiskRatedLoansReceivable",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesRiskRatingsbySegmentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_CommercialMunicipalPortfolioSegmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commercial/Municipal Portfolio Segment",
        "label": "Commercial/Municipal Portfolio Segment [Member]",
        "terseLabel": "Commercial/Municipal Portfolio Segment"
       }
      }
     },
     "localname": "CommercialMunicipalPortfolioSegmentMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansModificationStatusesbyPortfolioSegmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_CommercialRealEstateLoansMaximumLoanToValue": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The maximum percentage of loan to value for commercial real estate loans based on current appraisal information.",
        "label": "Commercial Real Estate Loans Maximum Loan To Value",
        "terseLabel": "Loan-to-value percent, commercial real estate"
       }
      }
     },
     "localname": "CommercialRealEstateLoansMaximumLoanToValue",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_CommonEquityTierOneCapitalRequiredforCapitalAdequacyPurposes": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Common Equity Tier One Capital Required for Capital Adequacy Purposes",
        "label": "Common Equity Tier One Capital Required for Capital Adequacy Purposes",
        "terseLabel": "For capital adequacy purposes"
       }
      }
     },
     "localname": "CommonEquityTierOneCapitalRequiredforCapitalAdequacyPurposes",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_CommonEquityTierOneCapitaltoRiskWeightedAssets": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Common Equity Tier One Capital to Risk-Weighted Assets",
        "label": "Common Equity Tier One Capital to Risk-Weighted Assets",
        "terseLabel": "Actual (in hundredths)"
       }
      }
     },
     "localname": "CommonEquityTierOneCapitaltoRiskWeightedAssets",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_CommonEquityTierOneRiskBasedCapital": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Common Equity Tier One Risk Based Capital",
        "label": "Common Equity Tier One Risk Based Capital",
        "terseLabel": "Actual"
       }
      }
     },
     "localname": "CommonEquityTierOneRiskBasedCapital",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_CommonEquityTierOneRiskBasedCapitalRequiredforCapitalAdequacytoRiskWeightedAssets": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Common Equity Tier One Risk Based Capital Required for Capital Adequacy to Risk Weighted Assets",
        "label": "Common Equity Tier One Risk Based Capital Required for Capital Adequacy to Risk Weighted Assets",
        "terseLabel": "For capital adequacy purposes (in hundredths)"
       }
      }
     },
     "localname": "CommonEquityTierOneRiskBasedCapitalRequiredforCapitalAdequacytoRiskWeightedAssets",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_CommonEquityTierOneRiskBasedCapitalRequiredtobeWellCapitalized": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Common Equity Tier One Risk Based Capital Required to be Well Capitalized",
        "label": "Common Equity Tier One Risk Based Capital Required to be Well Capitalized",
        "terseLabel": "To be well-capitalized under prompt corrective action provisions"
       }
      }
     },
     "localname": "CommonEquityTierOneRiskBasedCapitalRequiredtobeWellCapitalized",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_CommonEquityTierOneRiskedBasedCapitalRequiredtobeWellCapitalizedtoRiskWeightedAssets": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Common Equity Tier One Risked Based Capital Required to be Well Capitalized to Risk-Weighted Assets",
        "label": "Common Equity Tier One Risked Based Capital Required to be Well Capitalized to Risk-Weighted Assets",
        "terseLabel": "To be well-capitalized under prompt corrective action provisions (in hundredths)"
       }
      }
     },
     "localname": "CommonEquityTierOneRiskedBasedCapitalRequiredtobeWellCapitalizedtoRiskWeightedAssets",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_ComponentOfOtherOperatingIncomeAndExpenseAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The group of components of other operating income and expenses that are separately disclosed in the income statement.",
        "label": "Component of Other Operating Income And Expense [Axis]",
        "terseLabel": "Component of Other Operating Income And Expense [Axis]"
       }
      }
     },
     "localname": "ComponentOfOtherOperatingIncomeAndExpenseAxis",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/OtherOperatingIncomeandExpenseDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fnlc_ComponentOfOtherOperatingIncomeAndExpenseDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of each detailed component of other operating income and expenses that are not separately disclosed in the income statement.",
        "label": "Component of Other Operating Income And Expense [Domain]",
        "terseLabel": "Component of Other Operating Income And Expense [Domain]"
       }
      }
     },
     "localname": "ComponentOfOtherOperatingIncomeAndExpenseDomain",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/OtherOperatingIncomeandExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_ComponentOfOtherOperatingIncomeAndExpenseLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Component of Other Operating Income And Expense [Line Items]",
        "terseLabel": "Component of Other Operating Income And Expense [Line Items]"
       }
      }
     },
     "localname": "ComponentOfOtherOperatingIncomeAndExpenseLineItems",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/OtherOperatingIncomeandExpenseDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fnlc_ComponentOfOtherOperatingIncomeAndExpenseTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "-- None. No documentation exists for this element. --",
        "label": "Component of Other Operating Income And Expense [Table]",
        "terseLabel": "Component of Other Operating Income And Expense [Table]"
       }
      }
     },
     "localname": "ComponentOfOtherOperatingIncomeAndExpenseTable",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/OtherOperatingIncomeandExpenseDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fnlc_CondensedFinancialInformationForParentTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the condensed financial information of the Parent Company.",
        "label": "Condensed financial information for The Parent [Table Text Block]",
        "verboseLabel": "Condensed financial information for Parent"
       }
      }
     },
     "localname": "CondensedFinancialInformationForParentTableTextBlock",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fnlc_ConsolidatedMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The actual and minimum capital amounts and ratios for the bank presented on a consolidated basis.",
        "label": "Consolidated [Member]",
        "terseLabel": "Consolidated"
       }
      }
     },
     "localname": "ConsolidatedMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_ConstructionAndNonOwnerOccupiedCommercialRealEstateLoansMaximumLoanPortfolioToCompanyCapital": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The regulatory maximum allowed ratio of loan portfolio to Company capital for construction and non-owner-occupied commercial real estate.",
        "label": "Construction And Non Owner Occupied Commercial Real Estate Loans Maximum Loan Portfolio To Company Capital",
        "terseLabel": "Construction loans and non-owner-occupied commercial real estate loans, maximum percent of capital"
       }
      }
     },
     "localname": "ConstructionAndNonOwnerOccupiedCommercialRealEstateLoansMaximumLoanPortfolioToCompanyCapital",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_ConstructionAndNonOwnerOccupiedCommercialRealEstateLoansPortfolioToCompanyCapital": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The actual ratio of loan amount to Company capital for construction and non-owner-occupied commercial real estate.",
        "label": "Construction And Non Owner Occupied Commercial Real Estate Loans Portfolio To Company Capital",
        "terseLabel": "Construction loans and non-owner-occupied commercial real estate loans, percent of capital"
       }
      }
     },
     "localname": "ConstructionAndNonOwnerOccupiedCommercialRealEstateLoansPortfolioToCompanyCapital",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_ConstructionLoanPortfolioMaximumToCompanyCapital": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The regulatory maximum allowed ratio of loan portfolio to Company capital for construction loans.",
        "label": "Construction Loan Portfolio Maximum To Company Capital",
        "terseLabel": "Construction loans, maximum percent of capital"
       }
      }
     },
     "localname": "ConstructionLoanPortfolioMaximumToCompanyCapital",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_ConstructionLoansActualLoanPortfolioToCompanyCapital": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The ratio of loan portfolio to Company capital for construction loans .",
        "label": "Construction Loans Actual Loan Portfolio To Company Capital",
        "terseLabel": "Construction loans, percent of capital"
       }
      }
     },
     "localname": "ConstructionLoansActualLoanPortfolioToCompanyCapital",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_CreditFacilityWithFederalReserveBankOfBoston": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maximum borrowing capacity under the credit facility with Federal Reserve Bank of Boston using commercial and home equity loans as collateral.",
        "label": "Credit Facility With Federal Reserve Bank Of Boston",
        "verboseLabel": "Credit facility with Federal Reserve Bank"
       }
      }
     },
     "localname": "CreditFacilityWithFederalReserveBankOfBoston",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_CustomerLoanInterestSwapMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Customer Loan Interest Swap [Member]",
        "label": "Customer Loan Interest Swap [Member]",
        "terseLabel": "Customer Loan Interest Swap"
       }
      }
     },
     "localname": "CustomerLoanInterestSwapMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails",
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails",
      "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_CustomerLoanSwapsMaturityDatesDecember192029andOctober12039Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Customer Loan Swaps Maturity Dates December 19, 2029 and October 1, 2039 [Member]",
        "label": "Customer Loan Swaps Maturity Dates December 19, 2029 and October 1, 2039 [Member]",
        "terseLabel": "Customer Loan Swaps Maturity Dates December 19, 2029 and October 1, 2039"
       }
      }
     },
     "localname": "CustomerLoanSwapsMaturityDatesDecember192029andOctober12039Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_CustomerLoanSwapsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Customer Loan Swaps [Member]",
        "label": "Customer Loan Swaps [Member]",
        "terseLabel": "Customer Loan Swaps"
       }
      }
     },
     "localname": "CustomerLoanSwapsMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_DebtSecuritiesAvailableforsaleAmortizedCostandEquitySecurities": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Available-for-sale, Amortized Cost and Equity Securities",
        "label": "Debt Securities, Available-for-sale, Amortized Cost and Equity Securities",
        "totalLabel": "Securities available-for-sale, Amortized Cost"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableforsaleAmortizedCostandEquitySecurities",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_DebtSecuritiesAvailableforsaleandEquitySecurities": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Available-for-sale and Equity Securities",
        "label": "Debt Securities, Available-for-sale and Equity Securities",
        "totalLabel": "Fair Value (Estimated)"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableforsaleandEquitySecurities",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_DebtSecuritiesRealizedGain": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesGainsandLossesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DebtSecuritiesGainLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Realized Gain",
        "label": "Debt Securities, Realized Gain",
        "terseLabel": "Gross realized gains"
       }
      }
     },
     "localname": "DebtSecuritiesRealizedGain",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesGainsandLossesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_DebtSecuritiesRealizedLoss": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesGainsandLossesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DebtSecuritiesGainLoss",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Realized Loss",
        "label": "Debt Securities, Realized Loss",
        "negatedTerseLabel": "Gross realized losses"
       }
      }
     },
     "localname": "DebtSecuritiesRealizedLoss",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesGainsandLossesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_DeferredTaxAssetIntangibleLiabilities": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_DeferredTaxAssetsNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "DeferredTaxAssetIntangibleLiabilities",
        "label": "DeferredTaxAssetIntangibleLiabilities",
        "terseLabel": "Core deposit intangible"
       }
      }
     },
     "localname": "DeferredTaxAssetIntangibleLiabilities",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_DeferredTaxAssetRestrictedStockGrants": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails": {
       "order": 9.0,
       "parentTag": "us-gaap_DeferredTaxAssetsNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "DeferredTaxAssetRestrictedStockGrants",
        "label": "DeferredTaxAssetRestrictedStockGrants",
        "terseLabel": "Restricted stock grants"
       }
      }
     },
     "localname": "DeferredTaxAssetRestrictedStockGrants",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_DeferredTaxAssetSecuritiesTransferedfromAFStoHTM": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_DeferredTaxAssetsNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "DeferredTaxAssetSecuritiesTransferedfromAFStoHTM",
        "label": "DeferredTaxAssetSecuritiesTransferedfromAFStoHTM",
        "terseLabel": "Unrealized loss on securities transferred from available for sale to held to maturity"
       }
      }
     },
     "localname": "DeferredTaxAssetSecuritiesTransferedfromAFStoHTM",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_DeferredTaxAssetsInvestmentinLimitedPartnership": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_DeferredTaxAssetsNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred Tax Assets, Investment in Limited Partnership",
        "label": "Deferred Tax Assets, Investment in Limited Partnership",
        "terseLabel": "Investment in flow through entities"
       }
      }
     },
     "localname": "DeferredTaxAssetsInvestmentinLimitedPartnership",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_DeferredTaxAssetsOtherRealEstateOwned": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_DeferredTaxAssetsNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred Tax Assets, Other Real Estate Owned",
        "label": "Deferred Tax Assets, Other Real Estate Owned",
        "terseLabel": "OREO"
       }
      }
     },
     "localname": "DeferredTaxAssetsOtherRealEstateOwned",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPostretirementBenefitsAndPension": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails": {
       "order": 7.0,
       "parentTag": "us-gaap_DeferredTaxAssetsNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The tax effect as of the balance sheet date of the amount of the estimated future tax deductions arising from post-retirement benefits and pension costs, which can only be deducted for tax purposes when actual costs are incurred, and which can only be realized if sufficient tax-basis income is generated in future periods to enable the deduction to be taken.",
        "label": "Deferred Tax Assets Tax Deferred Expense Compensation And Benefits Postretirement Benefits And Pension",
        "verboseLabel": "Accrued pension and post-retirement"
       }
      }
     },
     "localname": "DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPostretirementBenefitsAndPension",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_DefinedBenefitPlanFutureDeferredTaxBenefit": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined Benefit Plan, Future Deferred Tax Benefit",
        "label": "Defined Benefit Plan, Future Deferred Tax Benefit",
        "negatedLabel": "Deferred tax expense at 21%"
       }
      }
     },
     "localname": "DefinedBenefitPlanFutureDeferredTaxBenefit",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansScheduleofNetPeriodicBenefitCostNotYetRecognizedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_DefinedBenefitPlanOtherSettlementExpense": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/EmployeeBenefitPlansAccumulatedPostRetirementBenefitObligationFundedStatusandNetPeriodicBenefitCostDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined Benefit Plan, Other Settlement Expense",
        "label": "Defined Benefit Plan, Other Settlement Expense",
        "negatedTerseLabel": "Other settlement income"
       }
      }
     },
     "localname": "DefinedBenefitPlanOtherSettlementExpense",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansAccumulatedPostRetirementBenefitObligationFundedStatusandNetPeriodicBenefitCostDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_DefinedContributionPlanAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "-- None. No documentation exists for this element. --",
        "label": "Defined contribution plan [Abstract]",
        "terseLabel": "Defined contribution plan [Abstract]"
       }
      }
     },
     "localname": "DefinedContributionPlanAbstract",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fnlc_DefinedContributionPlanEmployerMaximumPercentageMatchOfEmployeeAnnualSalary": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The highest percentage of employer match of employee contribution to defined contribution plan based on annual salary.",
        "label": "Defined Contribution Plan Employer Maximum Percentage Match Of Employee Annual Salary",
        "terseLabel": "Defined contribution plan employer maximum percentage match of annual salary based on employee contribution"
       }
      }
     },
     "localname": "DefinedContributionPlanEmployerMaximumPercentageMatchOfEmployeeAnnualSalary",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_DefinedContributionPlanEmployerMaximumProfitSharingContributions": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of profit-sharing contributed by the employer to the defined contribution plan. The employee is entitled to receive in the future, subject to vesting and other restrictions, a share in the profits, as defined in the agreement, of the entity or portion thereof. Employer contributions may be discretionary or may be based on a fixed formula related to profits, compensation, or other factors. It is a form of incentive compensation to employees in addition to their regular salary and bonuses.",
        "label": "Defined Contribution Plan Employer Maximum Profit Sharing Contributions",
        "verboseLabel": "Defined contribution plan employer maximum percentage of annual profit-sharing contribution to plan for benefit of employee (in hundredths)"
       }
      }
     },
     "localname": "DefinedContributionPlanEmployerMaximumProfitSharingContributions",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_DelinquentPeriodBeforeConsumerLoansChargedOff": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Delinquent Period Before Consumer Loans Charged Off",
        "label": "Delinquent Period Before Consumer Loans Charged Off",
        "terseLabel": "Delinquent period before consumer loans are charged off"
       }
      }
     },
     "localname": "DelinquentPeriodBeforeConsumerLoansChargedOff",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "fnlc_DelinquentPeriodBeforeResidentialLoansPlacedOnNonAccrualStatus": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The minimum amount of days past due at which residential loans are placed on non-accrual status..",
        "label": "Delinquent Period Before Residential Loans Placed On Non Accrual Status",
        "terseLabel": "Delinquent period before residential loans are placed on non-accrual status"
       }
      }
     },
     "localname": "DelinquentPeriodBeforeResidentialLoansPlacedOnNonAccrualStatus",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "fnlc_DelinquentPeriodforLoansChargedOff": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Delinquent Period for Loans Charged Off",
        "label": "Delinquent Period for Loans Charged Off",
        "terseLabel": "Delinquent period for loans charged off"
       }
      }
     },
     "localname": "DelinquentPeriodforLoansChargedOff",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "fnlc_DelinquentPeriodforLoansChargedOffPeriodAfterReceiptofNotificationfromBankruptcyCourt": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Delinquent Period for Loans Charged Off, Period After Receipt of Notification from Bankruptcy Court",
        "label": "Delinquent Period for Loans Charged Off, Period After Receipt of Notification from Bankruptcy Court",
        "terseLabel": "Delinquent period for loans charged off after receipt of notification"
       }
      }
     },
     "localname": "DelinquentPeriodforLoansChargedOffPeriodAfterReceiptofNotificationfromBankruptcyCourt",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "fnlc_DerivativeCollateralRequiredPledge": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative, Collateral, Required Pledge",
        "label": "Derivative, Collateral, Required Pledge",
        "terseLabel": "Required collateral to be pledged"
       }
      }
     },
     "localname": "DerivativeCollateralRequiredPledge",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_DerivativeInstrumentsExpenseFromRestructuring": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative Instruments, Expense From Restructuring",
        "label": "Derivative Instruments, Expense From Restructuring",
        "terseLabel": "Expense incurred from restructuring derivatives"
       }
      }
     },
     "localname": "DerivativeInstrumentsExpenseFromRestructuring",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_EmployeeBenefitPlanRequisiteMinimumAge": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Employee Benefit Plan, Requisite Minimum Age",
        "label": "Employee Benefit Plan, Requisite Minimum Age",
        "terseLabel": "Employee benefit plan age (in years)"
       }
      }
     },
     "localname": "EmployeeBenefitPlanRequisiteMinimumAge",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "fnlc_EquityInEarningsOfBankAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "-- None. No documentation exists for this element. --",
        "label": "Equity in earnings of Bank [Abstract]",
        "verboseLabel": "Equity in earnings of Bank"
       }
      }
     },
     "localname": "EquityInEarningsOfBankAbstract",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fnlc_EquityInRemittedEarningsFromSubsidiary": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents the earnings from a subsidiary that have been paid. An example would be payment in the form of dividends.",
        "label": "Equity In Remitted Earnings From Subsidiary",
        "verboseLabel": "Remitted"
       }
      }
     },
     "localname": "EquityInRemittedEarningsFromSubsidiary",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_EquityInUnremittedEarningsFromSubsidiary": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents the earnings in a subsidiary that have not been paid to the parent company.",
        "label": "Equity In Unremitted Earnings From Subsidiary",
        "negatedTerseLabel": "Unremitted earnings of Bank",
        "terseLabel": "Unremitted"
       }
      }
     },
     "localname": "EquityInUnremittedEarningsFromSubsidiary",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_ExemptionFromTroubledDebtRestructureDesignationCARESActMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Exemption from Troubled Debt Restructure Designation, CARES Act",
        "label": "Exemption from Troubled Debt Restructure Designation, CARES Act [Member]",
        "terseLabel": "Exemption from Troubled Debt Restructure Designation, CARES Act"
       }
      }
     },
     "localname": "ExemptionFromTroubledDebtRestructureDesignationCARESActMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansModificationStatusesbyPortfolioSegmentDetails",
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_FederalHomeLoanBankAdvancesInterestRateMaturitiesSummaryDueYearSixAndThereafter": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Federal Home Loan Bank, Advances, Interest Rate, Maturities Summary, Due Year Six And Thereafter",
        "label": "Federal Home Loan Bank, Advances, Interest Rate, Maturities Summary, Due Year Six And Thereafter",
        "terseLabel": "Interest rate, due in year six and thereafter"
       }
      }
     },
     "localname": "FederalHomeLoanBankAdvancesInterestRateMaturitiesSummaryDueYearSixAndThereafter",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_FederalHomeLoanBankAdvancesInterestRateMaturitiesSummaryDueinNextTwelveMonths": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Federal Home Loan Bank, Advances, Interest Rate, Maturities Summary, Due in Next Twelve Months",
        "label": "Federal Home Loan Bank, Advances, Interest Rate, Maturities Summary, Due in Next Twelve Months",
        "terseLabel": "Interest rate, due in next twelve months"
       }
      }
     },
     "localname": "FederalHomeLoanBankAdvancesInterestRateMaturitiesSummaryDueinNextTwelveMonths",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_FederalHomeLoanBankAdvancesInterestRateMaturitiesSummaryDueinYearFive": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Federal Home Loan Bank, Advances, Interest Rate, Maturities Summary, Due in Year Five",
        "label": "Federal Home Loan Bank, Advances, Interest Rate, Maturities Summary, Due in Year Five",
        "terseLabel": "Interest rate, due in year five"
       }
      }
     },
     "localname": "FederalHomeLoanBankAdvancesInterestRateMaturitiesSummaryDueinYearFive",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_FederalHomeLoanBankAdvancesInterestRateMaturitiesSummaryDueinYearFour": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Federal Home Loan Bank, Advances, Interest Rate, Maturities Summary, Due in Year Four",
        "label": "Federal Home Loan Bank, Advances, Interest Rate, Maturities Summary, Due in Year Four",
        "terseLabel": "Interest rate, due in year four"
       }
      }
     },
     "localname": "FederalHomeLoanBankAdvancesInterestRateMaturitiesSummaryDueinYearFour",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_FederalHomeLoanBankAdvancesInterestRateMaturitiesSummaryDueinYearThree": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Federal Home Loan Bank, Advances, Interest Rate, Maturities Summary, Due in Year Three",
        "label": "Federal Home Loan Bank, Advances, Interest Rate, Maturities Summary, Due in Year Three",
        "terseLabel": "Interest rate, due in year three"
       }
      }
     },
     "localname": "FederalHomeLoanBankAdvancesInterestRateMaturitiesSummaryDueinYearThree",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_FederalHomeLoanBankAdvancesInterestRateMaturitiesSummaryDueinYearTwo": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Federal Home Loan Bank, Advances, Interest Rate, Maturities Summary, Due in Year Two",
        "label": "Federal Home Loan Bank, Advances, Interest Rate, Maturities Summary, Due in Year Two",
        "terseLabel": "Interest rate, due in year two"
       }
      }
     },
     "localname": "FederalHomeLoanBankAdvancesInterestRateMaturitiesSummaryDueinYearTwo",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_FederalHomeLoanBankAndFederalReserveBankStockAtCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/QuarterlyInformationDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The combined total of Federal Home Loan Bank and Federal Reserve Bank stock (FRB) which represent equity interests in the Federal Reserve Bank and the Federal Home Loan Bank. It does not have a readily determinable fair value because its ownership is restricted and it lacks a market (liquidity).",
        "label": "Federal Home Loan Bank And Federal Reserve Bank stock At Cost",
        "terseLabel": "Restricted equity securities"
       }
      }
     },
     "localname": "FederalHomeLoanBankAndFederalReserveBankStockAtCost",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_FinancingReceivableBeforeAllowanceForCreditLossPercentageOfTotal": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing Receivable, before Allowance for Credit Loss, Percentage of Total",
        "label": "Financing Receivable, before Allowance for Credit Loss, Percentage of Total",
        "terseLabel": "Percentage of balance"
       }
      }
     },
     "localname": "FinancingReceivableBeforeAllowanceForCreditLossPercentageOfTotal",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansModificationStatusesbyPortfolioSegmentDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_FinancingReceivableInformationByTypeOfReserveAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Type of reserves based on individual impairment, historical loss experience, or qualitative factors.",
        "label": "Financing Receivable Information by Type of Reserve [Axis]",
        "terseLabel": "Financing Receivable Information by Type of Reserve [Axis]"
       }
      }
     },
     "localname": "FinancingReceivableInformationByTypeOfReserveAxis",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesFinancingReceivableandAllowanceElementbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fnlc_FinancingReceivableInformationByTypeOfReserveDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Type of reserves based on individual impairment, historical loss experience, or qualitative factors.",
        "label": "Financing Receivable Information by Type of Reserve [Domain]",
        "terseLabel": "Financing Receivable Information by Type of Reserve [Domain]"
       }
      }
     },
     "localname": "FinancingReceivableInformationByTypeOfReserveDomain",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesFinancingReceivableandAllowanceElementbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_FinancingReceivableLoansClassifiedAsTroubledDebtRestructuringsThatAreInvolvedInBankruptcy": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount of loans classified as troubled debt restructurings that are involved in bankruptcy as of the balance sheet date.",
        "label": "Financing Receivable, Loans Classified As Troubled Debt Restructurings That Are Involved In Bankruptcy",
        "terseLabel": "Loans classified as TDRs that are involved in bankruptcy"
       }
      }
     },
     "localname": "FinancingReceivableLoansClassifiedAsTroubledDebtRestructuringsThatAreInvolvedInBankruptcy",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_FinancingReceivableLoansClassifiedAsTroubledDebtRestructuringsThatWereOnNonAccrualStatus": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount of loans classified as troubled debt restructurings that were on non-accrual status as of the balance sheet date.",
        "label": "Financing Receivable Loans Classified As Troubled Debt Restructurings That Were On Non Accrual Status",
        "terseLabel": "Loans classified as TDRs that were on non-accrual status"
       }
      }
     },
     "localname": "FinancingReceivableLoansClassifiedAsTroubledDebtRestructuringsThatWereOnNonAccrualStatus",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_FinancingReceivableModificationStatusesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing Receivable, Modification Statuses",
        "label": "Financing Receivable, Modification Statuses [Table Text Block]",
        "terseLabel": "Modification Statuses by Portfolio Segment"
       }
      }
     },
     "localname": "FinancingReceivableModificationStatusesTableTextBlock",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fnlc_FinancingReceivableModificationsNumberOfContractsDuringPeriod": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of financing receivables that have been modified by troubled debt restructurings during the current period.",
        "label": "Financing Receivable Modifications Number Of Contracts During Period",
        "terseLabel": "Number of loans",
        "verboseLabel": "Number of Loans"
       }
      }
     },
     "localname": "FinancingReceivableModificationsNumberOfContractsDuringPeriod",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails",
      "http://www.thefirst.com/role/LoansPreModificationandPostModificationOutstandingRecordedInvestmentDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "fnlc_FinancingReceivableModificationsNumberOfContractsGreaterThan30DaysPastDuePlaceInTDRInPrevious12Months": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of financing receivables greater than 30 days past due that have been modified by troubled debt restructurings and that have been placed in the TDR status in the previous 12 months.",
        "label": "Financing Receivable Modifications Number Of Contracts Greater Than 30 Days Past Due Place In TDR In Previous 12 Months",
        "terseLabel": "Number of Loans",
        "verboseLabel": "Number of loans"
       }
      }
     },
     "localname": "FinancingReceivableModificationsNumberOfContractsGreaterThan30DaysPastDuePlaceInTDRInPrevious12Months",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandAssociatedSpecificReservesDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "fnlc_FinancingReceivableNumberOfLoansClassifiedAsTroubledDebtRestructuringsInvolvedInForeclosure": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing Receivable, Number Of Loans Classified As Troubled Debt Restructurings Involved In Foreclosure",
        "label": "Financing Receivable, Number Of Loans Classified As Troubled Debt Restructurings Involved In Foreclosure",
        "terseLabel": "Number of loans classified as TDRs that are involved in foreclosure"
       }
      }
     },
     "localname": "FinancingReceivableNumberOfLoansClassifiedAsTroubledDebtRestructuringsInvolvedInForeclosure",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "decimalItemType"
    },
    "fnlc_FinancingReceivableNumberOfLoansClassifiedAsTroubledDebtRestructuringsThatWereOnNonAccrualStatus": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of loans classified as troubled debt restructurings that were on non-accrual status as of the balance sheet date.",
        "label": "Financing Receivable Number Of Loans Classified As Troubled Debt Restructurings That Were On Non Accrual Status",
        "terseLabel": "Number of loans classified as TDRs that were on non-accrual status"
       }
      }
     },
     "localname": "FinancingReceivableNumberOfLoansClassifiedAsTroubledDebtRestructuringsThatWereOnNonAccrualStatus",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "fnlc_FinancingReceivableRecordedInvestmentGreaterThan30DaysPastDue": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivables that are greater than 30 days past due.",
        "label": "Financing Receivable Recorded Investment Greater Than 30 Days Past Due",
        "terseLabel": "TDR recorded investment more than 30 days past due"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentGreaterThan30DaysPastDue",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandAssociatedSpecificReservesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_FinancingReceivableRecordedInvestmentGreaterThan30DaysPastDuePlacedInTDRInPrevious12Months": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivables that are greater than 30 days past due and that had been placed in TDR status in the previous 12 months.",
        "label": "Financing Receivable Recorded Investment Greater Than30 Days Past Due Placed In T D R In Previous12 Months",
        "terseLabel": "Balance"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentGreaterThan30DaysPastDuePlacedInTDRInPrevious12Months",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansTDRsbyClassandAssociatedSpecificReservesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_FinancingReceivableRecordedInvestmentGreaterthan30DaysPastDuePlacedinTDRinPrevious12MonthsSpecificAllowanceduringPeriod": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing Receivable, Recorded Investment, Greater than 30 Days Past Due, Placed in TDR in Previous 12 Months, Specific Allowance during Period",
        "label": "Financing Receivable, Recorded Investment, Greater than 30 Days Past Due, Placed in TDR in Previous 12 Months, Specific Allowance during Period",
        "terseLabel": "Specific Reserves"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentGreaterthan30DaysPastDuePlacedinTDRinPrevious12MonthsSpecificAllowanceduringPeriod",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansTDRsbyClassandAssociatedSpecificReservesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_FiveYearsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity-based compensation plans that vest in five years.",
        "label": "Five Years [Member]",
        "verboseLabel": "Five Years"
       }
      }
     },
     "localname": "FiveYearsMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_FourYearsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Four Years [Member]",
        "label": "Four Years [Member]",
        "terseLabel": "Four Years"
       }
      }
     },
     "localname": "FourYearsMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_GeneralReservesBasedOnHistoricalLossExperienceMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "General reserves for types of portfolios of loans based on historical loss experience.",
        "label": "General Reserves Based on Historical Loss Experience [Member]",
        "terseLabel": "General Reserves on Loans Based on Historical Loss Experience"
       }
      }
     },
     "localname": "GeneralReservesBasedOnHistoricalLossExperienceMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesFinancingReceivableandAllowanceElementbyClassDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_GreaterThan100000Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "-- None. No documentation exists for this element. --",
        "label": "Greater Than $100,000 [Member]",
        "terseLabel": "$100,000 and Greater"
       }
      }
     },
     "localname": "GreaterThan100000Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CertificatesofDepositDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_HomeEquityLIneofCreditPortfolioMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Home Equity LIne of Credit Portfolio [Member]",
        "label": "Home Equity LIne of Credit Portfolio [Member]",
        "terseLabel": "Home equity line of credit"
       }
      }
     },
     "localname": "HomeEquityLIneofCreditPortfolioMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesCompositionofAllowanceforLoansLossesbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesFinancingReceivableandAllowanceElementbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails",
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails",
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansNonaccrualLoansDetails",
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansPortfolioDetails",
      "http://www.thefirst.com/role/LoansPreModificationandPostModificationOutstandingRecordedInvestmentDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandAssociatedSpecificReservesDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandSpecificReserveDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_ImpairedFinancingReceivableRelatedAllowanceMeasuredatFairValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Impaired Financing Receivable, Related Allowance, Measured at Fair Value",
        "label": "Impaired Financing Receivable, Related Allowance, Measured at Fair Value",
        "terseLabel": "Allowance for impaired loans"
       }
      }
     },
     "localname": "ImpairedFinancingReceivableRelatedAllowanceMeasuredatFairValue",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_ImpairedFinancingReceivableWithAllowance": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/LoansInformationRegardingImpairedLoansDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_ImpairedFinancingReceivableRecordedInvestment",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Portion of loans receivable balance which has an offsetting allowance for doubtful accounts.",
        "label": "Impaired Financing Receivable With Allowance",
        "terseLabel": "Portion of impaired loan balance for which an allowance for loan losses is allocated"
       }
      }
     },
     "localname": "ImpairedFinancingReceivableWithAllowance",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansInformationRegardingImpairedLoansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_ImpairedFinancingReceivableWithNoAllowance": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/LoansInformationRegardingImpairedLoansDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_ImpairedFinancingReceivableRecordedInvestment",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The portion of loans receivable balance which doesn't have an offsetting allowance for doubtful accounts.",
        "label": "Impaired Financing Receivable With No Allowance",
        "negatedLabel": "Less portion for which no allowance for loan losses is allocated"
       }
      }
     },
     "localname": "ImpairedFinancingReceivableWithNoAllowance",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansInformationRegardingImpairedLoansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_ImpairedLoansFairValueDisclosure": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents the fair value disclosure of impaired loans that have had a fair value adjustment since their initial recognition.",
        "label": "Impaired Loans Fair Value Disclosure",
        "verboseLabel": "Impaired loans"
       }
      }
     },
     "localname": "ImpairedLoansFairValueDisclosure",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_ImpairedLoansInformationTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of investment in impaired loans, along with income recognized and allowance for impaired loans.",
        "label": "Impaired Loans Information [Table Text Block]",
        "verboseLabel": "Impaired Loans"
       }
      }
     },
     "localname": "ImpairedLoansInformationTableTextBlock",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fnlc_IncomeLossBeforeBankEarnings": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Income (loss) before Bank Earnings",
        "label": "Income (loss) before Bank earnings",
        "totalLabel": "Loss before Bank earnings"
       }
      }
     },
     "localname": "IncomeLossBeforeBankEarnings",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_IncreaseDecreaseinDemandDepositsSavingsDepositsandMoneyMarketAccounts": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Increase (Decrease) in Demand Deposits, Savings Deposits, and Money Market Accounts",
        "label": "Increase (Decrease) in Demand Deposits, Savings Deposits, and Money Market Accounts",
        "terseLabel": "Net increase in demand, savings, and money market accounts"
       }
      }
     },
     "localname": "IncreaseDecreaseinDemandDepositsSavingsDepositsandMoneyMarketAccounts",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_Increasedecreasedividendspayable": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Increase (decrease) dividends payable",
        "label": "Increase (decrease) dividends payable",
        "terseLabel": "Increase in dividends payable"
       }
      }
     },
     "localname": "Increasedecreasedividendspayable",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_Interest-InterestBearingDepositsInOtherBanks": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount outstanding of funds lent to other depository institutions, securities brokers, or securities dealers in the form of Federal Funds sold; for example, immediately available funds lent under agreements or contracts that mature in one business day or roll over under a continuing contract, regardless of the nature of the transaction or the collateral involved, excluding overnight lending for commercial and industrial purposes. Also include Federal Funds sold under agreements to resell on a gross basis, excluding (1) sales of term Federal Funds, (2) due bills representing purchases of securities or other assets by the reporting bank that have not yet been delivered and similar instruments, (3) resale agreements that mature in more than one business day involving assets other than securities, and (4) yield maintenance dollar repurchase agreements.",
        "label": "Interest-bearing deposits in other banks",
        "negatedLabel": "(Increase) decrease in interest-bearing deposits in other banks"
       }
      }
     },
     "localname": "Interest-InterestBearingDepositsInOtherBanks",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_InterestIncomeandFeesonLoansTaxExempt": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest Income and Fees on Loans Tax Exempt",
        "label": "Interest Income and Fees on Loans Tax Exempt",
        "verboseLabel": "Interest and fees on loans (tax-exempt income)"
       }
      }
     },
     "localname": "InterestIncomeandFeesonLoansTaxExempt",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncomeParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_InterestRateSwapApril072023Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest Rate Swap April 07 2023",
        "label": "Interest Rate Swap April 07 2023 [Member]",
        "terseLabel": "Interest Rate Swap April 07, 2023"
       }
      }
     },
     "localname": "InterestRateSwapApril072023Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_InterestRateSwapApril072024Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest Rate Swap April 07 2024",
        "label": "Interest Rate Swap April 07 2024 [Member]",
        "terseLabel": "Interest Rate Swap April 07, 2024"
       }
      }
     },
     "localname": "InterestRateSwapApril072024Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_InterestRateSwapAugust22019MaturityDateAugust22024Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest Rate Swap August 2, 2019, Maturity Date August 2, 2024 [Member]",
        "label": "Interest Rate Swap August 2, 2019, Maturity Date August 2, 2024 [Member]",
        "terseLabel": "Interest Rate Swap August 2, 2019, Maturity Date August 2, 2024"
       }
      }
     },
     "localname": "InterestRateSwapAugust22019MaturityDateAugust22024Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_InterestRateSwapAugust52019MaturityDateAugust52024Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest Rate Swap August 5, 2019, Maturity Date August 5, 2024 [Member]",
        "label": "Interest Rate Swap August 5, 2019, Maturity Date August 5, 2024 [Member]",
        "terseLabel": "Interest Rate Swap August 5, 2019, Maturity Date August 5, 2024"
       }
      }
     },
     "localname": "InterestRateSwapAugust52019MaturityDateAugust52024Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_InterestRateSwapDecember52019MaturityDateDecember52022Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest Rate Swap December 5, 2019, Maturity Date December 5, 2022 [Member]",
        "label": "Interest Rate Swap December 5, 2019, Maturity Date December 5, 2022 [Member]",
        "terseLabel": "Interest Rate Swap December 5, 2019, Maturity Date December 5, 2022"
       }
      }
     },
     "localname": "InterestRateSwapDecember52019MaturityDateDecember52022Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_InterestRateSwapFebruary122023Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest Rate Swap February 12 2023 [Member]",
        "label": "Interest Rate Swap February 12 2023 [Member]",
        "terseLabel": "Interest Rate Swap February 12, 2023"
       }
      }
     },
     "localname": "InterestRateSwapFebruary122023Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_InterestRateSwapFebruary122024Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest Rate Swap February 12 2024 [Member]",
        "label": "Interest Rate Swap February 12 2024 [Member]",
        "terseLabel": "Interest Rate Swap February 12, 2024"
       }
      }
     },
     "localname": "InterestRateSwapFebruary122024Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_InterestRateSwapJune272016Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest Rate Swap June 27 2016 [Member]",
        "label": "Interest Rate Swap June 27 2016 [Member]",
        "terseLabel": "June 27, 2016"
       }
      }
     },
     "localname": "InterestRateSwapJune272016Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_InterestRateSwapJune282016Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest Rate Swap June 28 2016 [Member]",
        "label": "Interest Rate Swap June 28 2016 [Member]",
        "terseLabel": "June 28, 2016"
       }
      }
     },
     "localname": "InterestRateSwapJune282016Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_InterestRateSwapJune282026Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest Rate Swap June 28 2026 [Member]",
        "label": "Interest Rate Swap June 28 2026 [Member]",
        "terseLabel": "Interest Rate Swap June 28, 2026"
       }
      }
     },
     "localname": "InterestRateSwapJune282026Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_InterestRateSwapJune52018MaturityDateDecember52020Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest Rate Swap June 5, 2018, Maturity Date December 5, 2020 [Member]",
        "label": "Interest Rate Swap June 5, 2018, Maturity Date December 5, 2020 [Member]",
        "terseLabel": "June 5, 2018, Maturity Date December 5, 2020"
       }
      }
     },
     "localname": "InterestRateSwapJune52018MaturityDateDecember52020Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_InterestRateSwapJune52018MaturityDateJune52020Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest Rate Swap June 5, 2018, Maturity Date June 5, 2020 [Member]",
        "label": "Interest Rate Swap June 5, 2018, Maturity Date June 5, 2020 [Member]",
        "terseLabel": "June 5, 2018, Maturity Date June 5, 2020"
       }
      }
     },
     "localname": "InterestRateSwapJune52018MaturityDateJune52020Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_InterestRateSwapMarch132025Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest Rate Swap March 13 2025 [Member]",
        "label": "Interest Rate Swap March 13 2025 [Member]",
        "terseLabel": "Interest Rate Swap March 13, 2025"
       }
      }
     },
     "localname": "InterestRateSwapMarch132025Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_InterestRateSwapMarch132030Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest Rate Swap March 13 2030 [Member]",
        "label": "Interest Rate Swap March 13 2030 [Member]",
        "terseLabel": "Interest Rate Swap March 13, 2030"
       }
      }
     },
     "localname": "InterestRateSwapMarch132030Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_InterestRateSwapMaturityDateBeyondJune302023Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest Rate Swap Maturity Date Beyond June 30, 2023",
        "label": "Interest Rate Swap Maturity Date Beyond June 30, 2023 [Member]",
        "terseLabel": "Interest Rate Swap Maturity Date Beyond June 30, 2023"
       }
      }
     },
     "localname": "InterestRateSwapMaturityDateBeyondJune302023Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_InterestRateSwapMaturityDatePriorToJune302023Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest Rate Swap Maturity Date Prior to June 30, 2023",
        "label": "Interest Rate Swap Maturity Date Prior to June 30, 2023 [Member]",
        "terseLabel": "Interest Rate Swap Maturity Date Prior to June 30, 2023"
       }
      }
     },
     "localname": "InterestRateSwapMaturityDatePriorToJune302023Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_InterestRateSwapMaturityDatePriortoDecember312021Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest Rate Swap Maturity Date Prior to December 31, 2021 [Member]",
        "label": "Interest Rate Swap Maturity Date Prior to December 31, 2021 [Member]",
        "terseLabel": "Interest Rate Swap Maturity Date Prior to December 31, 2021"
       }
      }
     },
     "localname": "InterestRateSwapMaturityDatePriortoDecember312021Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_LengthOfTimeSecuritiesTemporarilyImpaired": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Length of time securities are temporarily impaired.",
        "label": "Length Of Time Securities Temporarily Impaired",
        "terseLabel": "Period of temporary impairment"
       }
      }
     },
     "localname": "LengthOfTimeSecuritiesTemporarilyImpaired",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "fnlc_LessThan100000Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "-- None. No documentation exists for this element. --",
        "label": "Less Than $100,000 [Member]",
        "terseLabel": "Less than $100,000"
       }
      }
     },
     "localname": "LessThan100000Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CertificatesofDepositDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_LimitedPartnershipsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "-- None. No documentation exists for this element. --",
        "label": "Limited partnerships [Abstract]",
        "verboseLabel": "Limited partnerships"
       }
      }
     },
     "localname": "LimitedPartnershipsAbstract",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fnlc_LimitedPartnershipsHeldAsInvestments": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of limited partnerships held as investments at period end.",
        "label": "Limited partnerships held as investments",
        "terseLabel": "Limited partnerships held as investments"
       }
      }
     },
     "localname": "LimitedPartnershipsHeldAsInvestments",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "fnlc_LineOfCreditWithCorrespondentBanks": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Borrowing capacity under the credit lines established with correspondent banks.",
        "label": "Line Of Credit With Correspondent Banks",
        "verboseLabel": "Amount of line of credit with correspondent banks"
       }
      }
     },
     "localname": "LineOfCreditWithCorrespondentBanks",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_LoanLossesByLoanSegmentAndAllowanceElementTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure for the allowance which consists of four elements: (1) specific reserves for loans evaluated individually for impairment; (2) general reserves for types or portfolios of loans based on historical loan loss experience, (3) qualitative reserves judgmentally adjusted for local and national economic conditions, and other factors as applicable; and (4) unallocated reserves.",
        "label": "Loan losses by loan segment and allowance element [Table Text Block]",
        "terseLabel": "Loan losses by loan segment and allowance element"
       }
      }
     },
     "localname": "LoanLossesByLoanSegmentAndAllowanceElementTableTextBlock",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fnlc_LoanProcessingFeesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loan Processing Fees",
        "label": "Loan Processing Fees [Member]",
        "terseLabel": "Loan processing fees"
       }
      }
     },
     "localname": "LoanProcessingFeesMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/OtherOperatingIncomeandExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_LoansAndLeaseReceivableNet": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/QuarterlyInformationDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Reflects the aggregate carrying amount of all categories of loans and leases held in portfolio for investment and held for sale, net of unearned income and the allowance for losses on loans and leases. Some loans are stated at the lower of cost or market, or elected fair value.",
        "label": "Loans And Lease Receivable Net",
        "terseLabel": "Net loans and loans held for sale"
       }
      }
     },
     "localname": "LoansAndLeaseReceivableNet",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_LoansClassifiedAsTroubledDebtRestructuringsThatAreInvolvedInForeclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loans classified as troubled debt restructurings that are involved in foreclosure as of the balance sheet date.",
        "label": "Loans Classified As Troubled Debt Restructurings That Are Involved In Foreclosure",
        "terseLabel": "Loans classified as TDRs that are involved in foreclosure"
       }
      }
     },
     "localname": "LoansClassifiedAsTroubledDebtRestructuringsThatAreInvolvedInForeclosure",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_LoansNetOfAllowanceForLoanLossesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "-- None. No documentation exists for this element. --",
        "label": "Loans (net of allowance for loan losses) [Abstract]",
        "terseLabel": "Loans (net of allowance for loan losses)"
       }
      }
     },
     "localname": "LoansNetOfAllowanceForLoanLossesAbstract",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fnlc_LoansToDirectorsOfficersAndEmployeesWhichExceed60000TableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure for loans to directors, officers and employees which exceed specific reporting thresholds.",
        "label": "Loans to Directors, Officers and Employees which exceed $60,000 [Table Text Block]",
        "verboseLabel": "Loans to Directors, Officers and Employees which exceed $60,000"
       }
      }
     },
     "localname": "LoansToDirectorsOfficersAndEmployeesWhichExceed60000TableTextBlock",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fnlc_LoansandLeasesReceivableAmortizationTerm": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loans and Leases Receivable, Amortization Term",
        "label": "Loans and Leases Receivable, Amortization Term",
        "terseLabel": "Amortization term (in years)"
       }
      }
     },
     "localname": "LoansandLeasesReceivableAmortizationTerm",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "fnlc_LoansandLeasesReceivableCommercialNumberofLoanClasses": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loans and Leases Receivable, Commercial, Number of Loan Classes",
        "label": "Loans and Leases Receivable, Commercial, Number of Loan Classes",
        "terseLabel": "Number of commercial loan classes"
       }
      }
     },
     "localname": "LoansandLeasesReceivableCommercialNumberofLoanClasses",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "fnlc_LoansandLeasesReceivableLoantoValueRatio": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loans and Leases Receivable, Loan to Value Ratio",
        "label": "Loans and Leases Receivable, Loan to Value Ratio",
        "terseLabel": "Loan to value ratio"
       }
      }
     },
     "localname": "LoansandLeasesReceivableLoantoValueRatio",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "fnlc_LoansandLeasesReceivableResidentialNumberofLoanClasses": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loans and Leases Receivable, Residential, Number of Loan Classes",
        "label": "Loans and Leases Receivable, Residential, Number of Loan Classes",
        "terseLabel": "Number of residential loan classes"
       }
      }
     },
     "localname": "LoansandLeasesReceivableResidentialNumberofLoanClasses",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "fnlc_LoansandLeasesReceivableTerm": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loans and Leases Receivable, Term",
        "label": "Loans and Leases Receivable, Term",
        "terseLabel": "Loan maturities"
       }
      }
     },
     "localname": "LoansandLeasesReceivableTerm",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "fnlc_LoansandLeasesReceivablesRelatedPartiesAdditionsAggregatedOver60000Dollars": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loans and Leases Receivables, Related Parties, Additions, Aggregated Over 60,000 Dollars",
        "label": "Loans and Leases Receivables, Related Parties, Additions, Aggregated Over 60,000 Dollars",
        "terseLabel": "New loans"
       }
      }
     },
     "localname": "LoansandLeasesReceivablesRelatedPartiesAdditionsAggregatedOver60000Dollars",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansSummaryofLoanstoDirectorsandExecutiveOfficersDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_LoansandLeasesReceivablesRelatedPartiesCollectionsAggregatedOver60000Dollars": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loans and Leases Receivables, Related Parties, Collections, Aggregated Over 60,000 Dollars",
        "label": "Loans and Leases Receivables, Related Parties, Collections, Aggregated Over 60,000 Dollars",
        "negatedLabel": "Repayments"
       }
      }
     },
     "localname": "LoansandLeasesReceivablesRelatedPartiesCollectionsAggregatedOver60000Dollars",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansSummaryofLoanstoDirectorsandExecutiveOfficersDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_LoansandLeasesReceivablesRelatedPartiesRetiredDirectorAggregatedOver60000Dollars": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loans and Leases Receivables, Related Parties, Retired Director, Aggregated Over 60,000 Dollars",
        "label": "Loans and Leases Receivables, Related Parties, Retired Director, Aggregated Over 60,000 Dollars",
        "negatedTerseLabel": "Retired director"
       }
      }
     },
     "localname": "LoansandLeasesReceivablesRelatedPartiesRetiredDirectorAggregatedOver60000Dollars",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansSummaryofLoanstoDirectorsandExecutiveOfficersDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_MaturitiesOfCertificatesOfDepositLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "-- None. No documentation exists for this element. --",
        "label": "Maturities Of Certificates Of Deposit [Line Items]",
        "terseLabel": "Maturities Of Certificates Of Deposit [Line Items]"
       }
      }
     },
     "localname": "MaturitiesOfCertificatesOfDepositLineItems",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CertificatesofDepositDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fnlc_MaturitiesOfCertificatesOfDepositTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "-- None. No documentation exists for this element. --",
        "label": "Maturities Of Certificates Of Deposit [Table]",
        "terseLabel": "Maturities Of Certificates Of Deposit [Table]"
       }
      }
     },
     "localname": "MaturitiesOfCertificatesOfDepositTable",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CertificatesofDepositDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fnlc_MaturitiesOfCertificatesOfDepositsByBalanceAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of maturities of time deposits by stated value.",
        "label": "Maturities Of Certificates Of Deposits By Balance [Axis]",
        "terseLabel": "Maturities Of Certificates Of Deposits By Balance [Axis]"
       }
      }
     },
     "localname": "MaturitiesOfCertificatesOfDepositsByBalanceAxis",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CertificatesofDepositDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fnlc_MaturityOfCertificatesOfDepositByBalanceDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "-- None. No documentation exists for this element. --",
        "label": "Maturity Of Certificates Of Deposit By Balance [Domain]",
        "terseLabel": "Maturity Of Certificates Of Deposit By Balance [Domain]"
       }
      }
     },
     "localname": "MaturityOfCertificatesOfDepositByBalanceDomain",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CertificatesofDepositDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_ModificationStatusAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Modification Status",
        "label": "Modification Status [Axis]",
        "terseLabel": "Modification Status [Axis]"
       }
      }
     },
     "localname": "ModificationStatusAxis",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansModificationStatusesbyPortfolioSegmentDetails",
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fnlc_ModificationStatusDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Modification Status",
        "label": "Modification Status [Domain]",
        "terseLabel": "Modification Status [Domain]"
       }
      }
     },
     "localname": "ModificationStatusDomain",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansModificationStatusesbyPortfolioSegmentDetails",
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_MortgageLoansinProcessofForeclosureNumber": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Mortgage Loans in Process of Foreclosure, Number",
        "label": "Mortgage Loans in Process of Foreclosure, Number",
        "terseLabel": "Number of mortgage loans in the process of foreclosure"
       }
      }
     },
     "localname": "MortgageLoansinProcessofForeclosureNumber",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "fnlc_MortgageServicingRightsGross": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/MortgageServicingRightsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_ServicingAssetAtAmortizedValue",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gross amount, as of the balance sheet date, of mortgage servicing rights.",
        "label": "Mortgage Servicing Rights Gross",
        "verboseLabel": "Mortgage servicing rights"
       }
      }
     },
     "localname": "MortgageServicingRightsGross",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/MortgageServicingRightsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_MortgageServicingRightsNet": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Net amount, as of the balance sheet date, of mortgage servicing rights.",
        "label": "Mortgage Servicing Rights Net",
        "terseLabel": "Mortgage servicing rights, net"
       }
      }
     },
     "localname": "MortgageServicingRightsNet",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/MortgageServicingRightsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_Movingaverageofweeklyprepaymentdata": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The moving average period of weekly prepayment data used as assumption in evaluating the carrying value of mortgage servicing rights.",
        "label": "Moving average of weekly prepayment data",
        "terseLabel": "Moving average of weekly prepayment data (in months)"
       }
      }
     },
     "localname": "Movingaverageofweeklyprepaymentdata",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/MortgageServicingRightsDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "fnlc_MunicipalPortfolioMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class of loans receivable which are related to municipalities or other city governments.",
        "label": "Municipal Portfolio [Member]",
        "terseLabel": "Municipal"
       }
      }
     },
     "localname": "MunicipalPortfolioMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesCompositionofAllowanceforLoansLossesbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesFinancingReceivableandAllowanceElementbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesRiskRatingsbySegmentDetails",
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails",
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansNonaccrualLoansDetails",
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansPortfolioDetails",
      "http://www.thefirst.com/role/LoansPreModificationandPostModificationOutstandingRecordedInvestmentDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandAssociatedSpecificReservesDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandSpecificReserveDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_NationalCertificatesOfDeposit": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate amount of national time deposits, including certificates of deposits, individual retirement accounts and open accounts.",
        "label": "National Certificates of Deposit",
        "terseLabel": "National certificates of deposit"
       }
      }
     },
     "localname": "NationalCertificatesOfDeposit",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_NetGainFromSaleOfLoans": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Net gain from the sale of loans held for sale.",
        "label": "Net gain from sale of loans",
        "terseLabel": "Net gain from sale of loans"
       }
      }
     },
     "localname": "NetGainFromSaleOfLoans",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/MortgageServicingRightsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_NonConsolidatedMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The actual and minimum capital amounts and ratios for the bank presented on a non consolidated basis.",
        "label": "Non Consolidated [Member]",
        "terseLabel": "Non Consolidated"
       }
      }
     },
     "localname": "NonConsolidatedMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_NumberOfActiveEmployeesAged50AndOver": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of active employees aged 50 and over with post-retirement benefit plans where the entity subsidized the health insurance premiums.",
        "label": "Number of active employees aged 50 and over",
        "terseLabel": "Number of active employees aged 50 and over"
       }
      }
     },
     "localname": "NumberOfActiveEmployeesAged50AndOver",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "fnlc_NumberOfPostRetirementBenefitPlans": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of post-retirement benefit plans sponsored by the company.",
        "label": "Number Of Post Retirement Benefit Plans",
        "terseLabel": "Number of post-retirement benefit plans"
       }
      }
     },
     "localname": "NumberOfPostRetirementBenefitPlans",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "fnlc_NumberOfSecuritiesTemporarilyImpaired": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of securities with unrealized losses, classified as temporarily impaired, held in a Company's portfolio as of the balance sheet date.",
        "label": "Number Of Securities Temporarily Impaired",
        "terseLabel": "Number of securities temporarily impaired (security)"
       }
      }
     },
     "localname": "NumberOfSecuritiesTemporarilyImpaired",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesNarrativeDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "fnlc_NumberOfSecuritiesTemporarilyImpairedTwelveMonths": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of securities temporarily impaired as of the balance sheet date for a period of 12 months or more.",
        "label": "Number Of Securities Temporarily Impaired Twelve Months",
        "terseLabel": "Number of securities temporarily impaired for 12 months or more (security)"
       }
      }
     },
     "localname": "NumberOfSecuritiesTemporarilyImpairedTwelveMonths",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesNarrativeDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "fnlc_NumberOfSharesAvailableForFutureUseUnderEmployeeSavingsAndInvestmentPlan": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total number of shares of common stock available for future use.",
        "label": "Number Of Shares Available For Future Use Under Employee Savings And Investment Plan",
        "verboseLabel": "Number of shares available for future use under employee savings and investment plan (in shares)"
       }
      }
     },
     "localname": "NumberOfSharesAvailableForFutureUseUnderEmployeeSavingsAndInvestmentPlan",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CommonStockDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "fnlc_NumberOfSharesAvailableForGrantUnderEmployeeSavingsAndInvestmentPlan": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of shares of common stock available to sold to directors and employees under stock purchase or savings and investment plan.",
        "label": "Number Of Shares Available For Grant Under Employee Savings and Investment Plan",
        "verboseLabel": "Number of shares available to directors and employees for stock purchase or savings and investment plans (in shares)"
       }
      }
     },
     "localname": "NumberOfSharesAvailableForGrantUnderEmployeeSavingsAndInvestmentPlan",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CommonStockDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "fnlc_NumberOfSharesIssuedUnderEmployeeSavingsAndInvestmentPlan": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of shares issued under employee savings and investment plan.",
        "label": "Number Of Shares Issued Under Employee Savings and Investment Plan",
        "verboseLabel": "Number of shares issued under employee savings and investment plan (in shares)"
       }
      }
     },
     "localname": "NumberOfSharesIssuedUnderEmployeeSavingsAndInvestmentPlan",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CommonStockDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "fnlc_NumberOfSharesRegisteredPursuantToDividendReinvestmentPlan": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares registered with the Securities and Exchange Commission from a dividend reinvestment plan (DRIP). A dividend reinvestment plan allows the shareholders to reinvest dividends paid to them by the entity on new issues of stock by the entity.",
        "label": "Number of shares registered pursuant to dividend reinvestment plan",
        "verboseLabel": "Number of shares registered with SEC for dividend reinvestment plan (in shares)"
       }
      }
     },
     "localname": "NumberOfSharesRegisteredPursuantToDividendReinvestmentPlan",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CommonStockDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "fnlc_NumberOfStatesInNewEnglandWhereFhlbServe": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of States in New England where Federal Home Loan Bank do housing and financing services.",
        "label": "Number Of States in New England Where FHLB Serve",
        "terseLabel": "Number of states"
       }
      }
     },
     "localname": "NumberOfStatesInNewEnglandWhereFhlbServe",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesNarrativeDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "fnlc_Oaem6Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Credit quality indicators that are developed and used internally by the company-level 6.",
        "label": "OAEM 6 [Member]",
        "terseLabel": "6 OAEM"
       }
      }
     },
     "localname": "Oaem6Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesRiskRatingsbySegmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_OccupancyExpenses": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 1.0,
       "parentTag": "fnlc_TotalExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Expenses a parent level related to building and fixtures",
        "label": "Occupancy expenses",
        "terseLabel": "Occupancy expense"
       }
      }
     },
     "localname": "OccupancyExpenses",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_OffBalanceSheetFinancialInstrumentsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the nature and terms of the financial instruments with off-balance sheet risk.",
        "label": "Off-Balance-Sheet Financial instruments [Table Text Block]",
        "verboseLabel": "Off-Balance-Sheet Financial instruments"
       }
      }
     },
     "localname": "OffBalanceSheetFinancialInstrumentsTableTextBlock",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRiskTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fnlc_OneYearMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "One Year [Member]",
        "label": "One Year [Member]",
        "terseLabel": "One Year"
       }
      }
     },
     "localname": "OneYearMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_OriginalOrSubsequentModificationMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Original or Subsequent Modification",
        "label": "Original or Subsequent Modification [Member]",
        "terseLabel": "Original or Subsequent Modification"
       }
      }
     },
     "localname": "OriginalOrSubsequentModificationMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_OtherComprehensiveIncomeLossAccumulatedUnrealizedGainLossonTransferofAvailableforsaleSecuritiestoHeldtomaturity": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 6.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other Comprehensive Income (Loss), Accumulated Unrealized Gain (Loss) on Transfer of Available-for-sale Securities to Held-to-maturity",
        "label": "Other Comprehensive Income (Loss), Accumulated Unrealized Gain (Loss) on Transfer of Available-for-sale Securities to Held-to-maturity",
        "terseLabel": "Net unrealized loss on securities transferred from available for sale to held to maturity",
        "verboseLabel": "Net unrealized loss on securities transferred from available for sale to held to maturity"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossAccumulatedUnrealizedGainLossonTransferofAvailableforsaleSecuritiestoHeldtomaturity",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets",
      "http://www.thefirst.com/role/InvestmentSecuritiesNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_OtherLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other Loans",
        "label": "Other Loans [Member]",
        "terseLabel": "Other"
       }
      }
     },
     "localname": "OtherLoansMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesCompositionofAllowanceforLoansLossesbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesFinancingReceivableandAllowanceElementbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesRiskRatingsbySegmentDetails",
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails",
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansNonaccrualLoansDetails",
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansPortfolioDetails",
      "http://www.thefirst.com/role/LoansPreModificationandPostModificationOutstandingRecordedInvestmentDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandAssociatedSpecificReservesDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandSpecificReserveDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_OtherOperatingExpenseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other Operating Expense [Abstract]",
        "label": "Other Operating Expense [Abstract]",
        "terseLabel": "Other operating expense"
       }
      }
     },
     "localname": "OtherOperatingExpenseAbstract",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/OtherOperatingIncomeandExpenseDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fnlc_OtherOperatingIncomeAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other Operating Income [Abstract]",
        "label": "Other Operating Income [Abstract]",
        "terseLabel": "Other operating income"
       }
      }
     },
     "localname": "OtherOperatingIncomeAbstract",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/OtherOperatingIncomeandExpenseDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fnlc_OtherRealEstateOwnedFairValueDisclosure": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents the fair value disclosure of other real estate owned that have had a fair value adjustment since their initial recognition.",
        "label": "Other Real Estate Owned Fair Value Disclosure",
        "verboseLabel": "Other real estate owned"
       }
      }
     },
     "localname": "OtherRealEstateOwnedFairValueDisclosure",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_OtherRealEstateOwnedTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of real estate owned and acquired in settlement of troubled loans through surrender or foreclosure.",
        "label": "Other Real Estate Owned [Table Text Block]",
        "verboseLabel": "Other Real Estate Owned"
       }
      }
     },
     "localname": "OtherRealEstateOwnedTableTextBlock",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/OtherRealEstateOwnedTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fnlc_OutOfModificationMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Out of Modification",
        "label": "Out of Modification [Member]",
        "terseLabel": "Out of Modification"
       }
      }
     },
     "localname": "OutOfModificationMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansModificationStatusesbyPortfolioSegmentDetails",
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_OutstandingLoansAndCommitmentsSubjectByIndependentConsultingFirm": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of loans and commitments subject to review by an independent consulting firm each year.",
        "label": "Outstanding loans and commitments subject by independent consulting firm",
        "terseLabel": "Outstanding loans and commitments subject by independent consulting firm"
       }
      }
     },
     "localname": "OutstandingLoansAndCommitmentsSubjectByIndependentConsultingFirm",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_PaidOffMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Paid Off",
        "label": "Paid Off [Member]",
        "terseLabel": "Paid Off"
       }
      }
     },
     "localname": "PaidOffMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansModificationStatusesbyPortfolioSegmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_PercentageOfFinancingReceivableByType": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of Financing Receivable, By Type",
        "label": "Percentage of Financing Receivable, By Type",
        "terseLabel": "Percentage of loans receivable, by type"
       }
      }
     },
     "localname": "PercentageOfFinancingReceivableByType",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansModificationStatusesbyPortfolioSegmentDetails",
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "fnlc_PercentageOfFinancingReceivablePastDue": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of Financing Receivable, Past Due",
        "label": "Percentage of Financing Receivable, Past Due",
        "terseLabel": "Past due rate"
       }
      }
     },
     "localname": "PercentageOfFinancingReceivablePastDue",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_PercentageOfLoansReceivableByType": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Reflects the break down of the gross carrying amount of all categories of loans and leases held in the portfolio, after deducting deferred income, but before deducting the allowance for losses on loans and leases as a percentage of total portfolio.",
        "label": "Percentage of Loans Receivable, by type",
        "terseLabel": "Percentage of loans receivable"
       }
      }
     },
     "localname": "PercentageOfLoansReceivableByType",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansPortfolioDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_PercentageofTotalReserveAllowanceaccountedforbyLoanLossAllowances": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of Total Reserve Allowance accounted for by Loan Loss Allowances",
        "label": "Percentage of Total Reserve Allowance accounted for by Loan Loss Allowances",
        "terseLabel": "Percent of total allowance reserve"
       }
      }
     },
     "localname": "PercentageofTotalReserveAllowanceaccountedforbyLoanLossAllowances",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_Plan2010Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A stock option plan approved by shareholders at the 2010 annual meeting to attract and retain the best available personnel, provide additional incentive to officers, employees and non-employee directors and promote the success of its business.",
        "label": "Plan 2010 [Member]",
        "terseLabel": "2010 Plan"
       }
      }
     },
     "localname": "Plan2010Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationNarrativeDetails",
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_PostEmploymentPlanSupplementalBenefitsPaymentPeriodUponRetirementOrDeath": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Post Employment Plan, Supplemental Benefits, Payment Period Upon Retirement Or Death",
        "label": "Post Employment Plan, Supplemental Benefits, Payment Period Upon Retirement Or Death",
        "terseLabel": "Unfunded, supplemental retirement benefits payable period"
       }
      }
     },
     "localname": "PostEmploymentPlanSupplementalBenefitsPaymentPeriodUponRetirementOrDeath",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "fnlc_PostRetirementBenefitPlanHealthInsuranceSubsidyRangeMaximum": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The maximum amount employer will contribute per month to post-retiree for subsidizing the cost of health care insurance.",
        "label": "Post Retirement Benefit Plan Health Insurance Subsidy Range Maximum",
        "verboseLabel": "Post-retirement benefit plan health insurance subsidy range maximum per month per person"
       }
      }
     },
     "localname": "PostRetirementBenefitPlanHealthInsuranceSubsidyRangeMaximum",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_PostRetirementBenefitPlanHealthInsuranceSubsidyRangeMinimum": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The minimum amount employer will contribute per month to post-retiree for subsidizing the cost of health care insurance.",
        "label": "Post Retirement Benefit Plan Health Insurance Subsidy Range Minimum",
        "verboseLabel": "Post-retirement benefit plan health insurance subsidy range minimum per month per person"
       }
      }
     },
     "localname": "PostRetirementBenefitPlanHealthInsuranceSubsidyRangeMinimum",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/PremisesandEquipmentScheduleofPremisesandEquipmentDetails": {
       "order": 2.0,
       "parentTag": "fnlc_PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetNetOfAccumulatedDepreciationAndAmortization",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Property, Plant And Equipment And Operating Lease Right-Of-Use Asset Accumulated Depreciation And Amortization",
        "label": "Property, Plant And Equipment And Operating Lease Right-Of-Use Asset Accumulated Depreciation And Amortization",
        "terseLabel": "Less accumulated depreciation"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentScheduleofPremisesandEquipmentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/PremisesandEquipmentScheduleofPremisesandEquipmentDetails": {
       "order": 1.0,
       "parentTag": "fnlc_PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetNetOfAccumulatedDepreciationAndAmortization",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Property, Plant And Equipment And Operating Lease Right-Of-Use Asset, Before Accumulated Depreciation And Amortization",
        "label": "Property, Plant And Equipment And Operating Lease Right-Of-Use Asset, Before Accumulated Depreciation And Amortization",
        "terseLabel": "Premises and equipment, gross"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentScheduleofPremisesandEquipmentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetNetOfAccumulatedDepreciationAndAmortization": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/PremisesandEquipmentScheduleofPremisesandEquipmentDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Property, Plant And Equipment And Operating Lease Right-Of-Use Asset, Net Of Accumulated Depreciation And Amortization",
        "label": "Property, Plant And Equipment And Operating Lease Right-Of-Use Asset, Net Of Accumulated Depreciation And Amortization",
        "totalLabel": "Premises and equipment, net"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetNetOfAccumulatedDepreciationAndAmortization",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentScheduleofPremisesandEquipmentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_ReconciliationOfMortgageServicingRightsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A tabular presentation of the net mortgage servicing rights as of the balance sheet date.",
        "label": "Reconciliation of Mortgage Servicing Rights [Table Text Block]",
        "verboseLabel": "Reconciliation of Mortgage Servicing Assets"
       }
      }
     },
     "localname": "ReconciliationOfMortgageServicingRightsTableTextBlock",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/MortgageServicingRightsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fnlc_RedemptionOfRestrictedEquitySecurities": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Redemption of stock held at Federal Home Loan Bank of Federal Reserve Bank. Federal Home Loan Bank (FHLB) stock and Federal Reserve Bank Stock represents an equity interest in a FHLB of FRB. It does not have a readily determinable fair value because its ownership is restricted and it lacks a market (liquidity).",
        "label": "Redemption of restricted equity securities",
        "terseLabel": "Redemption of restricted equity securities"
       }
      }
     },
     "localname": "RedemptionOfRestrictedEquitySecurities",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_RelatedPartyLoanReceivableAggregatedOver60000Dollars": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For an unclassified balance sheet, reflects the carrying amount of unpaid loan amounts which in aggregate exceed $60,000, due from related parties at the balance sheet date.",
        "label": "Related Party Loan Receivable, Aggregated Over 60,000 Dollars",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance"
       }
      }
     },
     "localname": "RelatedPartyLoanReceivableAggregatedOver60000Dollars",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansSummaryofLoanstoDirectorsandExecutiveOfficersDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_RepurchaseAgreementCounterpartyMaturityofAgreements": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repurchase Agreement Counterparty, Maturity of Agreements",
        "label": "Repurchase Agreement Counterparty, Maturity of Agreements",
        "terseLabel": "Range of repurchase agreements' maturity dates (days)"
       }
      }
     },
     "localname": "RepurchaseAgreementCounterpartyMaturityofAgreements",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "fnlc_ReserveForQualitativeFactorsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Qualitative reserves judgmentally adjusted for local and national economic conditions, concentrations, portfolio composition, and other factors.",
        "label": "Reserve for Qualitative Factors [Member]",
        "terseLabel": "Reserves for Qualitative Factors"
       }
      }
     },
     "localname": "ReserveForQualitativeFactorsMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesFinancingReceivableandAllowanceElementbyClassDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_ResidentialLoansTypicalLoanToValue": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Loans Typical Loan To Value",
        "label": "Residential Loans Typical Loan To Value",
        "terseLabel": "Residential loans, loan to value percent, maximum"
       }
      }
     },
     "localname": "ResidentialLoansTypicalLoanToValue",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_ResidentialLoansTypicalLoanToValueRangeLow": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The low percentage of loan to value range for residential loans based on current appraisal information.",
        "label": "Residential Loans Typical Loan To Value Range Low",
        "terseLabel": "Residential loans, loan to value percent minimum"
       }
      }
     },
     "localname": "ResidentialLoansTypicalLoanToValueRangeLow",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_ResidentialMortgageLoansServicedForOthersOutstandingPrincipal": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Dollar amount of principal outstanding on loans being serviced for others at the balance sheet date.",
        "label": "Residential Mortgage Loans Serviced For Others Outstanding Principal",
        "verboseLabel": "Outstanding principal balance of loans serviced for others"
       }
      }
     },
     "localname": "ResidentialMortgageLoansServicedForOthersOutstandingPrincipal",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/MortgageServicingRightsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_RestrictedEquitySecuritiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "-- None. No documentation exists for this element. --",
        "label": "Restricted Equity Securities [Abstract]",
        "verboseLabel": "Restricted equity securities"
       }
      }
     },
     "localname": "RestrictedEquitySecuritiesAbstract",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fnlc_RestrictedEquitySecuritiesAtCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 11.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of stock held at Federal Home Loan Bank and Federal Reserve Bank. Federal Home Loan Bank (FHLB) stock and Federal Reserve Bank Stock represents an equity interest in a FHLB of FRB. It does not have a readily determinable fair value because its ownership is restricted and it lacks a market (liquidity).",
        "label": "Restricted equity securities, at cost",
        "terseLabel": "Restricted equity securities, at cost"
       }
      }
     },
     "localname": "RestrictedEquitySecuritiesAtCost",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_RestrictedEquitySecuritiesUnrealizedLosses": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "As of the balance sheet date, the excess of carrying value (amortized cost) over fair value of a security categorized as non marketable securities, exclusive of dividend or interest income recognized but not yet received and exclusive of any write-downs for other-than-temporary impairment. Such item represents the gross unrecognized holding loss.",
        "label": "Restricted Equity Securities Unrealized Losses",
        "terseLabel": "Impairment losses"
       }
      }
     },
     "localname": "RestrictedEquitySecuritiesUnrealizedLosses",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_RetainedEarningsFromPriorTwoYearsAvailableForDividends": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of retained earnings as of the balance sheet date from the prior two years that can be distributed in the form of dividends.",
        "label": "Retained Earnings From Prior Two Years Available For Dividends",
        "verboseLabel": "Retained earnings from prior two years available for dividends"
       }
      }
     },
     "localname": "RetainedEarningsFromPriorTwoYearsAvailableForDividends",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_Satisfactory3Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Credit quality indicators that are developed and used internally by the company-level 3.",
        "label": "Satisfactory 3 [Member]",
        "terseLabel": "3 Satisfactory"
       }
      }
     },
     "localname": "Satisfactory3Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesRiskRatingsbySegmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_ScheduleOfAvailableForSaleHeldToMaturityAndNonMarketableSecuritiesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular presentation of available for sale securities, held-to-maturity securities and restricted equity securities as of the balance sheet date.",
        "label": "Schedule of Available For Sale Held to Maturity and Restricted Equity Securities [Table Text Block]",
        "verboseLabel": "Schedule of Available For Sale, Held-to-Maturity, and Restricted Equity Securities"
       }
      }
     },
     "localname": "ScheduleOfAvailableForSaleHeldToMaturityAndNonMarketableSecuritiesTableTextBlock",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fnlc_ScheduleOfBorrowedFundsOfMaturitiesAndRangeOfInterestRatesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the combined aggregate amount of maturities and range of interest rates of advances for each of the five years and thereafter following the date of the latest balance sheet date presented.",
        "label": "Schedule of borrowed funds of maturities and range of interest rates [Table Text Block]",
        "verboseLabel": "Range of Interest Rates and Maturity Dates of Borrowed Funds"
       }
      }
     },
     "localname": "ScheduleOfBorrowedFundsOfMaturitiesAndRangeOfInterestRatesTableTextBlock",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fnlc_ScheduleOfCommonStockIssuedOrRepurchasedLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Schedule of Common Stock Issued Or Repurchased [Line Items]",
        "terseLabel": "Schedule of Common Stock Issued Or Repurchased [Line Items]"
       }
      }
     },
     "localname": "ScheduleOfCommonStockIssuedOrRepurchasedLineItems",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CommonStockDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fnlc_ScheduleOfCommonStockIssuedOrRepurchasedTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "-- None. No documentation exists for this element. --",
        "label": "Schedule of Common Stock Issued Or Repurchased [Table]",
        "terseLabel": "Schedule of Common Stock Issued Or Repurchased [Table]"
       }
      }
     },
     "localname": "ScheduleOfCommonStockIssuedOrRepurchasedTable",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CommonStockDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fnlc_ScheduleOfCompositionOfLoanPortfolioTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the composition of loans contained in the loan portfolio.",
        "label": "Schedule Of Composition Of Loan Portfolio [Table Text Block]",
        "verboseLabel": "Composition of Loan Portfolio"
       }
      }
     },
     "localname": "ScheduleOfCompositionOfLoanPortfolioTableTextBlock",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fnlc_ScheduleOfFinancingReceivablesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "-- None. No documentation exists for this element. --",
        "label": "Schedule of Financing Receivables [Line Items]",
        "terseLabel": "Schedule of Financing Receivables [Line Items]"
       }
      }
     },
     "localname": "ScheduleOfFinancingReceivablesLineItems",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fnlc_ScheduleOfFinancingReceivablesTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "-- None. No documentation exists for this element. --",
        "label": "Schedule of Financing Receivables [Table]",
        "terseLabel": "Schedule of Financing Receivables [Table]"
       }
      }
     },
     "localname": "ScheduleOfFinancingReceivablesTable",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fnlc_ScheduleOfMaturitiesOfTimeDepositsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The tabular disclosure of the contractual maturities of time deposits.",
        "label": "Schedule Of Maturities Of Time Deposits [Table Text Block]",
        "verboseLabel": "Maturities of certificates of deposit"
       }
      }
     },
     "localname": "ScheduleOfMaturitiesOfTimeDepositsTableTextBlock",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CertificatesofDepositTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fnlc_ScheduleOfOtherOperatingIncomeAndExpenseTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of each detailed component of other operating income and expense that are applicable, but not separately disclosed in the income statement.",
        "label": "Schedule Of Other Operating Income And Expense [Table Text Block]",
        "verboseLabel": "Other operating income and expense"
       }
      }
     },
     "localname": "ScheduleOfOtherOperatingIncomeAndExpenseTableTextBlock",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/OtherOperatingIncomeandExpenseTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fnlc_SecuritiesSoldunderAgreementstoRepurchaseStatedRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Securities Sold under Agreements to Repurchase, Stated Rate",
        "label": "Securities Sold under Agreements to Repurchase, Stated Rate",
        "terseLabel": "Interest rate, Repurchase agreements for municipal and commercial customers"
       }
      }
     },
     "localname": "SecuritiesSoldunderAgreementstoRepurchaseStatedRate",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_ServicingAssetsAndServicingLiabilitiesAtFairValueAssumptionsUsedToEstimateFairValueDiscountRateAdjustmentFactor": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of rate spread added to the ten-year US Treasury rate to derive the discount rate used in the fair value calculation for the loan servicing portfolio.",
        "label": "Servicing Assets And Servicing Liabilities At Fair Value Assumptions Used To Estimate Fair Value Discount Rate Adjustment Factor",
        "verboseLabel": "Servicing assets and servicing liabilities at fair value, assumptions used to estimate fair value, discount rate adjustment factor (in hundredths)"
       }
      }
     },
     "localname": "ServicingAssetsAndServicingLiabilitiesAtFairValueAssumptionsUsedToEstimateFairValueDiscountRateAdjustmentFactor",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/MortgageServicingRightsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fnlc_SmallBusinessAdministrationSBACARESActExcludingPaycheckProtectionProgramMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Small Business Administration (SBA), CARES Act, Excluding Paycheck Protection Program",
        "label": "Small Business Administration (SBA), CARES Act, Excluding Paycheck Protection Program [Member]",
        "terseLabel": "Small Business Administration (SBA), CARES Act, Excluding Paycheck Protection Program"
       }
      }
     },
     "localname": "SmallBusinessAdministrationSBACARESActExcludingPaycheckProtectionProgramMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_SmallBusinessAdministrationSBACARESActPaycheckProtectionProgramMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Small Business Administration (SBA), CARES Act, Paycheck Protection Program",
        "label": "Small Business Administration (SBA), CARES Act, Paycheck Protection Program [Member]",
        "terseLabel": "Small Business Administration (SBA), CARES Act, Paycheck Protection Program"
       }
      }
     },
     "localname": "SmallBusinessAdministrationSBACARESActPaycheckProtectionProgramMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_SpecificReservesEvaluatedIndividuallyForImpairmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Specific reserved based on evaluating each loan individually.",
        "label": "Specific Reserves Evaluated Individually for Impairment [Member]",
        "terseLabel": "Specific Reserves on Loans Evaluated Individually for Impairment"
       }
      }
     },
     "localname": "SpecificReservesEvaluatedIndividuallyForImpairmentMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesFinancingReceivableandAllowanceElementbyClassDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_StillInOriginalModificationMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Still in Original Modification",
        "label": "Still in Original Modification [Member]",
        "terseLabel": "Still in Original Modification"
       }
      }
     },
     "localname": "StillInOriginalModificationMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansModificationStatusesbyPortfolioSegmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_StockRemainingunderPlanSharesDividendReinvestmentPlan": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock Remaining under Plan, Shares, Dividend Reinvestment Plan",
        "label": "Stock Remaining under Plan, Shares, Dividend Reinvestment Plan",
        "terseLabel": "Number of shares for future use (in shares)"
       }
      }
     },
     "localname": "StockRemainingunderPlanSharesDividendReinvestmentPlan",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CommonStockDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "fnlc_Strong1Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Credit quality indicators that are developed and used internally by the company-level 1.",
        "label": "Strong 1 [Member]",
        "terseLabel": "1 Strong"
       }
      }
     },
     "localname": "Strong1Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesRiskRatingsbySegmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_SubsequentModificationMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Subsequent Modification",
        "label": "Subsequent Modification [Member]",
        "terseLabel": "Subsequent Modification"
       }
      }
     },
     "localname": "SubsequentModificationMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansModificationStatusesbyPortfolioSegmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_SummaryOtherRealEstateOwnedAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "-- None. No documentation exists for this element. --",
        "label": "Summary Other Real Estate Owned [Abstract]",
        "verboseLabel": "Summary Other Real Estate Owned [Abstract]"
       }
      }
     },
     "localname": "SummaryOtherRealEstateOwnedAbstract",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/OtherRealEstateOwnedDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fnlc_SwapTerminationExpense": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Swap Termination Expense",
        "label": "Swap Termination Expense",
        "terseLabel": "Swap termination expense"
       }
      }
     },
     "localname": "SwapTerminationExpense",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/OtherOperatingIncomeandExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_TangibleBookValuePerCommonShare": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tangible book value of common stock per share.",
        "label": "Tangible book value per common share",
        "terseLabel": "Tangible book value per common share (usd per share)"
       }
      }
     },
     "localname": "TangibleBookValuePerCommonShare",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "perShareItemType"
    },
    "fnlc_TermLoanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The catagory of loans which are designated to individuals for a residence that typically includes traditional amortizing home mortgages.",
        "label": "Term Loan [Member]",
        "terseLabel": "Term"
       }
      }
     },
     "localname": "TermLoanMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesCompositionofAllowanceforLoansLossesbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesFinancingReceivableandAllowanceElementbyClassDetails",
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails",
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansNonaccrualLoansDetails",
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansPortfolioDetails",
      "http://www.thefirst.com/role/LoansPreModificationandPostModificationOutstandingRecordedInvestmentDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandAssociatedSpecificReservesDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandSpecificReserveDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_ThreeYearsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity-based compensation plans that vest in three years.",
        "label": "Three Years [Member]",
        "terseLabel": "Three Years"
       }
      }
     },
     "localname": "ThreeYearsMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_TimeDeposits250000OrMore": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/CertificatesofDepositDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_TimeDeposits",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate amount of domestic or foreign time deposits (including certificates of deposits, individual retirement accounts and open accounts) that total to more than $250,000.",
        "label": "Time Deposits 250000 Or More",
        "verboseLabel": "Certificates $250,000 and over"
       }
      }
     },
     "localname": "TimeDeposits250000OrMore",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CertificatesofDepositDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_TimeDepositsGreaterThan100000AndLessThan250000": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/CertificatesofDepositDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_TimeDeposits",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate amount of domestic or foreign time deposits (including certificates of deposits, individual retirement accounts and open accounts) that total to more than $100,000 but less than $250,000.",
        "label": "Time Deposits Greater Than 100000 And Less Than 250000",
        "verboseLabel": "Certificates $100,000 to $250,000"
       }
      }
     },
     "localname": "TimeDepositsGreaterThan100000AndLessThan250000",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CertificatesofDepositDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_TimeDepositsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The tabular disclosure of the breakdown of the balance of time deposits.",
        "label": "Time Deposits [Table Text Block]",
        "verboseLabel": "Certificates of deposit"
       }
      }
     },
     "localname": "TimeDepositsTableTextBlock",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CertificatesofDepositTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fnlc_TotalExpense": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total expense at parent level",
        "label": "Total expense",
        "totalLabel": "Total expense"
       }
      }
     },
     "localname": "TotalExpense",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_TotalFederalHomeLoanBankAdvancesTreasuryTaxNotesAndRepurchaseAgreements": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/BorrowedFundsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.thefirst.com/role/QuarterlyInformationDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the aggregate dollar amount of all future maturities of advances from the Federal Home Loan Bank, treasury tax and loan notes and securities sold under repurchase agreements as of balance sheet date.",
        "label": "Total Federal Home Loan Bank Advances Treasury Tax Notes And Repurchase Agreements",
        "totalLabel": "Total",
        "verboseLabel": "Borrowed funds"
       }
      }
     },
     "localname": "TotalFederalHomeLoanBankAdvancesTreasuryTaxNotesAndRepurchaseAgreements",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_TotalIncome": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total parent level income",
        "label": "Total income",
        "totalLabel": "Total income"
       }
      }
     },
     "localname": "TotalIncome",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_TroubledDebtRestructuredPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for determining the reporting status of a loan as troubled debt restructured.",
        "label": "Troubled Debt Restructured [Policy Text Block]",
        "terseLabel": "Troubled Debt Restructured"
       }
      }
     },
     "localname": "TroubledDebtRestructuredPolicyTextBlock",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fnlc_TroubledDebtRestructuringLoansAndLeasesReceivableSpecificAllowanceCurrentPeriod": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Specific allowance for loan and lease losses on receivable financings that are classified as troubled debt restructurings during the current period.",
        "label": "Troubled Debt Restructuring, Loans and Leases Receivable, Specific Allowance Current Period",
        "terseLabel": "Specific Reserves"
       }
      }
     },
     "localname": "TroubledDebtRestructuringLoansAndLeasesReceivableSpecificAllowanceCurrentPeriod",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansPreModificationandPostModificationOutstandingRecordedInvestmentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_TroubledDebtRestructuringLoansandLeasesReceivableSpecificAllowance": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Specific allowance for loan and lease losses on receivable financings that are classified as troubled debt restructurings.",
        "label": "Troubled Debt Restructuring, Loans and Leases Receivable, Specific Allowance",
        "terseLabel": "Specific Reserves"
       }
      }
     },
     "localname": "TroubledDebtRestructuringLoansandLeasesReceivableSpecificAllowance",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/LoansTDRsbyClassandSpecificReserveDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fnlc_TwoYearsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two Years [Member]",
        "label": "Two Years [Member]",
        "terseLabel": "Two Years"
       }
      }
     },
     "localname": "TwoYearsMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_UnallocatedReservesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Additional reserves not fitting the other criterias.",
        "label": "Unallocated Reserves [Member]",
        "terseLabel": "Unallocated Reserves"
       }
      }
     },
     "localname": "UnallocatedReservesMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesFinancingReceivableandAllowanceElementbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_UnusedLinesOfCreditResidentialMortgagesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The unused portion of a line of credit that is available to the borrower to finance the acquisition of residential real estate.",
        "label": "Unused Lines Of Credit Residential Mortgages [Member]",
        "terseLabel": "Unused lines, collateralized by residential real estate"
       }
      }
     },
     "localname": "UnusedLinesOfCreditResidentialMortgagesMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_Watch5Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Credit quality indicators that are developed and used internally by the company-level 5.",
        "label": "Watch 5 [Member]",
        "terseLabel": "5 Watch"
       }
      }
     },
     "localname": "Watch5Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesRiskRatingsbySegmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_WeightedAverageDiscountRateAsOfDecember31": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average discount rate.",
        "label": "Weighted average discount rate as of December 31",
        "terseLabel": "Weighted average discount rate as of December 31"
       }
      }
     },
     "localname": "WeightedAverageDiscountRateAsOfDecember31",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansAccumulatedPostRetirementBenefitObligationFundedStatusandNetPeriodicBenefitCostDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "fnlc_YearAwarded2016Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Year Awarded 2016 [Member]",
        "label": "Year Awarded 2016 [Member]",
        "terseLabel": "2016"
       }
      }
     },
     "localname": "YearAwarded2016Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_YearAwarded2017Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Year Awarded 2017 [Member]",
        "label": "Year Awarded 2017 [Member]",
        "terseLabel": "2017"
       }
      }
     },
     "localname": "YearAwarded2017Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_YearAwarded2018Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Year Awarded 2018 [Member]",
        "label": "Year Awarded 2018 [Member]",
        "terseLabel": "2018"
       }
      }
     },
     "localname": "YearAwarded2018Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_YearAwarded2019MemberMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "YearAwarded2019Member [Member]",
        "label": "YearAwarded2019Member [Member]",
        "terseLabel": "2019"
       }
      }
     },
     "localname": "YearAwarded2019MemberMember",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fnlc_YearAwarded2020Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Year Awarded 2020 [Member]",
        "label": "Year Awarded 2020 [Member]",
        "terseLabel": "Year Awarded 2020 [Member]"
       }
      }
     },
     "localname": "YearAwarded2020Member",
     "nsuri": "http://www.thefirst.com/20201231",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_CondensedFinancialInformationOfParentCompanyOnlyDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Condensed Financial Information Disclosure [Abstract]",
        "terseLabel": "Condensed Financial Information Disclosure [Abstract]"
       }
      }
     },
     "localname": "CondensedFinancialInformationOfParentCompanyOnlyDisclosureAbstract",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "srt_CondensedFinancialStatementsCaptionsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Condensed Financial Statements, Captions [Line Items]",
        "terseLabel": "Condensed Financial Statements, Captions [Line Items]"
       }
      }
     },
     "localname": "CondensedFinancialStatementsCaptionsLineItems",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ConsolidatedEntitiesAxis": {
     "auth_ref": [
      "r473",
      "r474",
      "r478",
      "r479",
      "r736"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated Entities [Axis]",
        "terseLabel": "Consolidated Entities [Axis]"
       }
      }
     },
     "localname": "ConsolidatedEntitiesAxis",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ConsolidatedEntitiesDomain": {
     "auth_ref": [
      "r473",
      "r474",
      "r478",
      "r479"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated Entities [Domain]",
        "terseLabel": "Consolidated Entities [Domain]"
       }
      }
     },
     "localname": "ConsolidatedEntitiesDomain",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MaximumMember": {
     "auth_ref": [
      "r400",
      "r402",
      "r555",
      "r556",
      "r557",
      "r562",
      "r563",
      "r564",
      "r602",
      "r709",
      "r711"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maximum [Member]",
        "terseLabel": "Maximum"
       }
      }
     },
     "localname": "MaximumMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MinimumMember": {
     "auth_ref": [
      "r400",
      "r402",
      "r555",
      "r556",
      "r557",
      "r562",
      "r563",
      "r564",
      "r602",
      "r709",
      "r711"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Minimum [Member]",
        "terseLabel": "Minimum"
       }
      }
     },
     "localname": "MinimumMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ParentCompanyMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Parent Company [Member]",
        "terseLabel": "Parent Company"
       }
      }
     },
     "localname": "ParentCompanyMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ProductOrServiceAxis": {
     "auth_ref": [
      "r191",
      "r349",
      "r350",
      "r603",
      "r708",
      "r710"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Product and Service [Axis]",
        "terseLabel": "Product and Service [Axis]"
       }
      }
     },
     "localname": "ProductOrServiceAxis",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ProductsAndServicesDomain": {
     "auth_ref": [
      "r191",
      "r349",
      "r350",
      "r603",
      "r708",
      "r710"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Product and Service [Domain]",
        "terseLabel": "Product and Service [Domain]"
       }
      }
     },
     "localname": "ProductsAndServicesDomain",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RangeAxis": {
     "auth_ref": [
      "r366",
      "r400",
      "r402",
      "r555",
      "r556",
      "r557",
      "r562",
      "r563",
      "r564",
      "r602",
      "r709",
      "r711"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statistical Measurement [Axis]",
        "terseLabel": "Statistical Measurement [Axis]"
       }
      }
     },
     "localname": "RangeAxis",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails",
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_RangeMember": {
     "auth_ref": [
      "r366",
      "r400",
      "r402",
      "r555",
      "r556",
      "r557",
      "r562",
      "r563",
      "r564",
      "r602",
      "r709",
      "r711"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statistical Measurement [Domain]",
        "terseLabel": "Statistical Measurement [Domain]"
       }
      }
     },
     "localname": "RangeMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails",
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RegulatoryCapitalRequirementsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Broker-Dealer, Net Capital Requirement, SEC Regulation [Abstract]",
        "terseLabel": "Broker-Dealer, Net Capital Requirement, SEC Regulation [Abstract]"
       }
      }
     },
     "localname": "RegulatoryCapitalRequirementsAbstract",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "srt_ScheduleOfCondensedFinancialStatementsTable": {
     "auth_ref": [
      "r121",
      "r471"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Condensed Financial Statements [Table]",
        "terseLabel": "Schedule of Condensed Financial Statements [Table]"
       }
      }
     },
     "localname": "ScheduleOfCondensedFinancialStatementsTable",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccountingPoliciesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Policies [Abstract]",
        "terseLabel": "Accounting Policies [Abstract]"
       }
      }
     },
     "localname": "AccountingPoliciesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccountsNotesAndLoansReceivableLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Accounts, Notes, Loans and Financing Receivable [Line Items]",
        "terseLabel": "Accounts, Notes, Loans and Financing Receivable [Line Items]"
       }
      }
     },
     "localname": "AccountsNotesAndLoansReceivableLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesCompositionofAllowanceforLoansLossesbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesFinancingReceivableandAllowanceElementbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesRiskRatingsbySegmentDetails",
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansModificationStatusesbyPortfolioSegmentDetails",
      "http://www.thefirst.com/role/LoansNonaccrualLoansDetails",
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansPortfolioDetails",
      "http://www.thefirst.com/role/LoansPreModificationandPostModificationOutstandingRecordedInvestmentDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandAssociatedSpecificReservesDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandSpecificReserveDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis": {
     "auth_ref": [
      "r34"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of receivable.",
        "label": "Receivable Type [Axis]",
        "terseLabel": "Receivable Type [Axis]"
       }
      }
     },
     "localname": "AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments": {
     "auth_ref": [
      "r102"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 14.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The sum of the periodic adjustments of the differences between securities' face values and purchase prices that are charged against earnings. This is called accretion if the security was purchased at a discount and amortization if it was purchased at premium. As a noncash item, this element is an adjustment to net income when calculating cash provided by or used in operations using the indirect method.",
        "label": "Accretion (Amortization) of Discounts and Premiums, Investments",
        "negatedTerseLabel": "Net amortization of investment premiums"
       }
      }
     },
     "localname": "AccretionAmortizationOfDiscountsAndPremiumsInvestments",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetUnamortizedGainLossMember": {
     "auth_ref": [
      "r45",
      "r52",
      "r55",
      "r477"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accumulated other comprehensive income (loss) related to gain (loss) component of defined benefit plans attributable to the parent.",
        "label": "Accumulated Defined Benefit Plans Adjustment, Net Gain (Loss) Attributable to Parent [Member]",
        "terseLabel": "Accumulated Defined Benefit Plans Adjustment, Net Gain (Loss)"
       }
      }
     },
     "localname": "AccumulatedDefinedBenefitPlansAdjustmentNetUnamortizedGainLossMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonPostretirementBenefitsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccumulatedNetGainLossFromDesignatedOrQualifyingCashFlowHedgesMember": {
     "auth_ref": [
      "r41",
      "r52",
      "r55",
      "r476"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accumulated other comprehensive income (loss) resulting from gain (loss) from derivative instruments designated and qualifying as the effective portion of cash flow hedges, attributable to the parent.",
        "label": "Accumulated Net Gain (Loss) from Cash Flow Hedges Attributable to Parent [Member]",
        "terseLabel": "Accumulated Net Gain (Loss) from Cash Flow Hedges"
       }
      }
     },
     "localname": "AccumulatedNetGainLossFromDesignatedOrQualifyingCashFlowHedgesMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofDerivativeFinancialInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember": {
     "auth_ref": [
      "r42",
      "r43",
      "r44",
      "r52",
      "r55"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accumulated unrealized gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), attributable to parent.",
        "label": "AOCI, Accumulated Gain (Loss), Debt Securities, Available-for-sale, Parent [Member]",
        "terseLabel": "Accumulated Net Unrealized Investment Gain (Loss)"
       }
      }
     },
     "localname": "AccumulatedNetUnrealizedInvestmentGainLossMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonAvailableforSaleSecuritiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax": {
     "auth_ref": [
      "r51"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after tax, of accumulated unrealized gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "AOCI, Debt Securities, Available-for-sale, Adjustment, after Tax",
        "verboseLabel": "Net unrealized gain on securities available for sale"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax": {
     "auth_ref": [
      "r46",
      "r52",
      "r380"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after tax, of accumulated other comprehensive (income) loss for defined benefit plan, that has not been recognized in net periodic benefit cost (credit).",
        "label": "Accumulated Other Comprehensive (Income) Loss, Defined Benefit Plan, after Tax",
        "negatedLabel": "Net unrealized gain on postretirement costs",
        "negatedTerseLabel": "Net unrecognized post-retirement benefits included in accumulated other comprehensive income"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets",
      "http://www.thefirst.com/role/EmployeeBenefitPlansScheduleofNetPeriodicBenefitCostNotYetRecognizedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Accumulated Other Comprehensive Income (Loss) [Line Items]",
        "terseLabel": "Accumulated Other Comprehensive Income (Loss) [Line Items]"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofDerivativeFinancialInstrumentsDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofTransferofAFSSecuritiestoHTMDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonAvailableforSaleSecuritiesDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonPostretirementBenefitsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated Other Comprehensive Income (Loss), Net of Tax [Abstract]",
        "terseLabel": "Accumulated other comprehensive income (loss)"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossNetOfTaxAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossTable": {
     "auth_ref": [
      "r526",
      "r527",
      "r528",
      "r529",
      "r530",
      "r532"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about components of accumulated other comprehensive income (loss).",
        "label": "Accumulated Other Comprehensive Income (Loss) [Table]",
        "terseLabel": "Accumulated Other Comprehensive Income (Loss) [Table]"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofDerivativeFinancialInstrumentsDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofTransferofAFSSecuritiestoHTMDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonAvailableforSaleSecuritiesDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonPostretirementBenefitsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeMember": {
     "auth_ref": [
      "r47",
      "r52",
      "r55",
      "r123",
      "r124",
      "r125",
      "r477",
      "r712",
      "r713"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accumulated increase (decrease) in equity from transactions and other events and circumstances from non-owner sources, attributable to the parent. Excludes net income (loss), and accumulated changes in equity from transactions resulting from investments by owners and distributions to owners.",
        "label": "AOCI Attributable to Parent [Member]",
        "terseLabel": "Accumulated other comprehensive income (loss)"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife": {
     "auth_ref": [
      "r314"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average amortization period of finite-lived intangible assets acquired either individually or as part of a group of assets, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Acquired Finite-lived Intangible Assets, Weighted Average Useful Life",
        "terseLabel": "Intangible assets useful life"
       }
      }
     },
     "localname": "AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_AdditionalPaidInCapital": {
     "auth_ref": [
      "r20",
      "r421"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Excess of issue price over par or stated value of the entity's capital stock and amounts received from other transactions involving the entity's stock or stockholders. Includes adjustments to additional paid in capital. Some examples of such adjustments include recording the issuance of debt with a beneficial conversion feature and certain tax consequences of equity instruments awarded to employees. Use this element for the aggregate amount of additional paid-in capital associated with common and preferred stock. For additional paid-in capital associated with only common stock, use the element additional paid in capital, common stock. For additional paid-in capital associated with only preferred stock, use the element additional paid in capital, preferred stock.",
        "label": "Additional Paid in Capital",
        "terseLabel": "Additional paid-in capital"
       }
      }
     },
     "localname": "AdditionalPaidInCapital",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue": {
     "auth_ref": [
      "r404",
      "r406",
      "r423",
      "r424"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase to additional paid-in capital (APIC) for recognition of cost for award under share-based payment arrangement.",
        "label": "APIC, Share-based Payment Arrangement, Increase for Cost Recognition",
        "terseLabel": "Equity compensation expense"
       }
      }
     },
     "localname": "AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments to Reconcile Net Income (Loss) to Cash Provided by (Used in) Operating Activities [Abstract]",
        "terseLabel": "Adjustments to reconcile net income to net cash provided by operating activities:"
       }
      }
     },
     "localname": "AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AdvancesFromFederalHomeLoanBanks": {
     "auth_ref": [
      "r670"
     ],
     "calculation": {
      "http://www.thefirst.com/role/BorrowedFundsDetails": {
       "order": 1.0,
       "parentTag": "fnlc_TotalFederalHomeLoanBankAdvancesTreasuryTaxNotesAndRepurchaseAgreements",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of borrowings as of the balance sheet date from the Federal Home Loan Bank, which are primarily used to cover shortages in the required reserve balance and liquidity shortages.",
        "label": "Advances from Federal Home Loan Banks",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "AdvancesFromFederalHomeLoanBanks",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AllocatedShareBasedCompensationExpense": {
     "auth_ref": [
      "r406",
      "r414",
      "r422"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense for award under share-based payment arrangement. Excludes amount capitalized.",
        "label": "Share-based Payment Arrangement, Expense",
        "terseLabel": "Compensation expense recognized for restricted shares"
       }
      }
     },
     "localname": "AllocatedShareBasedCompensationExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock": {
     "auth_ref": [
      "r205",
      "r287"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of allowance for credit loss on financing receivable.",
        "label": "Financing Receivable, Allowance for Credit Loss [Table Text Block]",
        "terseLabel": "Allowance for loan losses by class of financing receivable and allowance"
       }
      }
     },
     "localname": "AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_AllowanceForCreditLossesTextBlock": {
     "auth_ref": [
      "r238"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for allowance for credit losses.",
        "label": "Allowance for Credit Losses [Text Block]",
        "verboseLabel": "Allowance for Loan Losses"
       }
      }
     },
     "localname": "AllowanceForCreditLossesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLosses"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_AllowanceForLoanAndLeaseLossRecoveryOfBadDebts": {
     "auth_ref": [
      "r202"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of recovery of loans and lease receivables which had previously been fully or partially written-off as bad debts.",
        "label": "Allowance for Loan and Lease Loss, Recovery of Bad Debts",
        "terseLabel": "Recoveries"
       }
      }
     },
     "localname": "AllowanceForLoanAndLeaseLossRecoveryOfBadDebts",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AllowanceForLoanAndLeaseLossesRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Allowance for Loan and Lease Losses [Roll Forward]",
        "terseLabel": "Allowance for Loan and Lease Losses [Roll Forward]"
       }
      }
     },
     "localname": "AllowanceForLoanAndLeaseLossesRollForward",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AllowanceForLoanAndLeaseLossesWriteOffs": {
     "auth_ref": [
      "r201"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of loans and leases that have been written off from both loan receivables and allowance reserve for credit loss.",
        "label": "Allowance for Loan and Lease Losses, Write-offs",
        "terseLabel": "Chargeoffs",
        "verboseLabel": "Forgiveness payments received"
       }
      }
     },
     "localname": "AllowanceForLoanAndLeaseLossesWriteOffs",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails",
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AmortizationOfAcquisitionCosts": {
     "auth_ref": [
      "r101",
      "r312"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 9.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of expense recognized in the current period that reflects the allocation of capitalized costs associated with acquisition of business. As a noncash expense, this element is added back to net income when calculating cash provided by or used in operations using the indirect method.",
        "label": "Amortization of Acquisition Costs",
        "terseLabel": "Net acquisition amortization"
       }
      }
     },
     "localname": "AmortizationOfAcquisitionCosts",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AmortizationOfIntangibleAssets": {
     "auth_ref": [
      "r101",
      "r312",
      "r319"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 2.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate expense charged against earnings to allocate the cost of intangible assets (nonphysical assets not used in production) in a systematic and rational manner to the periods expected to benefit from such assets. As a noncash expense, this element is added back to net income when calculating cash provided by or used in operations using the indirect method.",
        "label": "Amortization of Intangible Assets",
        "terseLabel": "Amortization of identified intangibles"
       }
      }
     },
     "localname": "AmortizationOfIntangibleAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsAdditionalInformationDetails",
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AmortizationOfMortgageServicingRightsMSRs": {
     "auth_ref": [
      "r101",
      "r592"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The periodic amortization (in proportion to and over the period of estimated net servicing income or loss) of capitalized servicing rights, which contractually entitle the servicer to receive fees and ancillary revenues for performing billing, collection, disbursement and recordkeeping services in connection with a mortgage portfolio. As a noncash expense, this element is added back to net income when calculating cash provided by or used in operations using the indirect method.",
        "label": "Amortization of Mortgage Servicing Rights (MSRs)",
        "terseLabel": "Amortization of mortgage servicing rights"
       }
      }
     },
     "localname": "AmortizationOfMortgageServicingRightsMSRs",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/MortgageServicingRightsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AociLossCashFlowHedgeCumulativeGainLossAfterTax": {
     "auth_ref": [
      "r48"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 7.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after tax, of accumulated gain (loss) on derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness.",
        "label": "AOCI, Cash Flow Hedge, Cumulative Gain (Loss), after Tax",
        "terseLabel": "Net unrealized gain (loss) on cash flow hedging derivative instruments"
       }
      }
     },
     "localname": "AociLossCashFlowHedgeCumulativeGainLossAfterTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetBackedSecuritiesMember": {
     "auth_ref": [
      "r261",
      "r367"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Securities that are primarily serviced by the cash flows of a discrete pool of receivables or other financial assets for example, but not limited to, credit card receivables, car loans, recreational vehicle loans, and mobile home loans.",
        "label": "Asset-backed Securities [Member]",
        "terseLabel": "Asset-backed securities"
       }
      }
     },
     "localname": "AssetBackedSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueAFSDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_Assets": {
     "auth_ref": [
      "r111",
      "r173",
      "r183",
      "r189",
      "r279",
      "r473",
      "r478",
      "r524",
      "r615",
      "r687"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.thefirst.com/role/QuarterlyInformationDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all assets that are recognized. Assets are probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.",
        "label": "Assets",
        "totalLabel": "Total assets"
       }
      }
     },
     "localname": "Assets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets [Abstract]",
        "terseLabel": "Assets [Abstract]",
        "verboseLabel": "Assets"
       }
      }
     },
     "localname": "AssetsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets",
      "http://www.thefirst.com/role/ConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsFairValueDisclosure": {
     "auth_ref": [
      "r507"
     ],
     "calculation": {
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.",
        "label": "Assets, Fair Value Disclosure",
        "totalLabel": "Assets measured at fair value"
       }
      }
     },
     "localname": "AssetsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability": {
     "auth_ref": [
      "r119"
     ],
     "calculation": {
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DebtAndCapitalLeaseObligations",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount to be repaid to the counterparty to the repurchase agreement when the carrying amount (or market value, if higher than the carrying amount) of securities or other assets sold under the repurchase agreement exceeds 10 percent of total assets.",
        "label": "Assets Sold under Agreements to Repurchase, Repurchase Liability",
        "terseLabel": "Repurchase agreements"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax": {
     "auth_ref": [
      "r246"
     ],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueAFSDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before tax, of unrealized gain in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-sale, Accumulated Gross Unrealized Gain, before Tax",
        "terseLabel": "Unrealized Gains"
       }
      }
     },
     "localname": "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueAFSDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax": {
     "auth_ref": [
      "r247"
     ],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueAFSDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before tax, of unrealized loss in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-sale, Accumulated Gross Unrealized Loss, before Tax",
        "negatedTerseLabel": "Unrealized Losses"
       }
      }
     },
     "localname": "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueAFSDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis": {
     "auth_ref": [
      "r244",
      "r301"
     ],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueAFSDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortized cost of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-sale, Amortized Cost",
        "totalLabel": "Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleDebtSecuritiesAmortizedCostBasis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueAFSDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Available-for-sale Securities, Debt Maturities [Abstract]",
        "terseLabel": "Available-for-sale Securities, Debt Maturities [Abstract]"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost": {
     "auth_ref": [
      "r251"
     ],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails": {
       "order": 3.0,
       "parentTag": "fnlc_DebtSecuritiesAvailableforsaleAmortizedCostandEquitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortized cost of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing in sixth through tenth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Debt Securities, Available-for-Sale, Amortized Cost, Maturity, Allocated and Single Maturity Date, after Year 5 Through 10",
        "terseLabel": "Amortized Cost, Due in 5 to 10 years"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue": {
     "auth_ref": [
      "r248",
      "r251",
      "r663"
     ],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails": {
       "order": 3.0,
       "parentTag": "fnlc_DebtSecuritiesAvailableforsaleandEquitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing in sixth through tenth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Debt Securities, Available-for-Sale, Fair Value, Maturity, Allocated and Single Maturity Date, after Year 5 Through 10",
        "terseLabel": "Fair Value (Estimated), Due in 1 to 5 years"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost": {
     "auth_ref": [
      "r250"
     ],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails": {
       "order": 2.0,
       "parentTag": "fnlc_DebtSecuritiesAvailableforsaleAmortizedCostandEquitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortized cost of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing in second through fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Debt Securities, Available-for-Sale, Amortized Cost, Maturity, Allocated and Single Maturity Date, after Year One Through Five",
        "terseLabel": "Amortized Cost, Due in 1 to 5 years"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue": {
     "auth_ref": [
      "r248",
      "r250",
      "r662"
     ],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails": {
       "order": 2.0,
       "parentTag": "fnlc_DebtSecuritiesAvailableforsaleandEquitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing in second through fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Debt Securities, Available-for-Sale, Fair Value, Maturity, Allocated and Single Maturity Date, after Year One Through Five",
        "terseLabel": "Fair Value (Estimated), Due in 1 to 5 years"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost": {
     "auth_ref": [
      "r252"
     ],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails": {
       "order": 4.0,
       "parentTag": "fnlc_DebtSecuritiesAvailableforsaleAmortizedCostandEquitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortized cost of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing after tenth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Debt Securities, Available-for-Sale, Amortized Cost, Maturity, Allocated and Single Maturity Date, after Year 10",
        "terseLabel": "Amortized Cost, Due after 10 years"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue": {
     "auth_ref": [
      "r248",
      "r252",
      "r664"
     ],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails": {
       "order": 4.0,
       "parentTag": "fnlc_DebtSecuritiesAvailableforsaleandEquitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing after tenth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Debt Securities, Available-for-Sale, Fair Value, Maturity, Allocated and Single Maturity Date, after Year 10",
        "terseLabel": "Fair Value (Estimated), Due after 10 years"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost": {
     "auth_ref": [
      "r249"
     ],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails": {
       "order": 1.0,
       "parentTag": "fnlc_DebtSecuritiesAvailableforsaleAmortizedCostandEquitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortized cost of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Debt Securities, Available-for-Sale, Amortized Cost, Maturity, Allocated and Single Maturity Date, Year One",
        "terseLabel": "Amortized Cost, Due in 1 year or less"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue": {
     "auth_ref": [
      "r248",
      "r249",
      "r661"
     ],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails": {
       "order": 1.0,
       "parentTag": "fnlc_DebtSecuritiesAvailableforsaleandEquitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Debt Securities, Available-for-Sale, Fair Value, Maturity, Allocated and Single Maturity Date, Year One",
        "terseLabel": "Fair Value (Estimated), Due in 1 year or less"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtSecurities": {
     "auth_ref": [
      "r239",
      "r245",
      "r301",
      "r622"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueAFSDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-sale",
        "terseLabel": "Securities available for sale",
        "verboseLabel": "Fair Value (Estimated)"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtSecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets",
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueAFSDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesGrossRealizedGains": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesGainsandLossesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DebtAndEquitySecuritiesGainLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This item represents the gross profit realized on the sale of debt or equity securities categorized neither as held-to-maturity nor trading securities.",
        "label": "Available-for-sale Securities, Gross Realized Gains",
        "terseLabel": "Gross realized gains"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesGrossRealizedGains",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesGainsandLossesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesGrossRealizedLosses": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesGainsandLossesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DebtAndEquitySecuritiesGainLoss",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This item represents the gross loss realized on the sale of debt or equity securities categorized neither as held-to-maturity nor trading securities.",
        "label": "Available-for-sale Securities, Gross Realized Losses",
        "negatedLabel": "Gross realized losses"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesGrossRealizedLosses",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesGainsandLossesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AwardDateAxis": {
     "auth_ref": [
      "r407",
      "r416"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by date or year award under share-based payment arrangement is granted.",
        "label": "Award Date [Axis]",
        "terseLabel": "Award Date [Axis]"
       }
      }
     },
     "localname": "AwardDateAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AwardDateDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Date or year award under share-based payment arrangement is granted.",
        "label": "Award Date [Domain]",
        "terseLabel": "Award Date [Domain]"
       }
      }
     },
     "localname": "AwardDateDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AwardTypeAxis": {
     "auth_ref": [
      "r407",
      "r416"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of award under share-based payment arrangement.",
        "label": "Award Type [Axis]",
        "terseLabel": "Award Type [Axis]"
       }
      }
     },
     "localname": "AwardTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationNarrativeDetails",
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BalanceSheetLocationAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by location on balance sheet (statement of financial position).",
        "label": "Balance Sheet Location [Axis]",
        "terseLabel": "Balance Sheet Location [Axis]"
       }
      }
     },
     "localname": "BalanceSheetLocationAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BalanceSheetLocationDomain": {
     "auth_ref": [
      "r489",
      "r492"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Location in the balance sheet (statement of financial position).",
        "label": "Balance Sheet Location [Domain]",
        "terseLabel": "Balance Sheet Location [Domain]"
       }
      }
     },
     "localname": "BalanceSheetLocationDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_BuildingMember": {
     "auth_ref": [
      "r323"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Facility held for productive use including, but not limited to, office, production, storage and distribution facilities.",
        "label": "Building [Member]",
        "terseLabel": "Buildings"
       }
      }
     },
     "localname": "BuildingMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentScheduleofPremisesandEquipmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_BusinessAcquisitionAcquireeDomain": {
     "auth_ref": [
      "r399",
      "r401"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Identification of the acquiree in a material business combination (or series of individually immaterial business combinations), which may include the name or other type of identification of the acquiree.",
        "label": "Business Acquisition, Acquiree [Domain]",
        "terseLabel": "Business Acquisition, Acquiree [Domain]"
       }
      }
     },
     "localname": "BusinessAcquisitionAcquireeDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsAdditionalInformationDetails",
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsSummaryofConsiderationPaidDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_BusinessAcquisitionAxis": {
     "auth_ref": [
      "r399",
      "r401",
      "r462",
      "r463"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by business combination or series of individually immaterial business combinations.",
        "label": "Business Acquisition [Axis]",
        "terseLabel": "Business Acquisition [Axis]"
       }
      }
     },
     "localname": "BusinessAcquisitionAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsAdditionalInformationDetails",
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsSummaryofConsiderationPaidDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessAcquisitionLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Business Acquisition [Line Items]",
        "terseLabel": "Business Acquisition [Line Items]"
       }
      }
     },
     "localname": "BusinessAcquisitionLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsAdditionalInformationDetails",
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsSummaryofConsiderationPaidDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount": {
     "auth_ref": [
      "r466"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of goodwill arising from a business combination that is expected to be deductible for tax purposes.",
        "label": "Business Acquisition, Goodwill, Expected Tax Deductible Amount",
        "terseLabel": "Goodwill expected to be deductible for income tax purposes"
       }
      }
     },
     "localname": "BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationAcquisitionRelatedCosts": {
     "auth_ref": [
      "r461"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 7.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents acquisition-related costs incurred to effect a business combination which costs have been expensed during the period. Such costs include finder's fees; advisory, legal, accounting, valuation, and other professional or consulting fees; general administrative costs, including the costs of maintaining an internal acquisitions department; and may include costs of registering and issuing debt and equity securities.",
        "label": "Business Combination, Acquisition Related Costs",
        "terseLabel": "Acquisition-related costs"
       }
      }
     },
     "localname": "BusinessCombinationAcquisitionRelatedCosts",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsAdditionalInformationDetails",
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationDisclosureTextBlock": {
     "auth_ref": [
      "r469"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for a business combination (or series of individually immaterial business combinations) completed during the period, including background, timing, and recognized assets and liabilities. The disclosure may include leverage buyout transactions (as applicable).",
        "label": "Business Combination Disclosure [Text Block]",
        "terseLabel": "Acquisitions and Intangible Assets"
       }
      }
     },
     "localname": "BusinessCombinationDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssets"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Assets [Abstract]",
        "terseLabel": "Assets"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsSummaryofConsiderationPaidDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents": {
     "auth_ref": [
      "r465"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of currency on hand as well as demand deposits with banks or financial institutions, acquired at the acquisition date. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Cash and Equivalents",
        "terseLabel": "Cash"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsSummaryofConsiderationPaidDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets": {
     "auth_ref": [
      "r465"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of asset related to consideration paid in advance for costs that provide economic benefits in future periods, and amount of other assets that are expected to be realized or consumed within one year or the normal operating cycle, if longer, acquired at the acquisition date.",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Current Assets, Prepaid Expense and Other Assets",
        "terseLabel": "Prepaid expenses"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsSummaryofConsiderationPaidDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables": {
     "auth_ref": [
      "r465"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount due from customers or clients for goods or services, including trade receivables, that have been delivered or sold in the normal course of business, and amounts due from others, including related parties expected to be converted to cash, sold or exchanged within one year or the normal operating cycle, if longer, acquired at the acquisition date.",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Current Assets, Receivables",
        "terseLabel": "Loans &amp; accrued interest"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsAdditionalInformationDetails",
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsSummaryofConsiderationPaidDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedFinancialLiabilities": {
     "auth_ref": [
      "r464",
      "r465"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of financial liabilities assumed (as defined) which have been recognized as of the acquisition date.",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Financial Liabilities",
        "terseLabel": "Deposits"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedFinancialLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsAdditionalInformationDetails",
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsSummaryofConsiderationPaidDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles": {
     "auth_ref": [
      "r464",
      "r465"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of identifiable intangible assets recognized as of the acquisition date.",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Finite-Lived Intangibles",
        "terseLabel": "Core deposit intangible"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsAdditionalInformationDetails",
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsSummaryofConsiderationPaidDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Liabilities [Abstract]",
        "terseLabel": "Liabilities"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsSummaryofConsiderationPaidDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther": {
     "auth_ref": [
      "r465"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of other liabilities due after one year or the normal operating cycle, if longer, assumed at the acquisition date.",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Noncurrent Liabilities, Other",
        "terseLabel": "Other liabilities"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsSummaryofConsiderationPaidDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment": {
     "auth_ref": [
      "r464",
      "r465"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of property, plant, and equipment recognized as of the acquisition date.",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Property, Plant, and Equipment",
        "terseLabel": "Premises and equipment"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsSummaryofConsiderationPaidDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combinations [Abstract]"
       }
      }
     },
     "localname": "BusinessCombinationsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_Capital": {
     "auth_ref": [
      "r677",
      "r728",
      "r729"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of total capital as defined by regulatory framework.",
        "label": "Banking Regulation, Total Capital, Actual",
        "verboseLabel": "Actual"
       }
      }
     },
     "localname": "Capital",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CapitalAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Total Capital [Abstract]",
        "terseLabel": "Tier 2 capital to risk-weighted asets [Abstract]"
       }
      }
     },
     "localname": "CapitalAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CapitalRequiredForCapitalAdequacy": {
     "auth_ref": [
      "r677",
      "r681"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of minimum total risk-based capital required for capital adequacy as defined by regulatory framework.",
        "label": "Banking Regulation, Total Risk-Based Capital, Capital Adequacy, Minimum",
        "verboseLabel": "For capital adequacy purposes"
       }
      }
     },
     "localname": "CapitalRequiredForCapitalAdequacy",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CapitalRequiredForCapitalAdequacyToRiskWeightedAssets": {
     "auth_ref": [
      "r677",
      "r681"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio of minimum total risk-based capital to risk-weighted assets required for capital adequacy as defined by regulatory framework.",
        "label": "Banking Regulation, Total Risk-Based Capital Ratio, Capital Adequacy, Minimum",
        "verboseLabel": "For capital adequacy purposes (in hundredths)"
       }
      }
     },
     "localname": "CapitalRequiredForCapitalAdequacyToRiskWeightedAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_CapitalRequiredToBeWellCapitalized": {
     "auth_ref": [
      "r677"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of minimum total risk-based capital categorized as well capitalized as defined by regulatory framework for prompt corrective action.",
        "label": "Banking Regulation, Total Risk-Based Capital, Well Capitalized, Minimum",
        "verboseLabel": "To be well-capitalized under prompt corrective action provisions"
       }
      }
     },
     "localname": "CapitalRequiredToBeWellCapitalized",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CapitalRequiredToBeWellCapitalizedToRiskWeightedAssets": {
     "auth_ref": [
      "r677"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio of minimum total risk-based capital to risk-weighted assets categorized as well capitalized as defined by regulatory framework for prompt corrective action.",
        "label": "Banking Regulation, Total Risk-Based Capital Ratio, Well Capitalized, Minimum",
        "verboseLabel": "To be well-capitalized under prompt corrective action provisions (in hundredths)"
       }
      }
     },
     "localname": "CapitalRequiredToBeWellCapitalizedToRiskWeightedAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_CapitalToRiskWeightedAssets": {
     "auth_ref": [
      "r677"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio of total risk-based capital to risk-weighted assets as defined by regulatory framework.",
        "label": "Banking Regulation, Total Risk-Based Capital Ratio, Actual",
        "verboseLabel": "Actual (in hundredths)"
       }
      }
     },
     "localname": "CapitalToRiskWeightedAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_CarryingReportedAmountFairValueDisclosureMember": {
     "auth_ref": [
      "r522",
      "r523"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measured as reported on the statement of financial position (balance sheet).",
        "label": "Reported Value Measurement [Member]",
        "terseLabel": "Carrying Amount"
       }
      }
     },
     "localname": "CarryingReportedAmountFairValueDisclosureMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CashAndCashEquivalentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and Cash Equivalents [Abstract]",
        "terseLabel": "Cash and Cash Equivalents [Abstract]"
       }
      }
     },
     "localname": "CashAndCashEquivalentsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_CashAndCashEquivalentsAtCarryingValue": {
     "auth_ref": [
      "r3",
      "r25",
      "r103"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. Excludes cash and cash equivalents within disposal group and discontinued operation.",
        "label": "Cash and Cash Equivalents, at Carrying Value",
        "periodEndLabel": "Cash and cash equivalents at end of year",
        "periodStartLabel": "Cash and cash equivalents at beginning of year"
       }
      }
     },
     "localname": "CashAndCashEquivalentsAtCarryingValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashAndCashEquivalentsDisclosureTextBlock": {
     "auth_ref": [
      "r5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for cash and cash equivalent footnotes,  which may include the types of deposits and money market instruments, applicable carrying amounts, restricted amounts and compensating balance arrangements. Cash and equivalents include: (1) currency on hand (2) demand deposits with banks or financial institutions (3) other kinds of accounts that have the general characteristics of demand deposits (4) short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. Generally, only investments maturing within three months from the date of acquisition qualify.",
        "label": "Cash and Cash Equivalents Disclosure [Text Block]",
        "terseLabel": "Cash and Cash Equivalents"
       }
      }
     },
     "localname": "CashAndCashEquivalentsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CashandCashEquivalents"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in cash and cash equivalents. Cash and cash equivalents are the amount of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. Includes effect from exchange rate changes.",
        "label": "Cash and Cash Equivalents, Period Increase (Decrease)",
        "terseLabel": "Net increase (decrease) in cash and cash equivalents"
       }
      }
     },
     "localname": "CashAndCashEquivalentsPeriodIncreaseDecrease",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashAndDueFromBanks": {
     "auth_ref": [
      "r612"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For banks and other depository institutions: Includes cash on hand (currency and coin), cash items in process of collection, noninterest bearing deposits due from other financial institutions (including corporate credit unions), and noninterest bearing balances with the Federal Reserve Banks, Federal Home Loan Banks and central banks.",
        "label": "Cash and Due from Banks",
        "terseLabel": "Cash and cash equivalents"
       }
      }
     },
     "localname": "CashAndDueFromBanks",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents": {
     "auth_ref": [
      "r95",
      "r103",
      "r108"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 8.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/QuarterlyInformationDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage. Excludes amount for disposal group and discontinued operations. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents",
        "periodEndLabel": "Cash and cash equivalents at end of year",
        "periodStartLabel": "Cash and cash equivalents at beginning of year",
        "terseLabel": "Cash and cash equivalents"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets",
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect": {
     "auth_ref": [
      "r95",
      "r525"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in cash, cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; including effect from exchange rate change. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents, Period Increase (Decrease), Including Exchange Rate Effect",
        "totalLabel": "Net increase (decrease) in cash and cash equivalents"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashFlowHedgingMember": {
     "auth_ref": [
      "r486"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Hedge of the exposure to variability in the cash flows of a recognized asset or liability, or of a forecasted transaction, that is attributable to a particular risk.",
        "label": "Cash Flow Hedging [Member]",
        "terseLabel": "Cash Flow Hedging"
       }
      }
     },
     "localname": "CashFlowHedgingMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails",
      "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ChangesInProjectedBenefitObligationsFairValueOfPlanAssetsAndFundedStatusOfPlanTableTextBlock": {
     "auth_ref": [
      "r364"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the change in the benefit obligation, fair value of plan assets, and funded status of pension plans or other employee benefit plans.",
        "label": "Changes in Projected Benefit Obligations, Fair Value of Plan Assets, and Funded Status of Plan [Table Text Block]",
        "verboseLabel": "Accumulated post-retirement benefit obligation and funded status"
       }
      }
     },
     "localname": "ChangesInProjectedBenefitObligationsFairValueOfPlanAssetsAndFundedStatusOfPlanTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CollateralAxis": {
     "auth_ref": [
      "r297"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by category of collateral or no collateral, from lender's perspective.",
        "label": "Collateral Held [Axis]",
        "terseLabel": "Collateral [Axis]"
       }
      }
     },
     "localname": "CollateralAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CollateralDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Category of collateral or no collateral, from lender's perspective.",
        "label": "Collateral Held [Domain]",
        "terseLabel": "Collateral [Domain]"
       }
      }
     },
     "localname": "CollateralDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommercialPortfolioSegmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Portfolio segment of the company's total financing receivables related to commercial receivables.",
        "label": "Commercial Portfolio Segment [Member]",
        "terseLabel": "Commercial"
       }
      }
     },
     "localname": "CommercialPortfolioSegmentMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesCompositionofAllowanceforLoansLossesbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesFinancingReceivableandAllowanceElementbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesRiskRatingsbySegmentDetails",
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails",
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansNonaccrualLoansDetails",
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansPortfolioDetails",
      "http://www.thefirst.com/role/LoansPreModificationandPostModificationOutstandingRecordedInvestmentDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandAssociatedSpecificReservesDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandSpecificReserveDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommitmentsAndContingencies": {
     "auth_ref": [
      "r31",
      "r330",
      "r630",
      "r696"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the caption on the face of the balance sheet to indicate that the entity has entered into (1) purchase or supply arrangements that will require expending a portion of its resources to meet the terms thereof, and (2) is exposed to potential losses or, less frequently, gains, arising from (a) possible claims against a company's resources due to future performance under contract terms, and (b) possible losses or likely gains from uncertainties that will ultimately be resolved when one or more future events that are deemed likely to occur do occur or fail to occur.",
        "label": "Commitments and Contingencies",
        "terseLabel": "Commitments and contingent liabilities"
       }
      }
     },
     "localname": "CommitmentsAndContingencies",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commitments and Contingencies Disclosure [Abstract]",
        "terseLabel": "Commitments and Contingencies Disclosure [Abstract]"
       }
      }
     },
     "localname": "CommitmentsAndContingenciesDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureTextBlock": {
     "auth_ref": [
      "r327",
      "r328",
      "r329",
      "r333"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for commitments and contingencies.",
        "label": "Commitments and Contingencies Disclosure [Text Block]",
        "verboseLabel": "Off-Balance-Sheet Financial Instruments and Concentrations of Credit Risk"
       }
      }
     },
     "localname": "CommitmentsAndContingenciesDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRisk"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CommitmentsToExtendCreditMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loan commitments are legally binding commitments to extend credit to a counterparty under certain terms and conditions.",
        "label": "Commitments to Extend Credit [Member]",
        "terseLabel": "Commitments to extend credit"
       }
      }
     },
     "localname": "CommitmentsToExtendCreditMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommonStockCapitalSharesReservedForFutureIssuance": {
     "auth_ref": [
      "r32"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate number of common shares reserved for future issuance.",
        "label": "Common Stock, Capital Shares Reserved for Future Issuance",
        "terseLabel": "Number of shares of common stock reserved for issuance (in shares)"
       }
      }
     },
     "localname": "CommonStockCapitalSharesReservedForFutureIssuance",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockDividendsPerShareDeclared": {
     "auth_ref": [
      "r345"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate dividends declared during the period for each share of common stock outstanding.",
        "label": "Common Stock, Dividends, Per Share, Declared",
        "terseLabel": "Cash dividends declared (usd per share)"
       }
      }
     },
     "localname": "CommonStockDividendsPerShareDeclared",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquityParenthetical"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_CommonStockIncludingAdditionalPaidInCapitalMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Common stock held by shareholders with par value plus amounts in excess of par value or issuance value (in cases of no-par value stock).",
        "label": "Common Stock Including Additional Paid in Capital [Member]",
        "terseLabel": "Common stock and additional paid-in capital"
       }
      }
     },
     "localname": "CommonStockIncludingAdditionalPaidInCapitalMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommonStockNumberOfSharesParValueAndOtherDisclosuresAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock, Number of Shares, Par Value and Other Disclosures [Abstract]",
        "terseLabel": "Common stock"
       }
      }
     },
     "localname": "CommonStockNumberOfSharesParValueAndOtherDisclosuresAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CommonStockDetails",
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CommonStockParOrStatedValuePerShare": {
     "auth_ref": [
      "r18"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Face amount or stated value per share of common stock.",
        "label": "Common Stock, Par or Stated Value Per Share",
        "terseLabel": "Common stock, par value (usd per share)"
       }
      }
     },
     "localname": "CommonStockParOrStatedValuePerShare",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_CommonStockSharesAuthorized": {
     "auth_ref": [
      "r18"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The maximum number of common shares permitted to be issued by an entity's charter and bylaws.",
        "label": "Common Stock, Shares Authorized",
        "terseLabel": "Number of shares authorized (in shares)"
       }
      }
     },
     "localname": "CommonStockSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockSharesIssued": {
     "auth_ref": [
      "r18"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total number of common shares of an entity that have been sold or granted to shareholders (includes common shares that were issued, repurchased and remain in the treasury). These shares represent capital invested by the firm's shareholders and owners, and may be all or only a portion of the number of shares authorized. Shares issued include shares outstanding and shares held in the treasury.",
        "label": "Common Stock, Shares, Issued",
        "terseLabel": "Number of shares issued (in shares)"
       }
      }
     },
     "localname": "CommonStockSharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockSharesOutstanding": {
     "auth_ref": [
      "r18",
      "r340"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares of common stock outstanding. Common stock represent the ownership interest in a corporation.",
        "label": "Common Stock, Shares, Outstanding",
        "periodEndLabel": "Balance (in shares)",
        "periodStartLabel": "Balance (in shares)",
        "terseLabel": "Number of shares outstanding (in shares)"
       }
      }
     },
     "localname": "CommonStockSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets",
      "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquity"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockValue": {
     "auth_ref": [
      "r18"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 5.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate par or stated value of issued nonredeemable common stock (or common stock redeemable solely at the option of the issuer). This item includes treasury stock repurchased by the entity. Note: elements for number of nonredeemable common shares, par value and other disclosure concepts are in another section within stockholders' equity.",
        "label": "Common Stock, Value, Issued",
        "terseLabel": "Common stock, one cent par value per share",
        "verboseLabel": "Common stock"
       }
      }
     },
     "localname": "CommonStockValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CompensatingBalanceAmount": {
     "auth_ref": [
      "r25"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of a specific compensating balance arrangement that is maintained under an agreement for a bank loan or future credit availability.",
        "label": "Compensating Balance, Amount",
        "terseLabel": "Contractual clearing balance"
       }
      }
     },
     "localname": "CompensatingBalanceAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CashandCashEquivalentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Compliance with Regulatory Capital Requirements under Banking Regulations [Line Items]",
        "terseLabel": "Compliance with Regulatory Capital Requirements under Banking Regulations [Line Items]"
       }
      }
     },
     "localname": "ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Components of Deferred Tax Assets and Liabilities [Abstract]",
        "verboseLabel": "Components of deferred tax assets and liabilities"
       }
      }
     },
     "localname": "ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ComprehensiveIncomeNetOfTax": {
     "auth_ref": [
      "r58",
      "r60",
      "r61",
      "r69",
      "r638",
      "r703"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax of increase (decrease) in equity from transactions and other events and circumstances from net income and other comprehensive income, attributable to parent entity. Excludes changes in equity resulting from investments by owners and distributions to owners.",
        "label": "Comprehensive Income (Loss), Net of Tax, Attributable to Parent",
        "terseLabel": "Comprehensive income"
       }
      }
     },
     "localname": "ComprehensiveIncomeNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest": {
     "auth_ref": [
      "r58",
      "r60",
      "r68",
      "r472",
      "r480",
      "r637",
      "r702"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax of increase (decrease) in equity from transactions and other events and circumstances from net income and other comprehensive income. Excludes changes in equity resulting from investments by owners and distributions to owners.",
        "label": "Comprehensive Income (Loss), Net of Tax, Including Portion Attributable to Noncontrolling Interest",
        "totalLabel": "Comprehensive income"
       }
      }
     },
     "localname": "ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ComprehensiveIncomeNoteTextBlock": {
     "auth_ref": [
      "r67",
      "r79",
      "r636",
      "r701"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for comprehensive income, which includes, but is not limited to, 1) the amount of income tax expense or benefit allocated to each component of other comprehensive income, including reclassification adjustments, 2) the reclassification adjustments for each classification of other comprehensive income and 3) the ending accumulated balances for each component of comprehensive income.",
        "label": "Comprehensive Income (Loss) Note [Text Block]",
        "terseLabel": "Other Comprehensive Income (Loss)"
       }
      }
     },
     "localname": "ComprehensiveIncomeNoteTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLoss"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ComprehensiveIncomePolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for comprehensive income.",
        "label": "Comprehensive Income, Policy [Policy Text Block]",
        "terseLabel": "Comprehensive Income (Loss)"
       }
      }
     },
     "localname": "ComprehensiveIncomePolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock": {
     "auth_ref": [
      "r1",
      "r121",
      "r471"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for condensed financial information, including the financial position, cash flows, and the results of operations of the registrant (parent company) as of the same dates or for the same periods for which audited consolidated financial statements are being presented. Alternatively, the details of this disclosure can be reported by the specific parent company taxonomy elements, indicating the appropriate date and period contexts in an instance document.",
        "label": "Condensed Financial Information of Parent Company Only Disclosure [Text Block]",
        "verboseLabel": "Condensed Financial Information of Parent"
       }
      }
     },
     "localname": "CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParent"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ConsolidationPolicyTextBlock": {
     "auth_ref": [
      "r109",
      "r475"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy regarding (1) the principles it follows in consolidating or combining the separate financial statements, including the principles followed in determining the inclusion or exclusion of subsidiaries or other entities in the consolidated or combined financial statements and (2) its treatment of interests (for example, common stock, a partnership interest or other means of exerting influence) in other entities, for example consolidation or use of the equity or cost methods of accounting.  The accounting policy may also address the accounting treatment for intercompany accounts and transactions, noncontrolling interest, and the income statement treatment in consolidation for issuances of stock by a subsidiary.",
        "label": "Consolidation, Policy [Policy Text Block]",
        "terseLabel": "Principles of Consolidation"
       }
      }
     },
     "localname": "ConsolidationPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ConstructionLoansMember": {
     "auth_ref": [
      "r731"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A borrowing arrangement which provides the entity constructing a facility (such as a building and a landfill) with funds to effect construction, generally on a draw down, or as needed, basis.",
        "label": "Construction Loans [Member]",
        "terseLabel": "Construction"
       }
      }
     },
     "localname": "ConstructionLoansMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesCompositionofAllowanceforLoansLossesbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesFinancingReceivableandAllowanceElementbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesRiskRatingsbySegmentDetails",
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails",
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansNonaccrualLoansDetails",
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansPortfolioDetails",
      "http://www.thefirst.com/role/LoansPreModificationandPostModificationOutstandingRecordedInvestmentDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandAssociatedSpecificReservesDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandSpecificReserveDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ConsumerPortfolioSegmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Portfolio segment of the company's total financing receivables related to consumer receivables.",
        "label": "Consumer Portfolio Segment [Member]",
        "verboseLabel": "Consumer"
       }
      }
     },
     "localname": "ConsumerPortfolioSegmentMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesCompositionofAllowanceforLoansLossesbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesFinancingReceivableandAllowanceElementbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails",
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails",
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansModificationStatusesbyPortfolioSegmentDetails",
      "http://www.thefirst.com/role/LoansNonaccrualLoansDetails",
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansPortfolioDetails",
      "http://www.thefirst.com/role/LoansPreModificationandPostModificationOutstandingRecordedInvestmentDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandAssociatedSpecificReservesDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandSpecificReserveDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CoreDepositsMember": {
     "auth_ref": [
      "r671"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Entity's long-term relationships with depositors, commonly known as core deposit intangibles, which are separate from the financial instruments themselves.",
        "label": "Core Deposits [Member]",
        "terseLabel": "Core Deposits"
       }
      }
     },
     "localname": "CoreDepositsMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CorporateDebtSecuritiesMember": {
     "auth_ref": [
      "r367",
      "r393",
      "r720"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt securities issued by domestic or foreign corporate business, banks and other entities with a promise of repayment.",
        "label": "Corporate Debt Securities [Member]",
        "terseLabel": "Corporate securities"
       }
      }
     },
     "localname": "CorporateDebtSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesTemporarilyImpairedDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CurrentFederalTaxExpenseBenefit": {
     "auth_ref": [
      "r114",
      "r441",
      "r451"
     ],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_FederalIncomeTaxExpenseBenefitContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current federal tax expense (benefit) pertaining to income (loss) from continuing operations.",
        "label": "Current Federal Tax Expense (Benefit)",
        "terseLabel": "Current"
       }
      }
     },
     "localname": "CurrentFederalTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtAndCapitalLeaseObligations": {
     "auth_ref": [
      "r628",
      "r698"
     ],
     "calculation": {
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of short-term and long-term debt and lease obligation.",
        "label": "Debt and Lease Obligation",
        "totalLabel": "Total borrowed funds"
       }
      }
     },
     "localname": "DebtAndCapitalLeaseObligations",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtAndEquitySecuritiesGainLoss": {
     "auth_ref": [
      "r72",
      "r73"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 17.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 2.0,
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesGainsandLossesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unrealized and realized gain (loss) on investment in debt and equity securities.",
        "label": "Debt and Equity Securities, Gain (Loss)",
        "negatedLabel": "Net gain on sale or call of securities",
        "negatedTerseLabel": "Gain on sale of investments",
        "netLabel": "Net securities gains",
        "terseLabel": "Net securities gains",
        "totalLabel": "Net gain"
       }
      }
     },
     "localname": "DebtAndEquitySecuritiesGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows",
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome",
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesGainsandLossesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtDisclosureTextBlock": {
     "auth_ref": [
      "r339"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for information about short-term and long-term debt arrangements, which includes amounts of borrowings under each line of credit, note payable, commercial paper issue, bonds indenture, debenture issue, own-share lending arrangements and any other contractual agreement to repay funds, and about the underlying arrangements, rationale for a classification as long-term, including repayment terms, interest rates, collateral provided, restrictions on use of assets and activities, whether or not in compliance with debt covenants, and other matters important to users of the financial statements, such as the effects of refinancing and noncompliance with debt covenants.",
        "label": "Debt Disclosure [Text Block]",
        "verboseLabel": "Borrowed Funds"
       }
      }
     },
     "localname": "DebtDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFunds"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DebtInstrumentLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Debt Instrument [Line Items]",
        "terseLabel": "Debt Instrument [Line Items]"
       }
      }
     },
     "localname": "DebtInstrumentLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentTable": {
     "auth_ref": [
      "r30",
      "r115",
      "r341",
      "r342",
      "r343",
      "r344",
      "r534",
      "r535",
      "r537",
      "r673"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A table or schedule providing information pertaining to long-term debt instruments or arrangements, including identification, terms, features, collateral requirements and other information necessary to a fair presentation. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the company, if longer.",
        "label": "Schedule of Long-term Debt Instruments [Table]",
        "terseLabel": "Schedule of Long-term Debt Instruments [Table]"
       }
      }
     },
     "localname": "DebtInstrumentTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleAccumulatedGrossUnrealizedGainLossBeforeTax": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before tax, of unrealized gain (loss) in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-sale, Accumulated Gross Unrealized Gain (Loss), before Tax",
        "negatedLabel": "Unrealized gain on securities available for sale"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleAccumulatedGrossUnrealizedGainLossBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger": {
     "auth_ref": [
      "r274",
      "r305",
      "r308"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for more than 12 months, without allowance for credit loss. Includes beneficial interest in securitized financial asset.",
        "label": "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer",
        "terseLabel": "12 months or more, Fair Value"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesTemporarilyImpairedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss": {
     "auth_ref": [
      "r274",
      "r305"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for 12 months or longer, without allowance for credit loss. Includes beneficial interest in securitized financial asset.",
        "label": "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss",
        "negatedLabel": "12 months or more, Unrealized Losses"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesTemporarilyImpairedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months": {
     "auth_ref": [
      "r274",
      "r305",
      "r308"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for less than 12 months, without allowance for credit loss. Includes beneficial interest in securitized financial asset.",
        "label": "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months",
        "terseLabel": "Less than 12 months, Fair Value"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesTemporarilyImpairedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss": {
     "auth_ref": [
      "r274",
      "r305"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for less than 12 months, without allowance for credit loss. Includes beneficial interest in securitized financial asset.",
        "label": "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months, Accumulated Loss",
        "negatedLabel": "Less than 12 months, Unrealized Losses"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesTemporarilyImpairedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleRestricted": {
     "auth_ref": [
      "r570"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of restricted investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-sale, Restricted",
        "terseLabel": "Securities pledged as collateral"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleRestricted",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleTable": {
     "auth_ref": [
      "r277"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-sale [Table]",
        "terseLabel": "Debt Securities, Available-for-sale [Table]"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesNarrativeDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesTemporarilyImpairedDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueAFSDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition": {
     "auth_ref": [
      "r271",
      "r302",
      "r308"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in unrealized loss position without allowance for credit loss.",
        "label": "Debt Securities, Available-for-sale, Unrealized Loss Position",
        "terseLabel": "Fair Value"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesTemporarilyImpairedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss": {
     "auth_ref": [
      "r272",
      "r303"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in unrealized loss position, without allowance for credit loss. Includes beneficial interest in securitized financial asset.",
        "label": "Debt Securities, Available-for-sale, Unrealized Loss Position, Accumulated Loss",
        "negatedLabel": "Unrealized Losses"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesTemporarilyImpairedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesGainLoss": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesGainsandLossesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unrealized and realized gain (loss) on investment in debt security measured at amortized cost (held-to-maturity), investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale) and investment in debt security measured at fair value with change in fair value recognized in net income (trading).",
        "label": "Debt Securities, Gain (Loss)",
        "totalLabel": "Net gain",
        "verboseLabel": "Gain on sale of securities"
       }
      }
     },
     "localname": "DebtSecuritiesGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesNarrativeDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesGainsandLossesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesHeldToMaturitySoldAmount": {
     "auth_ref": [
      "r241"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in debt security, measured at amortized cost, sold.",
        "label": "Debt Securities, Held-to-maturity, Sold, Amount",
        "terseLabel": "Cumulative book value"
       }
      }
     },
     "localname": "DebtSecuritiesHeldToMaturitySoldAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredCompensationArrangementWithIndividualRequisiteServicePeriod1": {
     "auth_ref": [
      "r356",
      "r408"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Minimum period the individual is required to perform services to be fully vested under the deferred compensation arrangement, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Deferred Compensation Arrangement with Individual, Requisite Service Period",
        "terseLabel": "Defined contribution plan service period (in months)"
       }
      }
     },
     "localname": "DeferredCompensationArrangementWithIndividualRequisiteServicePeriod1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_DeferredFederalIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r114",
      "r442",
      "r451"
     ],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_FederalIncomeTaxExpenseBenefitContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred federal income tax expense (benefit) pertaining to income (loss) from continuing operations.",
        "label": "Deferred Federal Income Tax Expense (Benefit)",
        "terseLabel": "Deferred"
       }
      }
     },
     "localname": "DeferredFederalIncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r101",
      "r114",
      "r442",
      "r451",
      "r452",
      "r453"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 11.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred income tax expense (benefit) pertaining to income (loss) from continuing operations.",
        "label": "Deferred Income Tax Expense (Benefit)",
        "terseLabel": "Change in deferred taxes"
       }
      }
     },
     "localname": "DeferredIncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredIncomeTaxLiabilities": {
     "auth_ref": [
      "r15",
      "r16",
      "r435",
      "r617",
      "r684"
     ],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DeferredTaxAssetsLiabilitiesNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences.",
        "label": "Deferred Tax Liabilities, Gross",
        "negatedTotalLabel": "Total deferred tax liability"
       }
      }
     },
     "localname": "DeferredIncomeTaxLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsDerivativeInstruments": {
     "auth_ref": [
      "r439",
      "r440"
     ],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DeferredTaxAssetsNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from derivative instruments.",
        "label": "Deferred Tax Assets, Derivative Instruments",
        "terseLabel": "Unrealized loss on derivative instruments"
       }
      }
     },
     "localname": "DeferredTaxAssetsDerivativeInstruments",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsLiabilitiesNet": {
     "auth_ref": [
      "r436"
     ],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after allocation of valuation allowances and deferred tax liability, of deferred tax asset attributable to deductible differences and carryforwards, without jurisdictional netting.",
        "label": "Deferred Tax Assets, Net",
        "totalLabel": "Net deferred tax asset (liability)"
       }
      }
     },
     "localname": "DeferredTaxAssetsLiabilitiesNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsNet": {
     "auth_ref": [
      "r436"
     ],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredTaxAssetsLiabilitiesNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards.",
        "label": "Deferred Tax Assets, Net of Valuation Allowance",
        "totalLabel": "Total deferred tax asset"
       }
      }
     },
     "localname": "DeferredTaxAssetsNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsOther": {
     "auth_ref": [
      "r439",
      "r440"
     ],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredTaxAssetsNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before allocation of valuation allowance, of deferred tax asset attributable to deductible temporary differences, classified as other.",
        "label": "Deferred Tax Assets, Other",
        "verboseLabel": "Other assets"
       }
      }
     },
     "localname": "DeferredTaxAssetsOther",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses": {
     "auth_ref": [
      "r439",
      "r440"
     ],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails": {
       "order": 8.0,
       "parentTag": "us-gaap_DeferredTaxAssetsNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from the provision for loan losses.",
        "label": "Deferred Tax Assets, Tax Deferred Expense, Reserves and Accruals, Provision for Loan Losses",
        "verboseLabel": "Allowance for loan losses"
       }
      }
     },
     "localname": "DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilities": {
     "auth_ref": [
      "r429",
      "r436"
     ],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after deferred tax asset, of deferred tax liability attributable to taxable differences without jurisdictional netting.",
        "label": "Deferred Tax Liabilities, Net",
        "negatedTotalLabel": "Net deferred tax asset (liability)"
       }
      }
     },
     "localname": "DeferredTaxLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilitiesDerivatives": {
     "auth_ref": [
      "r439",
      "r440"
     ],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from derivatives.",
        "label": "Deferred Tax Liabilities, Derivatives",
        "negatedTerseLabel": "Unrealized gain on derivative instruments"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesDerivatives",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilitiesFinancingArrangements": {
     "auth_ref": [
      "r439",
      "r440"
     ],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from financing arrangements.",
        "label": "Deferred Tax Liabilities, Financing Arrangements",
        "negatedTerseLabel": "Net deferred loan costs"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesFinancingArrangements",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsGoodwill": {
     "auth_ref": [
      "r439",
      "r440",
      "r467",
      "r468"
     ],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from goodwill.",
        "label": "Deferred Tax Liabilities, Goodwill",
        "negatedTerseLabel": "Goodwill"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsGoodwill",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilitiesMortgageServicingRights": {
     "auth_ref": [
      "r439",
      "r440"
     ],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from mortgage servicing rights.",
        "label": "Deferred Tax Liabilities, Mortgage Servicing Rights",
        "negatedLabel": "Mortgage servicing rights"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesMortgageServicingRights",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilitiesPrepaidExpenses": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails": {
       "order": 7.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax consequences attributable to taxable temporary differences derived from prepaid expenses.",
        "label": "Deferred Tax Liabilities, Prepaid Expenses",
        "negatedLabel": "Prepaid expense"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesPrepaidExpenses",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment": {
     "auth_ref": [
      "r439",
      "r440"
     ],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from property, plant, and equipment.",
        "label": "Deferred Tax Liabilities, Property, Plant and Equipment",
        "negatedLabel": "Depreciation"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesPropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPensionPlanCurrentAndNoncurrentLiabilities": {
     "auth_ref": [
      "r358",
      "r365",
      "r619",
      "r689"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liability, recognized in statement of financial position, for defined benefit pension plan. Excludes other postretirement benefit plan.",
        "label": "Liability, Defined Benefit Pension Plan",
        "terseLabel": "Accrued pension liability"
       }
      }
     },
     "localname": "DefinedBenefitPensionPlanCurrentAndNoncurrentLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax": {
     "auth_ref": [
      "r52",
      "r380"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before tax, of accumulated other comprehensive income (loss) for gain (loss) of defined benefit plan, that has not been recognized in net periodic benefit (cost) credit.",
        "label": "Defined Benefit Plan, Accumulated Other Comprehensive Income (Loss), Gain (Loss), before Tax",
        "terseLabel": "Unamortized net actuarial gain"
       }
      }
     },
     "localname": "DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansScheduleofNetPeriodicBenefitCostNotYetRecognizedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanActuarialGainLoss": {
     "auth_ref": [
      "r362"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain (loss) from change in actuarial assumptions which (increases) decreases benefit obligation of defined benefit plan. Assumptions include, but are not limited to, interest, mortality, employee turnover, salary, and temporary deviation from substantive plan.",
        "label": "Defined Benefit Plan, Benefit Obligation, Actuarial Gain (Loss)",
        "negatedTerseLabel": "Unamortized gain"
       }
      }
     },
     "localname": "DefinedBenefitPlanActuarialGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansAccumulatedPostRetirementBenefitObligationFundedStatusandNetPeriodicBenefitCostDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses": {
     "auth_ref": [
      "r359",
      "r378",
      "r391",
      "r393",
      "r394"
     ],
     "calculation": {
      "http://www.thefirst.com/role/EmployeeBenefitPlansAccumulatedPostRetirementBenefitObligationFundedStatusandNetPeriodicBenefitCostDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain (loss) recognized in net periodic benefit (cost) credit of defined benefit plan.",
        "label": "Defined Benefit Plan, Amortization of Gain (Loss)",
        "negatedLabel": "Amortization of loss"
       }
      }
     },
     "localname": "DefinedBenefitPlanAmortizationOfGainsLosses",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansAccumulatedPostRetirementBenefitObligationFundedStatusandNetPeriodicBenefitCostDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanAmountsThatWillBeAmortizedFromAccumulatedOtherComprehensiveIncomeLossInNextFiscalYearAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Expected Amortization, Next Fiscal Year [Abstract]",
        "terseLabel": "Portion to Be Recognized in Income in 2021"
       }
      }
     },
     "localname": "DefinedBenefitPlanAmountsThatWillBeAmortizedFromAccumulatedOtherComprehensiveIncomeLossInNextFiscalYearAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansScheduleofNetPeriodicBenefitCostNotYetRecognizedDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate": {
     "auth_ref": [
      "r381"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average rate for present value of future retirement benefits cash flows, used to determine net periodic benefit cost of defined benefit plan.",
        "label": "Defined Benefit Plan, Assumptions Used Calculating Net Periodic Benefit Cost, Discount Rate",
        "terseLabel": "Weighted average discount rate for net periodic cost"
       }
      }
     },
     "localname": "DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansAccumulatedPostRetirementBenefitObligationFundedStatusandNetPeriodicBenefitCostDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DefinedBenefitPlanBenefitObligation": {
     "auth_ref": [
      "r360"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of actuarial present value of benefits attributed to service rendered by employee for defined benefit plan.",
        "label": "Defined Benefit Plan, Benefit Obligation",
        "negatedLabel": "Benefit obligation at end of period",
        "periodEndLabel": "Benefit obligation at end of period",
        "periodStartLabel": "Benefit obligation at beginning of year"
       }
      }
     },
     "localname": "DefinedBenefitPlanBenefitObligation",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansAccumulatedPostRetirementBenefitObligationFundedStatusandNetPeriodicBenefitCostDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanBenefitObligationBenefitsPaid": {
     "auth_ref": [
      "r363",
      "r397"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of payment to participant of defined benefit plan which decreases benefit obligation. For pension plan, payment includes, but is not limited to, pension benefits and death benefits. For other postretirement plan, payment includes, but is not limited to, prescription drug benefits, health care benefits, life insurance benefits, and legal, educational and advisory services.",
        "label": "Defined Benefit Plan, Benefit Obligation, Benefits Paid",
        "negatedTerseLabel": "Benefits paid"
       }
      }
     },
     "localname": "DefinedBenefitPlanBenefitObligationBenefitsPaid",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansAccumulatedPostRetirementBenefitObligationFundedStatusandNetPeriodicBenefitCostDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Defined Benefit Plan, Change in Benefit Obligation [Roll Forward]",
        "terseLabel": "Change in Benefit Obligations [Roll Forward]"
       }
      }
     },
     "localname": "DefinedBenefitPlanChangeInBenefitObligationRollForward",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansAccumulatedPostRetirementBenefitObligationFundedStatusandNetPeriodicBenefitCostDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanExpectedAmortizationNextFiscalYear": {
     "auth_ref": [
      "r388"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cost (credit) included in accumulated other comprehensive (income) loss expected to be recognized in net periodic benefit cost (credit) for fiscal year following most recent annual statement of financial position.",
        "label": "Defined Benefit Plan, Expected Amortization, Next Fiscal Year",
        "negatedLabel": "Net unrecognized post-retirement benefits included in accumulated other comprehensive income"
       }
      }
     },
     "localname": "DefinedBenefitPlanExpectedAmortizationNextFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansScheduleofNetPeriodicBenefitCostNotYetRecognizedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanExpectedAmortizationOfGainLossNextFiscalYear": {
     "auth_ref": [
      "r388"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount included in accumulated other comprehensive income (loss) for gain (loss) of defined benefit plan expected to be recognized in net periodic benefit (cost) credit for fiscal year following most recent annual statement of financial position.",
        "label": "Defined Benefit Plan, Expected Amortization of Gain (Loss), Next Fiscal Year",
        "negatedTerseLabel": "Unamortized net actuarial gain"
       }
      }
     },
     "localname": "DefinedBenefitPlanExpectedAmortizationOfGainLossNextFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansScheduleofNetPeriodicBenefitCostNotYetRecognizedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter": {
     "auth_ref": [
      "r375"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of benefit for defined benefit plan expected to be paid in five fiscal years after fifth fiscal year following current fiscal year.",
        "label": "Defined Benefit Plan, Expected Future Benefit Payment, after Year Five for Next Five Years",
        "terseLabel": "Expected future benefit payments in 2025 through 2028"
       }
      }
     },
     "localname": "DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths": {
     "auth_ref": [
      "r375"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of benefit for defined benefit plan expected to be paid in next fiscal year following current fiscal year.",
        "label": "Defined Benefit Plan, Expected Future Benefit Payment, Year One",
        "terseLabel": "Expected future benefit payments in 2021"
       }
      }
     },
     "localname": "DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive": {
     "auth_ref": [
      "r375"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of benefit for defined benefit plan expected to be paid in fifth fiscal year following current fiscal year.",
        "label": "Defined Benefit Plan, Expected Future Benefit Payment, Year Five",
        "terseLabel": "Expected future benefit payments in 2025"
       }
      }
     },
     "localname": "DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour": {
     "auth_ref": [
      "r375"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of benefit for defined benefit plan expected to be paid in fourth fiscal year following current fiscal year.",
        "label": "Defined Benefit Plan, Expected Future Benefit Payment, Year Four",
        "terseLabel": "Expected future benefit payments in 2024"
       }
      }
     },
     "localname": "DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree": {
     "auth_ref": [
      "r375"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of benefit for defined benefit plan expected to be paid in third fiscal year following current fiscal year.",
        "label": "Defined Benefit Plan, Expected Future Benefit Payment, Year Three",
        "terseLabel": "Expected future benefit payments in 2023"
       }
      }
     },
     "localname": "DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo": {
     "auth_ref": [
      "r375"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of benefit for defined benefit plan expected to be paid in second fiscal year following current fiscal year.",
        "label": "Defined Benefit Plan, Expected Future Benefit Payment, Year Two",
        "terseLabel": "Expected future benefit payments in 2022"
       }
      }
     },
     "localname": "DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureEmployerContributionsRemainderOfFiscalYear": {
     "auth_ref": [
      "r392",
      "r394"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of contribution expected to be received by defined benefit plan from employer in remainder of current fiscal year. Excludes contribution previously paid by employer in current fiscal year.",
        "label": "Defined Benefit Plan, Expected Future Employer Contributions, Remainder of Fiscal Year",
        "terseLabel": "Estimated plan expense"
       }
      }
     },
     "localname": "DefinedBenefitPlanExpectedFutureEmployerContributionsRemainderOfFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanFundedStatusOfPlan": {
     "auth_ref": [
      "r358",
      "r365",
      "r393"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of funded (unfunded) status of defined benefit plan, measured as difference between fair value of plan assets and benefit obligation. Includes, but is not limited to, overfunded (underfunded) status.",
        "label": "Defined Benefit Plan, Funded (Unfunded) Status of Plan",
        "terseLabel": "Accrued benefit cost"
       }
      }
     },
     "localname": "DefinedBenefitPlanFundedStatusOfPlan",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansAccumulatedPostRetirementBenefitObligationFundedStatusandNetPeriodicBenefitCostDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanFundedStatusOfPlanAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Funded (Unfunded) Status of Plan [Abstract]",
        "terseLabel": "Funded Status of Plan [Abstract]"
       }
      }
     },
     "localname": "DefinedBenefitPlanFundedStatusOfPlanAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansAccumulatedPostRetirementBenefitObligationFundedStatusandNetPeriodicBenefitCostDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanInterestCost": {
     "auth_ref": [
      "r359",
      "r361",
      "r377",
      "r390",
      "r393",
      "r394"
     ],
     "calculation": {
      "http://www.thefirst.com/role/EmployeeBenefitPlansAccumulatedPostRetirementBenefitObligationFundedStatusandNetPeriodicBenefitCostDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cost recognized for passage of time related to defined benefit plan.",
        "label": "Defined Benefit Plan, Interest Cost",
        "terseLabel": "Interest cost"
       }
      }
     },
     "localname": "DefinedBenefitPlanInterestCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansAccumulatedPostRetirementBenefitObligationFundedStatusandNetPeriodicBenefitCostDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost": {
     "auth_ref": [
      "r376",
      "r389",
      "r393",
      "r394"
     ],
     "calculation": {
      "http://www.thefirst.com/role/EmployeeBenefitPlansAccumulatedPostRetirementBenefitObligationFundedStatusandNetPeriodicBenefitCostDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of net periodic benefit cost (credit) for defined benefit plan.",
        "label": "Defined Benefit Plan, Net Periodic Benefit Cost (Credit)",
        "totalLabel": "Net periodic benefit cost"
       }
      }
     },
     "localname": "DefinedBenefitPlanNetPeriodicBenefitCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansAccumulatedPostRetirementBenefitObligationFundedStatusandNetPeriodicBenefitCostDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Net Periodic Benefit Cost (Credit) [Abstract]",
        "terseLabel": "Components of Net Periodic Benefit Cost [Abstract]"
       }
      }
     },
     "localname": "DefinedBenefitPlanNetPeriodicBenefitCostAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansAccumulatedPostRetirementBenefitObligationFundedStatusandNetPeriodicBenefitCostDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlansGeneralInformation": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Description of defined benefit pension and other postretirement plans.",
        "label": "Defined Benefit Plan, Description",
        "terseLabel": "Defined benefit plans, general information"
       }
      }
     },
     "localname": "DefinedBenefitPlansGeneralInformation",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedContributionPlanCostRecognized": {
     "auth_ref": [
      "r398"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cost for defined contribution plan.",
        "label": "Defined Contribution Plan, Cost",
        "terseLabel": "Expense related to 401(k) plan"
       }
      }
     },
     "localname": "DefinedContributionPlanCostRecognized",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DemandDepositAccounts": {
     "auth_ref": [
      "r626"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of money in accounts that may bear interest and that the depositor is entitled to withdraw at any time without prior notice.",
        "label": "Demand Deposit Accounts",
        "terseLabel": "Demand deposits"
       }
      }
     },
     "localname": "DemandDepositAccounts",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepositAccountMember": {
     "auth_ref": [
      "r350"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bank account at depository institution allowing money to be withdrawn or deposited by account holder.",
        "label": "Deposit Account [Member]",
        "terseLabel": "Service charges on deposit accounts"
       }
      }
     },
     "localname": "DepositAccountMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DepositLiabilitiesDisclosuresTextBlock": {
     "auth_ref": [
      "r626",
      "r669"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for deposit liabilities including data and tables. It may include a description of the entity's deposit liabilities, the aggregate amount of time deposits (including certificates of deposit) in denominations of $100,000 or more at the balance sheet date; the aggregate amount of any demand deposits that have been reclassified as loan balances, such as overdrafts, at the balance sheet date; deposits that are received on terms other than those in the normal course of business, the amount of accrued interest on deposit liabilities; securities, mortgage loans or other financial instruments that serve as collateral for deposits; for time deposits having a remaining term of more than one year, the aggregate amount of maturities for each of the five years following the balance sheet date; and the weighted average interest rate for all deposit liabilities held by the entity.",
        "label": "Deposit Liabilities Disclosures [Text Block]",
        "verboseLabel": "Certificates of Deposit"
       }
      }
     },
     "localname": "DepositLiabilitiesDisclosuresTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CertificatesofDeposit"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_Deposits": {
     "auth_ref": [
      "r626"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.thefirst.com/role/QuarterlyInformationDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate of all deposit liabilities held by the entity, including foreign and domestic, interest and noninterest bearing; may include demand deposits, saving deposits, Negotiable Order of Withdrawal (NOW) and time deposits among others.",
        "label": "Deposits",
        "totalLabel": "Total deposits",
        "verboseLabel": "Deposits"
       }
      }
     },
     "localname": "Deposits",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets",
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepositsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deposits [Abstract]"
       }
      }
     },
     "localname": "DepositsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DepositsMoneyMarketDeposits": {
     "auth_ref": [
      "r626"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deposits in accounts that offer many of the same services as checking accounts although transactions may be somewhat more limited, share some of the characteristics of a money market fund and are insured by the Federal government, also known as money market accounts.",
        "label": "Deposits, Money Market Deposits",
        "terseLabel": "Money market deposits"
       }
      }
     },
     "localname": "DepositsMoneyMarketDeposits",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepositsNegotiableOrderOfWithdrawalNOW": {
     "auth_ref": [
      "r626"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deposits in interest-bearing transaction accounts at banks or savings and loans, that are restricted in regard to ownership and can usually only be held by individuals, nonprofit entities and governments. Negotiable order of withdrawal accounts differ from money market demand accounts as they typically have higher reserve requirements and no limit on the number of checks that can be written.",
        "label": "Deposits, Negotiable Order of Withdrawal (NOW)",
        "terseLabel": "NOW deposits"
       }
      }
     },
     "localname": "DepositsNegotiableOrderOfWithdrawalNOW",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepositsSavingsDeposits": {
     "auth_ref": [
      "r626"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of interest bearing deposits with no stated maturity, which may include passbook and statement savings accounts and money-market deposit accounts (MMDAs).",
        "label": "Deposits, Savings Deposits",
        "terseLabel": "Savings deposits"
       }
      }
     },
     "localname": "DepositsSavingsDeposits",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_Depreciation": {
     "auth_ref": [
      "r101",
      "r322"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 16.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of expense recognized in the current period that reflects the allocation of the cost of tangible assets over the assets' useful lives. Includes production and non-production related depreciation.",
        "label": "Depreciation",
        "terseLabel": "Depreciation"
       }
      }
     },
     "localname": "Depreciation",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeAssets": {
     "auth_ref": [
      "r37",
      "r39",
      "r521"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value, after the effects of master netting arrangements, of a financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes assets not subject to a master netting arrangement and not elected to be offset.",
        "label": "Derivative Asset",
        "terseLabel": "Interest rate swap agreements"
       }
      }
     },
     "localname": "DerivativeAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeCollateralRightToReclaimCash": {
     "auth_ref": [
      "r38",
      "r40",
      "r502"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of right to receive cash collateral under master netting arrangements that have not been offset against derivative liabilities.",
        "label": "Derivative, Collateral, Right to Reclaim Cash",
        "terseLabel": "Collateral posted, cash"
       }
      }
     },
     "localname": "DerivativeCollateralRightToReclaimCash",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeCollateralRightToReclaimSecurities": {
     "auth_ref": [
      "r38",
      "r40"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of right to receive securities collateral under master netting arrangements that have not been offset against derivative liabilities.",
        "label": "Derivative, Collateral, Right to Reclaim Securities",
        "terseLabel": "Collateral posted, securities"
       }
      }
     },
     "localname": "DerivativeCollateralRightToReclaimSecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeContractTypeDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial instrument or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset.",
        "label": "Derivative Contract [Domain]",
        "terseLabel": "Derivative Contract [Domain]"
       }
      }
     },
     "localname": "DerivativeContractTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails",
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails",
      "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DerivativeFairValueOfDerivativeNet": {
     "auth_ref": [
      "r521"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of the assets less the liabilities of a derivative or group of derivatives.",
        "label": "Derivative, Fair Value, Net",
        "terseLabel": "Fair Value"
       }
      }
     },
     "localname": "DerivativeFairValueOfDerivativeNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeFixedInterestRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fixed interest rate related to the interest rate derivative.",
        "label": "Derivative, Fixed Interest Rate",
        "terseLabel": "Fixed Rate Paid"
       }
      }
     },
     "localname": "DerivativeFixedInterestRate",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DerivativeInstrumentRiskAxis": {
     "auth_ref": [
      "r490",
      "r491",
      "r494",
      "r496"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of derivative contract.",
        "label": "Derivative Instrument [Axis]",
        "terseLabel": "Derivative Instrument [Axis]"
       }
      }
     },
     "localname": "DerivativeInstrumentRiskAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails",
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails",
      "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRiskDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Instruments and Hedging Activities Disclosure [Abstract]",
        "terseLabel": "Derivative Instruments and Hedging Activities Disclosure [Abstract]"
       }
      }
     },
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock": {
     "auth_ref": [
      "r506"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for derivative instruments and hedging activities including, but not limited to, risk management strategies, non-hedging derivative instruments, assets, liabilities, revenue and expenses, and methodologies and assumptions used in determining the amounts.",
        "label": "Derivative Instruments and Hedging Activities Disclosure [Text Block]",
        "terseLabel": "Financial Derivative Instruments"
       }
      }
     },
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstruments"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis": {
     "auth_ref": [
      "r487",
      "r490",
      "r494"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of hedging relationship.",
        "label": "Hedging Relationship [Axis]",
        "terseLabel": "Hedging Relationship [Axis]"
       }
      }
     },
     "localname": "DerivativeInstrumentsGainLossByHedgingRelationshipAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails",
      "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRiskDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeLiabilities": {
     "auth_ref": [
      "r37",
      "r39",
      "r521"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes liabilities not subject to a master netting arrangement and not elected to be offset.",
        "label": "Derivative Liability",
        "terseLabel": "Derivative liabilities"
       }
      }
     },
     "localname": "DerivativeLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeLiabilityNotionalAmount": {
     "auth_ref": [
      "r482",
      "r483",
      "r485"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Nominal or face amount used to calculate payments on the derivative liability.",
        "label": "Derivative Liability, Notional Amount",
        "terseLabel": "Notional Amount",
        "verboseLabel": "Notional principal amounts"
       }
      }
     },
     "localname": "DerivativeLiabilityNotionalAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails",
      "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRiskDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Derivative [Line Items]",
        "terseLabel": "Derivative [Line Items]"
       }
      }
     },
     "localname": "DerivativeLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeNotionalAmount": {
     "auth_ref": [
      "r483",
      "r485"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Nominal or face amount used to calculate payment on derivative.",
        "label": "Derivative, Notional Amount",
        "terseLabel": "Derivative notional amount"
       }
      }
     },
     "localname": "DerivativeNotionalAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeNumberOfInstrumentsHeld": {
     "auth_ref": [
      "r483",
      "r485"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of derivative instruments of a particular group held by the entity.",
        "label": "Derivative, Number of Instruments Held",
        "terseLabel": "Number of Positions",
        "verboseLabel": "Number of derivative instruments (derivative)"
       }
      }
     },
     "localname": "DerivativeNumberOfInstrumentsHeld",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails",
      "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRiskDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "us-gaap_DerivativeTable": {
     "auth_ref": [
      "r481",
      "r484",
      "r485",
      "r487",
      "r488",
      "r493",
      "r494",
      "r500",
      "r503",
      "r505"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule that describes and identifies a derivative or group of derivatives on a disaggregated basis, such as for individual instruments, or small groups of similar instruments. May include a combination of the type of instrument, risks being hedged, notional amount, hedge designation, related hedged item, inception date, maturity date, or other relevant item.",
        "label": "Derivative [Table]",
        "terseLabel": "Derivative [Table]"
       }
      }
     },
     "localname": "DerivativeTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativesMethodsOfAccountingHedgingDerivatives": {
     "auth_ref": [
      "r498"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for derivatives used in hedging relationships, which may include how gains or losses are recognized and presented in the financial statements, and amortization policies for deferred amounts.",
        "label": "Derivatives, Methods of Accounting, Hedging Derivatives [Policy Text Block]",
        "terseLabel": "Derivative Financial Instruments Designated as Hedges"
       }
      }
     },
     "localname": "DerivativesMethodsOfAccountingHedgingDerivatives",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DerivativesPolicyTextBlock": {
     "auth_ref": [
      "r109",
      "r120",
      "r481",
      "r484",
      "r487",
      "r488",
      "r501"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for its derivative instruments and hedging activities.",
        "label": "Derivatives, Policy [Policy Text Block]",
        "terseLabel": "Financial Derivative Instruments"
       }
      }
     },
     "localname": "DerivativesPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DesignatedAsHedgingInstrumentMember": {
     "auth_ref": [
      "r487"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative instrument designated as hedging instrument under Generally Accepted Accounting Principles (GAAP).",
        "label": "Designated as Hedging Instrument [Member]",
        "terseLabel": "Designated as Hedging Instrument"
       }
      }
     },
     "localname": "DesignatedAsHedgingInstrumentMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails",
      "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock": {
     "auth_ref": [
      "r425"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for share-based payment arrangement.",
        "label": "Share-based Payment Arrangement [Text Block]",
        "verboseLabel": "Stock Options and Stock-Based Compensation"
       }
      }
     },
     "localname": "DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-based Payment Arrangement [Abstract]",
        "terseLabel": "Share-based Payment Arrangement [Abstract]"
       }
      }
     },
     "localname": "DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DisclosureOfReclassificationAmountTextBlock": {
     "auth_ref": [
      "r79"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for any adjustments made during the period to avoid double counting in comprehensive income items displayed as part of net income that also had been displayed as part of other comprehensive income in that period or earlier periods. These adjustments include reclassifications to net income of items in accumulated comprehensive income, such as deferred gains or losses on qualifying hedges when hedged item reported in net income, holding gains or losses on available-for-sale securities transferred into trading category, unrealized holding gains or losses on debt securities transferred from held-to-maturity category into available-for-sale category and accumulated translation adjustment attributable to foreign subsidiary or investment in foreign entity upon sale or liquidation.",
        "label": "Disclosure of Reclassification Amount [Text Block]",
        "verboseLabel": "Reclassifications"
       }
      }
     },
     "localname": "DisclosureOfReclassificationAmountTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Reclassifications"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DisclosureOfRepurchaseAgreementsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Repurchase Agreements [Abstract]",
        "terseLabel": "Disclosure of Repurchase Agreements [Abstract]"
       }
      }
     },
     "localname": "DisclosureOfRepurchaseAgreementsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DividendsCash": {
     "auth_ref": [
      "r345",
      "r668"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of paid and unpaid cash dividends declared for classes of stock, for example, but not limited to, common and preferred.",
        "label": "Dividends, Cash",
        "negatedTerseLabel": "Cash dividends declared"
       }
      }
     },
     "localname": "DividendsCash",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DividendsPayableCurrentAndNoncurrent": {
     "auth_ref": [
      "r12",
      "r14",
      "r618",
      "r688"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of dividends declared but unpaid on equity securities issued by the entity and outstanding.",
        "label": "Dividends Payable",
        "terseLabel": "Dividends payable"
       }
      }
     },
     "localname": "DividendsPayableCurrentAndNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DividendsReceivable": {
     "auth_ref": [
      "r35"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of dividends declared but not received.",
        "label": "Dividends Receivable",
        "terseLabel": "Dividends receivable"
       }
      }
     },
     "localname": "DividendsReceivable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DoubtfulMember": {
     "auth_ref": [
      "r216",
      "r293"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A category of financing receivables that have all the weaknesses inherent in those classified as substandard, with the added characteristic that the weaknesses make collection or liquidation in full, on the basis of currently existing facts, conditions, and values, highly questionable and improbable.",
        "label": "Doubtful [Member]",
        "terseLabel": "8 Doubtful"
       }
      }
     },
     "localname": "DoubtfulMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesRiskRatingsbySegmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DueFromRelatedParties": {
     "auth_ref": [
      "r117",
      "r547",
      "r624",
      "r699"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For an unclassified balance sheet, amounts due from related parties including affiliates, employees, joint ventures, officers and stockholders, immediate families thereof, and pension funds.",
        "label": "Due from Related Parties",
        "terseLabel": "Loans to directors, officers and employees"
       }
      }
     },
     "localname": "DueFromRelatedParties",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EarningsPerShareAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share [Abstract]",
        "terseLabel": "Earnings Per Share [Abstract]"
       }
      }
     },
     "localname": "EarningsPerShareAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareBasic": {
     "auth_ref": [
      "r70",
      "r132",
      "r133",
      "r134",
      "r135",
      "r136",
      "r143",
      "r146",
      "r149",
      "r150",
      "r151",
      "r155",
      "r156",
      "r639",
      "r704"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of net income (loss) for the period per each share of common stock or unit outstanding during the reporting period.",
        "label": "Earnings Per Share, Basic",
        "terseLabel": "Basic earnings per common share (in usd per share)",
        "verboseLabel": "Basic EPS: Income available to common shareholders (in dollars per share)"
       }
      }
     },
     "localname": "EarningsPerShareBasic",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome",
      "http://www.thefirst.com/role/EarningsPerShareDetails",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerShareBasicAndDilutedAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share, Basic and Diluted [Abstract]",
        "terseLabel": "Per-Share Amount [Abstract]"
       }
      }
     },
     "localname": "EarningsPerShareBasicAndDilutedAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EarningsPerShareDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareDiluted": {
     "auth_ref": [
      "r70",
      "r132",
      "r133",
      "r134",
      "r135",
      "r136",
      "r146",
      "r149",
      "r150",
      "r151",
      "r155",
      "r156",
      "r639",
      "r704"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of net income (loss) for the period available to each share of common stock or common unit outstanding during the reporting period and to each share or unit that would have been outstanding assuming the issuance of common shares or units for all dilutive potential common shares or units outstanding during the reporting period.",
        "label": "Earnings Per Share, Diluted",
        "terseLabel": "Diluted earnings per common share (in usd per share)",
        "verboseLabel": "Diluted EPS: Income available to common shareholders plus assumed conversions (in dollars per share)"
       }
      }
     },
     "localname": "EarningsPerShareDiluted",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome",
      "http://www.thefirst.com/role/EarningsPerShareDetails",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerSharePolicyTextBlock": {
     "auth_ref": [
      "r109",
      "r152",
      "r153"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for computing basic and diluted earnings or loss per share for each class of common stock and participating security. Addresses all significant policy factors, including any antidilutive items that have been excluded from the computation and takes into account stock dividends, splits and reverse splits that occur after the balance sheet date of the latest reporting period but before the issuance of the financial statements.",
        "label": "Earnings Per Share, Policy [Policy Text Block]",
        "terseLabel": "Earnings Per Share"
       }
      }
     },
     "localname": "EarningsPerSharePolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_EarningsPerShareTextBlock": {
     "auth_ref": [
      "r152",
      "r153",
      "r154",
      "r157"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for earnings per share.",
        "label": "Earnings Per Share [Text Block]",
        "verboseLabel": "Earnings Per Share"
       }
      }
     },
     "localname": "EarningsPerShareTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EarningsPerShare"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized": {
     "auth_ref": [
      "r415"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cost not yet recognized for nonvested award under share-based payment arrangement.",
        "label": "Share-based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Amount",
        "terseLabel": "Unrecognized compensation costs"
       }
      }
     },
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1": {
     "auth_ref": [
      "r415"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted-average period over which cost not yet recognized is expected to be recognized for award under share-based payment arrangement, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Share-based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Period for Recognition",
        "terseLabel": "Remaining Term (In Years)"
       }
      }
     },
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense": {
     "auth_ref": [
      "r414"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of tax benefit for recognition of expense of award under share-based payment arrangement.",
        "label": "Share-based Payment Arrangement, Expense, Tax Benefit",
        "terseLabel": "Compensation cost related to restricted stock grants"
       }
      }
     },
     "localname": "EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquipmentExpense": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 1.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents equipment expense including depreciation, repairs, rentals, and service contract costs. This item also includes equipment purchases which do not qualify for capitalization in accordance with the entity's accounting policy. This item may also include furniture expenses.",
        "label": "Equipment Expense",
        "terseLabel": "Furniture and equipment expense"
       }
      }
     },
     "localname": "EquipmentExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquipmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tangible personal property used to produce goods and services.",
        "label": "Equipment [Member]",
        "terseLabel": "Equipment"
       }
      }
     },
     "localname": "EquipmentMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentScheduleofPremisesandEquipmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity [Abstract]",
        "terseLabel": "Equity [Abstract]"
       }
      }
     },
     "localname": "EquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_EquityComponentDomain": {
     "auth_ref": [
      "r123",
      "r124",
      "r125",
      "r129",
      "r137",
      "r139",
      "r160",
      "r280",
      "r340",
      "r345",
      "r417",
      "r418",
      "r419",
      "r444",
      "r445",
      "r526",
      "r527",
      "r528",
      "r529",
      "r530",
      "r532",
      "r712",
      "r713",
      "r714"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Components of equity are the parts of the total Equity balance including that which is allocated to common, preferred, treasury stock, retained earnings, etc.",
        "label": "Equity Component [Domain]",
        "terseLabel": "Equity Component [Domain]"
       }
      }
     },
     "localname": "EquityComponentDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquity",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofDerivativeFinancialInstrumentsDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofTransferofAFSSecuritiestoHTMDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonAvailableforSaleSecuritiesDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonPostretirementBenefitsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EquityMethodInvestments": {
     "auth_ref": [
      "r26",
      "r174",
      "r278"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This item represents the carrying amount on the entity's balance sheet of its investment in common stock of an equity method investee. This is not an indicator of the fair value of the investment, rather it is the initial cost adjusted for the entity's share of earnings and losses of the investee, adjusted for any distributions (dividends) and other than temporary impairment (OTTI) losses recognized.",
        "label": "Equity Method Investments",
        "terseLabel": "Investment in subsidiary"
       }
      }
     },
     "localname": "EquityMethodInvestments",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquitySecuritiesMember": {
     "auth_ref": [
      "r6",
      "r11",
      "r277",
      "r685",
      "r724",
      "r725",
      "r726"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ownership interest or right to acquire or dispose of ownership interest in corporations and other legal entities for which ownership interest is represented by shares of common or preferred stock, convertible securities, stock rights, or stock warrants.",
        "label": "Equity Securities [Member]",
        "verboseLabel": "Other equity securities"
       }
      }
     },
     "localname": "EquitySecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EstimateOfFairValueFairValueDisclosureMember": {
     "auth_ref": [
      "r521"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measured as an estimate of fair value.",
        "label": "Estimate of Fair Value Measurement [Member]",
        "terseLabel": "Estimate of Fair Value"
       }
      }
     },
     "localname": "EstimateOfFairValueFairValueDisclosureMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails",
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]",
        "terseLabel": "Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable": {
     "auth_ref": [
      "r507",
      "r508",
      "r509",
      "r515"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about asset and liability measured at fair value on recurring and nonrecurring basis.",
        "label": "Fair Value, Recurring and Nonrecurring [Table]",
        "terseLabel": "Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Table]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnNonrecurringBasisTextBlock": {
     "auth_ref": [
      "r507",
      "r508",
      "r510"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of assets and liabilities by class, including financial instruments measured at fair value that are classified in shareholders' equity, if any, that are measured at fair value on a nonrecurring basis in periods after initial recognition (for example, impaired assets). Disclosures may include, but are not limited to: (a) the fair value measurements recorded and the reasons for the measurements and (b) the level within the fair value hierarchy in which the fair value measurements are categorized in their entirety (levels 1, 2, 3).",
        "label": "Fair Value Measurements, Nonrecurring [Table Text Block]",
        "verboseLabel": "Assets and liabilities measured on non-recurring basis measured at fair value"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnNonrecurringBasisTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]",
        "terseLabel": "Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]"
       }
      }
     },
     "localname": "FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByBalanceSheetGroupingTable": {
     "auth_ref": [
      "r507",
      "r522",
      "r523"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about the fair value of financial instruments, including financial assets and financial liabilities, and the measurements of those instruments, assets, and liabilities.",
        "label": "Fair Value, by Balance Sheet Grouping [Table]",
        "terseLabel": "Fair Value, by Balance Sheet Grouping [Table]"
       }
      }
     },
     "localname": "FairValueByBalanceSheetGroupingTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByBalanceSheetGroupingTextBlock": {
     "auth_ref": [
      "r507",
      "r522"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the fair value of financial instruments, including financial assets and financial liabilities, and the measurements of those instruments, assets, and liabilities.",
        "label": "Fair Value, by Balance Sheet Grouping [Table Text Block]",
        "terseLabel": "Estimated fair value of financial instruments"
       }
      }
     },
     "localname": "FairValueByBalanceSheetGroupingTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueByFairValueHierarchyLevelAxis": {
     "auth_ref": [
      "r367",
      "r369",
      "r370",
      "r371",
      "r372",
      "r373",
      "r374",
      "r393",
      "r508",
      "r551",
      "r552",
      "r553"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by level within fair value hierarchy and fair value measured at net asset value per share as practical expedient.",
        "label": "Fair Value Hierarchy and NAV [Axis]",
        "terseLabel": "Fair Value Hierarchy and NAV [Axis]",
        "verboseLabel": "Fair Value Hierarchy and NAV [Axis]"
       }
      }
     },
     "localname": "FairValueByFairValueHierarchyLevelAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails",
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByMeasurementBasisAxis": {
     "auth_ref": [
      "r507",
      "r516"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by measurement basis.",
        "label": "Measurement Basis [Axis]",
        "terseLabel": "Measurement Basis [Axis]"
       }
      }
     },
     "localname": "FairValueByMeasurementBasisAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails",
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByMeasurementFrequencyAxis": {
     "auth_ref": [
      "r507",
      "r508",
      "r511",
      "r512",
      "r517"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by measurement frequency.",
        "label": "Measurement Frequency [Axis]",
        "terseLabel": "Fair Value by Measurement Frequency [Axis]"
       }
      }
     },
     "localname": "FairValueByMeasurementFrequencyAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosureItemAmountsDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement basis, for example, but not limited to, reported value, fair value, portion at fair value, portion at other than fair value.",
        "label": "Fair Value Measurement [Domain]",
        "terseLabel": "Fair Value Measurement [Domain]"
       }
      }
     },
     "localname": "FairValueDisclosureItemAmountsDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails",
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueDisclosureOffbalanceSheetRisksAmountLiability": {
     "auth_ref": [
      "r521"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The fair value of financial liabilities, which are not recognized in the financial statements (off-balance sheet) because they fail to meet some other criterion for recognition.",
        "label": "Fair Value Disclosure, Off-balance Sheet Risks, Amount, Liability",
        "terseLabel": "Off-balance-sheet financial instruments"
       }
      }
     },
     "localname": "FairValueDisclosureOffbalanceSheetRisksAmountLiability",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRiskDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueDisclosuresAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Disclosures [Abstract]",
        "terseLabel": "Fair Value Disclosures [Abstract]"
       }
      }
     },
     "localname": "FairValueDisclosuresAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosuresTextBlock": {
     "auth_ref": [
      "r514"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for the fair value of financial instruments (as defined), including financial assets and financial liabilities (collectively, as defined), and the measurements of those instruments as well as disclosures related to the fair value of non-financial assets and liabilities. Such disclosures about the financial instruments, assets, and liabilities would include: (1) the fair value of the required items together with their carrying amounts (as appropriate); (2) for items for which it is not practicable to estimate fair value, disclosure would include: (a) information pertinent to estimating fair value (including, carrying amount, effective interest rate, and maturity, and (b) the reasons why it is not practicable to estimate fair value; (3) significant concentrations of credit risk including: (a) information about the activity, region, or economic characteristics identifying a concentration, (b) the maximum amount of loss the entity is exposed to based on the gross fair value of the related item, (c) policy for requiring collateral or other security and information as to accessing such collateral or security, and (d) the nature and brief description of such collateral or security; (4) quantitative information about market risks and how such risks are managed; (5) for items measured on both a recurring and nonrecurring basis information regarding the inputs used to develop the fair value measurement; and (6) for items presented in the financial statement for which fair value measurement is elected: (a) information necessary to understand the reasons for the election, (b) discussion of the effect of fair value changes on earnings, (c) a description of [similar groups] items for which the election is made and the relation thereof to the balance sheet, the aggregate carrying value of items included in the balance sheet that are not eligible for the election; (7) all other required (as defined) and desired information.",
        "label": "Fair Value Disclosures [Text Block]",
        "verboseLabel": "Fair Value Disclosures"
       }
      }
     },
     "localname": "FairValueDisclosuresTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosures"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueInputsLevel1Member": {
     "auth_ref": [
      "r367",
      "r369",
      "r374",
      "r393",
      "r508",
      "r551"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Quoted prices in active markets for identical assets or liabilities that the reporting entity can access at the measurement date.",
        "label": "Fair Value, Inputs, Level 1 [Member]",
        "terseLabel": "Level 1"
       }
      }
     },
     "localname": "FairValueInputsLevel1Member",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails",
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel2Member": {
     "auth_ref": [
      "r367",
      "r369",
      "r374",
      "r393",
      "r508",
      "r552"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Inputs other than quoted prices included within level 1 that are observable for an asset or liability, either directly or indirectly, including, but not limited to, quoted prices for similar assets or liabilities in active markets, or quoted prices for identical or similar assets or liabilities in inactive markets.",
        "label": "Fair Value, Inputs, Level 2 [Member]",
        "terseLabel": "Level 2"
       }
      }
     },
     "localname": "FairValueInputsLevel2Member",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails",
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel3Member": {
     "auth_ref": [
      "r367",
      "r369",
      "r370",
      "r371",
      "r372",
      "r373",
      "r374",
      "r393",
      "r508",
      "r553"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Inputs, Level 3 [Member]",
        "terseLabel": "Level 3"
       }
      }
     },
     "localname": "FairValueInputsLevel3Member",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails",
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementFrequencyDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement frequency.",
        "label": "Measurement Frequency [Domain]",
        "terseLabel": "Measurement Frequency [Domain]"
       }
      }
     },
     "localname": "FairValueMeasurementFrequencyDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementPolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for fair value measurements of financial and non-financial assets, liabilities and instruments classified in shareholders' equity. Disclosures include, but are not limited to, how an entity that manages a group of financial assets and liabilities on the basis of its net exposure measures the fair value of those assets and liabilities.",
        "label": "Fair Value Measurement, Policy [Policy Text Block]",
        "terseLabel": "Fair Value Measurement"
       }
      }
     },
     "localname": "FairValueMeasurementPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueMeasurementsFairValueHierarchyDomain": {
     "auth_ref": [
      "r367",
      "r369",
      "r370",
      "r371",
      "r372",
      "r373",
      "r374",
      "r393",
      "r551",
      "r552",
      "r553"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Categories used to prioritize the inputs to valuation techniques to measure fair value.",
        "label": "Fair Value Hierarchy and NAV [Domain]",
        "terseLabel": "Fair Value, Measurements, Fair Value Hierarchy [Domain]"
       }
      }
     },
     "localname": "FairValueMeasurementsFairValueHierarchyDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails",
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementsNonrecurringMember": {
     "auth_ref": [
      "r507",
      "r508",
      "r511",
      "r512",
      "r513",
      "r517"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Infrequent fair value measurement. Includes, but is not limited to, fair value adjustment for impairment of asset, liability or equity, not frequently measured at fair value.",
        "label": "Fair Value, Nonrecurring [Member]",
        "terseLabel": "Fair Value, Measurements, Nonrecurring"
       }
      }
     },
     "localname": "FairValueMeasurementsNonrecurringMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementsRecurringMember": {
     "auth_ref": [
      "r514",
      "r517"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Frequent fair value measurement. Includes, but is not limited to, fair value adjustment for impairment of asset, liability or equity, frequently measured at fair value.",
        "label": "Fair Value, Recurring [Member]",
        "terseLabel": "Fair Value, Measurements, Recurring"
       }
      }
     },
     "localname": "FairValueMeasurementsRecurringMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueOfAssetsAcquired": {
     "auth_ref": [
      "r105",
      "r106",
      "r107"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The fair value of assets acquired in noncash investing or financing activities.",
        "label": "Fair Value of Assets Acquired",
        "negatedTerseLabel": "Fair value of assets acquired"
       }
      }
     },
     "localname": "FairValueOfAssetsAcquired",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueOfFinancialInstrumentsPolicy": {
     "auth_ref": [
      "r109",
      "r518",
      "r520"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for determining the fair value of financial instruments.",
        "label": "Fair Value of Financial Instruments, Policy [Policy Text Block]",
        "terseLabel": "Fair Value of Financial Instruments"
       }
      }
     },
     "localname": "FairValueOfFinancialInstrumentsPolicy",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Fair Value, Off-balance Sheet Risks, Disclosure Information [Line Items]",
        "terseLabel": "Fair Value, Off-balance Sheet Risks, Disclosure Information [Line Items]"
       }
      }
     },
     "localname": "FairValueOffBalanceSheetRisksDisclosureInformationLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRiskDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FederalDepositInsuranceCorporationPremiumExpense": {
     "auth_ref": [
      "r649"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 4.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense for Federal Deposit Insurance Corporation (FDIC) insurance.",
        "label": "Federal Deposit Insurance Corporation Premium Expense",
        "terseLabel": "FDIC insurance premiums"
       }
      }
     },
     "localname": "FederalDepositInsuranceCorporationPremiumExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresCollateralPledged1": {
     "auth_ref": [
      "r670",
      "r672"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of the collateral pledged in support of federal home loan bank advances outstanding.",
        "label": "Federal Home Loan Bank, Advances, General Debt Obligations, Disclosures, Collateral Pledged",
        "terseLabel": "Loans used to collateralize borrowings from the Federal Home Loan Bank of Boston"
       }
      }
     },
     "localname": "FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresCollateralPledged1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Federal Home Loan Bank, Advances, Fiscal Year Maturity [Abstract]",
        "terseLabel": "Federal Home Loan Bank, Advances, Maturities Summary [Abstract]"
       }
      }
     },
     "localname": "FederalHomeLoanBankAdvancesMaturitiesSummaryAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueAfterFiveYearsOfBalanceSheetDate": {
     "auth_ref": [
      "r337",
      "r670"
     ],
     "calculation": {
      "http://www.thefirst.com/role/BorrowedFundsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_AdvancesFromFederalHomeLoanBanks",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of advance from Federal Home Loan Bank (FHLBank) maturing after fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Federal Home Loan Bank, Advance, Maturity, after Year Five",
        "terseLabel": "Due thereafter"
       }
      }
     },
     "localname": "FederalHomeLoanBankAdvancesMaturitiesSummaryDueAfterFiveYearsOfBalanceSheetDate",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueFromFourToFiveYearsOfBalanceSheetDate": {
     "auth_ref": [
      "r337",
      "r670"
     ],
     "calculation": {
      "http://www.thefirst.com/role/BorrowedFundsDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_AdvancesFromFederalHomeLoanBanks",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of advance from Federal Home Loan Bank (FHLBank) maturing in fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Federal Home Loan Bank, Advance, Maturity, Year Five",
        "terseLabel": "Due in year five maturity"
       }
      }
     },
     "localname": "FederalHomeLoanBankAdvancesMaturitiesSummaryDueFromFourToFiveYearsOfBalanceSheetDate",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueFromOneToTwoYearsOfBalanceSheetDate": {
     "auth_ref": [
      "r337",
      "r670"
     ],
     "calculation": {
      "http://www.thefirst.com/role/BorrowedFundsDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_AdvancesFromFederalHomeLoanBanks",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of advance from Federal Home Loan Bank (FHLBank) maturing in second fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Federal Home Loan Bank, Advance, Maturity, Year Two",
        "terseLabel": "Due in year two maturity"
       }
      }
     },
     "localname": "FederalHomeLoanBankAdvancesMaturitiesSummaryDueFromOneToTwoYearsOfBalanceSheetDate",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueFromThreeToFourYearsOfBalanceSheetDate": {
     "auth_ref": [
      "r337",
      "r670"
     ],
     "calculation": {
      "http://www.thefirst.com/role/BorrowedFundsDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_AdvancesFromFederalHomeLoanBanks",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of advance from Federal Home Loan Bank (FHLBank) maturing in fourth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Federal Home Loan Bank, Advance, Maturity, Year Four",
        "terseLabel": "Due in year four maturity"
       }
      }
     },
     "localname": "FederalHomeLoanBankAdvancesMaturitiesSummaryDueFromThreeToFourYearsOfBalanceSheetDate",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueFromTwoToThreeYearsOfBalanceSheetDate": {
     "auth_ref": [
      "r337",
      "r670"
     ],
     "calculation": {
      "http://www.thefirst.com/role/BorrowedFundsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_AdvancesFromFederalHomeLoanBanks",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of advance from Federal Home Loan Bank (FHLBank) maturing in third fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Federal Home Loan Bank, Advance, Maturity, Year Three",
        "terseLabel": "Due in year three maturity"
       }
      }
     },
     "localname": "FederalHomeLoanBankAdvancesMaturitiesSummaryDueFromTwoToThreeYearsOfBalanceSheetDate",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueWithinOneYearOfBalanceSheetDate": {
     "auth_ref": [
      "r337",
      "r670"
     ],
     "calculation": {
      "http://www.thefirst.com/role/BorrowedFundsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_AdvancesFromFederalHomeLoanBanks",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of advance from Federal Home Loan Bank (FHLBank) maturing in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Federal Home Loan Bank, Advance, Maturity, Year One",
        "terseLabel": "Due in twelve months maturity"
       }
      }
     },
     "localname": "FederalHomeLoanBankAdvancesMaturitiesSummaryDueWithinOneYearOfBalanceSheetDate",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FederalHomeLoanBankStock": {
     "auth_ref": [
      "r667"
     ],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_FederalHomeLoanBankStockAndFederalReserveBankStock",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Federal Home Loan Bank (FHLB) stock represents an equity interest in a FHLB. It does not have a readily determinable fair value because its ownership is restricted and it lacks a market (liquidity).",
        "label": "Federal Home Loan Bank Stock",
        "terseLabel": "Federal Home Loan Bank Stock"
       }
      }
     },
     "localname": "FederalHomeLoanBankStock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesNarrativeDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FederalHomeLoanBankStockAndFederalReserveBankStock": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of Federal Home Loan Bank (FHLB) and Federal Reserve Bank stock.",
        "label": "Federal Home Loan Bank Stock and Federal Reserve Bank Stock",
        "totalLabel": "Restricted equity securities"
       }
      }
     },
     "localname": "FederalHomeLoanBankStockAndFederalReserveBankStock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FederalIncomeTaxExpenseBenefitContinuingOperations": {
     "auth_ref": [
      "r113",
      "r430"
     ],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current and deferred federal income tax expense (benefit) attributable to income (loss) from continuing operations.",
        "label": "Federal Income Tax Expense (Benefit), Continuing Operations",
        "totalLabel": "Federal income tax expense"
       }
      }
     },
     "localname": "FederalIncomeTaxExpenseBenefitContinuingOperations",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FederalIncomeTaxExpenseBenefitContinuingOperationsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Federal Income Tax Expense (Benefit), Continuing Operations [Abstract]",
        "verboseLabel": "Federal income tax"
       }
      }
     },
     "localname": "FederalIncomeTaxExpenseBenefitContinuingOperationsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FederalReserveBankStock": {
     "auth_ref": [
      "r667"
     ],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_FederalHomeLoanBankStockAndFederalReserveBankStock",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Federal Reserve Bank stock represents an equity interest in the Federal Reserve Bank. It does not have a readily determinable fair value because its ownership is restricted and it lacks a market (liquidity).",
        "label": "Federal Reserve Bank Stock",
        "terseLabel": "Federal Reserve Bank Stock"
       }
      }
     },
     "localname": "FederalReserveBankStock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiduciaryAndTrustMember": {
     "auth_ref": [
      "r350"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Person or entity with legal duty to act in best interest of client or beneficiary of trust and fiduciary relationship in which one party gives another party right to hold title to asset for benefit of beneficiary.",
        "label": "Fiduciary and Trust [Member]",
        "terseLabel": "Fiduciary and investment management income"
       }
      }
     },
     "localname": "FiduciaryAndTrustMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinanceLeaseLiabilityMaturityTableTextBlock": {
     "auth_ref": [
      "r545"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of undiscounted cash flows of finance lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to finance lease liability recognized in statement of financial position.",
        "label": "Finance Lease, Liability, Fiscal Year Maturity [Table Text Block]",
        "terseLabel": "Schedule of Anticipated Rental Revenue"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityMaturityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDue": {
     "auth_ref": [
      "r545"
     ],
     "calculation": {
      "http://www.thefirst.com/role/PremisesandEquipmentAnticipatedRentalRevenueDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payments for finance lease.",
        "label": "Finance Lease, Liability, Payment, Due",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityPaymentsDue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentAnticipatedRentalRevenueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueInNextRollingTwelveMonths": {
     "auth_ref": [
      "r545"
     ],
     "calculation": {
      "http://www.thefirst.com/role/PremisesandEquipmentAnticipatedRentalRevenueDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_FinanceLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payments for finance lease, due after fifth fiscal year following latest statement of financial position date. For interim and annual periods when interim periods are reported on rolling approach, from latest statement of financial position date.",
        "label": "Finance Lease, Liability, Payments, Due in Next Rolling Twelve Months",
        "terseLabel": "2021"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityPaymentsDueInNextRollingTwelveMonths",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentAnticipatedRentalRevenueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueInRollingYearFour": {
     "auth_ref": [
      "r545"
     ],
     "calculation": {
      "http://www.thefirst.com/role/PremisesandEquipmentAnticipatedRentalRevenueDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_FinanceLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payments for finance lease, due in fourth rolling twelve months following latest statement of financial position date. For interim and annual periods when interim periods are reported on rolling approach, from latest statement of financial position date.",
        "label": "Finance Lease, Liability, Payments, Due in Rolling Year Four",
        "terseLabel": "2024"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityPaymentsDueInRollingYearFour",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentAnticipatedRentalRevenueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueInRollingYearThree": {
     "auth_ref": [
      "r545"
     ],
     "calculation": {
      "http://www.thefirst.com/role/PremisesandEquipmentAnticipatedRentalRevenueDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_FinanceLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payments for finance lease, due in third rolling twelve months following latest statement of financial position date. For interim and annual periods when interim periods are reported on rolling approach, from latest statement of financial position date.",
        "label": "Finance Lease, Liability, Payments, Due in Rolling Year Three",
        "terseLabel": "2023"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityPaymentsDueInRollingYearThree",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentAnticipatedRentalRevenueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueInRollingYearTwo": {
     "auth_ref": [
      "r545"
     ],
     "calculation": {
      "http://www.thefirst.com/role/PremisesandEquipmentAnticipatedRentalRevenueDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_FinanceLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payments for finance lease, due in second rolling twelve months following latest statement of financial position date. For interim and annual periods when interim periods are reported on rolling approach, from latest statement of financial position date.",
        "label": "Finance Lease, Liability, Payments, Due in Rolling Year Two",
        "terseLabel": "2022"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityPaymentsDueInRollingYearTwo",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentAnticipatedRentalRevenueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLoanAndLeaseReceivablesHeldForSalePolicy": {
     "auth_ref": [
      "r198",
      "r215",
      "r223",
      "r231"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for financing receivables classified as held-for-sale.",
        "label": "Financing Receivable, Held-for-sale [Policy Text Block]",
        "terseLabel": "Loans Held for Sale"
       }
      }
     },
     "localname": "FinanceLoanAndLeaseReceivablesHeldForSalePolicy",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FinanceLoansAndLeasesReceivablePolicy": {
     "auth_ref": [
      "r198",
      "r209",
      "r215",
      "r223",
      "r228",
      "r232",
      "r233",
      "r235"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for financing receivable.",
        "label": "Financing Receivable [Policy Text Block]",
        "terseLabel": "Loans"
       }
      }
     },
     "localname": "FinanceLoansAndLeasesReceivablePolicy",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FinancialInstrumentAxis": {
     "auth_ref": [
      "r261",
      "r265",
      "r284",
      "r287",
      "r288",
      "r291",
      "r293",
      "r304",
      "r306",
      "r307",
      "r308",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552",
      "r553",
      "r555",
      "r556",
      "r557",
      "r562",
      "r563",
      "r564",
      "r565",
      "r568",
      "r573",
      "r582",
      "r583",
      "r584",
      "r585",
      "r589",
      "r590",
      "r591",
      "r592",
      "r593",
      "r594",
      "r595",
      "r596",
      "r598",
      "r599",
      "r600"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of financial instrument.",
        "label": "Financial Instrument [Axis]",
        "terseLabel": "Financial Instrument [Axis]"
       }
      }
     },
     "localname": "FinancialInstrumentAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesNarrativeDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesTemporarilyImpairedDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueAFSDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails",
      "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRiskDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Instruments, Financial Assets, Balance Sheet Groupings [Abstract]",
        "terseLabel": "Financial assets"
       }
      }
     },
     "localname": "FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Instruments, Financial Liabilities, Balance Sheet Groupings [Abstract]",
        "terseLabel": "Financial liabilities"
       }
      }
     },
     "localname": "FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLosses": {
     "auth_ref": [
      "r199",
      "r283",
      "r285",
      "r286",
      "r623"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_NotesReceivableNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of allowance for credit loss on financing receivable. Excludes allowance for financing receivable covered under loss sharing agreement.",
        "label": "Financing Receivable, Allowance for Credit Loss",
        "netLabel": "Total Allowance for Loan Losses",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance",
        "terseLabel": "Less allowance for loan losses",
        "verboseLabel": "Allowance for loan losses"
       }
      }
     },
     "localname": "FinancingReceivableAllowanceForCreditLosses",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesCompositionofAllowanceforLoansLossesbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesFinancingReceivableandAllowanceElementbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails",
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment": {
     "auth_ref": [
      "r203"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The valuation allowance for financing receivables that are expected to be uncollectible that were collectively evaluated for impairment.",
        "label": "Financing Receivable, Allowance for Credit Losses, Collectively Evaluated for Impairment",
        "terseLabel": "Allowance for Loans Evaluated Collectively for Impairment",
        "verboseLabel": "Ending balance collectively evaluated for impairment"
       }
      }
     },
     "localname": "FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesCompositionofAllowanceforLoansLossesbyClassDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1": {
     "auth_ref": [
      "r203"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of valuation allowance for financing receivables that are expected to be uncollectible that were individually evaluated for impairment.",
        "label": "Financing Receivable, Allowance for Credit Losses, Individually Evaluated for Impairment",
        "terseLabel": "Allowance for Loans Evaluated Individually for Impairment",
        "verboseLabel": "Ending balance specifically evaluated for impairment"
       }
      }
     },
     "localname": "FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesCompositionofAllowanceforLoansLossesbyClassDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossesPolicyForUncollectibleAmounts": {
     "auth_ref": [
      "r197"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for charging off uncollectible financing receivables, including, but not limited to, factors and methodologies used in estimating the allowance for credit loss.",
        "label": "Financing Receivable, Allowance for Credit Losses, Policy for Uncollectible Amounts [Policy Text Block]",
        "terseLabel": "Allowance for Loan Losses"
       }
      }
     },
     "localname": "FinancingReceivableAllowanceForCreditLossesPolicyForUncollectibleAmounts",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment": {
     "auth_ref": [
      "r204"
     ],
     "calculation": {
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_NotesReceivableGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The balance of financing receivables that were collectively evaluated for impairment.",
        "label": "Financing Receivable, Collectively Evaluated for Impairment",
        "terseLabel": "Ending balance collectively evaluated for impairment"
       }
      }
     },
     "localname": "FinancingReceivableCollectivelyEvaluatedForImpairment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableCreditQualityIndicatorsTableTextBlock": {
     "auth_ref": [
      "r216",
      "r293"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of financing receivables by credit quality indicator. The credit quality indicator is a statistic about the credit quality of financing receivables. Examples include, but not limited to, consumer credit risk scores, credit-rating-agency ratings, an entity's internal credit risk grades, loan-to-value ratios, collateral, collection experience and other internal metrics.",
        "label": "Financing Receivable Credit Quality Indicators [Table Text Block]",
        "terseLabel": "Summary of risk ratings for loans"
       }
      }
     },
     "localname": "FinancingReceivableCreditQualityIndicatorsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment": {
     "auth_ref": [
      "r204"
     ],
     "calculation": {
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_NotesReceivableGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The balance of financing receivables that were individually evaluated for impairment.",
        "label": "Financing Receivable, Individually Evaluated for Impairment",
        "terseLabel": "Ending balance specifically evaluated for impairment"
       }
      }
     },
     "localname": "FinancingReceivableIndividuallyEvaluatedForImpairment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableModificationsNumberOfContracts2": {
     "auth_ref": [
      "r218"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of financing receivables that have been modified by troubled debt restructurings.",
        "label": "Financing Receivable, Modifications, Number of Contracts",
        "netLabel": "Units",
        "terseLabel": "Number of Loans",
        "verboseLabel": "Number of loans"
       }
      }
     },
     "localname": "FinancingReceivableModificationsNumberOfContracts2",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansModificationStatusesbyPortfolioSegmentDetails",
      "http://www.thefirst.com/role/LoansNarrativeDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandSpecificReserveDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "us-gaap_FinancingReceivableModificationsPostModificationRecordedInvestment2": {
     "auth_ref": [
      "r218"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after troubled debt restructuring, of modified financing receivable.",
        "label": "Financing Receivable, Troubled Debt Restructuring, Postmodification",
        "terseLabel": "Post-Modification Outstanding Recorded Investment"
       }
      }
     },
     "localname": "FinancingReceivableModificationsPostModificationRecordedInvestment2",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansPreModificationandPostModificationOutstandingRecordedInvestmentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableModificationsPreModificationRecordedInvestment2": {
     "auth_ref": [
      "r218"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before troubled debt restructuring, of financing receivable to be modified.",
        "label": "Financing Receivable, Troubled Debt Restructuring, Premodification",
        "terseLabel": "Pre-Modification Outstanding Recorded Investment"
       }
      }
     },
     "localname": "FinancingReceivableModificationsPreModificationRecordedInvestment2",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansPreModificationandPostModificationOutstandingRecordedInvestmentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableModificationsRecordedInvestment": {
     "auth_ref": [
      "r218",
      "r237"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of financing receivable modified as troubled debt restructuring.",
        "label": "Financing Receivable, Troubled Debt Restructuring",
        "terseLabel": "Balance",
        "verboseLabel": "TDR recorded investment"
       }
      }
     },
     "localname": "FinancingReceivableModificationsRecordedInvestment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandSpecificReserveDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableModificationsSubsequentDefaultNumberOfContracts1": {
     "auth_ref": [
      "r219"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of financing receivable contracts modified as troubled debt restructuring within previous 12 months, with subsequent payment default.",
        "label": "Financing Receivable, Troubled Debt Restructuring, Subsequent Default, Number of Contracts",
        "terseLabel": "Number of loans placed on TDR status in previous 12 months"
       }
      }
     },
     "localname": "FinancingReceivableModificationsSubsequentDefaultNumberOfContracts1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandAssociatedSpecificReservesDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "us-gaap_FinancingReceivablePortfolioSegmentAxis": {
     "auth_ref": [
      "r284",
      "r287",
      "r294"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by the level at which an entity develops and documents a systematic methodology to determine its allowance for credit losses.",
        "label": "Financing Receivable Portfolio Segment [Axis]",
        "terseLabel": "Financing Receivable Portfolio Segment [Axis]"
       }
      }
     },
     "localname": "FinancingReceivablePortfolioSegmentAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesCompositionofAllowanceforLoansLossesbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesFinancingReceivableandAllowanceElementbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesRiskRatingsbySegmentDetails",
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails",
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansModificationStatusesbyPortfolioSegmentDetails",
      "http://www.thefirst.com/role/LoansNonaccrualLoansDetails",
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansPortfolioDetails",
      "http://www.thefirst.com/role/LoansPreModificationandPostModificationOutstandingRecordedInvestmentDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandAssociatedSpecificReservesDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandSpecificReserveDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivablePortfolioSegmentDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Level at which an entity develops and documents a systematic methodology to determine its allowance for credit losses.",
        "label": "Financing Receivable Portfolio Segment [Domain]",
        "terseLabel": "Financing Receivable Portfolio Segment [Domain]"
       }
      }
     },
     "localname": "FinancingReceivablePortfolioSegmentDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesCompositionofAllowanceforLoansLossesbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesFinancingReceivableandAllowanceElementbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesRiskRatingsbySegmentDetails",
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails",
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansModificationStatusesbyPortfolioSegmentDetails",
      "http://www.thefirst.com/role/LoansNonaccrualLoansDetails",
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansPortfolioDetails",
      "http://www.thefirst.com/role/LoansPreModificationandPostModificationOutstandingRecordedInvestmentDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandAssociatedSpecificReservesDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandSpecificReserveDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing": {
     "auth_ref": [
      "r225",
      "r290",
      "r300"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of financing receivable 90 days or more past due and still accruing.",
        "label": "Financing Receivable, 90 Days or More Past Due, Still Accruing",
        "terseLabel": "90 Plus Days And Accruing",
        "verboseLabel": "Loans more than 90 days past due accruing interest"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails",
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis": {
     "auth_ref": [
      "r217",
      "r226",
      "r227",
      "r288",
      "r291",
      "r293",
      "r295",
      "r296",
      "r299",
      "r300"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by class of financing receivable determined on the basis of initial measurement attribute, risk characteristics and method of monitoring and assessing credit risk.",
        "label": "Class of Financing Receivable [Axis]",
        "terseLabel": "Class of Financing Receivable [Axis]"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesCompositionofAllowanceforLoansLossesbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesFinancingReceivableandAllowanceElementbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesRiskRatingsbySegmentDetails",
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails",
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansNonaccrualLoansDetails",
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansPortfolioDetails",
      "http://www.thefirst.com/role/LoansPreModificationandPostModificationOutstandingRecordedInvestmentDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandAssociatedSpecificReservesDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandSpecificReserveDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivables determined on the basis of initial measurement attribute, risk characteristics and method of monitoring and assessing credit risk.",
        "label": "Class of Financing Receivable [Domain]",
        "terseLabel": "Class of Financing Receivable [Domain]"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesCompositionofAllowanceforLoansLossesbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesFinancingReceivableandAllowanceElementbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesRiskRatingsbySegmentDetails",
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails",
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansNonaccrualLoansDetails",
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansPortfolioDetails",
      "http://www.thefirst.com/role/LoansPreModificationandPostModificationOutstandingRecordedInvestmentDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandAssociatedSpecificReservesDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandSpecificReserveDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentCurrent": {
     "auth_ref": [
      "r227",
      "r288",
      "r300"
     ],
     "calculation": {
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_NotesReceivableGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of financing receivable not past due.",
        "label": "Financing Receivable, Not Past Due",
        "terseLabel": "Current"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentCurrent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus": {
     "auth_ref": [
      "r224",
      "r289"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of financing receivable on nonaccrual status.",
        "label": "Financing Receivable, Nonaccrual",
        "terseLabel": "Nonaccrual loans"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentNonaccrualStatus",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails",
      "http://www.thefirst.com/role/LoansNonaccrualLoansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentPastDue": {
     "auth_ref": [
      "r227",
      "r288",
      "r300"
     ],
     "calculation": {
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_NotesReceivableGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of financing receivable past due.",
        "label": "Financing Receivable, Past Due",
        "terseLabel": "Past Due",
        "verboseLabel": "Amounts past due"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentPastDue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails",
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivables30To59DaysPastDueMember": {
     "auth_ref": [
      "r300"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial asset more than 29 days past due but fewer than 60 days past due.",
        "label": "Financial Asset, 30 to 59 Days Past Due [Member]",
        "terseLabel": "30-59 Days Past Due"
       }
      }
     },
     "localname": "FinancingReceivables30To59DaysPastDueMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivables60To89DaysPastDueMember": {
     "auth_ref": [
      "r300"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial asset more than 59 days past due but fewer than 90 days past due.",
        "label": "Financial Asset, 60 to 89 Days Past Due [Member]",
        "terseLabel": "60-89 Days Past Due"
       }
      }
     },
     "localname": "FinancingReceivables60To89DaysPastDueMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember": {
     "auth_ref": [
      "r300"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial asset equal to or greater than 90 days past due.",
        "label": "Financial Asset, Equal to or Greater than 90 Days Past Due [Member]",
        "terseLabel": "90+ Days Past Due"
       }
      }
     },
     "localname": "FinancingReceivablesEqualToGreaterThan90DaysPastDueMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivablesPeriodPastDueAxis": {
     "auth_ref": [
      "r288",
      "r300"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by time period financial asset is past due.",
        "label": "Financial Asset, Period Past Due [Axis]",
        "terseLabel": "Financial Asset, Period Past Due [Axis]"
       }
      }
     },
     "localname": "FinancingReceivablesPeriodPastDueAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivablesPeriodPastDueDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period in which financial asset is past due. Element name and standard label in Financial Asset, [numeric lower end] to [numeric higher end] [date measure] Past Due [Member] or Financial Asset, Greater Than [low end numeric value] [date measure] Past Due [Member] or Financial Asset, Less Than [high end numeric value] [date measure] Past Due [Member] formats.",
        "label": "Financial Asset, Period Past Due [Domain]",
        "terseLabel": "Financial Asset, Period Past Due [Domain]"
       }
      }
     },
     "localname": "FinancingReceivablesPeriodPastDueDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis": {
     "auth_ref": [
      "r313",
      "r315",
      "r318",
      "r320",
      "r604",
      "r608"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by major type or class of finite-lived intangible assets.",
        "label": "Finite-Lived Intangible Assets by Major Class [Axis]",
        "terseLabel": "Finite-Lived Intangible Assets by Major Class [Axis]"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsByMajorClassAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain": {
     "auth_ref": [
      "r313",
      "r317"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The major class of finite-lived intangible asset (for example, patents, trademarks, copyrights, etc.) A major class is composed of intangible assets that can be grouped together because they are similar, either by their nature or by their use in the operations of a company.",
        "label": "Finite-Lived Intangible Assets, Major Class Name [Domain]",
        "terseLabel": "Finite-Lived Intangible Assets, Major Class Name [Domain]"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsMajorClassNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_GainLossOnDispositionOfAssets": {
     "auth_ref": [
      "r101",
      "r321",
      "r325"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 15.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain (loss) on sale or disposal of property, plant and equipment assets, excluding oil and gas property and timber property.",
        "label": "Gain (Loss) on Disposition of Property Plant Equipment, Excluding Oil and Gas Property and Timber Property",
        "negatedTerseLabel": "Net (gain) loss on disposal of premises and equipment"
       }
      }
     },
     "localname": "GainLossOnDispositionOfAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GainLossOnSalesOfLoansNet": {
     "auth_ref": [
      "r101",
      "r645",
      "r707"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 12.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net gain (loss) resulting from a sale of loans, including adjustments to record loans classified as held-for-sale at the lower-of-cost-or-market and fair value adjustments to loan held for investment purposes.",
        "label": "Gain (Loss) on Sales of Loans, Net",
        "negatedLabel": "Net gain on sales of loans"
       }
      }
     },
     "localname": "GainLossOnSalesOfLoansNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GainsLossesOnSalesOfOtherRealEstate": {
     "auth_ref": [
      "r648"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net gain (loss) resulting from sales and other disposals of other real estate owned, increases (decreases) in the valuation allowance for foreclosed real estate, and write-downs of other real estate owned after acquisition or physical possession.",
        "label": "Gains (Losses) on Sales of Other Real Estate",
        "negatedTerseLabel": "Net gain on sale of other real estate owned"
       }
      }
     },
     "localname": "GainsLossesOnSalesOfOtherRealEstate",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GeneralDiscussionOfPensionAndOtherPostretirementBenefitsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retirement Benefits, Description [Abstract]",
        "terseLabel": "Retirement Benefits, Description [Abstract]"
       }
      }
     },
     "localname": "GeneralDiscussionOfPensionAndOtherPostretirementBenefitsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_Goodwill": {
     "auth_ref": [
      "r309",
      "r310",
      "r613"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after accumulated impairment loss of an asset representing future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized.",
        "label": "Goodwill",
        "terseLabel": "Goodwill"
       }
      }
     },
     "localname": "Goodwill",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsAdditionalInformationDetails",
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsSummaryofConsiderationPaidDetails",
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GoodwillAndIntangibleAssetsPolicyTextBlock": {
     "auth_ref": [
      "r109",
      "r311",
      "r316"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for goodwill and intangible assets. This accounting policy also may address how an entity assesses and measures impairment of goodwill and intangible assets.",
        "label": "Goodwill and Intangible Assets, Policy [Policy Text Block]",
        "terseLabel": "Goodwill and Identified Intangible Assets"
       }
      }
     },
     "localname": "GoodwillAndIntangibleAssetsPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_HedgingDesignationAxis": {
     "auth_ref": [
      "r487",
      "r497"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by designation of purpose of derivative instrument.",
        "label": "Hedging Designation [Axis]",
        "terseLabel": "Hedging Designation [Axis]"
       }
      }
     },
     "localname": "HedgingDesignationAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails",
      "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRiskDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_HedgingDesignationDomain": {
     "auth_ref": [
      "r487"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Designation of purpose of derivative instrument.",
        "label": "Hedging Designation [Domain]",
        "terseLabel": "Hedging Designation [Domain]"
       }
      }
     },
     "localname": "HedgingDesignationDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails",
      "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_HedgingRelationshipDomain": {
     "auth_ref": [
      "r487"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Nature or intent of a hedge.",
        "label": "Hedging Relationship [Domain]",
        "terseLabel": "Hedging Relationship [Domain]"
       }
      }
     },
     "localname": "HedgingRelationshipDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails",
      "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_HeldToMaturitySecurities": {
     "auth_ref": [
      "r239",
      "r253",
      "r622"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 9.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in debt security measured at amortized cost (held-to-maturity).",
        "label": "Debt Securities, Held-to-maturity",
        "terseLabel": "Securities to be held to maturity (fair value of $377,134,000 at December\u00a031, 2020, and $287,045,000 at December\u00a031, 2019)",
        "totalLabel": "Amortized Cost"
       }
      }
     },
     "localname": "HeldToMaturitySecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets",
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Held-to-maturity, Fair Value to Amortized Cost [Abstract]",
        "verboseLabel": "Securities to be held to maturity, cost and FMV [Abstract]"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain": {
     "auth_ref": [
      "r255",
      "r263"
     ],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated unrecognized gain on investment in debt security measured at amortized cost (held-to-maturity).",
        "label": "Debt Securities, Held-to-maturity, Accumulated Unrecognized Gain",
        "terseLabel": "Unrealized Gains"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss": {
     "auth_ref": [
      "r256",
      "r264"
     ],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investment in debt security measured at amortized cost (held-to-maturity).",
        "label": "Debt Securities, Held-to-maturity, Accumulated Unrecognized Loss",
        "negatedLabel": "Unrealized Losses"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Held-to-maturity, Maturity [Abstract]",
        "terseLabel": "Debt Securities, Held-to-maturity, Maturity [Abstract]"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue": {
     "auth_ref": [
      "r259",
      "r268",
      "r659",
      "r663"
     ],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_HeldToMaturitySecuritiesFairValue",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of investment in debt security measured at amortized cost (held-to-maturity), with single maturity date and allocated without single maturity date, maturing in sixth through tenth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Debt Securities, Held-to-Maturity, Fair Value, Maturity, Allocated and Single Maturity Date, after Year 5 Through 10",
        "terseLabel": "Fair Value (Estimated), Due in 1 to 5 years"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount": {
     "auth_ref": [
      "r259",
      "r659"
     ],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in debt security measured at amortized cost (held-to-maturity), with single maturity date and allocated without single maturity date, maturing in sixth through tenth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Debt Securities, Held-to-Maturity, Amortized Cost, Maturity, Allocated and Single Maturity Date, after Year 5 Through 10",
        "terseLabel": "Amortized Cost, Due in 5 to 10 years"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue": {
     "auth_ref": [
      "r258",
      "r267",
      "r658",
      "r662"
     ],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_HeldToMaturitySecuritiesFairValue",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of investment in debt security measured at amortized cost (held-to-maturity), with single maturity date and allocated without single maturity date, maturing in second through fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Debt Securities, Held-to-Maturity, Fair Value, Maturity, Allocated and Single Maturity Date, after Year One Through Five",
        "terseLabel": "Fair Value (Estimated), Due in 1 to 5 years"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount": {
     "auth_ref": [
      "r258",
      "r658"
     ],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in debt security measured at amortized cost (held-to-maturity), with single maturity date and allocated without single maturity date, maturing in second through fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Debt Securities, Held-to-Maturity, Amortized Cost, Maturity, Allocated and Single Maturity Date, after Year One Through Five",
        "terseLabel": "Amortized Cost, Due in 1 to 5 years"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue": {
     "auth_ref": [
      "r260",
      "r269",
      "r660",
      "r664"
     ],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_HeldToMaturitySecuritiesFairValue",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of investment in debt security measured at amortized cost (held-to-maturity), with single maturity date and allocated without single maturity date, maturing after tenth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Debt Securities, Held-to-Maturity, Fair Value, Maturity, Allocated and Single Maturity Date, after Year 10",
        "terseLabel": "Fair Value (Estimated), Due after 10 years"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount": {
     "auth_ref": [
      "r260",
      "r660"
     ],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in debt security measured at amortized cost (held-to-maturity), with single maturity date and allocated without single maturity date, maturing after tenth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Debt Securities, Held-to-Maturity, Amortized Cost, Maturity, Allocated and Single Maturity Date, after Year 10",
        "terseLabel": "Amortized Cost, Due after 10 years"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue": {
     "auth_ref": [
      "r257",
      "r266",
      "r657",
      "r661"
     ],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_HeldToMaturitySecuritiesFairValue",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of investment in debt security measured at amortized cost (held-to-maturity), with single maturity date and allocated without single maturity date, maturing in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Debt Securities, Held-to-Maturity, Fair Value, Maturity, Allocated and Single Maturity Date, Year One",
        "terseLabel": "Fair Value (Estimated), Due in 1 year or less"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount": {
     "auth_ref": [
      "r257",
      "r657"
     ],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in debt security measured at amortized cost (held-to-maturity), with single maturity date and allocated without single maturity date, maturing in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Debt Securities, Held-to-Maturity, Amortized Cost, Maturity, Allocated and Single Maturity Date, Year One",
        "terseLabel": "Amortized Cost, Due in 1 year or less"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesFairValue": {
     "auth_ref": [
      "r254",
      "r262",
      "r622"
     ],
     "calculation": {
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of investment in debt security measured at amortized cost (held-to-maturity).",
        "label": "Debt Securities, Held-to-maturity, Fair Value",
        "terseLabel": "Securities to be held to maturity, fair value",
        "totalLabel": "Fair Value (Estimated)",
        "verboseLabel": "Fair Value (Estimated)"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheetsParenthetical",
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesSoldSecurityRealizedGainLoss": {
     "auth_ref": [
      "r242"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain (loss) on sale of investment in debt security measured at amortized cost (held-to-maturity), including other-than-temporary impairment (OTTI).",
        "label": "Debt Securities, Held-to-maturity, Sold, Realized Gain (Loss)",
        "terseLabel": "Net realized gain from sale of municipal securities"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesSoldSecurityRealizedGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment": {
     "auth_ref": [
      "r210",
      "r213"
     ],
     "calculation": {
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Average amount of investment of impaired financing receivables with related allowance for credit losses and without a related allowance for credit losses.",
        "label": "Impaired Financing Receivable, Average Recorded Investment",
        "terseLabel": "Average investment in impaired loans",
        "totalLabel": "Average Recorded Investment"
       }
      }
     },
     "localname": "ImpairedFinancingReceivableAverageRecordedInvestment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansInformationRegardingImpairedLoansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ImpairedFinancingReceivableAverageRecordedInvestmentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impaired Financing Receivable, Average Recorded Investment [Abstract]",
        "terseLabel": "Impaired Financing Receivable, Average Recorded Investment [Abstract]"
       }
      }
     },
     "localname": "ImpairedFinancingReceivableAverageRecordedInvestmentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod": {
     "auth_ref": [
      "r211"
     ],
     "calculation": {
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of interest income recognized on a cash-basis method of accounting that the financing receivables (with related allowance for credit losses and without a related allowance for credit losses) were impaired.",
        "label": "Impaired Financing Receivable, Interest Income, Cash Basis Method",
        "terseLabel": "Interest income recognized on impaired loans, all on cash basis",
        "totalLabel": "Recognized Interest Income"
       }
      }
     },
     "localname": "ImpairedFinancingReceivableInterestIncomeCashBasisMethod",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansInformationRegardingImpairedLoansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethodAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impaired Financing Receivable, Interest Income, Cash Basis Method [Abstract]",
        "terseLabel": "Impaired Financing Receivable, Interest Income, Cash Basis Method [Abstract]"
       }
      }
     },
     "localname": "ImpairedFinancingReceivableInterestIncomeCashBasisMethodAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ImpairedFinancingReceivableRecordedInvestment": {
     "auth_ref": [
      "r206"
     ],
     "calculation": {
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.thefirst.com/role/LoansInformationRegardingImpairedLoansDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment of impaired financing receivables with related allowance for credit losses and without a related allowance for credit losses.",
        "label": "Impaired Financing Receivable, Recorded Investment",
        "totalLabel": "Balance of impaired loans"
       }
      }
     },
     "localname": "ImpairedFinancingReceivableRecordedInvestment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansInformationRegardingImpairedLoansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ImpairedFinancingReceivableRecordedInvestmentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impaired Financing Receivable, Recorded Investment [Abstract]",
        "terseLabel": "Impaired Financing Receivable, Recorded Investment [Abstract]"
       }
      }
     },
     "localname": "ImpairedFinancingReceivableRecordedInvestmentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ImpairedFinancingReceivableRelatedAllowance": {
     "auth_ref": [
      "r207"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of allowance for credit losses related to recorded investment.",
        "label": "Impaired Financing Receivable, Related Allowance",
        "terseLabel": "Portion of allowance for loan losses allocated to the impaired loan balance",
        "verboseLabel": "Related Allowance"
       }
      }
     },
     "localname": "ImpairedFinancingReceivableRelatedAllowance",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansInformationRegardingImpairedLoansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance": {
     "auth_ref": [
      "r208"
     ],
     "calculation": {
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unpaid principal balance of impaired financing receivables with related allowance for credit losses and without related allowance for credit losses.",
        "label": "Impaired Financing Receivable, Unpaid Principal Balance",
        "totalLabel": "Unpaid Principal Balance"
       }
      }
     },
     "localname": "ImpairedFinancingReceivableUnpaidPrincipalBalance",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalanceAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impaired Financing Receivable, Unpaid Principal Balance [Abstract]",
        "terseLabel": "Impaired Financing Receivable, Unpaid Principal Balance [Abstract]"
       }
      }
     },
     "localname": "ImpairedFinancingReceivableUnpaidPrincipalBalanceAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceAverageRecordedInvestment": {
     "auth_ref": [
      "r210",
      "r213"
     ],
     "calculation": {
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of average investment of impaired financing receivables for which there is no related allowance for credit losses.",
        "label": "Impaired Financing Receivable, with No Related Allowance, Average Recorded Investment",
        "terseLabel": "Average Recorded Investment, No Related Allowance"
       }
      }
     },
     "localname": "ImpairedFinancingReceivableWithNoRelatedAllowanceAverageRecordedInvestment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeCashBasisMethod": {
     "auth_ref": [
      "r211"
     ],
     "calculation": {
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of interest income, recognized on cash basis, on financing receivables, for which there is no related allowance for credit losses and are recognized as impaired.",
        "label": "Impaired Financing Receivable, with No Related Allowance, Interest Income, Cash Basis Method",
        "verboseLabel": "Recognized Interest Income, No Related Allowance"
       }
      }
     },
     "localname": "ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeCashBasisMethod",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment": {
     "auth_ref": [
      "r206"
     ],
     "calculation": {
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_ImpairedFinancingReceivableRecordedInvestment",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in impaired financing receivables for which there is no related allowance for credit losses.",
        "label": "Impaired Financing Receivable, with No Related Allowance, Recorded Investment",
        "terseLabel": "Recorded Investment, No Related Allowance"
       }
      }
     },
     "localname": "ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance": {
     "auth_ref": [
      "r208"
     ],
     "calculation": {
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unpaid principal balance of impaired financing receivables for which there is no related allowance for credit losses.",
        "label": "Impaired Financing Receivable, with No Related Allowance, Unpaid Principal Balance",
        "terseLabel": "Unpaid Principal Balance, No Related Allowance"
       }
      }
     },
     "localname": "ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceAverageRecordedInvestment": {
     "auth_ref": [
      "r210",
      "r213"
     ],
     "calculation": {
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of average investment of impaired financing receivables for which there is a related allowance for credit losses.",
        "label": "Impaired Financing Receivable, with Related Allowance, Average Recorded Investment",
        "terseLabel": "Average Recorded Investment, With Related Allowance"
       }
      }
     },
     "localname": "ImpairedFinancingReceivableWithRelatedAllowanceAverageRecordedInvestment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeCashBasisMethod": {
     "auth_ref": [
      "r211"
     ],
     "calculation": {
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of interest income on financing receivables, for which there is a related allowance for credit losses, recognized on a cash-basis method of accounting that the financing receivables were impaired.",
        "label": "Impaired Financing Receivable, with Related Allowance, Interest Income, Cash Basis Method",
        "terseLabel": "Recognized Interest Income, With Related Allowance"
       }
      }
     },
     "localname": "ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeCashBasisMethod",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment": {
     "auth_ref": [
      "r206"
     ],
     "calculation": {
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_ImpairedFinancingReceivableRecordedInvestment",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in impaired financing receivables for which there is a related allowance for credit losses.",
        "label": "Impaired Financing Receivable, with Related Allowance, Recorded Investment",
        "terseLabel": "Recorded Investment, With Related Allowance"
       }
      }
     },
     "localname": "ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance": {
     "auth_ref": [
      "r208"
     ],
     "calculation": {
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unpaid principal balance of impaired financing receivables for which there is a related allowance for credit losses.",
        "label": "Impaired Financing Receivable, with Related Allowance, Unpaid Principal Balance",
        "verboseLabel": "Unpaid Principal Balance, With Related Allowance"
       }
      }
     },
     "localname": "ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ImpairedFinancingReceivablesTableTextBlock": {
     "auth_ref": [
      "r212"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of impaired financing receivables.",
        "label": "Impaired Financing Receivables [Table Text Block]",
        "verboseLabel": "Impaired Loans by class of financing receivable"
       }
      }
     },
     "localname": "ImpairedFinancingReceivablesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments": {
     "auth_ref": [
      "r116",
      "r173",
      "r182",
      "r185",
      "r188",
      "r190"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 1.0,
       "parentTag": "fnlc_IncomeLossBeforeBankEarnings",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 1.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of income (loss) from continuing operations before deduction of income tax expense (benefit) and income (loss) attributable to noncontrolling interest, and addition of income (loss) from equity method investments.",
        "label": "Income (Loss) from Continuing Operations before Equity Method Investments, Income Taxes, Noncontrolling Interest",
        "totalLabel": "Income before income taxes"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeStatementAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Statement [Abstract]",
        "terseLabel": "Statements of Income"
       }
      }
     },
     "localname": "IncomeStatementAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Disclosure [Abstract]",
        "terseLabel": "Income Tax Disclosure [Abstract]"
       }
      }
     },
     "localname": "IncomeTaxDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxDisclosureTextBlock": {
     "auth_ref": [
      "r432",
      "r433",
      "r438",
      "r449",
      "r454",
      "r458",
      "r459",
      "r460"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for income taxes. Disclosures may include net deferred tax liability or asset recognized in an enterprise's statement of financial position, net change during the year in the total valuation allowance, approximate tax effect of each type of temporary difference and carryforward that gives rise to a significant portion of deferred tax liabilities and deferred tax assets, utilization of a tax carryback, and tax uncertainties information.",
        "label": "Income Tax Disclosure [Text Block]",
        "verboseLabel": "Income Taxes"
       }
      }
     },
     "localname": "IncomeTaxDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxes"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_IncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r114",
      "r138",
      "r139",
      "r172",
      "r430",
      "r450",
      "r456",
      "r706"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 2.0,
       "parentTag": "fnlc_IncomeLossBeforeBankEarnings",
       "weight": -1.0
      },
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 2.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": -1.0
      },
      "http://www.thefirst.com/role/IncomeTaxesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.thefirst.com/role/IncomeTaxesDetails_1": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations.",
        "label": "Income Tax Expense (Benefit)",
        "terseLabel": "Applicable tax expense",
        "totalLabel": "Income tax expense"
       }
      }
     },
     "localname": "IncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome",
      "http://www.thefirst.com/role/IncomeTaxesDetails",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxExpenseBenefitContinuingOperationsIncomeTaxReconciliationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective Income Tax Rate Reconciliation, Amount [Abstract]",
        "verboseLabel": "Reconciliation between US expected tax rate and actual tax expense"
       }
      }
     },
     "localname": "IncomeTaxExpenseBenefitContinuingOperationsIncomeTaxReconciliationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxPolicyTextBlock": {
     "auth_ref": [
      "r62",
      "r109",
      "r427",
      "r428",
      "r433",
      "r434",
      "r437",
      "r443",
      "r732"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for income taxes, which may include its accounting policies for recognizing and measuring deferred tax assets and liabilities and related valuation allowances, recognizing investment tax credits, operating loss carryforwards, tax credit carryforwards, and other carryforwards, methodologies for determining its effective income tax rate and the characterization of interest and penalties in the financial statements.",
        "label": "Income Tax, Policy [Policy Text Block]",
        "terseLabel": "Income Taxes"
       }
      }
     },
     "localname": "IncomeTaxPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate": {
     "auth_ref": [
      "r431"
     ],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails_1": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of income tax expense or benefit for the period computed by applying the domestic federal statutory tax rates to pretax income from continuing operations.",
        "label": "Effective Income Tax Rate Reconciliation at Federal Statutory Income Tax Rate, Amount",
        "terseLabel": "Expected tax expense"
       }
      }
     },
     "localname": "IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxReconciliationNondeductibleExpenseAmortization": {
     "auth_ref": [
      "r431"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to nondeductible amortization.",
        "label": "Effective Income Tax Rate Reconciliation, Nondeductible Expense, Amortization, Amount",
        "terseLabel": "Amortization of investments in limited partnerships"
       }
      }
     },
     "localname": "IncomeTaxReconciliationNondeductibleExpenseAmortization",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost": {
     "auth_ref": [
      "r431"
     ],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails_1": {
       "order": 6.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of reported income tax expense (benefit) in excess of (less than) expected income tax expense (benefit) computed by applying domestic federal statutory income tax rate to pretax income (loss) from continuing operation, attributable to nondeductible expense for award under share-based payment arrangement. Includes, but is not limited to, expense determined to be nondeductible upon grant or after for award under share-based payment arrangement.",
        "label": "Effective Income Tax Rate Reconciliation, Nondeductible Expense, Share-based Payment Arrangement, Amount",
        "terseLabel": "Equity compensation"
       }
      }
     },
     "localname": "IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxReconciliationOtherAdjustments": {
     "auth_ref": [
      "r431"
     ],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails_1": {
       "order": 5.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to other adjustments.",
        "label": "Effective Income Tax Rate Reconciliation, Other Adjustments, Amount",
        "terseLabel": "Other"
       }
      }
     },
     "localname": "IncomeTaxReconciliationOtherAdjustments",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes": {
     "auth_ref": [
      "r431"
     ],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails_1": {
       "order": 3.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to state and local income tax expense (benefit).",
        "label": "Effective Income Tax Rate Reconciliation, State and Local Income Taxes, Amount",
        "terseLabel": "State franchise tax, net of federal tax benefit"
       }
      }
     },
     "localname": "IncomeTaxReconciliationStateAndLocalIncomeTaxes",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxReconciliationTaxCredits": {
     "auth_ref": [
      "r431"
     ],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails_1": {
       "order": 4.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to tax credits. Including, but not limited to, research credit, foreign tax credit, investment tax credit, and other tax credits.",
        "label": "Effective Income Tax Rate Reconciliation, Tax Credit, Amount",
        "negatedLabel": "Tax credits, net of amortization"
       }
      }
     },
     "localname": "IncomeTaxReconciliationTaxCredits",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxReconciliationTaxCreditsInvestment": {
     "auth_ref": [
      "r431"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to investment tax credit.",
        "label": "Effective Income Tax Rate Reconciliation, Tax Credit, Investment, Amount",
        "terseLabel": "Tax credits from investments in limited partnerships"
       }
      }
     },
     "localname": "IncomeTaxReconciliationTaxCreditsInvestment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxReconciliationTaxExemptIncome": {
     "auth_ref": [
      "r431"
     ],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails_1": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to income (loss) exempt from income taxes.",
        "label": "Effective Income Tax Rate Reconciliation, Tax Exempt Income, Amount",
        "negatedLabel": "Non-taxable income"
       }
      }
     },
     "localname": "IncomeTaxReconciliationTaxExemptIncome",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxesPaid": {
     "auth_ref": [
      "r97",
      "r104"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of cash paid during the current period to foreign, federal, state, and local authorities as taxes on income.",
        "label": "Income Taxes Paid",
        "terseLabel": "Income taxes paid"
       }
      }
     },
     "localname": "IncomeTaxesPaid",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInDividendsReceivable": {
     "auth_ref": [
      "r100"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in cash disbursements due from investments, representing the shareholders' portion of profits.",
        "label": "Increase (Decrease) in Dividends Receivable",
        "negatedTerseLabel": "Increase in dividends receivable"
       }
      }
     },
     "localname": "IncreaseDecreaseInDividendsReceivable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingAssets": {
     "auth_ref": [
      "r100"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in operating assets classified as other.",
        "label": "Increase (Decrease) in Other Operating Assets",
        "negatedLabel": "(Increase) decrease in other assets",
        "negatedTerseLabel": "Net (increase) decrease in other assets and accrued interest"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherOperatingAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingLiabilities": {
     "auth_ref": [
      "r100"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in operating liabilities classified as other.",
        "label": "Increase (Decrease) in Other Operating Liabilities",
        "terseLabel": "Decrease in other liabilities",
        "verboseLabel": "Net increase in other liabilities"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherOperatingLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInStockholdersEquityRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Increase (Decrease) in Stockholders' Equity [Roll Forward]",
        "terseLabel": "Increase (Decrease) in Stockholders' Equity [Roll Forward]",
        "verboseLabel": "Increase (Decrease) in Accumulated Other Comprehensive Income [Roll Forward]"
       }
      }
     },
     "localname": "IncreaseDecreaseInStockholdersEquityRollForward",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquity",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofDerivativeFinancialInstrumentsDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofTransferofAFSSecuritiestoHTMDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonAvailableforSaleSecuritiesDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonPostretirementBenefitsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncreaseDecreaseInTimeDeposits": {
     "auth_ref": [
      "r655"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Net cash inflow (outflow) of time deposits.",
        "label": "Increase (Decrease) in Time Deposits",
        "terseLabel": "Net increase (decrease) in certificates of deposit"
       }
      }
     },
     "localname": "IncreaseDecreaseInTimeDeposits",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestAndDividendIncomeOperating": {
     "auth_ref": [
      "r641"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 2.0,
       "parentTag": "us-gaap_InterestIncomeExpenseNet",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the total of interest and dividend income, including any amortization and accretion (as applicable) of discounts and premiums, earned from (1) loans and leases whether held-for-sale or held-in-portfolio; (2) investment securities; (3) federal funds sold; (4) securities purchased under agreements to resell; (5) investments in banker's acceptances, commercial paper, or certificates of deposit; (6) dividend income; or (7) other investments not otherwise specified herein.",
        "label": "Interest and Dividend Income, Operating",
        "terseLabel": "Interest income",
        "totalLabel": "Total interest and dividend income"
       }
      }
     },
     "localname": "InterestAndDividendIncomeOperating",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestAndDividendIncomeOperatingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest and Dividend Income, Operating [Abstract]",
        "terseLabel": "Interest and dividend income"
       }
      }
     },
     "localname": "InterestAndDividendIncomeOperatingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InterestAndDividendIncomeSecurities": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 1.0,
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of operating dividend and interest income, including amortization and accretion of premiums and discounts, on securities.",
        "label": "Interest and Dividend Income, Securities, Operating",
        "terseLabel": "Interest and dividends on investments (includes tax-exempt income of $7,617,000 in 2020, $7,333,000 in 2019, and $6,954,000 in 2018)"
       }
      }
     },
     "localname": "InterestAndDividendIncomeSecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestAndFeeIncomeLoansAndLeases": {
     "auth_ref": [
      "r640"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 3.0,
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate interest and fee income generated by: (1) loans the Entity has positive intent and ability to hold for the foreseeable future, or until maturity or payoff, including commercial and consumer loans, whether domestic or foreign, which may consist of: (a) industrial and agricultural; (b) real estate; and (c) real estate construction loans; (d) trade financing; (e) lease financing; (f) home equity lines-of-credit; (g) automobile and other vehicle loans; and (h) credit card and other revolving-type loans and (2) loans and leases held-for-sale which may include mortgage loans, direct financing, and sales-type leases.",
        "label": "Interest and Fee Income, Loans and Leases",
        "terseLabel": "Interest and fees on loans (includes tax-exempt income of $1,170,000 in 2020, $1,302,000 in 2019, and $1,157,000 in 2018)"
       }
      }
     },
     "localname": "InterestAndFeeIncomeLoansAndLeases",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestBearingDepositsInBanks": {
     "auth_ref": [
      "r610",
      "r631"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 6.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/QuarterlyInformationDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For banks and other depository institutions (including Federal Reserve Banks, if applicable): Interest-bearing deposits in other financial institutions for relatively short periods of time including, for example, certificates of deposits, which are presented separately from cash on the balance sheet.",
        "label": "Interest-bearing Deposits in Banks and Other Financial Institutions",
        "terseLabel": "Interest-bearing deposits in other banks"
       }
      }
     },
     "localname": "InterestBearingDepositsInBanks",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpense": {
     "auth_ref": [
      "r65",
      "r171",
      "r533",
      "r536",
      "r654"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 1.0,
       "parentTag": "us-gaap_InterestIncomeExpenseNet",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of the cost of borrowed funds accounted for as interest expense.",
        "label": "Interest Expense",
        "terseLabel": "Interest expense",
        "totalLabel": "Total interest expense"
       }
      }
     },
     "localname": "InterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpenseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Expense [Abstract]",
        "terseLabel": "Interest expense"
       }
      }
     },
     "localname": "InterestExpenseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InterestExpenseBorrowings": {
     "auth_ref": [
      "r653"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 1.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate amount of interest expense on all borrowings.",
        "label": "Interest Expense, Borrowings",
        "terseLabel": "Interest on borrowed funds"
       }
      }
     },
     "localname": "InterestExpenseBorrowings",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpenseDeposits": {
     "auth_ref": [
      "r652"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 2.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate amount of interest expense on all deposits.",
        "label": "Interest Expense, Deposits",
        "terseLabel": "Interest on deposits"
       }
      }
     },
     "localname": "InterestExpenseDeposits",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpenseTimeDeposits100000OrMore": {
     "auth_ref": [
      "r652"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest expense incurred on time deposits, including certificates of deposits, of $100,000 or more in domestic offices.",
        "label": "Interest Expense, Time Deposits, $100,000 or More",
        "verboseLabel": "Interest expense on certificates of deposit of $100,000 or greater"
       }
      }
     },
     "localname": "InterestExpenseTimeDeposits100000OrMore",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CertificatesofDepositDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeDepositsWithFinancialInstitutions": {
     "auth_ref": [
      "r651"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 2.0,
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest income derived from funds deposited with both domestic and foreign financial institutions including funds in money market and other accounts.",
        "label": "Interest Income, Deposits with Financial Institutions",
        "terseLabel": "Interest on deposits with other banks"
       }
      }
     },
     "localname": "InterestIncomeDepositsWithFinancialInstitutions",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss": {
     "auth_ref": [
      "r644"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 3.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of interest income or expense, including any amortization and accretion (as applicable) of discounts and premiums, including consideration of the provisions for loan, lease, credit, and other related losses.",
        "label": "Interest Income (Expense), after Provision for Loan Loss",
        "totalLabel": "Net interest income after provision for loan losses"
       }
      }
     },
     "localname": "InterestIncomeExpenseAfterProvisionForLoanLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeExpenseNet": {
     "auth_ref": [
      "r642"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 2.0,
       "parentTag": "us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net amount of operating interest income (expense).",
        "label": "Interest Income (Expense), Net",
        "terseLabel": "Net interest income",
        "totalLabel": "Net interest income"
       }
      }
     },
     "localname": "InterestIncomeExpenseNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeSecuritiesTaxExempt": {
     "auth_ref": [
      "r650"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of operating interest income, including amortization and accretion of premiums and discounts, on securities exempt from state, federal and other income tax.",
        "label": "Interest Income, Securities, Operating, Tax Exempt",
        "verboseLabel": "Interest and dividends on investments (tax-exempt income)"
       }
      }
     },
     "localname": "InterestIncomeSecuritiesTaxExempt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncomeParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestPaidNet": {
     "auth_ref": [
      "r93",
      "r96",
      "r104"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash paid for interest, excluding capitalized interest, classified as operating activity. Includes, but is not limited to, payment to settle zero-coupon bond for accreted interest of debt discount and debt instrument with insignificant coupon interest rate in relation to effective interest rate of borrowing attributable to accreted interest of debt discount.",
        "label": "Interest Paid, Excluding Capitalized Interest, Operating Activities",
        "terseLabel": "Interest paid"
       }
      }
     },
     "localname": "InterestPaidNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestRateSwapMember": {
     "auth_ref": [
      "r495"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Forward based contracts in which two parties agree to swap periodic payments that are fixed at the outset of the swap contract with variable payments based on a market interest rate (index rate) over a specified period.",
        "label": "Interest Rate Swap [Member]",
        "terseLabel": "Interest Rate Swap"
       }
      }
     },
     "localname": "InterestRateSwapMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails",
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails",
      "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InterestReceivable": {
     "auth_ref": [
      "r35"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 10.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of interest earned but not received. Also called accrued interest or accrued interest receivable.",
        "label": "Interest Receivable",
        "terseLabel": "Accrued interest receivable"
       }
      }
     },
     "localname": "InterestReceivable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InternalCreditAssessmentAxis": {
     "auth_ref": [
      "r216",
      "r293",
      "r298",
      "r299",
      "r335",
      "r499"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by entity-defined rating.",
        "label": "Internal Credit Assessment [Axis]",
        "terseLabel": "Internal Credit Assessment [Axis]"
       }
      }
     },
     "localname": "InternalCreditAssessmentAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesRiskRatingsbySegmentDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InternalCreditAssessmentDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Entity defined credit risk rating.",
        "label": "Internal Credit Assessment [Domain]",
        "terseLabel": "Internal Credit Assessment [Domain]"
       }
      }
     },
     "localname": "InternalCreditAssessmentDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesRiskRatingsbySegmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_Investments": {
     "auth_ref": [
      "r697"
     ],
     "calculation": {
      "http://www.thefirst.com/role/QuarterlyInformationDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all investments.",
        "label": "Investments",
        "terseLabel": "Investments"
       }
      }
     },
     "localname": "Investments",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InvestmentsClassifiedByContractualMaturityDateTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of maturities of an entity's investments as well as any other information pertinent to the investments.",
        "label": "Investments Classified by Contractual Maturity Date [Table Text Block]",
        "terseLabel": "Contractual Maturities of Investment Securities"
       }
      }
     },
     "localname": "InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_InvestmentsDebtAndEquitySecuritiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments, Debt and Equity Securities [Abstract]",
        "terseLabel": "Investments, Debt and Equity Securities [Abstract]"
       }
      }
     },
     "localname": "InvestmentsDebtAndEquitySecuritiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock": {
     "auth_ref": [
      "r277",
      "r609",
      "r666",
      "r727"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for  investments in certain debt and equity securities.",
        "label": "Investments in Debt and Marketable Equity Securities (and Certain Trading Assets) Disclosure [Text Block]",
        "verboseLabel": "Investment Securities"
       }
      }
     },
     "localname": "InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecurities"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LaborAndRelatedExpense": {
     "auth_ref": [
      "r74"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 6.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense for salary, wage, profit sharing; incentive and equity-based compensation; and other employee benefit.",
        "label": "Labor and Related Expense",
        "terseLabel": "Salaries and employee benefits"
       }
      }
     },
     "localname": "LaborAndRelatedExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LandImprovementsMember": {
     "auth_ref": [
      "r4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Additions or improvements to real estate held.",
        "label": "Land Improvements [Member]",
        "terseLabel": "Land improvements"
       }
      }
     },
     "localname": "LandImprovementsMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentScheduleofPremisesandEquipmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LandMember": {
     "auth_ref": [
      "r350"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Part of earth's surface not covered by water.",
        "label": "Land [Member]",
        "terseLabel": "Land"
       }
      }
     },
     "localname": "LandMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentScheduleofPremisesandEquipmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LeaseCost": {
     "auth_ref": [
      "r544",
      "r546"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lease cost recognized by lessee for lease contract.",
        "label": "Lease, Cost",
        "terseLabel": "Lease expense"
       }
      }
     },
     "localname": "LeaseCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock": {
     "auth_ref": [
      "r545"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of undiscounted cash flows of lessee's operating lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to operating lease liability recognized in statement of financial position.",
        "label": "Lessee, Operating Lease, Liability, Maturity [Table Text Block]",
        "terseLabel": "Future Lease Payments for Operating Leases"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue": {
     "auth_ref": [
      "r545"
     ],
     "calculation": {
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails_1": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease.",
        "label": "Lessee, Operating Lease, Liability, to be Paid",
        "totalLabel": "Total undiscounted lease payments"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive": {
     "auth_ref": [
      "r545"
     ],
     "calculation": {
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails_1": {
       "order": 2.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease due after fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee, Operating Lease, Liability, to be Paid, after Year Five",
        "terseLabel": "Thereafter"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths": {
     "auth_ref": [
      "r545"
     ],
     "calculation": {
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails_1": {
       "order": 5.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year One",
        "terseLabel": "2021"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive": {
     "auth_ref": [
      "r545"
     ],
     "calculation": {
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails_1": {
       "order": 3.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Five",
        "terseLabel": "2025"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearFive",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour": {
     "auth_ref": [
      "r545"
     ],
     "calculation": {
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails_1": {
       "order": 4.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in fourth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Four",
        "terseLabel": "2024"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearFour",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree": {
     "auth_ref": [
      "r545"
     ],
     "calculation": {
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails_1": {
       "order": 6.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in third fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Three",
        "terseLabel": "2023"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearThree",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo": {
     "auth_ref": [
      "r545"
     ],
     "calculation": {
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails_1": {
       "order": 1.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in second fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Two",
        "terseLabel": "2022"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearTwo",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount": {
     "auth_ref": [
      "r545"
     ],
     "calculation": {
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payments in excess of discounted obligation for lease payments for operating lease.",
        "label": "Lessee, Operating Lease, Liability, Undiscounted Excess Amount",
        "terseLabel": "Less: imputed interest"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityUndiscountedExcessAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseRemainingLeaseTerm": {
     "auth_ref": [
      "r543"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Remaining lease term of operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Lessee, Operating Lease, Remaining Lease Term",
        "terseLabel": "Remaining lease term"
       }
      }
     },
     "localname": "LesseeOperatingLeaseRemainingLeaseTerm",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_LeverageRatiosAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Leverage Ratio [Abstract]",
        "terseLabel": "Average assets [Abstract]"
       }
      }
     },
     "localname": "LeverageRatiosAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_Liabilities": {
     "auth_ref": [
      "r29",
      "r111",
      "r184",
      "r279",
      "r474",
      "r478",
      "r479",
      "r524"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all liabilities that are recognized. Liabilities are probable future sacrifices of economic benefits arising from present obligations of an entity to transfer assets or provide services to other entities in the future.",
        "label": "Liabilities",
        "totalLabel": "Total liabilities"
       }
      }
     },
     "localname": "Liabilities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities [Abstract]",
        "verboseLabel": "Liabilities"
       }
      }
     },
     "localname": "LiabilitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilitiesAndStockholdersEquity": {
     "auth_ref": [
      "r24",
      "r111",
      "r279",
      "r524",
      "r621",
      "r694"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.thefirst.com/role/QuarterlyInformationDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liabilities and equity items, including the portion of equity attributable to noncontrolling interests, if any.",
        "label": "Liabilities and Equity",
        "totalLabel": "Total liabilities and shareholders' equity"
       }
      }
     },
     "localname": "LiabilitiesAndStockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesAndStockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities and Equity [Abstract]",
        "terseLabel": "Liabilities and shareholders' equity"
       }
      }
     },
     "localname": "LiabilitiesAndStockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilitiesAssumed1": {
     "auth_ref": [
      "r105",
      "r106",
      "r107"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The fair value of liabilities assumed in noncash investing or financing activities.",
        "label": "Liabilities Assumed",
        "terseLabel": "Less liabilities assumed"
       }
      }
     },
     "localname": "LiabilitiesAssumed1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LimitedPartnersCapitalAccount": {
     "auth_ref": [
      "r346"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of the limited partners' ownership interests.",
        "label": "Limited Partners' Capital Account",
        "terseLabel": "Carrying value of investments in limited partnerships"
       }
      }
     },
     "localname": "LimitedPartnersCapitalAccount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoanRestructuringModificationNameAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by name of loan modification, for example, but not limited to, modifications under government programs.",
        "label": "Loan Restructuring Modification Name [Axis]",
        "terseLabel": "Loan Restructuring Modification Name [Axis]"
       }
      }
     },
     "localname": "LoanRestructuringModificationNameAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansModificationStatusesbyPortfolioSegmentDetails",
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LoanRestructuringModificationNameDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of loan modification, for example, but not limited to, modifications under government programs.",
        "label": "Loan Restructuring Modification Name [Domain]",
        "terseLabel": "Loan Restructuring Modification Name [Domain]"
       }
      }
     },
     "localname": "LoanRestructuringModificationNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansModificationStatusesbyPortfolioSegmentDetails",
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LoansAndLeasesReceivableDeferredIncome": {
     "auth_ref": [
      "r221",
      "r234",
      "r539",
      "r632"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred interest and fee income, unamortized costs incurred to originate loans and leases, unamortized loan commitments and loan syndication fees, and premiums over or discounts from face amounts of acquired loans. Excludes amounts for loans and leases covered under loss sharing agreements.",
        "label": "Loans and Leases Receivable, Deferred Income",
        "terseLabel": "Net deferred loan costs included in loan balances"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableDeferredIncome",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansAndLeasesReceivableDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans and Leases Receivable Disclosure [Abstract]",
        "terseLabel": "Loans and Leases Receivable Disclosure [Abstract]"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_LoansAndLeasesReceivableImpairedInterestLostOnNonaccrualLoans": {
     "auth_ref": [
      "r236"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Reflects the amount of additional interest income that would have been recorded if impaired or nonperforming loans were instead current, in compliance with their original terms, and outstanding throughout the reporting period or since origination (if held for part of the period).",
        "label": "Loans and Leases Receivable, Impaired, Interest Lost on Nonaccrual Loans",
        "terseLabel": "Interest income which would have been recognized on these loans, if interest had been accrued"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableImpairedInterestLostOnNonaccrualLoans",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansAndLeasesReceivableOriginationFeesDiscountsOrPremiumsAndDirectCostsToAcquireLoansPolicy": {
     "auth_ref": [
      "r214"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for method for recognizing interest income and amortizing deferred fee or cost of financing receivable. Includes, but is not limited to, treatment of fee, cost, premium and discount.",
        "label": "Financing Receivable, Fee and Interest Income [Policy Text Block]",
        "terseLabel": "Loan Fees and Costs"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableOriginationFeesDiscountsOrPremiumsAndDirectCostsToAcquireLoansPolicy",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LoansAndLeasesReceivableRealEstateAcquiredThroughForeclosurePolicy": {
     "auth_ref": [
      "r230"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for real estate acquired through foreclosure.",
        "label": "Financing Receivable, Real Estate Acquired Through Foreclosure [Policy Text Block]",
        "terseLabel": "Other Real Estate Owned (OREO)"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableRealEstateAcquiredThroughForeclosurePolicy",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LoansAndLeasesReceivableRelatedPartiesRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Loans and Leases Receivable, Related Parties [Roll Forward]",
        "terseLabel": "Loans and Leases Receivable, Related Parties [Roll Forward]"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableRelatedPartiesRollForward",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansSummaryofLoanstoDirectorsandExecutiveOfficersDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by US and non-US government sponsored enterprise, authority, agency and program guarantees for government insured loans.",
        "label": "Loans Insured or Guaranteed by Government Authorities [Axis]",
        "terseLabel": "Loans Insured or Guaranteed by Government Authorities [Axis]"
       }
      }
     },
     "localname": "LoansInsuredOrGuaranteedByGovernmentAuthoritiesAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Guarantee by US and non-US government sponsored enterprises, authorities, agencies and programs for government insured loans.",
        "label": "Loans Insured or Guaranteed by Government Authorities [Domain]",
        "terseLabel": "Loans Insured or Guaranteed by Government Authorities [Domain]"
       }
      }
     },
     "localname": "LoansInsuredOrGuaranteedByGovernmentAuthoritiesDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LoansNotesTradeAndOtherReceivablesDisclosureTextBlock": {
     "auth_ref": [
      "r230"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for claims held for amounts due a entity, excluding financing receivables. Examples include, but are not limited to, trade accounts receivables, notes receivables, loans receivables. Includes disclosure for allowance for credit losses.",
        "label": "Loans, Notes, Trade and Other Receivables Disclosure [Text Block]",
        "verboseLabel": "Loans"
       }
      }
     },
     "localname": "LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/Loans"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LoansPledgedAsCollateral": {
     "auth_ref": [
      "r222",
      "r568"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of loans that have been pledged as collateral for borrowings. If the secured party has the right by contract or custom to sell or re-pledge the collateral, then the debtor reclassifies that asset and report that asset in its statement of financial position separately from other assets not so encumbered.",
        "label": "Loans Pledged as Collateral",
        "terseLabel": "Commercial, construction and home equity loans used to collateralize unused line of credit at the Federal Reserve Bank of Boston"
       }
      }
     },
     "localname": "LoansPledgedAsCollateral",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansReceivableFairValueDisclosure": {
     "auth_ref": [
      "r230"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of loan receivable, including, but not limited to, mortgage loans held for investment, finance receivables held for investment, policy loans on insurance contracts.",
        "label": "Loans Receivable, Fair Value Disclosure",
        "terseLabel": "Loans"
       }
      }
     },
     "localname": "LoansReceivableFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansReceivableHeldForSaleNetNotPartOfDisposalGroup": {
     "auth_ref": [
      "r194",
      "r730"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 12.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after valuation allowance, of financing receivable held for sale and not part of disposal group. Excludes loan covered under loss sharing agreement and loan classified as investment in debt security.",
        "label": "Financing Receivable, Held-for-Sale, Not Part of Disposal Group, after Valuation Allowance",
        "terseLabel": "Loans held for sale"
       }
      }
     },
     "localname": "LoansReceivableHeldForSaleNetNotPartOfDisposalGroup",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansReceivableMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "An amount of money or property, or a portion thereof, leant to a borrower (debtor) in exchange for a promise to repay the amount borrowed plus interest at a date certain in the future.",
        "label": "Loans Receivable [Member]",
        "terseLabel": "Loans Receivable in Bankruptcy"
       }
      }
     },
     "localname": "LoansReceivableMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LongTermDebt": {
     "auth_ref": [
      "r13",
      "r338",
      "r620",
      "r691"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but not limited to, notes payable, bonds payable, debentures, mortgage loans and commercial paper. Excludes capital lease obligations.",
        "label": "Long-term Debt",
        "terseLabel": "Borrowed funds \u2013 long term"
       }
      }
     },
     "localname": "LongTermDebt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LossContingencyAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loss Contingency [Abstract]",
        "terseLabel": "Loss Contingency [Abstract]"
       }
      }
     },
     "localname": "LossContingencyAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_LossContingencyDisclosures": {
     "auth_ref": [
      "r331",
      "r332"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for loss and gain contingencies. Describes any existing condition, situation, or set of circumstances involving uncertainty as of the balance sheet date (or prior to issuance of the financial statements) as to a probable or reasonably possible loss incurred by an entity that will ultimately be resolved when one or more future events occur or fail to occur, and typically discloses the amount of loss recorded or a range of possible loss, or an assertion that no reasonable estimate can be made.",
        "label": "Contingencies Disclosure [Text Block]",
        "verboseLabel": "Legal Contingencies"
       }
      }
     },
     "localname": "LossContingencyDisclosures",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LegalContingencies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_MarketableSecuritiesPolicy": {
     "auth_ref": [
      "r665"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for investment classified as marketable security.",
        "label": "Marketable Securities, Policy [Policy Text Block]",
        "terseLabel": "Investment Securities"
       }
      }
     },
     "localname": "MarketableSecuritiesPolicy",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_MarketingAndAdvertisingExpense": {
     "auth_ref": [
      "r77"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total expense recognized in the period for promotion, public relations, and brand or product advertising.",
        "label": "Marketing and Advertising Expense",
        "terseLabel": "Advertising and marketing expense"
       }
      }
     },
     "localname": "MarketingAndAdvertisingExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/OtherOperatingIncomeandExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MortgageBackedSecuritiesMember": {
     "auth_ref": [
      "r243",
      "r367",
      "r369",
      "r393",
      "r720"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Securities collateralized by mortgage loans.",
        "label": "Collateralized Mortgage Backed Securities [Member]",
        "terseLabel": "Mortgage-backed securities"
       }
      }
     },
     "localname": "MortgageBackedSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesTemporarilyImpairedDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueAFSDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MortgageBankingMember": {
     "auth_ref": [
      "r350"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Origination or servicing of loan secured by real property.",
        "label": "Mortgage Banking [Member]",
        "terseLabel": "Mortgage origination and servicing income"
       }
      }
     },
     "localname": "MortgageBankingMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MortgageLoansInProcessOfForeclosureAmount": {
     "auth_ref": [
      "r220"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Recorded investment of consumer mortgage loan receivables secured by residential real estate properties for which formal foreclosure proceedings are in process.",
        "label": "Mortgage Loans in Process of Foreclosure, Amount",
        "terseLabel": "Mortgage loans in the process of foreclosure"
       }
      }
     },
     "localname": "MortgageLoansInProcessOfForeclosureAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivities": {
     "auth_ref": [
      "r95"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 1.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from financing activities, including discontinued operations. Financing activity cash flows include obtaining resources from owners and providing them with a return on, and a return of, their investment; borrowing money and repaying amounts borrowed, or settling the obligation; and obtaining and paying for other resources obtained from creditors on long-term credit.",
        "label": "Net Cash Provided by (Used in) Financing Activities",
        "totalLabel": "Net cash provided by financing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInFinancingActivities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Financing Activities [Abstract]",
        "terseLabel": "Cash flows from financing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInFinancingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivities": {
     "auth_ref": [
      "r95"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 2.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from investing activities, including discontinued operations. Investing activity cash flows include making and collecting loans and acquiring and disposing of debt or equity instruments and property, plant, and equipment and other productive assets.",
        "label": "Net Cash Provided by (Used in) Investing Activities",
        "totalLabel": "Net cash used in investing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInInvestingActivities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Investing Activities [Abstract]",
        "terseLabel": "Cash flows from investing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInInvestingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivities": {
     "auth_ref": [
      "r95",
      "r99",
      "r102"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 3.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from operating activities, including discontinued operations. Operating activity cash flows include transactions, adjustments, and changes in value not defined as investing or financing activities.",
        "label": "Net Cash Provided by (Used in) Operating Activities",
        "totalLabel": "Net cash provided by operating activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInOperatingActivities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Operating Activities [Abstract]",
        "terseLabel": "Cash flows from operating activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInOperatingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetIncomeLoss": {
     "auth_ref": [
      "r2",
      "r56",
      "r59",
      "r66",
      "r102",
      "r111",
      "r128",
      "r132",
      "r133",
      "r134",
      "r135",
      "r138",
      "r139",
      "r147",
      "r173",
      "r182",
      "r185",
      "r188",
      "r190",
      "r279",
      "r524",
      "r635",
      "r700"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 1.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/EarningsPerShareDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The portion of profit or loss for the period, net of income taxes, which is attributable to the parent.",
        "label": "Net Income (Loss) Attributable to Parent",
        "terseLabel": "Net income",
        "totalLabel": "Net income",
        "verboseLabel": "Net income as reported"
       }
      }
     },
     "localname": "NetIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows",
      "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquity",
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome",
      "http://www.thefirst.com/role/EarningsPerShareDetails",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic": {
     "auth_ref": [
      "r132",
      "r133",
      "r134",
      "r135",
      "r143",
      "r144",
      "r148",
      "r151",
      "r173",
      "r182",
      "r185",
      "r188",
      "r190"
     ],
     "calculation": {
      "http://www.thefirst.com/role/EarningsPerShareDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after deduction of tax, noncontrolling interests, dividends on preferred stock and participating securities; of income (loss) available to common shareholders.",
        "label": "Net Income (Loss) Available to Common Stockholders, Basic",
        "totalLabel": "Basic EPS: Income available to common shareholders"
       }
      }
     },
     "localname": "NetIncomeLossAvailableToCommonStockholdersBasic",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EarningsPerShareDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted": {
     "auth_ref": [
      "r145",
      "r148",
      "r151"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after deduction of tax, noncontrolling interests, dividends on preferred stock and participating securities, and addition from assumption of issuance of common shares for dilutive potential common shares; of income (loss) available to common shareholders.",
        "label": "Net Income (Loss) Available to Common Stockholders, Diluted",
        "terseLabel": "Diluted EPS: Income available to common shareholders plus assumed conversions"
       }
      }
     },
     "localname": "NetIncomeLossAvailableToCommonStockholdersDiluted",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EarningsPerShareDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossAvailableToCommonStockholdersDilutedAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Income (Loss) Available to Common Stockholders, Diluted [Abstract]",
        "terseLabel": "Income (Numerator) [Abstract]"
       }
      }
     },
     "localname": "NetIncomeLossAvailableToCommonStockholdersDilutedAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EarningsPerShareDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock": {
     "auth_ref": [
      "r126",
      "r127",
      "r130",
      "r131",
      "r140",
      "r141",
      "r142",
      "r281",
      "r282",
      "r351",
      "r352",
      "r353",
      "r354",
      "r420",
      "r446",
      "r447",
      "r448",
      "r605",
      "r606",
      "r607",
      "r715",
      "r716",
      "r717",
      "r718",
      "r719"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for change in accounting principle. Includes, but is not limited to, nature, reason, and method of adopting amendment to accounting standards or other change in accounting principle.",
        "label": "Accounting Standards Update and Change in Accounting Principle [Text Block]",
        "terseLabel": "New Accounting Pronouncements"
       }
      }
     },
     "localname": "NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/NewAccountingPronouncements"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_NewAccountingPronouncementsPolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy pertaining to new accounting pronouncements that may impact the entity's financial reporting. Includes, but is not limited to, quantification of the expected or actual impact.",
        "label": "New Accounting Pronouncements, Policy [Policy Text Block]",
        "terseLabel": "New Accounting Pronouncements"
       }
      }
     },
     "localname": "NewAccountingPronouncementsPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_NoncashInvestingAndFinancingItemsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noncash Investing and Financing Items [Abstract]",
        "terseLabel": "Non-cash transactions:"
       }
      }
     },
     "localname": "NoncashInvestingAndFinancingItemsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NondesignatedMember": {
     "auth_ref": [
      "r487"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative instrument not designated as hedging instrument under Generally Accepted Accounting Principles (GAAP).",
        "label": "Not Designated as Hedging Instrument [Member]",
        "terseLabel": "Not Designated as Hedging Instrument [Member]"
       }
      }
     },
     "localname": "NondesignatedMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_NoninterestExpense": {
     "auth_ref": [
      "r649"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total aggregate amount of all noninterest expense.",
        "label": "Noninterest Expense",
        "terseLabel": "Non-interest expense",
        "totalLabel": "Total non-interest expense"
       }
      }
     },
     "localname": "NoninterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NoninterestExpenseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noninterest Expense [Abstract]",
        "terseLabel": "Non-interest expense"
       }
      }
     },
     "localname": "NoninterestExpenseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NoninterestIncome": {
     "auth_ref": [
      "r646"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total amount of noninterest income which may be derived from: (1) fees and commissions; (2) premiums earned; (3) insurance policy charges; (4) the sale or disposal of assets; and (5) other sources not otherwise specified.",
        "label": "Noninterest Income",
        "terseLabel": "Non-interest income",
        "totalLabel": "Non-interest income"
       }
      }
     },
     "localname": "NoninterestIncome",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NoninterestIncomeAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noninterest Income [Abstract]",
        "terseLabel": "Non-interest income"
       }
      }
     },
     "localname": "NoninterestIncomeAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NoninterestIncomeOtherOperatingIncome": {
     "auth_ref": [
      "r64",
      "r633",
      "r705"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 3.0,
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of revenue earned, classified as other, excluding interest income.",
        "label": "Noninterest Income, Other Operating Income",
        "terseLabel": "Other operating income"
       }
      }
     },
     "localname": "NoninterestIncomeOtherOperatingIncome",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NotesReceivableGross": {
     "auth_ref": [
      "r292",
      "r299",
      "r300"
     ],
     "calculation": {
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_NotesReceivableNet",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before allowance for credit loss, of financing receivable.",
        "label": "Financing Receivable, before Allowance for Credit Loss",
        "terseLabel": "Loans",
        "totalLabel": "Ending balance",
        "verboseLabel": "Balance"
       }
      }
     },
     "localname": "NotesReceivableGross",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails",
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets",
      "http://www.thefirst.com/role/LoansModificationStatusesbyPortfolioSegmentDetails",
      "http://www.thefirst.com/role/LoansNarrativeDetails",
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansPortfolioDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NotesReceivableNet": {
     "auth_ref": [
      "r19",
      "r194",
      "r292"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 7.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after allowance for credit loss, of financing receivable. Excludes financing receivable covered under loss sharing agreement.",
        "label": "Financing Receivable, after Allowance for Credit Loss",
        "totalLabel": "Net loans"
       }
      }
     },
     "localname": "NotesReceivableNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NumberOfOperatingSegments": {
     "auth_ref": [
      "r168"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of operating segments. An operating segment is a component of an enterprise: (a) that engages in business activities from which it may earn revenues and incur expenses (including revenues and expenses relating to transactions with other components of the same enterprise), (b) whose operating results are regularly reviewed by the enterprise's chief operating decision maker to make decisions about resources to be allocated to the segment and assess its performance, and (c) for which discrete financial information is available. An operating segment may engage in business activities for which it has yet to earn revenues, for example, start-up operations may be operating segments before earning revenues.",
        "label": "Number of Operating Segments",
        "terseLabel": "Number of reportable operating segments"
       }
      }
     },
     "localname": "NumberOfOperatingSegments",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "us-gaap_OccupancyNet": {
     "auth_ref": [
      "r78",
      "r538",
      "r647"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 3.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of net occupancy expense that may include items, such as depreciation of facilities and equipment, lease expenses, property taxes and property and casualty insurance expense.",
        "label": "Occupancy, Net",
        "terseLabel": "Occupancy expense"
       }
      }
     },
     "localname": "OccupancyNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseLiability": {
     "auth_ref": [
      "r541"
     ],
     "calculation": {
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease.",
        "label": "Operating Lease, Liability",
        "negatedTerseLabel": "Operating lease liability",
        "terseLabel": "Net lease liability"
       }
      }
     },
     "localname": "OperatingLeaseLiability",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsAdditionalInformationDetails",
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows",
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseLiabilityNoncurrentStatementOfFinancialPositionExtensibleList": {
     "auth_ref": [
      "r542"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates line item in statement of financial position that includes noncurrent operating lease liability.",
        "label": "Operating Lease, Liability, Noncurrent, Statement of Financial Position [Extensible List]",
        "terseLabel": "Operating Lease, Liability, Noncurrent, Statement of Financial Position [Extensible List]"
       }
      }
     },
     "localname": "OperatingLeaseLiabilityNoncurrentStatementOfFinancialPositionExtensibleList",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails"
     ],
     "xbrltype": "extensibleListItemType"
    },
    "us-gaap_OperatingLeaseRightOfUseAsset": {
     "auth_ref": [
      "r540"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's right to use underlying asset under operating lease.",
        "label": "Operating Lease, Right-of-Use Asset",
        "terseLabel": "Operating lease asset",
        "verboseLabel": "Right of use lease asset"
       }
      }
     },
     "localname": "OperatingLeaseRightOfUseAsset",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsAdditionalInformationDetails",
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows",
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseRightOfUseAssetStatementOfFinancialPositionExtensibleList": {
     "auth_ref": [
      "r542"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates line item in statement of financial position that includes operating lease right-of-use asset.",
        "label": "Operating Lease, Right-of-Use Asset, Statement of Financial Position [Extensible List]",
        "terseLabel": "Operating Lease, Right-of-Use Asset, Statement of Financial Position [Extensible List]"
       }
      }
     },
     "localname": "OperatingLeaseRightOfUseAssetStatementOfFinancialPositionExtensibleList",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails"
     ],
     "xbrltype": "extensibleListItemType"
    },
    "us-gaap_OtherAssets": {
     "auth_ref": [
      "r9",
      "r614",
      "r686"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 5.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of assets classified as other.",
        "label": "Other Assets",
        "terseLabel": "Other assets"
       }
      }
     },
     "localname": "OtherAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherAssetsMember": {
     "auth_ref": [
      "r489",
      "r504"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing other assets.",
        "label": "Other Assets [Member]",
        "terseLabel": "Other Assets"
       }
      }
     },
     "localname": "OtherAssetsMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherAssetsMiscellaneous": {
     "auth_ref": [],
     "calculation": {
      "http://www.thefirst.com/role/QuarterlyInformationDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of other miscellaneous assets.",
        "label": "Other Assets, Miscellaneous",
        "terseLabel": "Other assets"
       }
      }
     },
     "localname": "OtherAssetsMiscellaneous",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherBorrowings": {
     "auth_ref": [
      "r628"
     ],
     "calculation": {
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DebtAndCapitalLeaseObligations",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The carrying amount as of the balance sheet date for the aggregate of other miscellaneous borrowings owed by the reporting entity.",
        "label": "Other Borrowings",
        "terseLabel": "Other borrowed funds"
       }
      }
     },
     "localname": "OtherBorrowings",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax": {
     "auth_ref": [
      "r52",
      "r526",
      "r528",
      "r532"
     ],
     "calculation": {
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonAvailableforSaleSecuritiesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before tax and reclassification adjustments of other comprehensive income (loss).",
        "label": "Other Comprehensive Income (Loss), before Reclassifications, before Tax",
        "terseLabel": "Unrealized gains (losses) during the period"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofDerivativeFinancialInstrumentsDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonAvailableforSaleSecuritiesDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonPostretirementBenefitsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax": {
     "auth_ref": [
      "r41",
      "r48"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 4.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after tax and before reclassification, of gain (loss) from derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness.",
        "label": "Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), before Reclassification, after Tax",
        "terseLabel": "Net loss on cash flow hedging derivative instruments"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquity",
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTax": {
     "auth_ref": [
      "r57",
      "r60",
      "r63",
      "r67",
      "r340",
      "r526",
      "r531",
      "r532",
      "r636",
      "r701"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 2.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonAvailableforSaleSecuritiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax and reclassification adjustments of other comprehensive income (loss).",
        "label": "Other Comprehensive Income (Loss), Net of Tax",
        "terseLabel": "Other comprehensive gain (loss)",
        "totalLabel": "Other comprehensive gain (loss)"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofDerivativeFinancialInstrumentsDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofTransferofAFSSecuritiestoHTMDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonAvailableforSaleSecuritiesDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonPostretirementBenefitsDetails",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income (Loss), Net of Tax [Abstract]",
        "terseLabel": "Other comprehensive income (loss), net of tax"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax": {
     "auth_ref": [
      "r46",
      "r48"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after tax and reclassification adjustment, of (increase) decrease in accumulated other comprehensive income for defined benefit plan.",
        "label": "Other Comprehensive (Income) Loss, Defined Benefit Plan, after Reclassification Adjustment, after Tax",
        "negatedTerseLabel": "Unrecognized gain (loss) for post-retirement benefits, net of tax"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesTax": {
     "auth_ref": [
      "r49",
      "r276"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of tax expense (benefit) of reclassification adjustment from accumulated other comprehensive income for unrealized gain (loss) realized upon the sale of available-for-sale securities.",
        "label": "Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, Tax",
        "terseLabel": "Related income taxes"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesGainsandLossesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetTransitionAssetObligationNetOfTax": {
     "auth_ref": [
      "r48",
      "r53",
      "r54",
      "r379"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 2.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after tax, of reclassification adjustment from accumulated other comprehensive income (loss) for transition asset (obligation) of defined benefit plan.",
        "label": "Other Comprehensive Income (Loss), Defined Benefit Plan, Transition Asset (Obligation), Reclassification Adjustment from AOCI, after Tax",
        "negatedLabel": "Unrecognized gain (loss) on postretirement benefit costs",
        "negatedTerseLabel": "Net unrecognized gain (loss) on postretirement benefits"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetTransitionAssetObligationNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossTax": {
     "auth_ref": [
      "r49",
      "r67",
      "r430",
      "r455",
      "r457",
      "r526",
      "r529",
      "r532",
      "r636",
      "r701"
     ],
     "calculation": {
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonAvailableforSaleSecuritiesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of tax expense (benefit) allocated to other comprehensive income (loss).",
        "label": "Other Comprehensive Income (Loss), Tax",
        "negatedTerseLabel": "Related deferred taxes"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofDerivativeFinancialInstrumentsDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofTransferofAFSSecuritiestoHTMDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonAvailableforSaleSecuritiesDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonPostretirementBenefitsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax": {
     "auth_ref": [
      "r42",
      "r48"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 1.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after tax and before adjustment, of unrealized holding gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). Excludes unrealized gain (loss) on investment in debt security measured at amortized cost (held-to-maturity) from transfer to available-for-sale.",
        "label": "OCI, Debt Securities, Available-for-Sale, Unrealized Holding Gain (Loss), before Adjustment, after Tax",
        "netLabel": "Net unrealized gain (loss) on securities available for sale",
        "terseLabel": "Net unrealized gain (loss) on securities available for sale",
        "verboseLabel": "Net unrealized loss on securities available for sale, net of tax"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquity",
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherCostAndExpenseOperating": {
     "auth_ref": [
      "r76"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 2.0,
       "parentTag": "fnlc_TotalExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total amount of other operating cost and expense items that are associated with the entity's normal revenue producing operation.",
        "label": "Other Cost and Expense, Operating",
        "terseLabel": "Other operating expense"
       }
      }
     },
     "localname": "OtherCostAndExpenseOperating",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherDepreciationAndAmortization": {
     "auth_ref": [
      "r76",
      "r101",
      "r322"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense charged against earnings to allocate the cost of tangible and intangible assets over their remaining economic lives, classified as other.",
        "label": "Other Depreciation and Amortization",
        "terseLabel": "Amortization of investments in limited partnerships"
       }
      }
     },
     "localname": "OtherDepreciationAndAmortization",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherIncomeAndExpensesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Income and Expenses [Abstract]",
        "terseLabel": "Other Income and Expenses [Abstract]"
       }
      }
     },
     "localname": "OtherIncomeAndExpensesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherIncomeAndOtherExpenseDisclosureTextBlock": {
     "auth_ref": [
      "r355",
      "r426"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for other income or other expense items (both operating and nonoperating). Sources of nonoperating income or nonoperating expense that may be disclosed, include amounts earned from dividends, interest on securities, profits (losses) on securities, net and miscellaneous other income or income deductions.",
        "label": "Other Income and Other Expense Disclosure [Text Block]",
        "verboseLabel": "Other Operating Income and Expense"
       }
      }
     },
     "localname": "OtherIncomeAndOtherExpenseDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/OtherOperatingIncomeandExpense"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_OtherLiabilities": {
     "auth_ref": [
      "r629"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/QuarterlyInformationDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liabilities classified as other.",
        "label": "Other Liabilities",
        "terseLabel": "Other liabilities"
       }
      }
     },
     "localname": "OtherLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherLiabilitiesMember": {
     "auth_ref": [
      "r489",
      "r504"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing other liabilities.",
        "label": "Other Liabilities [Member]",
        "terseLabel": "Other Liabilities"
       }
      }
     },
     "localname": "OtherLiabilitiesMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherNoninterestExpense": {
     "auth_ref": [
      "r649"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 5.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of noninterest expense classified as other.",
        "label": "Other Noninterest Expense",
        "terseLabel": "Other operating expense"
       }
      }
     },
     "localname": "OtherNoninterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherOperatingIncome": {
     "auth_ref": [
      "r75"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 1.0,
       "parentTag": "fnlc_TotalIncome",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total amount of other operating income, the components of which are not separately disclosed on the income statement, from items that are associated with the entity's normal revenue producing operation.",
        "label": "Other Operating Income",
        "terseLabel": "Other operating income"
       }
      }
     },
     "localname": "OtherOperatingIncome",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/OtherOperatingIncomeandExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherRealEstateAndForeclosedAssets": {
     "auth_ref": [
      "r625"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of other real estate and foreclosed assets. Other real estate may include real estate investments, real estate loans that qualify as investments in real estate, and premises that are no longer used in operations may also be included in real estate owned. Foreclosed assets include all assets obtained in full or partial satisfaction of a debt arrangement through foreclosure proceedings.",
        "label": "Other Real Estate, Foreclosed Assets, and Repossessed Assets",
        "terseLabel": "Other real estate owned"
       }
      }
     },
     "localname": "OtherRealEstateAndForeclosedAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PastDueFinancingReceivablesTableTextBlock": {
     "auth_ref": [
      "r226",
      "r227",
      "r288",
      "r300"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of aging analysis for financing receivable.",
        "label": "Financing Receivable, Past Due [Table Text Block]",
        "terseLabel": "Past Due Loans Aging"
       }
      }
     },
     "localname": "PastDueFinancingReceivablesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale": {
     "auth_ref": [
      "r94",
      "r98"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of cash paid for the origination of mortgages that are held for sale.",
        "label": "Payments for Origination of Mortgage Loans Held-for-sale",
        "negatedTerseLabel": "Loans originated for resale"
       }
      }
     },
     "localname": "PaymentsForOriginationOfMortgageLoansHeldForSale",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsForRepurchaseOfCommonStock": {
     "auth_ref": [
      "r90"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      },
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow to reacquire common stock during the period.",
        "label": "Payments for Repurchase of Common Stock",
        "negatedLabel": "Purchase of common stock",
        "negatedTerseLabel": "Payment to repurchase common stock"
       }
      }
     },
     "localname": "PaymentsForRepurchaseOfCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsOfDividends": {
     "auth_ref": [
      "r90"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      },
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash outflow in the form of capital distributions and dividends to common shareholders, preferred shareholders and noncontrolling interests.",
        "label": "Payments of Dividends",
        "negatedLabel": "Dividends paid"
       }
      }
     },
     "localname": "PaymentsOfDividends",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt": {
     "auth_ref": [
      "r80",
      "r84",
      "r240"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow to acquire investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Payments to Acquire Debt Securities, Available-for-sale",
        "negatedLabel": "Purchases of securities available for sale"
       }
      }
     },
     "localname": "PaymentsToAcquireAvailableForSaleSecuritiesDebt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired": {
     "auth_ref": [
      "r85"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 12.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow associated with the acquisition of a business, net of the cash acquired from the purchase.",
        "label": "Payments to Acquire Businesses, Net of Cash Acquired",
        "negatedTerseLabel": "Cash paid, net of cash acquired, in branch acquisition"
       }
      }
     },
     "localname": "PaymentsToAcquireBusinessesNetOfCashAcquired",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireHeldToMaturitySecurities": {
     "auth_ref": [
      "r84",
      "r240"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow through purchase of long-term held-to-maturity securities.",
        "label": "Payments to Acquire Held-to-maturity Securities",
        "negatedLabel": "Purchases of securities to be held to maturity"
       }
      }
     },
     "localname": "PaymentsToAcquireHeldToMaturitySecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireLimitedPartnershipInterests": {
     "auth_ref": [
      "r85"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 14.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash outflow related to the acquisition or continued holding of limited partnership interests held for investment purposes.",
        "label": "Payments to Acquire Limited Partnership Interests",
        "negatedTerseLabel": "Cash paid for limited partnerships"
       }
      }
     },
     "localname": "PaymentsToAcquireLimitedPartnershipInterests",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquirePropertyPlantAndEquipment": {
     "auth_ref": [
      "r86"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      },
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 10.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow associated with the acquisition of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale; includes cash outflows to pay for construction of self-constructed assets.",
        "label": "Payments to Acquire Property, Plant, and Equipment",
        "negatedLabel": "Capital expenditures"
       }
      }
     },
     "localname": "PaymentsToAcquirePropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireRestrictedInvestments": {
     "auth_ref": [
      "r87"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow to acquire investments (not to include restricted cash) that are pledged or subject to withdrawal restrictions.",
        "label": "Payments to Acquire Restricted Investments",
        "negatedTerseLabel": "Purchase of restricted equity securities"
       }
      }
     },
     "localname": "PaymentsToAcquireRestrictedInvestments",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PensionAndOtherPostretirementBenefitExpense": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cost (reversal of cost) for pension and other postretirement benefits.",
        "label": "Pension and Other Postretirement Benefits Cost (Reversal of Cost)",
        "terseLabel": "Pension expense"
       }
      }
     },
     "localname": "PensionAndOtherPostretirementBenefitExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PensionAndOtherPostretirementBenefitsDisclosureTextBlock": {
     "auth_ref": [
      "r366",
      "r368",
      "r374",
      "r382",
      "r383",
      "r384",
      "r385",
      "r386",
      "r387",
      "r393",
      "r395",
      "r396",
      "r398",
      "r403"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for retirement benefits.",
        "label": "Retirement Benefits [Text Block]",
        "verboseLabel": "Employee Benefit Plans"
       }
      }
     },
     "localname": "PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlans"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PlanNameAxis": {
     "auth_ref": [
      "r407",
      "r416"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by plan name for share-based payment arrangement.",
        "label": "Plan Name [Axis]",
        "terseLabel": "Plan Name [Axis]"
       }
      }
     },
     "localname": "PlanNameAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationNarrativeDetails",
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PlanNameDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Plan name for share-based payment arrangement.",
        "label": "Plan Name [Domain]",
        "terseLabel": "Plan Name [Domain]"
       }
      }
     },
     "localname": "PlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationNarrativeDetails",
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PortionAtFairValueFairValueDisclosureMember": {
     "auth_ref": [
      "r519"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measured at fair value for financial reporting purposes.",
        "label": "Portion at Fair Value Measurement [Member]",
        "terseLabel": "Portion at Fair Value Measurement"
       }
      }
     },
     "localname": "PortionAtFairValueFairValueDisclosureMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails",
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PostemploymentBenefitPlansPolicy": {
     "auth_ref": [
      "r109",
      "r357"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for postemployment benefits. Postemployment benefits are benefits provided to former or inactive employees, their beneficiaries, and covered dependents after employment but before retirement, except for: a) benefits provided through a pension or postretirement benefit plan, b) individual deferred compensation arrangements, c) special or contractual termination benefits, and d) stock compensation plans.",
        "label": "Postemployment Benefit Plans, Policy [Policy Text Block]",
        "terseLabel": "Post-Retirement Benefits"
       }
      }
     },
     "localname": "PostemploymentBenefitPlansPolicy",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PriorPeriodAdjustmentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Prior Period Adjustment [Abstract]",
        "terseLabel": "Prior Period Adjustment [Abstract]"
       }
      }
     },
     "localname": "PriorPeriodAdjustmentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_PriorPeriodReclassificationAdjustmentDescription": {
     "auth_ref": [
      "r0"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for reclassification affecting comparability of financial statement. Excludes amendment to accounting standards, other change in accounting principle, and correction of error.",
        "label": "Reclassification, Comparability Adjustment [Policy Text Block]",
        "terseLabel": "Reclassifications"
       }
      }
     },
     "localname": "PriorPeriodReclassificationAdjustmentDescription",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ProceedsFromCollectionOfFinanceReceivables": {
     "auth_ref": [
      "r81"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 9.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the collection of receivables arising from the financing of goods and services.",
        "label": "Proceeds from Collection of Finance Receivables",
        "negatedLabel": "Net increase in loans"
       }
      }
     },
     "localname": "ProceedsFromCollectionOfFinanceReceivables",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromIssuanceOfCommonStock": {
     "auth_ref": [
      "r88"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow from the additional capital contribution to the entity.",
        "label": "Proceeds from Issuance of Common Stock",
        "terseLabel": "Proceeds from sale of common stock"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt": {
     "auth_ref": [
      "r89"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow from issuance of long-term debt classified as other.",
        "label": "Proceeds from Issuance of Other Long-term Debt",
        "terseLabel": "Advances on long-term borrowings"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfOtherLongTermDebt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities": {
     "auth_ref": [
      "r80",
      "r81",
      "r240"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 11.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow from maturity, prepayment and call of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Proceeds from Maturities, Prepayments and Calls of Debt Securities, Available-for-sale",
        "terseLabel": "Proceeds from maturities, payments, calls of securities available for sale"
       }
      }
     },
     "localname": "ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities": {
     "auth_ref": [
      "r81",
      "r240"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the maturity, prepayments and calls (requests for early payments) of debt securities designated as held-to-maturity.",
        "label": "Proceeds from Maturities, Prepayments and Calls of Held-to-maturity Securities",
        "terseLabel": "Proceeds from maturities, payments, calls and sales of securities held to maturity"
       }
      }
     },
     "localname": "ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromRepaymentsOfShortTermDebt": {
     "auth_ref": [
      "r121"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net cash inflow or outflow for borrowing having initial term of repayment within one year or the normal operating cycle, if longer.",
        "label": "Proceeds from (Repayments of) Short-term Debt",
        "terseLabel": "Net increase in short-term borrowings"
       }
      }
     },
     "localname": "ProceedsFromRepaymentsOfShortTermDebt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the aggregate amount received by the entity through sale or maturity of marketable securities  (held-to-maturity or available-for-sale) during the period.",
        "label": "Proceeds from Sale and Maturity of Marketable Securities",
        "terseLabel": "Proceeds from sales of securities"
       }
      }
     },
     "localname": "ProceedsFromSaleAndMaturityOfMarketableSecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesGainsandLossesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt": {
     "auth_ref": [
      "r80",
      "r81",
      "r240"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 13.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow from sale of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Proceeds from Sale of Debt Securities, Available-for-sale",
        "terseLabel": "Proceeds from sales of securities available for sale"
       }
      }
     },
     "localname": "ProceedsFromSaleOfAvailableForSaleSecuritiesDebt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows",
      "http://www.thefirst.com/role/InvestmentSecuritiesNarrativeDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesGainsandLossesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfHeldToMaturitySecurities": {
     "auth_ref": [
      "r81",
      "r240"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the sale of securities that had been designated as held-to-maturity. Excludes proceeds from maturities, prepayments and calls by the issuer.",
        "label": "Proceeds from Sale of Held-to-maturity Securities",
        "terseLabel": "Proceeds from sale of held-to-maturity securities"
       }
      }
     },
     "localname": "ProceedsFromSaleOfHeldToMaturitySecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfLoansHeldForSale": {
     "auth_ref": [
      "r92",
      "r94"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow resulting from the sale of loans classified as held-for-sale, including proceeds from loans sold through mortgage securitization.",
        "label": "Proceeds from Sale of Loans Held-for-sale",
        "terseLabel": "Proceeds from sales and transfers of loans"
       }
      }
     },
     "localname": "ProceedsFromSaleOfLoansHeldForSale",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfOtherRealEstate": {
     "auth_ref": [
      "r83"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the sale of other real estate not otherwise defined in the taxonomy.",
        "label": "Proceeds from Sale of Other Real Estate",
        "terseLabel": "Proceeds from sales of other real estate owned"
       }
      }
     },
     "localname": "ProceedsFromSaleOfOtherRealEstate",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment": {
     "auth_ref": [
      "r82"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow from the sale of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale.",
        "label": "Proceeds from Sale of Property, Plant, and Equipment",
        "terseLabel": "Proceeds from sale of premises and equipment"
       }
      }
     },
     "localname": "ProceedsFromSaleOfPropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProfessionalFees": {
     "auth_ref": [
      "r722",
      "r723"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A fee charged for services from professionals such as doctors, lawyers and accountants. The term is often expanded to include other professions, for example, pharmacists charging to maintain a medicinal profile of a client or customer.",
        "label": "Professional Fees",
        "terseLabel": "Accounting and auditing expenses"
       }
      }
     },
     "localname": "ProfessionalFees",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/OtherOperatingIncomeandExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment [Abstract]",
        "terseLabel": "Property, Plant and Equipment [Abstract]"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentByTypeAxis": {
     "auth_ref": [
      "r28",
      "r324"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of long-lived, physical assets used to produce goods and services and not intended for resale.",
        "label": "Long-Lived Tangible Asset [Axis]",
        "terseLabel": "Property, Plant and Equipment by Type [Axis]"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentByTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails",
      "http://www.thefirst.com/role/PremisesandEquipmentScheduleofPremisesandEquipmentDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentDisclosureTextBlock": {
     "auth_ref": [
      "r326",
      "r733",
      "r734",
      "r735"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for long-lived, physical asset used in normal conduct of business and not intended for resale. Includes, but is not limited to, work of art, historical treasure, and similar asset classified as collections.",
        "label": "Property, Plant and Equipment Disclosure [Text Block]",
        "verboseLabel": "Premises and Equipment"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipment"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Property, Plant and Equipment [Line Items]",
        "terseLabel": "Property, Plant and Equipment [Line Items]"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails",
      "http://www.thefirst.com/role/PremisesandEquipmentScheduleofPremisesandEquipmentDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentNet": {
     "auth_ref": [
      "r7",
      "r8",
      "r324",
      "r695"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after accumulated depreciation, depletion and amortization of physical assets used in the normal conduct of business to produce goods and services and not intended for resale. Examples include, but are not limited to, land, buildings, machinery and equipment, office equipment, and furniture and fixtures.",
        "label": "Property, Plant and Equipment, Net",
        "terseLabel": "Premises and equipment, net",
        "verboseLabel": "Premises and equipment"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentPolicyTextBlock": {
     "auth_ref": [
      "r27",
      "r109",
      "r324",
      "r733",
      "r734"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for long-lived, physical asset used in normal conduct of business and not intended for resale. Includes, but is not limited to, work of art, historical treasure, and similar asset classified as collections.",
        "label": "Property, Plant and Equipment, Policy [Policy Text Block]",
        "verboseLabel": "Premises and Equipment"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentTextBlock": {
     "auth_ref": [
      "r7",
      "r324"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of physical assets used in the normal conduct of business and not intended for resale. Includes, but is not limited to, balances by class of assets, depreciation and depletion expense and method used, including composite depreciation, and accumulated deprecation.",
        "label": "Property, Plant and Equipment [Table Text Block]",
        "terseLabel": "Premises and Equipment"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentTypeDomain": {
     "auth_ref": [
      "r7",
      "r323"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Listing of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale. Examples include land, buildings, machinery and equipment, and other types of furniture and equipment including, but not limited to, office equipment, furniture and fixtures, and computer equipment and software.",
        "label": "Long-Lived Tangible Asset [Domain]",
        "terseLabel": "Property, Plant and Equipment, Type [Domain]"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails",
      "http://www.thefirst.com/role/PremisesandEquipmentScheduleofPremisesandEquipmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ProvisionForLoanAndLeaseLosses": {
     "auth_ref": [
      "r100",
      "r200",
      "r643"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 13.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 1.0,
       "parentTag": "us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense related to estimated loss from loan and lease transactions.",
        "label": "Provision for Loan and Lease Losses",
        "terseLabel": "Provision for loan losses"
       }
      }
     },
     "localname": "ProvisionForLoanAndLeaseLosses",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails",
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows",
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProvisionForOtherLosses": {
     "auth_ref": [
      "r71",
      "r100",
      "r634"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense related to other loss.",
        "label": "Provision for Other Losses",
        "terseLabel": "Provision for losses on other real estate owned"
       }
      }
     },
     "localname": "ProvisionForOtherLosses",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_QuarterlyFinancialInformationDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Quarterly Financial Information Disclosure [Abstract]",
        "terseLabel": "Quarterly Financial Information Disclosure [Abstract]"
       }
      }
     },
     "localname": "QuarterlyFinancialInformationDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_QuarterlyFinancialInformationTextBlock": {
     "auth_ref": [
      "r159"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for quarterly financial data. Includes, but is not limited to, tabular presentation of financial information for fiscal quarters, effect of year-end adjustments, and an explanation of matters or transactions that affect comparability of the information.",
        "label": "Quarterly Financial Information [Text Block]",
        "verboseLabel": "Quarterly Information"
       }
      }
     },
     "localname": "QuarterlyFinancialInformationTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/QuarterlyInformation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RealEstateAcquiredThroughForeclosure": {
     "auth_ref": [
      "r195",
      "r196"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of land and buildings obtained through foreclosure proceedings or defeasance in full or partial satisfaction of a debt arrangement.",
        "label": "Real Estate Acquired Through Foreclosure",
        "terseLabel": "Real estate acquired in settlement of loans"
       }
      }
     },
     "localname": "RealEstateAcquiredThroughForeclosure",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/OtherRealEstateOwnedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RealEstateLoanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loan to finance the purchase of real estate, including but not limited to, land or building.",
        "label": "Real Estate Loan [Member]",
        "terseLabel": "Real estate"
       }
      }
     },
     "localname": "RealEstateLoanMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesCompositionofAllowanceforLoansLossesbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesFinancingReceivableandAllowanceElementbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesRiskRatingsbySegmentDetails",
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails",
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansNonaccrualLoansDetails",
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansPortfolioDetails",
      "http://www.thefirst.com/role/LoansPreModificationandPostModificationOutstandingRecordedInvestmentDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandAssociatedSpecificReservesDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandSpecificReserveDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RealEstateOwnedDisclosureOfDetailedComponentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Real Estate Owned, Disclosure of Detailed Components [Abstract]",
        "terseLabel": "Real Estate Owned, Disclosure of Detailed Components [Abstract]"
       }
      }
     },
     "localname": "RealEstateOwnedDisclosureOfDetailedComponentsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_RealEstateOwnedTextBlock": {
     "auth_ref": [
      "r195"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for real estate owned (as defined). Generally, the largest component of real estate owned by lenders is assets taken in settlement of troubled loans through surrender or foreclosure. Real estate investments, real estate loans that qualify as investments in real estate, and premises that are no longer used in operations may also be included in real estate owned.",
        "label": "Real Estate Owned [Text Block]",
        "verboseLabel": "Other Real Estate Owned"
       }
      }
     },
     "localname": "RealEstateOwnedTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/OtherRealEstateOwned"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RealEstateOwnedValuationAllowance": {
     "auth_ref": [
      "r625"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For each period for which an income statement is required, disclosure of the changes in the allowance, including balances at end of period.",
        "label": "Real Estate Owned, Valuation Allowance",
        "periodEndLabel": "Balance at end of year",
        "periodStartLabel": "Balance at beginning of year",
        "terseLabel": "Allowance for loan losses, other real estate owned"
       }
      }
     },
     "localname": "RealEstateOwnedValuationAllowance",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails",
      "http://www.thefirst.com/role/OtherRealEstateOwnedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RealEstateOwnedValuationAllowanceAmountsApplied": {
     "auth_ref": [
      "r625"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of the valuation allowance for real estate owned that was applied in the period against the carrying amount of real estate owned that was sold, written down or written off.",
        "label": "Real Estate Owned, Valuation Allowance, Amounts Applied",
        "negatedTerseLabel": "Losses charged to allowance"
       }
      }
     },
     "localname": "RealEstateOwnedValuationAllowanceAmountsApplied",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/OtherRealEstateOwnedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RealEstateOwnedValuationAllowanceProvision1": {
     "auth_ref": [
      "r625"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense recognized in the income statement for a decrease in valuation of real estate owned (REO).",
        "label": "Real Estate Owned, Valuation Allowance, Provision",
        "terseLabel": "Provision charged to operating expenses"
       }
      }
     },
     "localname": "RealEstateOwnedValuationAllowanceProvision1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/OtherRealEstateOwnedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RealEstateOwnedValuationAllowanceRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Real Estate Owned Valuation Allowance [Roll Forward]",
        "verboseLabel": "Real Estate Owned Valuation Allowance [Roll Forward]"
       }
      }
     },
     "localname": "RealEstateOwnedValuationAllowanceRollForward",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/OtherRealEstateOwnedDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ReceivableTypeDomain": {
     "auth_ref": [
      "r34"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing arrangement representing a contractual right to receive money either on demand or on fixed and determinable dates.",
        "label": "Receivable [Domain]",
        "terseLabel": "Receivable [Domain]"
       }
      }
     },
     "localname": "ReceivableTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ReceivablesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Receivables [Abstract]",
        "terseLabel": "Receivables [Abstract]"
       }
      }
     },
     "localname": "ReceivablesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax": {
     "auth_ref": [
      "r52",
      "r55",
      "r526",
      "r530",
      "r532"
     ],
     "calculation": {
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonAvailableforSaleSecuritiesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before tax of reclassification adjustments of other comprehensive income (loss).",
        "label": "Reclassification from Accumulated Other Comprehensive Income, Current Period, before Tax",
        "negatedLabel": "Amortization of unrealized losses",
        "negatedTerseLabel": "Realized gains during the period"
       }
      }
     },
     "localname": "ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofTransferofAFSSecuritiestoHTMDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonAvailableforSaleSecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock": {
     "auth_ref": [
      "r674",
      "r675",
      "r676",
      "r678",
      "r679",
      "r680",
      "r682",
      "r683"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for regulatory capital requirement for depository and lending institutions. Institutions include, but not are not limited to, finance company, insured depository institution, bank holding company, savings and loan association holding company, bank and savings institution not federally insured, mortgage company, foreign financial institution and credit union.",
        "label": "Regulatory Capital Requirements under Banking Regulations [Text Block]",
        "verboseLabel": "Regulatory Capital Requirements"
       }
      }
     },
     "localname": "RegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirements"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RepaymentsOfOtherLongTermDebt": {
     "auth_ref": [
      "r91"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow for the payment of debt classified as other, maturing after one year or the operating cycle, if longer.",
        "label": "Repayments of Other Long-term Debt",
        "negatedTerseLabel": "Repayment on long-term borrowings"
       }
      }
     },
     "localname": "RepaymentsOfOtherLongTermDebt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ResidentialPortfolioSegmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Portfolio segment of the company's total financing receivables related to residential financing receivables.",
        "label": "Residential Portfolio Segment [Member]",
        "terseLabel": "Residential"
       }
      }
     },
     "localname": "ResidentialPortfolioSegmentMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesCompositionofAllowanceforLoansLossesbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesFinancingReceivableandAllowanceElementbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails",
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails",
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansModificationStatusesbyPortfolioSegmentDetails",
      "http://www.thefirst.com/role/LoansNonaccrualLoansDetails",
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansPortfolioDetails",
      "http://www.thefirst.com/role/LoansPreModificationandPostModificationOutstandingRecordedInvestmentDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandAssociatedSpecificReservesDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandSpecificReserveDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RestrictedCashAndCashEquivalents": {
     "auth_ref": [
      "r5",
      "r103",
      "r108",
      "r611",
      "r692"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash and cash equivalents restricted as to withdrawal or usage. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Restricted Cash and Cash Equivalents",
        "terseLabel": "Cash held in Reserve at Federal Reserve Bank"
       }
      }
     },
     "localname": "RestrictedCashAndCashEquivalents",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CashandCashEquivalentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RestrictedStockMember": {
     "auth_ref": [
      "r152"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock including a provision that prohibits sale or substantive sale of an equity instrument for a specified period of time or until specified performance conditions are met.",
        "label": "Restricted Stock [Member]",
        "terseLabel": "Restricted Stock"
       }
      }
     },
     "localname": "RestrictedStockMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationNarrativeDetails",
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RetainedEarningsAccumulatedDeficit": {
     "auth_ref": [
      "r21",
      "r345",
      "r421",
      "r693",
      "r715",
      "r719"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cumulative amount of the reporting entity's undistributed earnings or deficit.",
        "label": "Retained Earnings (Accumulated Deficit)",
        "terseLabel": "Retained earnings"
       }
      }
     },
     "localname": "RetainedEarningsAccumulatedDeficit",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RetainedEarningsMember": {
     "auth_ref": [
      "r123",
      "r124",
      "r125",
      "r129",
      "r137",
      "r139",
      "r280",
      "r417",
      "r418",
      "r419",
      "r444",
      "r445",
      "r712",
      "r714"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cumulative amount of the reporting entity's undistributed earnings or deficit.",
        "label": "Retained Earnings [Member]",
        "terseLabel": "Retained earnings"
       }
      }
     },
     "localname": "RetainedEarningsMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax": {
     "auth_ref": [
      "r169",
      "r170",
      "r181",
      "r186",
      "r187",
      "r191",
      "r192",
      "r193",
      "r348",
      "r349",
      "r603"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome": {
       "order": 1.0,
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, including tax collected from customer, of revenue from satisfaction of performance obligation by transferring promised good or service to customer. Tax collected from customer is tax assessed by governmental authority that is both imposed on and concurrent with specific revenue-producing transaction, including, but not limited to, sales, use, value-added and excise.",
        "label": "Revenue from Contract with Customer, Including Assessed Tax",
        "terseLabel": "Non-interest income"
       }
      }
     },
     "localname": "RevenueFromContractWithCustomerIncludingAssessedTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RiskBasedRatiosAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Risk-Based Information [Abstract]",
        "verboseLabel": "Risk-weighted assets [Abstract]"
       }
      }
     },
     "localname": "RiskBasedRatiosAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable": {
     "auth_ref": [
      "r34"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule itemizing specific types of trade accounts and notes receivable, and for each the gross carrying value, allowance, and net carrying value as of the balance sheet date. Presentation is categorized by current, noncurrent and unclassified receivables.",
        "label": "Schedule of Accounts, Notes, Loans and Financing Receivable [Table]",
        "terseLabel": "Schedule of Accounts, Notes, Loans and Financing Receivable [Table]"
       }
      }
     },
     "localname": "ScheduleOfAccountsNotesLoansAndFinancingReceivableTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesCompositionofAllowanceforLoansLossesbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesFinancingReceivableandAllowanceElementbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesNarrativeDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesRiskRatingsbySegmentDetails",
      "http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansModificationStatusesbyPortfolioSegmentDetails",
      "http://www.thefirst.com/role/LoansNonaccrualLoansDetails",
      "http://www.thefirst.com/role/LoansPastdueStatusofLoansbyClassDetails",
      "http://www.thefirst.com/role/LoansPortfolioDetails",
      "http://www.thefirst.com/role/LoansPreModificationandPostModificationOutstandingRecordedInvestmentDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandAssociatedSpecificReservesDetails",
      "http://www.thefirst.com/role/LoansTDRsbyClassandSpecificReserveDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfAccumulatedOtherComprehensiveIncomeLossTableTextBlock": {
     "auth_ref": [
      "r52",
      "r531",
      "r532"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the components of accumulated other comprehensive income (loss).",
        "label": "Schedule of Accumulated Other Comprehensive Income (Loss) [Table Text Block]",
        "terseLabel": "Schedule of Accumulated Other Comprehensive Income (Loss)"
       }
      }
     },
     "localname": "ScheduleOfAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Debt Securities, Available-for-sale [Line Items]",
        "terseLabel": "Debt Securities, Available-for-sale [Line Items]"
       }
      }
     },
     "localname": "ScheduleOfAvailableForSaleSecuritiesLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesNarrativeDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesTemporarilyImpairedDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueAFSDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable": {
     "auth_ref": [
      "r462",
      "r463"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule reflecting each material business combination (or series of individually immaterial business combinations) completed during the period, including background, timing, and recognized assets and liabilities.",
        "label": "Schedule of Business Acquisitions, by Acquisition [Table]",
        "terseLabel": "Schedule of Business Acquisitions, by Acquisition [Table]"
       }
      }
     },
     "localname": "ScheduleOfBusinessAcquisitionsByAcquisitionTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsAdditionalInformationDetails",
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsSummaryofConsiderationPaidDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTextBlock": {
     "auth_ref": [
      "r462",
      "r463"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of a material business combination completed during the period, including background, timing, and recognized assets and liabilities. This table  does not include leveraged buyouts.",
        "label": "Schedule of Business Acquisitions, by Acquisition [Table Text Block]",
        "terseLabel": "Summary of Consideration Paid"
       }
      }
     },
     "localname": "ScheduleOfBusinessAcquisitionsByAcquisitionTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AcquisitionsandIntangibleAssetsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTable": {
     "auth_ref": [
      "r677",
      "r681"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A table disclosing the capital amounts and ratios as of the balance sheet date indicating whether the entity or entities are in compliance with regulatory capital requirements, by entity.",
        "label": "Schedule of Compliance with Regulatory Capital Requirements under Banking Regulations [Table]",
        "terseLabel": "Schedule of Compliance with Regulatory Capital Requirements under Banking Regulations [Table]"
       }
      }
     },
     "localname": "ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock": {
     "auth_ref": [
      "r677",
      "r681"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the capital amounts and ratios as of the balance sheet date, indicating whether the entity or entities are in compliance with regulatory capital requirements, by entity.",
        "label": "Schedule of Compliance with Regulatory Capital Requirements under Banking Regulations [Table Text Block]",
        "terseLabel": "The actual and minimum capital amounts and ratios"
       }
      }
     },
     "localname": "ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock": {
     "auth_ref": [
      "r443"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the components of income tax expense attributable to continuing operations for each year presented including, but not limited to: current tax expense (benefit), deferred tax expense (benefit), investment tax credits, government grants, the benefits of operating loss carryforwards, tax expense that results from allocating certain tax benefits either directly to contributed capital or to reduce goodwill or other noncurrent intangible assets of an acquired entity, adjustments of a deferred tax liability or asset for enacted changes in tax laws or rates or a change in the tax status of the entity, and adjustments of the beginning-of-the-year balances of a valuation allowance because of a change in circumstances that causes a change in judgment about the realizability of the related deferred tax asset in future years.",
        "label": "Schedule of Components of Income Tax Expense (Benefit) [Table Text Block]",
        "terseLabel": "Current and Deferred Components of Income Tax Expense"
       }
      }
     },
     "localname": "ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock": {
     "auth_ref": [
      "r436"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the components of net deferred tax asset or liability recognized in an entity's statement of financial position, including the following: the total of all deferred tax liabilities, the total of all deferred tax assets, the total valuation allowance recognized for deferred tax assets.",
        "label": "Schedule of Deferred Tax Assets and Liabilities [Table Text Block]",
        "terseLabel": "Components of Deferred Tax Assets and Liabilities"
       }
      }
     },
     "localname": "ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDerivativeInstrumentsTextBlock": {
     "auth_ref": [
      "r481",
      "r484",
      "r485",
      "r487",
      "r488",
      "r493",
      "r494",
      "r500",
      "r503"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of pertinent information about a derivative or group of derivatives on a disaggregated basis, such as for individual instruments, or small groups of similar instruments. May include a combination of the type of instrument, risks being hedged, notional amount, hedge designation, related hedged item, inception date, maturity date, or other relevant item.",
        "label": "Schedule of Derivative Instruments [Table Text Block]",
        "terseLabel": "Schedule of Derivative Instruments"
       }
      }
     },
     "localname": "ScheduleOfDerivativeInstrumentsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FinancialDerivativeInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock": {
     "auth_ref": [
      "r151"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of an entity's basic and diluted earnings per share calculations, including a reconciliation of numerators and denominators of the basic and diluted per-share computations for income from continuing operations.",
        "label": "Schedule of Earnings Per Share, Basic and Diluted [Table Text Block]",
        "terseLabel": "Basic and diluted earnings per share (EPS)"
       }
      }
     },
     "localname": "ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EarningsPerShareTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock": {
     "auth_ref": [
      "r431"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the reconciliation using percentage or dollar amounts of the reported amount of income tax expense attributable to continuing operations for the year to the amount of income tax expense that would result from applying domestic federal statutory tax rates to pretax income from continuing operations.",
        "label": "Schedule of Effective Income Tax Rate Reconciliation [Table Text Block]",
        "terseLabel": "Actual Tax Expense from Expected Tax Expense"
       }
      }
     },
     "localname": "ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock": {
     "auth_ref": [
      "r507",
      "r508"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of assets and liabilities, including [financial] instruments measured at fair value that are classified in stockholders' equity, if any, that are measured at fair value on a recurring basis. The disclosures contemplated herein include the fair value measurements at the reporting date by the level within the fair value hierarchy in which the fair value measurements in their entirety fall, segregating fair value measurements using quoted prices in active markets for identical assets (Level 1), significant other observable inputs (Level 2), and significant unobservable inputs (Level 3).",
        "label": "Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Table Text Block]",
        "terseLabel": "Assets and liabilities measured on recurring basis measured at fair value"
       }
      }
     },
     "localname": "ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable": {
     "auth_ref": [
      "r521",
      "r522"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule detailing the information required and determined to be disclosed regarding the fair value of financial assets and financial liabilities, which are not recognized in the financial statements (off-balance sheet) because they fail to meet some other criterion for recognition.",
        "label": "Schedule of Fair Value, Off-balance Sheet Risks [Table]",
        "terseLabel": "Schedule of Fair Value, Off-balance Sheet Risks [Table]"
       }
      }
     },
     "localname": "ScheduleOfFairValueOffBalanceSheetRisksTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRiskDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfFinancingReceivablesNonAccrualStatusTableTextBlock": {
     "auth_ref": [
      "r226",
      "r291"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of financing receivable on nonaccrual status.",
        "label": "Financing Receivable, Nonaccrual [Table Text Block]",
        "verboseLabel": "Nonaccrual Loans"
       }
      }
     },
     "localname": "ScheduleOfFinancingReceivablesNonAccrualStatusTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfHeldToMaturitySecuritiesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Schedule of Held-to-maturity Securities [Line Items]",
        "terseLabel": "Schedule of Held-to-maturity Securities [Line Items]"
       }
      }
     },
     "localname": "ScheduleOfHeldToMaturitySecuritiesLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfHeldToMaturitySecuritiesTable": {
     "auth_ref": [
      "r261",
      "r265",
      "r270"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about investment in debt security measured at amortized cost (held-to-maturity).",
        "label": "Debt Securities, Held-to-maturity [Table]",
        "terseLabel": "Debt Securities, Held-to-maturity [Table]"
       }
      }
     },
     "localname": "ScheduleOfHeldToMaturitySecuritiesTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfNetBenefitCostsTableTextBlock": {
     "auth_ref": [
      "r376"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the components of net benefit costs for pension plans and/or other employee benefit plans including service cost, interest cost, expected return on plan assets, gain (loss), prior service cost or credit, transition asset or obligation, and gain (loss) recognized due to settlements or curtailments.",
        "label": "Schedule of Net Benefit Costs [Table Text Block]",
        "terseLabel": "Schedule of net benefit costs"
       }
      }
     },
     "localname": "ScheduleOfNetBenefitCostsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfNetPeriodicBenefitCostNotYetRecognizedTableTextBlock": {
     "auth_ref": [
      "r380"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the amounts related to pension plans and/or other employee benefit plans in accumulated other comprehensive income or loss that have not yet been recognized as components of net periodic benefit cost, such as the net gain (loss), net prior service cost or credit, and net transition asset or obligation.",
        "label": "Schedule of Net Periodic Benefit Cost Not yet Recognized [Table Text Block]",
        "terseLabel": "Schedule of net periodic benefit cost not yet recognized"
       }
      }
     },
     "localname": "ScheduleOfNetPeriodicBenefitCostNotYetRecognizedTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EmployeeBenefitPlansTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfNonvestedRestrictedStockUnitsActivityTableTextBlock": {
     "auth_ref": [
      "r411"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the changes in outstanding nonvested restricted stock units.",
        "label": "Schedule of Nonvested Restricted Stock Units Activity [Table Text Block]",
        "terseLabel": "Schedule of Nonvested Restricted Stock Units Activity"
       }
      }
     },
     "localname": "ScheduleOfNonvestedRestrictedStockUnitsActivityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfPropertyPlantAndEquipmentTable": {
     "auth_ref": [
      "r28",
      "r324"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about physical assets used in the normal conduct of business and not intended for resale. Includes, but is not limited to, balances by class of assets, depreciation and depletion expense and method used, including composite depreciation, and accumulated deprecation.",
        "label": "Property, Plant and Equipment [Table]",
        "terseLabel": "Schedule of Property, Plant and Equipment [Table]"
       }
      }
     },
     "localname": "ScheduleOfPropertyPlantAndEquipmentTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/PremisesandEquipmentLeasesDetails",
      "http://www.thefirst.com/role/PremisesandEquipmentScheduleofPremisesandEquipmentDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfQuarterlyFinancialInformationTableTextBlock": {
     "auth_ref": [
      "r158"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of quarterly financial data. Includes, but is not limited to, financial information for fiscal quarters, cumulative effect of a change in accounting principle and earnings per share data.",
        "label": "Quarterly Financial Information [Table Text Block]",
        "terseLabel": "Quarterly information"
       }
      }
     },
     "localname": "ScheduleOfQuarterlyFinancialInformationTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/QuarterlyInformationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfRealizedGainLossTableTextBlock": {
     "auth_ref": [
      "r275"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the proceeds from sales of available-for-sale securities and the gross realized gains and gross realized losses that have been included in earnings as a result of those sales.",
        "label": "Schedule of Realized Gain (Loss) [Table Text Block]",
        "terseLabel": "Schedule of Securities Gains and Losses"
       }
      }
     },
     "localname": "ScheduleOfRealizedGainLossTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable": {
     "auth_ref": [
      "r407",
      "r416"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about share-based payment arrangement.",
        "label": "Schedule of Share-based Compensation Arrangements by Share-based Payment Award [Table]",
        "terseLabel": "Schedule of Share-based Compensation Arrangements by Share-based Payment Award [Table]"
       }
      }
     },
     "localname": "ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationNarrativeDetails",
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfTemporaryImpairmentLossesInvestmentsTableTextBlock": {
     "auth_ref": [
      "r273"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of investments in an unrealized loss position for which other-than-temporary impairments have not been recognized in earnings (including investments for which a portion of an other-than-temporary impairment has been recognized in other comprehensive income), including: (a) the aggregate related fair value of investments with unrealized losses, (b) the aggregate amount of unrealized losses (that is, the amount by which amortized cost basis exceeds fair value).",
        "label": "Schedule of Temporary Impairment Losses, Investments [Table Text Block]",
        "terseLabel": "Schedule of Temporary Impairment Losses"
       }
      }
     },
     "localname": "ScheduleOfTemporaryImpairmentLossesInvestmentsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/InvestmentSecuritiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SecuritiesSoldUnderAgreementsToRepurchase": {
     "auth_ref": [
      "r36",
      "r37",
      "r39",
      "r118",
      "r627"
     ],
     "calculation": {
      "http://www.thefirst.com/role/BorrowedFundsDetails": {
       "order": 2.0,
       "parentTag": "fnlc_TotalFederalHomeLoanBankAdvancesTreasuryTaxNotesAndRepurchaseAgreements",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after the effects of master netting arrangements, of funds outstanding borrowed in the form of a security repurchase agreement between the entity and another party for the sale and repurchase of identical or substantially the same securities at a date certain for a specified price. Includes liabilities not subject to a master netting arrangement and not elected to be offset.",
        "label": "Securities Sold under Agreements to Repurchase",
        "terseLabel": "Repurchase agreements for municipal and commercial customers"
       }
      }
     },
     "localname": "SecuritiesSoldUnderAgreementsToRepurchase",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/BorrowedFundsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SegmentReportingPolicyPolicyTextBlock": {
     "auth_ref": [
      "r109",
      "r175",
      "r176",
      "r177",
      "r178",
      "r179",
      "r180",
      "r192"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for segment reporting.",
        "label": "Segment Reporting, Policy [Policy Text Block]",
        "terseLabel": "Segments"
       }
      }
     },
     "localname": "SegmentReportingPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ServicingAssetAtAmortizedCostOtherThanTemporaryImpairments": {
     "auth_ref": [
      "r594"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of other-than-temporary impairment (OTTI) applied to contract to service financial assets under which the benefits of servicing are expected to more than adequately compensate the servicer.",
        "label": "Servicing Asset at Amortized Cost, Other than Temporary Impairments",
        "negatedTerseLabel": "Impairment reserve",
        "verboseLabel": "Mortgage servicing rights, impairment reserve"
       }
      }
     },
     "localname": "ServicingAssetAtAmortizedCostOtherThanTemporaryImpairments",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails",
      "http://www.thefirst.com/role/MortgageServicingRightsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ServicingAssetAtAmortizedValue": {
     "auth_ref": [
      "r575",
      "r576",
      "r589"
     ],
     "calculation": {
      "http://www.thefirst.com/role/MortgageServicingRightsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortized amount of contract to service financial assets under which the benefits of servicing are expected to more than adequately compensate the servicer.",
        "label": "Servicing Asset at Amortized Cost",
        "totalLabel": "Amortized cost"
       }
      }
     },
     "localname": "ServicingAssetAtAmortizedValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/MortgageServicingRightsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ServicingAssetAtFairValueAdditions": {
     "auth_ref": [
      "r583"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The value of new servicing assets, subsequently measured at fair value, acquired or created during the current period through purchases or from transfers of financial assets.",
        "label": "Servicing Asset at Fair Value, Additions",
        "terseLabel": "Mortgage servicing rights capitalized"
       }
      }
     },
     "localname": "ServicingAssetAtFairValueAdditions",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/MortgageServicingRightsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ServicingAssetAtFairValueAmount": {
     "auth_ref": [
      "r575",
      "r576",
      "r577",
      "r582"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of an asset representing net future revenue from contractually specified servicing fees, late charges, and other ancillary revenues, in excess of future costs related to servicing arrangements.",
        "label": "Servicing Asset at Fair Value, Amount",
        "terseLabel": "Mortgage servicing rights",
        "verboseLabel": "Fair value of mortgage servicing rights"
       }
      }
     },
     "localname": "ServicingAssetAtFairValueAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails",
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails",
      "http://www.thefirst.com/role/MortgageServicingRightsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ServicingAssetsAndServicingLiabilitiesAtFairValueAssumptionsUsedToEstimateFairValuePrepaymentSpeed": {
     "auth_ref": [
      "r580"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Estimated rate of prepayments of principal on servicing assets and servicing liabilities.",
        "label": "Servicing Assets and Servicing Liabilities at Fair Value, Assumptions Used to Estimate Fair Value, Prepayment Speed",
        "terseLabel": "Anticipated loan prepayment rate of servicing assets (in hundredths)"
       }
      }
     },
     "localname": "ServicingAssetsAndServicingLiabilitiesAtFairValueAssumptionsUsedToEstimateFairValuePrepaymentSpeed",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/MortgageServicingRightsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ShareBasedCompensation": {
     "auth_ref": [
      "r100"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows": {
       "order": 10.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of noncash expense for share-based payment arrangement.",
        "label": "Share-based Payment Arrangement, Noncash Expense",
        "terseLabel": "Equity compensation expense",
        "verboseLabel": "Equity compensation expense"
       }
      }
     },
     "localname": "ShareBasedCompensation",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1": {
     "auth_ref": [
      "r408"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period over which grantee's right to exercise award under share-based payment arrangement is no longer contingent on satisfaction of service or performance condition, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. Includes, but is not limited to, combination of market, performance or service condition.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Period",
        "terseLabel": "Vesting Term (In Years)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod": {
     "auth_ref": [
      "r410"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that were forfeited during the reporting period.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Forfeited in Period",
        "terseLabel": "Shares not issued (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod": {
     "auth_ref": [
      "r413"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of grants made during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan).",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period",
        "terseLabel": "Grants during the period (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber": {
     "auth_ref": [
      "r412"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of non-vested equity-based payment instruments, excluding stock (or unit) options, that validly exist and are outstanding as of the balance sheet date.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number",
        "terseLabel": "Shares"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award [Line Items]",
        "terseLabel": "Share-based Compensation Arrangement by Share-based Payment Award [Line Items]"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationNarrativeDetails",
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "auth_ref": [
      "r405",
      "r409"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Award under share-based payment arrangement.",
        "label": "Award Type [Domain]",
        "terseLabel": "Award Type [Domain]"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationNarrativeDetails",
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShareRepurchaseProgramAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by share repurchase program.",
        "label": "Share Repurchase Program [Axis]",
        "terseLabel": "Share Repurchase Program [Axis]"
       }
      }
     },
     "localname": "ShareRepurchaseProgramAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CommonStockDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareRepurchaseProgramDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the share repurchase program.",
        "label": "Share Repurchase Program [Domain]",
        "terseLabel": "Share Repurchase Program [Domain]"
       }
      }
     },
     "localname": "ShareRepurchaseProgramDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CommonStockDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShortTermBorrowings": {
     "auth_ref": [
      "r10",
      "r616",
      "r690"
     ],
     "calculation": {
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Reflects the total carrying amount as of the balance sheet date of debt having initial terms less than one year or the normal operating cycle, if longer.",
        "label": "Short-term Debt",
        "terseLabel": "Borrowed funds \u2013 short term"
       }
      }
     },
     "localname": "ShortTermBorrowings",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SignificantAccountingPoliciesTextBlock": {
     "auth_ref": [
      "r122"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for all significant accounting policies of the reporting entity.",
        "label": "Significant Accounting Policies [Text Block]",
        "terseLabel": "Summary of Significant Accounting Policies"
       }
      }
     },
     "localname": "SignificantAccountingPoliciesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_StandbyLettersOfCreditMember": {
     "auth_ref": [
      "r334",
      "r336",
      "r470",
      "r721"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "An irrevocable undertaking (typically by a financial institution) to guarantee payment of a specified financial obligation.",
        "label": "Standby Letters of Credit [Member]",
        "terseLabel": "Standby letters of credit"
       }
      }
     },
     "localname": "StandbyLettersOfCreditMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_StateAndLocalIncomeTaxExpenseBenefitContinuingOperations": {
     "auth_ref": [
      "r112",
      "r430",
      "r450"
     ],
     "calculation": {
      "http://www.thefirst.com/role/IncomeTaxesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of state and local current and deferred income tax expense (benefit) attributable to continuing operations.",
        "label": "State and Local Income Tax Expense (Benefit), Continuing Operations",
        "terseLabel": "State franchise tax"
       }
      }
     },
     "localname": "StateAndLocalIncomeTaxExpenseBenefitContinuingOperations",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StatementEquityComponentsAxis": {
     "auth_ref": [
      "r33",
      "r123",
      "r124",
      "r125",
      "r129",
      "r137",
      "r139",
      "r160",
      "r280",
      "r340",
      "r345",
      "r417",
      "r418",
      "r419",
      "r444",
      "r445",
      "r526",
      "r527",
      "r528",
      "r529",
      "r530",
      "r532",
      "r712",
      "r713",
      "r714"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by component of equity.",
        "label": "Equity Components [Axis]",
        "terseLabel": "Equity Components [Axis]"
       }
      }
     },
     "localname": "StatementEquityComponentsAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquity",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofDerivativeFinancialInstrumentsDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofTransferofAFSSecuritiestoHTMDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonAvailableforSaleSecuritiesDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonPostretirementBenefitsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Statement [Line Items]",
        "terseLabel": "Statement [Line Items]"
       }
      }
     },
     "localname": "StatementLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquity",
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfCashFlowsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Cash Flows [Abstract]",
        "terseLabel": "Statements of Cash Flows"
       }
      }
     },
     "localname": "StatementOfCashFlowsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfFinancialPositionAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Financial Position [Abstract]",
        "terseLabel": "Balance Sheets"
       }
      }
     },
     "localname": "StatementOfFinancialPositionAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfStockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Stockholders' Equity [Abstract]",
        "terseLabel": "Statement of Stockholders' Equity [Abstract]"
       }
      }
     },
     "localname": "StatementOfStockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementTable": {
     "auth_ref": [
      "r123",
      "r124",
      "r125",
      "r160",
      "r603"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule reflecting a Statement of Income, Statement of Cash Flows, Statement of Financial Position, Statement of Shareholders' Equity and Other Comprehensive Income, or other statement as needed.",
        "label": "Statement [Table]",
        "terseLabel": "Statement [Table]"
       }
      }
     },
     "localname": "StatementTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquity",
      "http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesDividendReinvestmentPlan": {
     "auth_ref": [
      "r340"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares issued during the period from a dividend reinvestment plan (DRIP). A dividend reinvestment plan allows the shareholders to reinvest dividends paid to them by the entity on new issues of stock by the entity.",
        "label": "Stock Issued During Period, Shares, Dividend Reinvestment Plan",
        "terseLabel": "Number of shares issued during period, dividend reinvestment plan (in shares)"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesDividendReinvestmentPlan",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CommonStockDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans": {
     "auth_ref": [
      "r17",
      "r18",
      "r340",
      "r345"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares issued during the period as a result of an employee stock purchase plan.",
        "label": "Stock Issued During Period, Shares, Employee Stock Purchase Plans",
        "terseLabel": "Number of shares issued during period, employee benefit plan (in shares)"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CommonStockDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesNewIssues": {
     "auth_ref": [
      "r17",
      "r18",
      "r340",
      "r345"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of new stock issued during the period.",
        "label": "Stock Issued During Period, Shares, New Issues",
        "terseLabel": "Proceeds from sale of common stock (in shares)"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesNewIssues",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquity"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross": {
     "auth_ref": [
      "r340",
      "r345"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total number of shares issued during the period, including shares forfeited, as a result of Restricted Stock Awards.",
        "label": "Stock Issued During Period, Shares, Restricted Stock Award, Gross",
        "terseLabel": "Issuance of restricted stock (in shares)"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesRestrictedStockAwardGross",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquity"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueNewIssues": {
     "auth_ref": [
      "r17",
      "r18",
      "r340",
      "r345"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity impact of the value of new stock issued during the period. Includes shares issued in an initial public offering or a secondary public offering.",
        "label": "Stock Issued During Period, Value, New Issues",
        "terseLabel": "Proceeds from sale of common stock"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueNewIssues",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CommonStockDetails",
      "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardGross": {
     "auth_ref": [
      "r17",
      "r18",
      "r340",
      "r345"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate value of stock related to Restricted Stock Awards issued during the period.",
        "label": "Stock Issued During Period, Value, Restricted Stock Award, Gross",
        "terseLabel": "Issuance of restricted stock"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueRestrictedStockAwardGross",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockRepurchasedDuringPeriodShares": {
     "auth_ref": [
      "r17",
      "r18",
      "r340",
      "r345"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares that have been repurchased during the period and have not been retired and are not held in treasury. Some state laws may govern the circumstances under which an entity may acquire its own stock and prescribe the accounting treatment therefore. This element is used when state law does not recognize treasury stock.",
        "label": "Stock Repurchased During Period, Shares",
        "negatedTerseLabel": "Payment for repurchase of common stock (in shares)"
       }
      }
     },
     "localname": "StockRepurchasedDuringPeriodShares",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquity"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockRepurchasedDuringPeriodValue": {
     "auth_ref": [
      "r17",
      "r18",
      "r340",
      "r345"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity impact of the value of stock that has been repurchased during the period and has not been retired and is not held in treasury. Some state laws may mandate the circumstances under which an entity may acquire its own stock and prescribe the accounting treatment therefore. This element is used when state law does not recognize treasury stock.",
        "label": "Stock Repurchased During Period, Value",
        "negatedTerseLabel": "Payment for repurchase of common stock"
       }
      }
     },
     "localname": "StockRepurchasedDuringPeriodValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquity": {
     "auth_ref": [
      "r18",
      "r22",
      "r23",
      "r111",
      "r229",
      "r279",
      "r524"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/QuarterlyInformationDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total of all stockholders' equity (deficit) items, net of receivables from officers, directors, owners, and affiliates of the entity which are attributable to the parent. The amount of the economic entity's stockholders' equity attributable to the parent excludes the amount of stockholders' equity which is allocable to that ownership interest in subsidiary equity which is not attributable to the parent (noncontrolling interest, minority interest). This excludes temporary equity and is sometimes called permanent equity.",
        "label": "Stockholders' Equity Attributable to Parent",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance",
        "totalLabel": "Total shareholders' equity",
        "verboseLabel": "Shareholders' equity"
       }
      }
     },
     "localname": "StockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets",
      "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquity",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofDerivativeFinancialInstrumentsDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofTransferofAFSSecuritiestoHTMDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonAvailableforSaleSecuritiesDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonPostretirementBenefitsDetails",
      "http://www.thefirst.com/role/QuarterlyInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stockholders' Equity Attributable to Parent [Abstract]",
        "terseLabel": "Shareholders' equity"
       }
      }
     },
     "localname": "StockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CondensedFinancialInformationofParentDetails",
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockholdersEquityNoteAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stockholders' Equity Note [Abstract]",
        "terseLabel": "Stockholders' Equity Note [Abstract]"
       }
      }
     },
     "localname": "StockholdersEquityNoteAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockholdersEquityNoteDisclosureTextBlock": {
     "auth_ref": [
      "r110",
      "r345",
      "r347"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for shareholders' equity comprised of portions attributable to the parent entity and noncontrolling interest, including other comprehensive income. Includes, but is not limited to, balances of common stock, preferred stock, additional paid-in capital, other capital and retained earnings, accumulated balance for each classification of other comprehensive income and amount of comprehensive income.",
        "label": "Stockholders' Equity Note Disclosure [Text Block]",
        "verboseLabel": "Common Stock"
       }
      }
     },
     "localname": "StockholdersEquityNoteDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CommonStock"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SubsequentEventsPolicyPolicyTextBlock": {
     "auth_ref": [
      "r109"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for reporting subsequent events.",
        "label": "Subsequent Events, Policy [Policy Text Block]",
        "terseLabel": "Subsequent Events"
       }
      }
     },
     "localname": "SubsequentEventsPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SubstandardMember": {
     "auth_ref": [
      "r216",
      "r293"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A category of financing receivables that are inadequately protected by the current sound worth and paying capacity of the obligor or of the collateral pledged, if any. Loans so classified have a well-defined weakness or weaknesses that jeopardize the liquidation of the debt. They are characterized by the distinct possibility that the creditor will sustain some loss if the deficiencies are not corrected.",
        "label": "Substandard [Member]",
        "terseLabel": "8 Doubtful"
       }
      }
     },
     "localname": "SubstandardMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesRiskRatingsbySegmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TaxCutsAndJobsActOf2017ReclassificationFromAociToRetainedEarningsTaxEffect": {
     "auth_ref": [
      "r50"
     ],
     "calculation": {
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonAvailableforSaleSecuritiesDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in accumulated other comprehensive income (AOCI) for reclassification to retained earnings of tax effect from remeasurement of deferred tax pursuant to Tax Cuts and Jobs Act.",
        "label": "Tax Cuts and Jobs Act, Reclassification from AOCI to Retained Earnings, Tax Effect",
        "terseLabel": "Reclassification adjustment for effect of enacted tax law changes"
       }
      }
     },
     "localname": "TaxCutsAndJobsActOf2017ReclassificationFromAociToRetainedEarningsTaxEffect",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquity",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofDerivativeFinancialInstrumentsDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofTransferofAFSSecuritiestoHTMDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonAvailableforSaleSecuritiesDetails",
      "http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonPostretirementBenefitsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TierOneLeverageCapital": {
     "auth_ref": [
      "r677"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of Tier 1 leverage capital as defined by regulatory framework.",
        "label": "Banking Regulation, Tier One Leverage Capital, Actual",
        "terseLabel": "Actual"
       }
      }
     },
     "localname": "TierOneLeverageCapital",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TierOneLeverageCapitalAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Tier One Leverage Capital [Abstract]",
        "terseLabel": "Tier 1 capital to average assets [Abstract]"
       }
      }
     },
     "localname": "TierOneLeverageCapitalAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_TierOneLeverageCapitalRequiredForCapitalAdequacy": {
     "auth_ref": [
      "r677",
      "r681"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of minimum Tier 1 leverage capital required for capital adequacy as defined by regulatory framework.",
        "label": "Banking Regulation, Tier One Leverage Capital, Capital Adequacy, Minimum",
        "terseLabel": "For capital adequacy purpose"
       }
      }
     },
     "localname": "TierOneLeverageCapitalRequiredForCapitalAdequacy",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TierOneLeverageCapitalRequiredForCapitalAdequacyToAverageAssets": {
     "auth_ref": [
      "r677",
      "r681"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio of minimum Tier 1 leverage capital to average assets required for capital adequacy as defined by regulatory framework.",
        "label": "Banking Regulation, Tier One Leverage Capital Ratio, Capital Adequacy, Minimum",
        "terseLabel": "For capital adequacy purpose (in hundredths)"
       }
      }
     },
     "localname": "TierOneLeverageCapitalRequiredForCapitalAdequacyToAverageAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_TierOneLeverageCapitalRequiredToBeWellCapitalized": {
     "auth_ref": [
      "r677"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of minimum Tier 1 leverage capital categorized as well capitalized as defined by regulatory framework for prompt corrective action.",
        "label": "Banking Regulation, Tier One Leverage Capital, Well Capitalized, Minimum",
        "terseLabel": "To be well-capitalized under prompt corrective action provisions"
       }
      }
     },
     "localname": "TierOneLeverageCapitalRequiredToBeWellCapitalized",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TierOneLeverageCapitalRequiredToBeWellCapitalizedToAverageAssets": {
     "auth_ref": [
      "r677"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio of minimum Tier 1 leverage capital to average assets categorized as well capitalized as defined by regulatory framework for prompt corrective action.",
        "label": "Banking Regulation, Tier One Leverage Capital Ratio, Well Capitalized, Minimum",
        "terseLabel": "To be well-capitalized under prompt corrective action provisions (in hundredths)"
       }
      }
     },
     "localname": "TierOneLeverageCapitalRequiredToBeWellCapitalizedToAverageAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_TierOneLeverageCapitalToAverageAssets": {
     "auth_ref": [
      "r677"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio of Tier 1 capital to average assets as defined by regulatory framework.",
        "label": "Banking Regulation, Tier One Leverage Capital Ratio, Actual",
        "terseLabel": "Actual (in hundredths)"
       }
      }
     },
     "localname": "TierOneLeverageCapitalToAverageAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_TierOneRiskBasedCapital": {
     "auth_ref": [
      "r677"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of Tier 1 risk-based capital as defined by regulatory framework.",
        "label": "Banking Regulation, Tier One Risk-Based Capital, Actual",
        "verboseLabel": "Actual"
       }
      }
     },
     "localname": "TierOneRiskBasedCapital",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TierOneRiskBasedCapitalAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Tier One Risk-Based Capital [Abstract]",
        "terseLabel": "Tier 1 capital to risk-weighted assets [Abstract]"
       }
      }
     },
     "localname": "TierOneRiskBasedCapitalAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_TierOneRiskBasedCapitalRequiredForCapitalAdequacy": {
     "auth_ref": [
      "r677",
      "r681"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of minimum Tier 1 risk-based capital required for capital adequacy as defined by regulatory framework.",
        "label": "Banking Regulation, Tier One Risk-Based Capital, Capital Adequacy, Minimum",
        "verboseLabel": "For capital adequacy purposes"
       }
      }
     },
     "localname": "TierOneRiskBasedCapitalRequiredForCapitalAdequacy",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TierOneRiskBasedCapitalRequiredForCapitalAdequacyToRiskWeightedAssets": {
     "auth_ref": [
      "r677",
      "r681"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio of minimum Tier 1 risk-based capital to risk-weighted assets required for capital adequacy as defined by regulatory framework.",
        "label": "Banking Regulation, Tier One Risk-Based Capital Ratio, Capital Adequacy, Minimum",
        "verboseLabel": "For capital adequacy purposes (in hundredths)"
       }
      }
     },
     "localname": "TierOneRiskBasedCapitalRequiredForCapitalAdequacyToRiskWeightedAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_TierOneRiskBasedCapitalRequiredToBeWellCapitalized": {
     "auth_ref": [
      "r677"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of minimum Tier 1 risk-based capital categorized as well capitalized as defined by regulatory framework for prompt corrective action.",
        "label": "Banking Regulation, Tier One Risk-Based Capital, Well Capitalized, Minimum",
        "verboseLabel": "To be well-capitalized under prompt corrective action provisions"
       }
      }
     },
     "localname": "TierOneRiskBasedCapitalRequiredToBeWellCapitalized",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TierOneRiskBasedCapitalRequiredToBeWellCapitalizedToRiskWeightedAssets": {
     "auth_ref": [
      "r677"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio of minimum Tier 1 risk-based capital to risk-weighted assets categorized as well capitalized as defined by regulatory framework for prompt corrective action.",
        "label": "Banking Regulation, Tier One Risk-Based Capital Ratio, Well Capitalized, Minimum",
        "verboseLabel": "To be well-capitalized under prompt corrective action provisions (in hundredths)"
       }
      }
     },
     "localname": "TierOneRiskBasedCapitalRequiredToBeWellCapitalizedToRiskWeightedAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_TierOneRiskBasedCapitalToRiskWeightedAssets": {
     "auth_ref": [
      "r677"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio of Tier 1 risk-based capital to risk-weighted assets as defined by regulatory framework.",
        "label": "Banking Regulation, Tier One Risk-Based Capital Ratio, Actual",
        "verboseLabel": "Actual (in hundredths)"
       }
      }
     },
     "localname": "TierOneRiskBasedCapitalToRiskWeightedAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/RegulatoryCapitalRequirementsDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_TimeDepositMaturitiesAfterYearFive": {
     "auth_ref": [
      "r337"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CertificatesofDepositDetails_1": {
       "order": 6.0,
       "parentTag": "us-gaap_TimeDeposits",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of time deposit maturing after fifth fiscal year following current fiscal year. Time deposit includes, but is not limited to, certificate of deposit. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Time Deposit Maturities, after Year Five",
        "terseLabel": "2026 and thereafter"
       }
      }
     },
     "localname": "TimeDepositMaturitiesAfterYearFive",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CertificatesofDepositDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TimeDepositMaturitiesYearFive": {
     "auth_ref": [
      "r337"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CertificatesofDepositDetails_1": {
       "order": 5.0,
       "parentTag": "us-gaap_TimeDeposits",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of time deposit maturing in fifth fiscal year following current fiscal year. Time deposit includes, but is not limited to, certificate of deposit. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Time Deposit Maturities, Year Five",
        "verboseLabel": "2025"
       }
      }
     },
     "localname": "TimeDepositMaturitiesYearFive",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CertificatesofDepositDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TimeDepositMaturitiesYearFour": {
     "auth_ref": [
      "r337"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CertificatesofDepositDetails_1": {
       "order": 4.0,
       "parentTag": "us-gaap_TimeDeposits",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of time deposit maturing in fourth fiscal year following current fiscal year. Time deposit includes, but is not limited to, certificate of deposit. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Time Deposit Maturities, Year Four",
        "verboseLabel": "2024"
       }
      }
     },
     "localname": "TimeDepositMaturitiesYearFour",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CertificatesofDepositDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TimeDepositMaturitiesYearOne": {
     "auth_ref": [
      "r337"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CertificatesofDepositDetails_1": {
       "order": 1.0,
       "parentTag": "us-gaap_TimeDeposits",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of time deposit maturing in next fiscal year following current fiscal year. Time deposit includes, but is not limited to, certificate of deposit. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Time Deposit Maturities, Year One",
        "verboseLabel": "2021"
       }
      }
     },
     "localname": "TimeDepositMaturitiesYearOne",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CertificatesofDepositDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TimeDepositMaturitiesYearThree": {
     "auth_ref": [
      "r337"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CertificatesofDepositDetails_1": {
       "order": 3.0,
       "parentTag": "us-gaap_TimeDeposits",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of time deposit maturing in third fiscal year following current fiscal year. Time deposit includes, but is not limited to, certificate of deposit. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Time Deposit Maturities, Year Three",
        "verboseLabel": "2023"
       }
      }
     },
     "localname": "TimeDepositMaturitiesYearThree",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CertificatesofDepositDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TimeDepositMaturitiesYearTwo": {
     "auth_ref": [
      "r337"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CertificatesofDepositDetails_1": {
       "order": 2.0,
       "parentTag": "us-gaap_TimeDeposits",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of time deposit maturing in second fiscal year following current fiscal year. Time deposit includes, but is not limited to, certificate of deposit. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Time Deposit Maturities, Year Two",
        "verboseLabel": "2022"
       }
      }
     },
     "localname": "TimeDepositMaturitiesYearTwo",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CertificatesofDepositDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TimeDeposits": {
     "auth_ref": [
      "r626",
      "r669"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CertificatesofDepositDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.thefirst.com/role/CertificatesofDepositDetails_1": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets": {
       "order": 5.0,
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0
      },
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of time deposit liabilities, including certificates of deposit.",
        "label": "Time Deposits",
        "terseLabel": "Certificates of deposit",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "TimeDeposits",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CertificatesofDepositDetails",
      "http://www.thefirst.com/role/ConsolidatedBalanceSheets",
      "http://www.thefirst.com/role/FairValueDisclosuresCarryingAmountsandEstimatedFairValuesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TimeDepositsByMaturityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Time Deposits, Fiscal Year Maturity [Abstract]",
        "terseLabel": "Maturity of certificates of deposit [Abstract]"
       }
      }
     },
     "localname": "TimeDepositsByMaturityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CertificatesofDepositDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_TimeDepositsLessThan100000": {
     "auth_ref": [
      "r741"
     ],
     "calculation": {
      "http://www.thefirst.com/role/CertificatesofDepositDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_TimeDeposits",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of time deposit liabilities, including certificates of deposit, in denominations of less than $100,000.",
        "label": "Time Deposits, Less than $100,000",
        "verboseLabel": "Certificates of deposit less than $100,000"
       }
      }
     },
     "localname": "TimeDepositsLessThan100000",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/CertificatesofDepositDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TransferOfOtherRealEstate": {
     "auth_ref": [
      "r105",
      "r106",
      "r107"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value transferred out of real estate owned (REO) in noncash transactions.",
        "label": "Real Estate Owned, Transfer from Real Estate Owned",
        "terseLabel": "Net transfer from loans to other real estate owned"
       }
      }
     },
     "localname": "TransferOfOtherRealEstate",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TransfersAndServicingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transfers and Servicing [Abstract]",
        "terseLabel": "Transfers and Servicing [Abstract]"
       }
      }
     },
     "localname": "TransfersAndServicingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_TransfersAndServicingOfFinancialAssetsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transfers and Servicing of Financial Assets [Abstract]",
        "terseLabel": "Summary of mortgage servicing rights [Abstract]"
       }
      }
     },
     "localname": "TransfersAndServicingOfFinancialAssetsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/MortgageServicingRightsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_TransfersAndServicingOfFinancialAssetsPolicyTextBlock": {
     "auth_ref": [
      "r109",
      "r559",
      "r569",
      "r578",
      "r581",
      "r588"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for transfers and servicing financial assets, including securitization transactions as well as repurchase and resale agreements. This disclosure may include how the entity (1) determines whether a transaction is accounted for as a sale; (2) accounts for a sale transaction, including the initial and subsequent accounting for any interests that the entity obtains or continues to hold in the transaction, how such interests are valued, and the significant assumptions used in the valuation; (3) accounts for a transaction that does not qualify for sale treatment (that is, a financing); and (4) accounts for its servicing assets and liabilities (\"servicing\"), including how such servicing is measured initially and subsequently, and the methodology and significant assumptions used to value such servicing.",
        "label": "Transfers and Servicing of Financial Assets, Policy [Policy Text Block]",
        "verboseLabel": "Loan Servicing"
       }
      }
     },
     "localname": "TransfersAndServicingOfFinancialAssetsPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_TransfersAndServicingOfFinancialAssetsTextBlock": {
     "auth_ref": [
      "r548",
      "r549",
      "r554",
      "r558",
      "r560",
      "r561",
      "r566",
      "r567",
      "r571",
      "r572",
      "r574",
      "r578",
      "r579",
      "r580",
      "r581",
      "r586",
      "r587",
      "r595",
      "r597",
      "r601"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for a transferor's continuing involvement in financial assets that it has transferred in a securitization or asset-backed financing arrangement, the nature of any restrictions on assets reported by an entity in its statement of financial position that relate to a transferred financial asset (including the carrying amounts of such assets), how servicing assets and servicing liabilities are reported, and (for securitization or asset-backed financing arrangements accounted for as sales) when a transferor has continuing involvement with the transferred financial assets and transfers of financial assets accounted for as secured borrowings, how the transfer of financial assets affects an entity's financial position, financial performance, and cash flows.",
        "label": "Transfers and Servicing of Financial Assets [Text Block]",
        "terseLabel": "Mortgage Servicing Rights"
       }
      }
     },
     "localname": "TransfersAndServicingOfFinancialAssetsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/MortgageServicingRights"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain": {
     "auth_ref": [
      "r261",
      "r265",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552",
      "r553",
      "r555",
      "r556",
      "r557",
      "r562",
      "r563",
      "r564",
      "r565",
      "r568",
      "r573",
      "r582",
      "r583",
      "r584",
      "r585",
      "r589",
      "r590",
      "r591",
      "r592",
      "r593",
      "r594",
      "r595",
      "r596",
      "r598",
      "r599",
      "r600"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Instrument or contract that imposes a contractual obligation to deliver cash or another financial instrument or to exchange other financial instruments on potentially unfavorable terms and conveys a contractual right to receive cash or another financial instrument or to exchange other financial instruments on potentially favorable terms.",
        "label": "Financial Instruments [Domain]",
        "terseLabel": "Financial Instruments [Domain]"
       }
      }
     },
     "localname": "TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesNarrativeDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesTemporarilyImpairedDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueAFSDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails",
      "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TroubledDebtRestructuringsOnFinancingReceivablesTableTextBlock": {
     "auth_ref": [
      "r218",
      "r219"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of financing receivable modified as troubled debt restructuring.",
        "label": "Financing Receivable, Troubled Debt Restructuring [Table Text Block]",
        "terseLabel": "Troubled Debt Restructurings on Financing Receivables"
       }
      }
     },
     "localname": "TroubledDebtRestructuringsOnFinancingReceivablesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/LoansTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_USStatesAndPoliticalSubdivisionsMember": {
     "auth_ref": [
      "r367",
      "r720"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds or similar securities issued by state, city, or local US governments or the agencies operated by state, city, or local governments. Debt securities issued by state governments may include bond issuances of US state authorities including, for example, but not limited to, housing authorities, dormitory authorities, and general obligations while debt securities issued by political subdivisions of US states would include, for example, debt issuances by county, borough, city, or municipal governments.",
        "label": "US States and Political Subdivisions Debt Securities [Member]",
        "terseLabel": "State and political subdivisions"
       }
      }
     },
     "localname": "USStatesAndPoliticalSubdivisionsMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesNarrativeDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesTemporarilyImpairedDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueAFSDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_USTreasuryAndGovernmentMember": {
     "auth_ref": [
      "r367",
      "r656",
      "r720"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This category includes investments in debt securities issued by the United States Department of the Treasury, US Government Agencies and US Government-sponsored Enterprises. Such securities may include treasury bills (short-term maturities - one year or less), treasury notes (intermediate term maturities - two to ten years), and treasury bonds (long-term maturities - ten to thirty years), debt securities issued by the Government National Mortgage Association (Ginnie Mae) and debt securities issued by the Federal National Mortgage Association (Fannie Mae) or the Federal Home Loan Mortgage Corporation (Freddie Mac).",
        "label": "US Treasury and Government [Member]",
        "terseLabel": "U.S. government-sponsored agencies"
       }
      }
     },
     "localname": "USTreasuryAndGovernmentMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/FairValueDisclosuresAssetsandLiabilitiesRecordedonaRecurringandNonrecurringBasisDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesTemporarilyImpairedDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueAFSDetails",
      "http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_UnallocatedFinancingReceivablesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivables that have not been allocated to a portfolio segment.",
        "label": "Unallocated Financing Receivables [Member]",
        "terseLabel": "Unallocated"
       }
      }
     },
     "localname": "UnallocatedFinancingReceivablesMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesCompositionofAllowanceforLoansLossesbyClassDetails",
      "http://www.thefirst.com/role/AllowanceforLoanLossesFinancingReceivableandAllowanceElementbyClassDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_UnrealizedGainLossOnDerivatives": {
     "auth_ref": [
      "r101"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net change in the difference between the fair value and the carrying value, or in the comparative fair values, of derivative instruments, including options, swaps, futures, and forward contracts, held at each balance sheet date, that was included in earnings for the period.",
        "label": "Unrealized Gain (Loss) on Derivatives",
        "negatedLabel": "Unrealized loss on derivative"
       }
      }
     },
     "localname": "UnrealizedGainLossOnDerivatives",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRiskDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnusedLinesOfCreditMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The unused portion of a line of credit that is available to the borrower to withdrawn upon.",
        "label": "Unused lines of Credit [Member]",
        "terseLabel": "Other unused commitments"
       }
      }
     },
     "localname": "UnusedLinesOfCreditMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/OffBalanceSheetFinancialInstrumentsandConcentrationsofCreditRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_UseOfEstimates": {
     "auth_ref": [
      "r161",
      "r162",
      "r163",
      "r164",
      "r165",
      "r166",
      "r167"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for the use of estimates in the preparation of financial statements in conformity with generally accepted accounting principles.",
        "label": "Use of Estimates, Policy [Policy Text Block]",
        "terseLabel": "Use of Estimates in Preparation of Financial Statements"
       }
      }
     },
     "localname": "UseOfEstimates",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_VestingAxis": {
     "auth_ref": [
      "r416"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by vesting schedule of award under share-based payment arrangement.",
        "label": "Vesting [Axis]",
        "terseLabel": "Vesting [Axis]"
       }
      }
     },
     "localname": "VestingAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_VestingDomain": {
     "auth_ref": [
      "r416"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Vesting schedule of award under share-based payment arrangement.",
        "label": "Vesting [Domain]",
        "terseLabel": "Vesting [Domain]"
       }
      }
     },
     "localname": "VestingDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/StockOptionsandStockBasedCompensationSummaryofRestrictedStockGrantedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment": {
     "auth_ref": [
      "r151"
     ],
     "calculation": {
      "http://www.thefirst.com/role/EarningsPerShareDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The sum of dilutive potential common shares or units used in the calculation of the diluted per-share or per-unit computation.",
        "label": "Weighted Average Number Diluted Shares Outstanding Adjustment",
        "terseLabel": "Effect of dilutive securities: restricted stock (in shares)"
       }
      }
     },
     "localname": "WeightedAverageNumberDilutedSharesOutstandingAdjustment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EarningsPerShareDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding": {
     "auth_ref": [
      "r145",
      "r151"
     ],
     "calculation": {
      "http://www.thefirst.com/role/EarningsPerShareDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The average number of shares or units issued and outstanding that are used in calculating diluted EPS or earnings per unit (EPU), determined based on the timing of issuance of shares or units in the period.",
        "label": "Weighted Average Number of Shares Outstanding, Diluted",
        "totalLabel": "Diluted EPS: Income available to common shareholders plus assumed conversions (in shares)"
       }
      }
     },
     "localname": "WeightedAverageNumberOfDilutedSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EarningsPerShareDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted Average Number of Shares Outstanding, Diluted [Abstract]",
        "terseLabel": "Shares (Denominator) [Abstract]"
       }
      }
     },
     "localname": "WeightedAverageNumberOfSharesOutstandingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EarningsPerShareDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic": {
     "auth_ref": [
      "r143",
      "r151"
     ],
     "calculation": {
      "http://www.thefirst.com/role/EarningsPerShareDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of [basic] shares or units, after adjustment for contingently issuable shares or units and other shares or units not deemed outstanding, determined by relating the portion of time within a reporting period that common shares or units have been outstanding to the total time in that period.",
        "label": "Weighted Average Number of Shares Outstanding, Basic",
        "terseLabel": "Basic EPS: Income available to common shareholders (in shares)"
       }
      }
     },
     "localname": "WeightedAverageNumberOfSharesOutstandingBasic",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.thefirst.com/role/EarningsPerShareDetails"
     ],
     "xbrltype": "sharesItemType"
    }
   },
   "unitCount": 13
  }
 },
 "std_ref": {
  "r0": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=6359566&loc=d3e326-107755"
  },
  "r1": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-04(Schedule I))",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=120391182&loc=d3e5864-122674"
  },
  "r10": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(19)(a))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r100": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3602-108585"
  },
  "r101": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3602-108585"
  },
  "r102": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3602-108585"
  },
  "r103": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3044-108585"
  },
  "r104": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121583591&loc=d3e4297-108586"
  },
  "r105": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121583591&loc=d3e4304-108586"
  },
  "r106": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121583591&loc=d3e4313-108586"
  },
  "r107": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121583591&loc=d3e4332-108586"
  },
  "r108": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121583591&loc=SL98516268-108586"
  },
  "r109": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=84158767&loc=d3e18780-107790"
  },
  "r11": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(2))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r110": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(e)(1))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r111": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(g)(1)(ii))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r112": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h)(1)(Note 1))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r113": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h)(1)(i))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r114": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r115": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08.(e),(f))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r116": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08.(h)(1)(i))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r117": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08.(k)(1))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r118": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08.(m)(1)(a)(i))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r119": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08.(m)(1)(i)(A)(ii))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r12": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(20))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r120": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08.(n))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r121": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-04(a))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e24072-122690"
  },
  "r122": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "235",
   "URI": "http://asc.fasb.org/topic&trid=2122369"
  },
  "r123": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "23",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=115929471&loc=d3e21914-107793"
  },
  "r124": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=115929471&loc=d3e21930-107793"
  },
  "r125": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=115929471&loc=d3e21711-107793"
  },
  "r126": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794"
  },
  "r127": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(1)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794"
  },
  "r128": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(2)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794"
  },
  "r129": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(3)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794"
  },
  "r13": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(22))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r130": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(4)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794"
  },
  "r131": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794"
  },
  "r132": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22694-107794"
  },
  "r133": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22694-107794"
  },
  "r134": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22583-107794"
  },
  "r135": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22595-107794"
  },
  "r136": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22644-107794"
  },
  "r137": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22644-107794"
  },
  "r138": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22658-107794"
  },
  "r139": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22663-107794"
  },
  "r14": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(24))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r140": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 11.M.Q2)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=112272810&loc=d3e31137-122693"
  },
  "r141": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=112272810&loc=SL108384541-122693"
  },
  "r142": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "250",
   "URI": "http://asc.fasb.org/topic&trid=2122394"
  },
  "r143": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=d3e1448-109256"
  },
  "r144": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=d3e1377-109256"
  },
  "r145": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=d3e1505-109256"
  },
  "r146": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=d3e1252-109256"
  },
  "r147": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=SL5780133-109256"
  },
  "r148": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=SL5780133-109256"
  },
  "r149": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=SL5780133-109256"
  },
  "r15": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(26)(a))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r150": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=d3e1337-109256"
  },
  "r151": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257"
  },
  "r152": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257"
  },
  "r153": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=6371337&loc=d3e3630-109257"
  },
  "r154": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=109243012&loc=SL65017193-207537"
  },
  "r155": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=120380238&loc=d3e3842-109258"
  },
  "r156": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "52",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=120380238&loc=d3e4984-109258"
  },
  "r157": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "260",
   "URI": "http://asc.fasb.org/topic&trid=2144383"
  },
  "r158": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "270",
   "URI": "http://asc.fasb.org/extlink&oid=121640914&loc=d3e1280-108306"
  },
  "r159": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "270",
   "URI": "http://asc.fasb.org/topic&trid=2126967"
  },
  "r16": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(26)(b))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r160": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "272",
   "URI": "http://asc.fasb.org/extlink&oid=6828210&loc=d3e70191-108054"
  },
  "r161": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e5967-108592"
  },
  "r162": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e5967-108592"
  },
  "r163": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6161-108592"
  },
  "r164": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6191-108592"
  },
  "r165": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6061-108592"
  },
  "r166": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6132-108592"
  },
  "r167": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6143-108592"
  },
  "r168": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8672-108599"
  },
  "r169": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
  },
  "r17": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(28))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r170": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
  },
  "r171": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
  },
  "r172": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
  },
  "r173": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
  },
  "r174": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8813-108599"
  },
  "r175": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8864-108599"
  },
  "r176": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8864-108599"
  },
  "r177": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8864-108599"
  },
  "r178": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8864-108599"
  },
  "r179": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8864-108599"
  },
  "r18": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(29))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r180": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8864-108599"
  },
  "r181": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8906-108599"
  },
  "r182": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8906-108599"
  },
  "r183": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8906-108599"
  },
  "r184": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8906-108599"
  },
  "r185": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "31",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8924-108599"
  },
  "r186": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599"
  },
  "r187": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599"
  },
  "r188": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599"
  },
  "r189": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599"
  },
  "r19": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(3))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r190": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599"
  },
  "r191": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e9031-108599"
  },
  "r192": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "41",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e9038-108599"
  },
  "r193": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "42",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e9054-108599"
  },
  "r194": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121593590&loc=d3e4428-111522"
  },
  "r195": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121593590&loc=d3e4437-111522"
  },
  "r196": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5162-111524"
  },
  "r197": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a,b)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953423-111524"
  },
  "r198": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953423-111524"
  },
  "r199": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953423-111524"
  },
  "r2": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721683-107760"
  },
  "r20": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(1))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r200": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953423-111524"
  },
  "r201": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(3)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953423-111524"
  },
  "r202": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(4)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953423-111524"
  },
  "r203": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953423-111524"
  },
  "r204": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953423-111524"
  },
  "r205": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953423-111524"
  },
  "r206": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953550-111524"
  },
  "r207": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5212-111524"
  },
  "r208": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(4)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5212-111524"
  },
  "r209": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b,d)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5212-111524"
  },
  "r21": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(3))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r210": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5212-111524"
  },
  "r211": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(3)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5212-111524"
  },
  "r212": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5212-111524"
  },
  "r213": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5258-111524"
  },
  "r214": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5033-111524"
  },
  "r215": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5033-111524"
  },
  "r216": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953659-111524"
  },
  "r217": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5066-111524"
  },
  "r218": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "33",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953676-111524"
  },
  "r219": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "34",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953682-111524"
  },
  "r22": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r220": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "35",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL49126937-111524"
  },
  "r221": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5074-111524"
  },
  "r222": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5086-111524"
  },
  "r223": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5093-111524"
  },
  "r224": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5111-111524"
  },
  "r225": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5111-111524"
  },
  "r226": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5111-111524"
  },
  "r227": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953401-111524"
  },
  "r228": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5144-111524"
  },
  "r229": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 4.E)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=27010918&loc=d3e74512-122707"
  },
  "r23": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(31))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r230": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/subtopic&trid=2196772"
  },
  "r231": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=84159169&loc=d3e10133-111534"
  },
  "r232": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=84159169&loc=d3e10133-111534"
  },
  "r233": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=84159169&loc=d3e10149-111534"
  },
  "r234": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=84159169&loc=d3e10152-111534"
  },
  "r235": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=84159169&loc=d3e10178-111534"
  },
  "r236": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121585226&loc=d3e18794-111554"
  },
  "r237": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121585226&loc=d3e18845-111554"
  },
  "r238": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "310",
   "URI": "http://asc.fasb.org/topic&trid=2196771"
  },
  "r239": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121553693&loc=d3e26610-111562"
  },
  "r24": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(32))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r240": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121553693&loc=d3e26853-111562"
  },
  "r241": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27405-111563"
  },
  "r242": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27405-111563"
  },
  "r243": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=SL6283291-111563"
  },
  "r244": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27161-111563"
  },
  "r245": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(aa)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27161-111563"
  },
  "r246": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27161-111563"
  },
  "r247": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27161-111563"
  },
  "r248": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27161-111563"
  },
  "r249": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27198-111563"
  },
  "r25": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.1)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r250": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27198-111563"
  },
  "r251": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27198-111563"
  },
  "r252": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27198-111563"
  },
  "r253": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27232-111563"
  },
  "r254": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(aa)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27232-111563"
  },
  "r255": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27232-111563"
  },
  "r256": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27232-111563"
  },
  "r257": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(1)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27232-111563"
  },
  "r258": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27232-111563"
  },
  "r259": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(3)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27232-111563"
  },
  "r26": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.12)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r260": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(4)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27232-111563"
  },
  "r261": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27232-111563"
  },
  "r262": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=SL120269820-111563"
  },
  "r263": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=SL120269820-111563"
  },
  "r264": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=SL120269820-111563"
  },
  "r265": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=SL120269820-111563"
  },
  "r266": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=SL120269825-111563"
  },
  "r267": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=SL120269825-111563"
  },
  "r268": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=SL120269825-111563"
  },
  "r269": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=SL120269825-111563"
  },
  "r27": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.13(a))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r270": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=SL120269825-111563"
  },
  "r271": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27290-111563"
  },
  "r272": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27290-111563"
  },
  "r273": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27290-111563"
  },
  "r274": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27337-111563"
  },
  "r275": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27357-111563"
  },
  "r276": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27357-111563"
  },
  "r277": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "320",
   "URI": "http://asc.fasb.org/topic&trid=2196928"
  },
  "r278": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "323",
   "URI": "http://asc.fasb.org/extlink&oid=109237563&loc=d3e33749-111570"
  },
  "r279": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "323",
   "URI": "http://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571"
  },
  "r28": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.14)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r280": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437"
  },
  "r281": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437"
  },
  "r282": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(2)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437"
  },
  "r283": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599878&loc=SL82895884-210446"
  },
  "r284": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919244-210447"
  },
  "r285": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919249-210447"
  },
  "r286": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(f)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919249-210447"
  },
  "r287": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919249-210447"
  },
  "r288": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919253-210447"
  },
  "r289": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919258-210447"
  },
  "r29": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19-26)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r290": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919258-210447"
  },
  "r291": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919258-210447"
  },
  "r292": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919230-210447"
  },
  "r293": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919230-210447"
  },
  "r294": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121647567&loc=SL82921830-210448"
  },
  "r295": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121647567&loc=SL82921833-210448"
  },
  "r296": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121647567&loc=SL82921835-210448"
  },
  "r297": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121647567&loc=SL82921835-210448"
  },
  "r298": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121647567&loc=SL82921842-210448"
  },
  "r299": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "79",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121647567&loc=SL82922352-210448"
  },
  "r3": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=121566466&loc=d3e6676-107765"
  },
  "r30": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r300": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "80",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121647567&loc=SL82922355-210448"
  },
  "r301": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121558606&loc=SL82898722-210454"
  },
  "r302": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(1)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121582814&loc=SL82922888-210455"
  },
  "r303": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(2)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121582814&loc=SL82922888-210455"
  },
  "r304": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121582814&loc=SL82922888-210455"
  },
  "r305": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121582814&loc=SL82922890-210455"
  },
  "r306": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121582814&loc=SL82922895-210455"
  },
  "r307": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121582814&loc=SL82922900-210455"
  },
  "r308": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121590138&loc=SL82922954-210456"
  },
  "r309": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=99380562&loc=d3e13770-109266"
  },
  "r31": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.25)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r310": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=120320667&loc=SL49117168-202975"
  },
  "r311": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267"
  },
  "r312": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=6388964&loc=d3e16225-109274"
  },
  "r313": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16265-109275"
  },
  "r314": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(3)",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16265-109275"
  },
  "r315": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(d)",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16265-109275"
  },
  "r316": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16265-109275"
  },
  "r317": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275"
  },
  "r318": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(1)",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275"
  },
  "r319": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(2)",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275"
  },
  "r32": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.29)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r320": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(d)",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275"
  },
  "r321": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=109226348&loc=d3e2443-110228"
  },
  "r322": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229"
  },
  "r323": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229"
  },
  "r324": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229"
  },
  "r325": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=109226691&loc=d3e2941-110230"
  },
  "r326": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "360",
   "URI": "http://asc.fasb.org/topic&trid=2155823"
  },
  "r327": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "440",
   "URI": "http://asc.fasb.org/extlink&oid=121559207&loc=d3e25336-109308"
  },
  "r328": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "440",
   "URI": "http://asc.fasb.org/extlink&oid=121559207&loc=d3e25336-109308"
  },
  "r329": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "440",
   "URI": "http://asc.fasb.org/topic&trid=2144648"
  },
  "r33": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.29-31)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r330": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "450",
   "URI": "http://asc.fasb.org/extlink&oid=121557415&loc=d3e14326-108349"
  },
  "r331": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "20",
   "Topic": "450",
   "URI": "http://asc.fasb.org/subtopic&trid=2127163"
  },
  "r332": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "30",
   "Topic": "450",
   "URI": "http://asc.fasb.org/subtopic&trid=2127197"
  },
  "r333": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "450",
   "URI": "http://asc.fasb.org/topic&trid=2127136"
  },
  "r334": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "460",
   "URI": "http://asc.fasb.org/extlink&oid=121555522&loc=d3e12021-110248"
  },
  "r335": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(4)",
   "Topic": "460",
   "URI": "http://asc.fasb.org/extlink&oid=121555522&loc=d3e12069-110248"
  },
  "r336": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "460",
   "URI": "http://asc.fasb.org/extlink&oid=121596127&loc=d3e12803-110250"
  },
  "r337": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=6802200&loc=d3e1835-112601"
  },
  "r338": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=120520924&loc=SL6031897-161870"
  },
  "r339": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "470",
   "URI": "http://asc.fasb.org/topic&trid=2208564"
  },
  "r34": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.3,4)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r340": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21463-112644"
  },
  "r341": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21475-112644"
  },
  "r342": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21506-112644"
  },
  "r343": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21521-112644"
  },
  "r344": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21538-112644"
  },
  "r345": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.3-04)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=120397183&loc=d3e187085-122770"
  },
  "r346": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 4.F)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=120397183&loc=d3e187171-122770"
  },
  "r347": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "505",
   "URI": "http://asc.fasb.org/topic&trid=2208762"
  },
  "r348": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130543-203045"
  },
  "r349": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130545-203045"
  },
  "r35": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.8)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r350": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121551570&loc=SL49130690-203046-203046"
  },
  "r351": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(g)(2)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=113356391&loc=SL49131195-203048"
  },
  "r352": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(i)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=113356391&loc=SL49131195-203048"
  },
  "r353": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(i)(2)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=113356391&loc=SL49131195-203048"
  },
  "r354": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(j)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=113356391&loc=SL49131195-203048"
  },
  "r355": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "610",
   "URI": "http://asc.fasb.org/topic&trid=49130413"
  },
  "r356": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "710",
   "URI": "http://asc.fasb.org/extlink&oid=6409961&loc=d3e20487-108367"
  },
  "r357": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "712",
   "URI": "http://asc.fasb.org/topic&trid=2197446"
  },
  "r358": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=109237824&loc=d3e1703-114919"
  },
  "r359": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=109237824&loc=SL108413299-114919"
  },
  "r36": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=49176635&loc=d3e9760-107771"
  },
  "r360": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r361": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r362": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(4)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r363": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(6)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r364": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(b)(c)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r365": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r366": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(i)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r367": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(ii)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r368": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iii)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r369": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(01)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r37": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312"
  },
  "r370": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r371": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(A)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r372": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(B)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r373": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(C)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r374": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(03)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r375": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(f)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r376": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r377": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r378": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(4)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r379": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(i)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r38": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(2)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312"
  },
  "r380": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(j)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r381": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(k)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r382": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(l)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r383": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(o)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r384": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(p)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r385": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(q)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r386": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(r)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r387": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(r)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r388": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(s)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r389": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2709-114920"
  },
  "r39": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=99393222&loc=SL20226008-175313"
  },
  "r390": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2709-114920"
  },
  "r391": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(4)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2709-114920"
  },
  "r392": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2709-114920"
  },
  "r393": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118257860&loc=d3e4179-114921"
  },
  "r394": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118257860&loc=d3e4587-114921"
  },
  "r395": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=21916913&loc=d3e273930-122802"
  },
  "r396": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "60",
   "Subparagraph": "(c)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=6414203&loc=d3e39689-114964"
  },
  "r397": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "60",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=6414203&loc=d3e39716-114964"
  },
  "r398": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "70",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=49170846&loc=d3e28014-114942"
  },
  "r399": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450702-114947"
  },
  "r4": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=121566466&loc=d3e6812-107765"
  },
  "r40": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=99393222&loc=SL20226016-175313"
  },
  "r400": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(d)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947"
  },
  "r401": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450673-114947"
  },
  "r402": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "80",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=35742348&loc=SL14450788-114948"
  },
  "r403": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "715",
   "URI": "http://asc.fasb.org/topic&trid=2235017"
  },
  "r404": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121326096&loc=d3e4534-113899"
  },
  "r405": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5047-113901"
  },
  "r406": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5047-113901"
  },
  "r407": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5047-113901"
  },
  "r408": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r409": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a),(g)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r41": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669646-108580"
  },
  "r410": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(3)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r411": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r412": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(i)-(ii)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r413": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(1)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r414": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(1)(i)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r415": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(i)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r416": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r417": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r418": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(f)(1)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r419": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r42": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669646-108580"
  },
  "r420": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(g)(1)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r421": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(g)(2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r422": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 14.F)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=115993241&loc=d3e301413-122809"
  },
  "r423": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120383193&loc=d3e11149-113907"
  },
  "r424": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120383193&loc=d3e11178-113907"
  },
  "r425": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "718",
   "URI": "http://asc.fasb.org/topic&trid=2228938"
  },
  "r426": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "720",
   "URI": "http://asc.fasb.org/topic&trid=2122503"
  },
  "r427": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=120406818&loc=d3e32247-109318"
  },
  "r428": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=120406818&loc=d3e32280-109318"
  },
  "r429": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=120406818&loc=d3e31931-109318"
  },
  "r43": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669646-108580"
  },
  "r430": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32672-109319"
  },
  "r431": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32687-109319"
  },
  "r432": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32705-109319"
  },
  "r433": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32809-109319"
  },
  "r434": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32840-109319"
  },
  "r435": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32537-109319"
  },
  "r436": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32537-109319"
  },
  "r437": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32847-109319"
  },
  "r438": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32857-109319"
  },
  "r439": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32621-109319"
  },
  "r44": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669646-108580"
  },
  "r440": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32632-109319"
  },
  "r441": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32639-109319"
  },
  "r442": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32639-109319"
  },
  "r443": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32639-109319"
  },
  "r444": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(2)",
   "Topic": "740"
  },
  "r445": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(3)",
   "Topic": "740"
  },
  "r446": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Topic": "740"
  },
  "r447": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(2)",
   "Topic": "740"
  },
  "r448": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(3)",
   "Topic": "740"
  },
  "r449": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB TOPIC 6.I.5.Q1)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=116825942&loc=d3e330036-122817"
  },
  "r45": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(i)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669646-108580"
  },
  "r450": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB TOPIC 6.I.7)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=116825942&loc=d3e330036-122817"
  },
  "r451": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.7)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=116825942&loc=d3e330036-122817"
  },
  "r452": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.Fact.1)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=116825942&loc=d3e330036-122817"
  },
  "r453": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.Fact.2)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=116825942&loc=d3e330036-122817"
  },
  "r454": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 11.C)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=116825942&loc=d3e330215-122817"
  },
  "r455": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=120385591&loc=d3e39076-109324"
  },
  "r456": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=120385591&loc=d3e38679-109324"
  },
  "r457": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=120385591&loc=d3e38679-109324"
  },
  "r458": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "270",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=6424409&loc=d3e44925-109338"
  },
  "r459": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=6424122&loc=d3e41874-109331"
  },
  "r46": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(i-k)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669646-108580"
  },
  "r460": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "740",
   "URI": "http://asc.fasb.org/topic&trid=2144680"
  },
  "r461": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "23",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "10",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=116868678&loc=d3e1043-128460"
  },
  "r462": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=79982066&loc=d3e1392-128463"
  },
  "r463": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=79982066&loc=d3e1486-128463"
  },
  "r464": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "37",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=121600890&loc=d3e2207-128464"
  },
  "r465": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=121647850&loc=d3e4845-128472"
  },
  "r466": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(d)",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=120321790&loc=d3e6927-128479"
  },
  "r467": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "740",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=121554379&loc=d3e9972-128506"
  },
  "r468": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "740",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=121554379&loc=d3e9979-128506"
  },
  "r469": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "805",
   "URI": "http://asc.fasb.org/topic&trid=2303972"
  },
  "r47": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669646-108580"
  },
  "r470": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "15",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=116873149&loc=d3e923-111674"
  },
  "r471": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=108774443&loc=d3e5283-111683"
  },
  "r472": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=108774443&loc=SL4569616-111683"
  },
  "r473": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=116870748&loc=SL6758485-165988"
  },
  "r474": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=116870748&loc=SL6758485-165988"
  },
  "r475": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=109239629&loc=d3e5614-111684"
  },
  "r476": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(3)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684"
  },
  "r477": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c),(3)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684"
  },
  "r478": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bb)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=121559654&loc=d3e5710-111685"
  },
  "r479": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=121559654&loc=d3e5710-111685"
  },
  "r48": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=d3e637-108580"
  },
  "r480": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=120409616&loc=SL4591552-111686"
  },
  "r481": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5579240-113959"
  },
  "r482": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5579245-113959"
  },
  "r483": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5579245-113959"
  },
  "r484": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5579245-113959"
  },
  "r485": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5580258-113959"
  },
  "r486": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)(ii)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=d3e41620-113959"
  },
  "r487": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=d3e41620-113959"
  },
  "r488": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=d3e41638-113959"
  },
  "r489": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5618551-113959"
  },
  "r49": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=d3e640-108580"
  },
  "r490": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5618551-113959"
  },
  "r491": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624163-113959"
  },
  "r492": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624163-113959"
  },
  "r493": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624163-113959"
  },
  "r494": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624171-113959"
  },
  "r495": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624177-113959"
  },
  "r496": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624177-113959"
  },
  "r497": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624181-113959"
  },
  "r498": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4EEEE",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL109999725-113959"
  },
  "r499": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(4)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5708775-113959"
  },
  "r5": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(1))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r50": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL116659650-108580"
  },
  "r500": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=d3e41641-113959"
  },
  "r501": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=d3e41675-113959"
  },
  "r502": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=d3e41678-113959"
  },
  "r503": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=d3e41678-113959"
  },
  "r504": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "182",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121582272&loc=SL5629052-113961"
  },
  "r505": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "25",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121577467&loc=d3e76258-113986"
  },
  "r506": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "815",
   "URI": "http://asc.fasb.org/topic&trid=2229140"
  },
  "r507": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
  },
  "r508": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
  },
  "r509": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bb)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
  },
  "r51": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=d3e681-108580"
  },
  "r510": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
  },
  "r511": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)(1)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
  },
  "r512": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)(2)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
  },
  "r513": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
  },
  "r514": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
  },
  "r515": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19279-110258"
  },
  "r516": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=SL6742756-110258"
  },
  "r517": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=SL6742756-110258"
  },
  "r518": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "60",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=7493716&loc=d3e21868-110260"
  },
  "r519": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=116690757&loc=d3e13220-108610"
  },
  "r52": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669686-108580"
  },
  "r520": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=121572278&loc=d3e13279-108611"
  },
  "r521": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=121572278&loc=d3e13433-108611"
  },
  "r522": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=121572278&loc=d3e13467-108611"
  },
  "r523": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=121572278&loc=d3e13476-108611"
  },
  "r524": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=75031198&loc=d3e14064-108612"
  },
  "r525": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "230",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=98513438&loc=d3e33268-110906"
  },
  "r526": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32136-110900"
  },
  "r527": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r528": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r529": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(c)",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r53": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=d3e689-108580"
  },
  "r530": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(d)",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r531": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r532": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=6450520&loc=d3e32583-110901"
  },
  "r533": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=6450988&loc=d3e26243-108391"
  },
  "r534": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=119993939&loc=d3e28541-108399"
  },
  "r535": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=119993939&loc=d3e28551-108399"
  },
  "r536": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=119993939&loc=d3e28555-108399"
  },
  "r537": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=114775985&loc=d3e28878-108400"
  },
  "r538": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "840",
   "URI": "http://asc.fasb.org/extlink&oid=121616839&loc=d3e45280-112737"
  },
  "r539": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(4)",
   "Topic": "840",
   "URI": "http://asc.fasb.org/extlink&oid=121568338&loc=d3e45377-112738"
  },
  "r54": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL34724391-108580"
  },
  "r540": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121603541&loc=SL77918627-209977"
  },
  "r541": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121603541&loc=SL77918627-209977"
  },
  "r542": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121603541&loc=SL77918631-209977"
  },
  "r543": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(1)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121609121&loc=SL77918673-209980"
  },
  "r544": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121609121&loc=SL77918686-209980"
  },
  "r545": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121609121&loc=SL77918701-209980"
  },
  "r546": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "53",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121568110&loc=SL77918982-209971"
  },
  "r547": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "850",
   "URI": "http://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864"
  },
  "r548": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)(i)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r549": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)(ii)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r55": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL34724394-108580"
  },
  "r550": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r551": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r552": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r553": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r554": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r555": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r556": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r557": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r558": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(cc)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r559": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r56": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669619-108580"
  },
  "r560": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(5)(ii)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r561": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r562": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r563": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r564": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r565": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r566": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r567": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=SL51823488-111719"
  },
  "r568": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=66007379&loc=d3e113888-111728"
  },
  "r569": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109249958&loc=SL6224234-111729"
  },
  "r57": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669619-108580"
  },
  "r570": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)(1)(i)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109249958&loc=SL6224234-111729"
  },
  "r571": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109249958&loc=SL6224234-111729"
  },
  "r572": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(c)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109249958&loc=SL6224234-111729"
  },
  "r573": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109249958&loc=SL34722452-111729"
  },
  "r574": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(c)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109249958&loc=SL34722452-111729"
  },
  "r575": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "50",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=6469459&loc=d3e122492-111745"
  },
  "r576": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "50",
   "Subparagraph": "(a)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=6469459&loc=d3e122501-111745"
  },
  "r577": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "50",
   "Subparagraph": "(b)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=6469459&loc=d3e122501-111745"
  },
  "r578": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122596-111746"
  },
  "r579": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(b)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122596-111746"
  },
  "r58": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669619-108580"
  },
  "r580": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(d)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122596-111746"
  },
  "r581": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122625-111746"
  },
  "r582": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122625-111746"
  },
  "r583": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122625-111746"
  },
  "r584": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122625-111746"
  },
  "r585": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(4)(i)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122625-111746"
  },
  "r586": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(4)(ii)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122625-111746"
  },
  "r587": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(5)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122625-111746"
  },
  "r588": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
  },
  "r589": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
  },
  "r59": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669625-108580"
  },
  "r590": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
  },
  "r591": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
  },
  "r592": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(4)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
  },
  "r593": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(5)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
  },
  "r594": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(6)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
  },
  "r595": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(7)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
  },
  "r596": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(b)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
  },
  "r597": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(d)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
  },
  "r598": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
  },
  "r599": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
  },
  "r6": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(12))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r60": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669625-108580"
  },
  "r600": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
  },
  "r601": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "860",
   "URI": "http://asc.fasb.org/topic&trid=2197590"
  },
  "r602": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "910",
   "URI": "http://asc.fasb.org/extlink&oid=119991564&loc=SL119991595-234733"
  },
  "r603": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 11.L)",
   "Topic": "924",
   "URI": "http://asc.fasb.org/extlink&oid=6472922&loc=d3e499488-122856"
  },
  "r604": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "926",
   "URI": "http://asc.fasb.org/extlink&oid=120154696&loc=d3e54445-107959"
  },
  "r605": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(f)(1)",
   "Topic": "926",
   "URI": "http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079"
  },
  "r606": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(f)(2)",
   "Topic": "926",
   "URI": "http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079"
  },
  "r607": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(f)(3)",
   "Topic": "926",
   "URI": "http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079"
  },
  "r608": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "340",
   "Topic": "928",
   "URI": "http://asc.fasb.org/extlink&oid=6473545&loc=d3e61844-108004"
  },
  "r609": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "940",
   "URI": "http://asc.fasb.org/subtopic&trid=2176304"
  },
  "r61": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=d3e557-108580"
  },
  "r610": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "210",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=117340910&loc=d3e59706-112781"
  },
  "r611": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(1)(a))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r612": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(1))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r613": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(10)(1))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r614": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(10))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r615": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(11))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r616": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(13))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r617": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(15)(2))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r618": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(15)(5))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r619": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(15))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r62": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=116657188&loc=SL116659661-227067"
  },
  "r620": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(16))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r621": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(23))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r622": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(6))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r623": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(7)(2))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r624": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.10(3))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r625": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.10(4))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r626": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.12)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r627": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.13(1))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r628": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.13,16)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r629": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.15)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r63": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121640130&loc=d3e1436-108581"
  },
  "r630": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.17)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r631": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.2)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r632": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.7)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r633": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(13))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r634": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(14))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r635": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(22))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r636": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(23))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r637": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(24))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r638": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(26))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r639": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(27))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r64": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(1)(e))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868656-224227"
  },
  "r640": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.1)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r641": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.1-5)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r642": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.10)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r643": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.11)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r644": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.12)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r645": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.13(h))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r646": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.13)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r647": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.14(b))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r648": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.14(d))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r649": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.14)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r65": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(210.5-03(11))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r650": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.2)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r651": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.4)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r652": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.6)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r653": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.7,8)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r654": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.9)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r655": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "230",
   "Subparagraph": "(b)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=121551529&loc=d3e60009-112784"
  },
  "r656": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(b)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120252992&loc=d3e62557-112803"
  },
  "r657": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(a)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120252992&loc=d3e62586-112803"
  },
  "r658": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(b)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120252992&loc=d3e62586-112803"
  },
  "r659": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(c)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120252992&loc=d3e62586-112803"
  },
  "r66": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(20))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r660": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(d)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120252992&loc=d3e62586-112803"
  },
  "r661": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(a)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120252992&loc=SL120269850-112803"
  },
  "r662": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(b)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120252992&loc=SL120269850-112803"
  },
  "r663": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(c)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120252992&loc=SL120269850-112803"
  },
  "r664": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(d)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120252992&loc=SL120269850-112803"
  },
  "r665": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120252992&loc=d3e62652-112803"
  },
  "r666": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "942",
   "URI": "http://asc.fasb.org/subtopic&trid=2209399"
  },
  "r667": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "325",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=75031641&loc=d3e63345-112809"
  },
  "r668": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "405",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6957935&loc=d3e64057-112817"
  },
  "r669": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "405",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=116652737&loc=d3e64164-112818"
  },
  "r67": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(21))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r670": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "470",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6479118&loc=d3e64650-112822"
  },
  "r671": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "470",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=75038535&loc=d3e64684-112823"
  },
  "r672": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "470",
   "Subparagraph": "(d)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=75038535&loc=d3e64711-112823"
  },
  "r673": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "470",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=75038535&loc=d3e64711-112823"
  },
  "r674": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Subparagraph": "(a)(1)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=117337116&loc=SL5958568-112826"
  },
  "r675": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Subparagraph": "(a)(2)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=117337116&loc=SL5958568-112826"
  },
  "r676": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Subparagraph": "(b)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=117337116&loc=SL5958568-112826"
  },
  "r677": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Subparagraph": "(c)(1)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=117337116&loc=SL5958568-112826"
  },
  "r678": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Subparagraph": "(c)(2)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=117337116&loc=SL5958568-112826"
  },
  "r679": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Subparagraph": "(e)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=117337116&loc=SL5958568-112826"
  },
  "r68": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(22))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r680": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=117337116&loc=SL5958569-112826"
  },
  "r681": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=117337116&loc=SL5958570-112826"
  },
  "r682": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=117337116&loc=SL5958573-112826"
  },
  "r683": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=117337116&loc=SL5958575-112826"
  },
  "r684": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(15)(b)(2))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r685": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(1)(b))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r686": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(10))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r687": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(12))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r688": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(15)(5))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r689": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(15))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r69": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(24))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r690": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(16)(a)(1))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r691": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(16))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r692": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(2))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r693": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(23)(a)(4))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r694": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(25))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r695": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(8))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r696": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.(a),19)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r697": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.1(h))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r698": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.16)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r699": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.3)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r7": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(13))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r70": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(25))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r700": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(18))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r701": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(19))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r702": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(20))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r703": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(22))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r704": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(23))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r705": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(4))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r706": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(9))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r707": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04.3(a))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r708": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4H",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=116884468&loc=SL65671331-158438"
  },
  "r709": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(d)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121643868&loc=SL117782755-158439"
  },
  "r71": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(5))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r710": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13H",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121639165&loc=SL117783719-158441"
  },
  "r711": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29F",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121639165&loc=SL117819544-158441"
  },
  "r712": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r713": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)(1)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r714": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)(2)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r715": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(i)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r716": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(ii)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r717": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(iii)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r718": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(iv)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r719": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(h)(2)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r72": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(7)(c))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r720": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(e)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121641442&loc=d3e19393-158473"
  },
  "r721": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=66023616&loc=SL35737432-115832"
  },
  "r722": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "220",
   "Subparagraph": "(k)",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=118262090&loc=SL114874205-224268"
  },
  "r723": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-07.2(a),(b),(c),(d))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401555&loc=SL114874292-224272"
  },
  "r724": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15(Column B))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611379-123010"
  },
  "r725": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15(Column C))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611379-123010"
  },
  "r726": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15(Column D))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611379-123010"
  },
  "r727": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "946",
   "URI": "http://asc.fasb.org/subtopic&trid=2324412"
  },
  "r728": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=6490092&loc=d3e47080-110998"
  },
  "r729": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=6490092&loc=d3e47304-110998"
  },
  "r73": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(9)(a))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r730": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "310",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=120238483&loc=d3e48678-111004"
  },
  "r731": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29(Footnote 4))",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=120402547&loc=d3e617274-123014"
  },
  "r732": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "740",
   "Topic": "954",
   "URI": "http://asc.fasb.org/extlink&oid=6491622&loc=d3e9504-115650"
  },
  "r733": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "360",
   "Subparagraph": "(d)",
   "Topic": "958",
   "URI": "http://asc.fasb.org/extlink&oid=120429125&loc=d3e99779-112916"
  },
  "r734": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "360",
   "Topic": "958",
   "URI": "http://asc.fasb.org/extlink&oid=120429125&loc=d3e99893-112916"
  },
  "r735": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "360",
   "Topic": "958",
   "URI": "http://asc.fasb.org/extlink&oid=120429125&loc=SL120174063-112916"
  },
  "r736": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Footnote 4))",
   "Topic": "970",
   "URI": "http://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
  },
  "r737": {
   "Name": "Form 10-K",
   "Number": "249",
   "Publisher": "SEC",
   "Section": "310"
  },
  "r738": {
   "Name": "Form 20-F",
   "Number": "249",
   "Publisher": "SEC",
   "Section": "220",
   "Subsection": "f"
  },
  "r739": {
   "Name": "Form 40-F",
   "Number": "249",
   "Publisher": "SEC",
   "Section": "240",
   "Subsection": "f"
  },
  "r74": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(b)(4))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r740": {
   "Name": "Forms 10-K, 10-Q, 20-F",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "13",
   "Subsection": "a-1"
  },
  "r741": {
   "Name": "Industry Guide",
   "Number": "3",
   "Paragraph": "D-E",
   "Publisher": "SEC",
   "Section": "V"
  },
  "r742": {
   "Name": "Regulation 12B",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r743": {
   "Name": "Regulation S-T",
   "Number": "232",
   "Publisher": "SEC",
   "Section": "405"
  },
  "r75": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.1)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r76": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.3)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r77": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.4)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r78": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.6)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r79": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "220",
   "URI": "http://asc.fasb.org/topic&trid=2134417"
  },
  "r8": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(14))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r80": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3151-108585"
  },
  "r81": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3179-108585"
  },
  "r82": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3179-108585"
  },
  "r83": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3179-108585"
  },
  "r84": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3213-108585"
  },
  "r85": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3213-108585"
  },
  "r86": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3213-108585"
  },
  "r87": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3213-108585"
  },
  "r88": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3255-108585"
  },
  "r89": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3255-108585"
  },
  "r9": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(17))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r90": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3291-108585"
  },
  "r91": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3291-108585"
  },
  "r92": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3337-108585"
  },
  "r93": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3367-108585"
  },
  "r94": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3461-108585"
  },
  "r95": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3521-108585"
  },
  "r96": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3536-108585"
  },
  "r97": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3536-108585"
  },
  "r98": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3536-108585"
  },
  "r99": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3536-108585"
  }
 },
 "version": "2.1"
}
