{
 "instance": {
  "fmbh-20230331.htm": {
   "axisCustom": 0,
   "axisStandard": 29,
   "baseTaxonomies": {
    "http://fasb.org/us-gaap/2022": 1964,
    "http://xbrl.sec.gov/dei/2022": 29
   },
   "contextCount": 634,
   "dts": {
    "calculationLink": {
     "local": [
      "fmbh-20230331_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "fmbh-20230331_def.xml"
     ]
    },
    "inline": {
     "local": [
      "fmbh-20230331.htm"
     ]
    },
    "labelLink": {
     "local": [
      "fmbh-20230331_lab.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "fmbh-20230331_pre.xml"
     ]
    },
    "schema": {
     "local": [
      "fmbh-20230331.xsd"
     ],
     "remote": [
      "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/2005/xbrldt-2005.xsd",
      "http://www.xbrl.org/2006/ref-2006-02-27.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/reference-2009-12-16.xsd",
      "https://www.xbrl.org/2020/extensible-enumerations-2.0.xsd",
      "https://www.xbrl.org/dtr/type/2020-01-21/types.xsd",
      "https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd",
      "https://xbrl.fasb.org/srt/2022/elts/srt-roles-2022.xsd",
      "https://xbrl.fasb.org/srt/2022/elts/srt-types-2022.xsd",
      "https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd",
      "https://xbrl.fasb.org/us-gaap/2022/elts/us-roles-2022.xsd",
      "https://xbrl.fasb.org/us-gaap/2022/elts/us-types-2022.xsd",
      "https://xbrl.sec.gov/country/2022/country-2022.xsd",
      "https://xbrl.sec.gov/dei/2022/dei-2022.xsd"
     ]
    }
   },
   "elementCount": 796,
   "entityCount": 1,
   "hidden": {
    "http://fasb.org/us-gaap/2022": 11,
    "http://xbrl.sec.gov/dei/2022": 4,
    "total": 15
   },
   "keyCustom": 131,
   "keyStandard": 364,
   "memberCustom": 55,
   "memberStandard": 65,
   "nsprefix": "fmbh",
   "nsuri": "http://www.firstmid.com/20230331",
   "report": {
    "R1": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "true",
     "longName": "100000 - Document - Document and Entity Information",
     "menuCat": "Cover",
     "order": "1",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation",
     "shortName": "Document and Entity Information",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R10": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100100 - Disclosure - Basis of Accounting and Consolidation",
     "menuCat": "Notes",
     "order": "10",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidation",
     "shortName": "Basis of Accounting and Consolidation",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R11": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100110 - Disclosure - Earnings Per Share",
     "menuCat": "Notes",
     "order": "11",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureEarningsPerShare",
     "shortName": "Earnings Per Share",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R12": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100120 - Disclosure - Investment Securities",
     "menuCat": "Notes",
     "order": "12",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecurities",
     "shortName": "Investment Securities",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R13": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100130 - Disclosure - Loans and Allowance for Credit Losses",
     "menuCat": "Notes",
     "order": "13",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLosses",
     "shortName": "Loans and Allowance for Credit Losses",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R14": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100140 - Disclosure - Goodwill and Intangible Assets",
     "menuCat": "Notes",
     "order": "14",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssets",
     "shortName": "Goodwill and Intangible Assets",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R15": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100150 - Disclosure - Repurchase Agreements and Other Borrowings",
     "menuCat": "Notes",
     "order": "15",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowings",
     "shortName": "Repurchase Agreements and Other Borrowings",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R16": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100160 - Disclosure - Fair Value of Assets and Liabilities",
     "menuCat": "Notes",
     "order": "16",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilities",
     "shortName": "Fair Value of Assets and Liabilities",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R17": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BusinessCombinationDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100170 - Disclosure - Business Combinations",
     "menuCat": "Notes",
     "order": "17",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinations",
     "shortName": "Business Combinations",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BusinessCombinationDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R18": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LesseeOperatingLeasesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100180 - Disclosure - Leases",
     "menuCat": "Notes",
     "order": "18",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeases",
     "shortName": "Leases",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LesseeOperatingLeasesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R19": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100190 - Disclosure - Derivatives",
     "menuCat": "Notes",
     "order": "19",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivatives",
     "shortName": "Derivatives",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R2": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DueFromBanks",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100010 - Statement - Condensed Consolidated Balance Sheets (Unaudited)",
     "menuCat": "Statements",
     "order": "2",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited",
     "shortName": "Condensed Consolidated Balance Sheets (Unaudited)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DueFromBanks",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R20": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100200 - Disclosure - Basis of Accounting and Consolidation (Policies)",
     "menuCat": "Policies",
     "order": "20",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies",
     "shortName": "Basis of Accounting and Consolidation (Policies)",
     "subGroupType": "policies",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R21": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:ComprehensiveIncomePolicyPolicyTextBlock",
       "div",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAmountsRecognizedInOtherComprehensiveIncomeLossTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100210 - Disclosure - Basis of Accounting and Consolidation (Tables)",
     "menuCat": "Tables",
     "order": "21",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationTables",
     "shortName": "Basis of Accounting and Consolidation (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:ComprehensiveIncomePolicyPolicyTextBlock",
       "div",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAmountsRecognizedInOtherComprehensiveIncomeLossTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R22": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100220 - Disclosure - Earnings Per Share (Tables)",
     "menuCat": "Tables",
     "order": "22",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureEarningsPerShareTables",
     "shortName": "Earnings Per Share (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R23": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "fmbh:AvailableForSaleAndHeldForMaturitySecuritiesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100230 - Disclosure - Investment Securities (Tables)",
     "menuCat": "Tables",
     "order": "23",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesTables",
     "shortName": "Investment Securities (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "fmbh:AvailableForSaleAndHeldForMaturitySecuritiesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R24": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100240 - Disclosure - Loans and Allowance for Credit Losses (Tables)",
     "menuCat": "Tables",
     "order": "24",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables",
     "shortName": "Loans and Allowance for Credit Losses (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R25": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfIntangibleAssetsAndGoodwillTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100250 - Disclosure - Goodwill and Intangible Assets (Tables)",
     "menuCat": "Tables",
     "order": "25",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables",
     "shortName": "Goodwill and Intangible Assets (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfIntangibleAssetsAndGoodwillTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R26": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfSecuritiesFinancingTransactionsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100260 - Disclosure - Repurchase Agreements and Other Borrowings (Tables)",
     "menuCat": "Tables",
     "order": "26",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsTables",
     "shortName": "Repurchase Agreements and Other Borrowings (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfSecuritiesFinancingTransactionsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R27": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100270 - Disclosure - Fair Value of Assets and Liabilities (Tables)",
     "menuCat": "Tables",
     "order": "27",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesTables",
     "shortName": "Fair Value of Assets and Liabilities (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R28": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_49e4e947-4706-434b-9ada-60fa0ddf6b9e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100280 - Disclosure - Business Combinations (Tables)",
     "menuCat": "Tables",
     "order": "28",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsTables",
     "shortName": "Business Combinations (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_49e4e947-4706-434b-9ada-60fa0ddf6b9e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R29": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "fmbh:ScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100290 - Disclosure - Leases (Tables)",
     "menuCat": "Tables",
     "order": "29",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesTables",
     "shortName": "Leases (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "fmbh:ScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R3": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:HeldToMaturitySecuritiesFairValue",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100030 - Statement - Condensed Consolidated Balance Sheets (Unaudited) (Parenthetical)",
     "menuCat": "Statements",
     "order": "3",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical",
     "shortName": "Condensed Consolidated Balance Sheets (Unaudited) (Parenthetical)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "INF",
      "lang": null,
      "name": "us-gaap:CommonStockSharesAuthorized",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R30": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100300 - Disclosure - Derivatives (Tables)",
     "menuCat": "Tables",
     "order": "30",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesTables",
     "shortName": "Derivatives (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R31": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:CommonStockParOrStatedValuePerShare",
      "reportCount": 1,
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100310 - Disclosure - Basis of Accounting and Consolidation - Additional Information (Details)",
     "menuCat": "Details",
     "order": "31",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
     "shortName": "Basis of Accounting and Consolidation - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:ShareBasedCompensationOptionAndIncentivePlansPolicy",
       "div",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": null,
      "lang": "en-US",
      "name": "fmbh:StockIncentivePlanTerm",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R32": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:StockholdersEquity",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100320 - Disclosure - Basis of Accounting and Consolidation - Schedule of Components of Accumulated Other Comprehensive Loss (Details)",
     "menuCat": "Details",
     "order": "32",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails",
     "shortName": "Basis of Accounting and Consolidation - Schedule of Components of Accumulated Other Comprehensive Loss (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAmountsRecognizedInOtherComprehensiveIncomeLossTableTextBlock",
       "div",
       "us-gaap:ComprehensiveIncomePolicyPolicyTextBlock",
       "div",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_162f0281-631a-49a2-8768-45ce82ea1004",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R33": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DebtAndEquitySecuritiesGainLoss",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100330 - Disclosure - Basis of Accounting and Consolidation - Schedule of Amounts Reclassified from Accumulated Other Comprehensive Income (Loss) (Details)",
     "menuCat": "Details",
     "order": "33",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetails",
     "shortName": "Basis of Accounting and Consolidation - Schedule of Amounts Reclassified from Accumulated Other Comprehensive Income (Loss) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:ScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeTableTextBlock",
       "div",
       "us-gaap:ComprehensiveIncomePolicyPolicyTextBlock",
       "div",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_ab1460bf-f4ba-4b1f-b621-08a40d6a6953",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:DebtAndEquitySecuritiesGainLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R34": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100340 - Disclosure - Earnings Per Share - Components of Basic and Diluted Net Income Per Common Share (Details)",
     "menuCat": "Details",
     "order": "34",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails",
     "shortName": "Earnings Per Share - Components of Basic and Diluted Net Income Per Common Share (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "0",
      "lang": null,
      "name": "us-gaap:NetIncomeLossAvailableToCommonStockholdersDiluted",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R35": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100350 - Disclosure - Earnings Per Share - Additional Information (Details)",
     "menuCat": "Details",
     "order": "35",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureEarningsPerShareAdditionalInformationDetails",
     "shortName": "Earnings Per Share - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R36": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100360 - Disclosure - Investment Securities - Available for Sale and Held for Maturity Securities (Details)",
     "menuCat": "Details",
     "order": "36",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
     "shortName": "Investment Securities - Available for Sale and Held for Maturity Securities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:AvailableForSaleAndHeldForMaturitySecuritiesTableTextBlock",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R37": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "us-gaap:EquitySecuritiesFvNi",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100370 - Disclosure - Investment Securities - Additional Information (Details)",
     "menuCat": "Details",
     "order": "37",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
     "shortName": "Investment Securities - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "INF",
      "lang": null,
      "name": "us-gaap:EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     }
    },
    "R38": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:RealizedGainLossOnInvestmentsTableTextBlock",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "fmbh:DebtAndEquitySecuritiesAvailableForSaleRealizedGain",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100380 - Disclosure - Investment Securities - Realized Gains and Losses From Sale of Securities (Details)",
     "menuCat": "Details",
     "order": "38",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesRealizedGainsAndLossesFromSaleOfSecuritiesDetails",
     "shortName": "Investment Securities - Realized Gains and Losses From Sale of Securities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:RealizedGainLossOnInvestmentsTableTextBlock",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "fmbh:DebtAndEquitySecuritiesAvailableForSaleRealizedGain",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R39": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100390 - Disclosure - Investment Securities - Investments Classified by Contractual Maturity Date (Details)",
     "menuCat": "Details",
     "order": "39",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails",
     "shortName": "Investment Securities - Investments Classified by Contractual Maturity Date (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R4": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:InterestAndFeeIncomeLoansAndLeases",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100040 - Statement - Condensed Consolidated Statements of Income (unaudited)",
     "menuCat": "Statements",
     "order": "4",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited",
     "shortName": "Condensed Consolidated Statements of Income (unaudited)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:InterestAndFeeIncomeLoansAndLeases",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R40": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfUnrealizedLossOnInvestmentsTableTextBlock",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100400 - Disclosure - Investment Securities - Fair Value of Investments with Sustained Gross Unrealized Losses (Details)",
     "menuCat": "Details",
     "order": "40",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
     "shortName": "Investment Securities - Fair Value of Investments with Sustained Gross Unrealized Losses (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfUnrealizedLossOnInvestmentsTableTextBlock",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R41": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivableBeforeAllowanceForCreditLossAndFee",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100410 - Disclosure - Loans and Allowance for Credit Losses - Summary of Loans (Details)",
     "menuCat": "Details",
     "order": "41",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails",
     "shortName": "Loans and Allowance for Credit Losses - Summary of Loans (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivableBeforeAllowanceForCreditLossAndFee",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R42": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "fmbh:LoansAndLeasesReceivableInterestReceivable",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100420 - Disclosure - Loans and Allowance for Credit Losses - Additional Information (Details)",
     "menuCat": "Details",
     "order": "42",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
     "shortName": "Loans and Allowance for Credit Losses - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "fmbh:LoansAndLeasesReceivableInterestReceivable",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R43": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_d8de1d95-5cf2-446b-aca8-960eb216981d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivableAllowanceForCreditLosses",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100430 - Disclosure - Loans and Allowance for Credit Losses - Allowance for Credit Losses Based on Portfolio Segment (Details)",
     "menuCat": "Details",
     "order": "43",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
     "shortName": "Loans and Allowance for Credit Losses - Allowance for Credit Losses Based on Portfolio Segment (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:FinancingReceivableAllowanceForCreditLossPurchasedWithCreditDeteriorationIncrease",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R44": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:FinancingReceivableIndividuallyEvaluatedCollateralDependentTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivableIndividuallyEvaluatedForImpairment",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100440 - Disclosure - Loans and Allowance for Credit Losses - Amortized Cost Basis of Collateral-Dependent Loans by Class of Loans Individually Evaluated (Details)",
     "menuCat": "Details",
     "order": "44",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
     "shortName": "Loans and Allowance for Credit Losses - Amortized Cost Basis of Collateral-Dependent Loans by Class of Loans Individually Evaluated (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:FinancingReceivableIndividuallyEvaluatedCollateralDependentTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivableIndividuallyEvaluatedForImpairment",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R45": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FinancingReceivableCreditQualityIndicatorsTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivableOriginatedInCurrentFiscalYear",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100450 - Disclosure - Loans and Allowance for Credit Losses - Credit Risk Profile of Loan Portfolio on Amortized Cost Basis Based on Risk Rating Category (Details)",
     "menuCat": "Details",
     "order": "45",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
     "shortName": "Loans and Allowance for Credit Losses - Credit Risk Profile of Loan Portfolio on Amortized Cost Basis Based on Risk Rating Category (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FinancingReceivableCreditQualityIndicatorsTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivableOriginatedInCurrentFiscalYear",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R46": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:NotesReceivableGross",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100460 - Disclosure - Loans and Allowance for Credit Losses - Loan Portfolio Aging Analysis (Details)",
     "menuCat": "Details",
     "order": "46",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
     "shortName": "Loans and Allowance for Credit Losses - Loan Portfolio Aging Analysis (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:PastDueFinancingReceivablesTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R47": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfFinancingReceivablesNonAccrualStatusTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivableNonaccrualNoAllowance",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100470 - Disclosure - Loans and Allowance for Credit Losses - Amortized Cost Basis of Loans on Nonaccrual Status and Nonaccrual Loans Individually Evaluated (Details)",
     "menuCat": "Details",
     "order": "47",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails",
     "shortName": "Loans and Allowance for Credit Losses - Amortized Cost Basis of Loans on Nonaccrual Status and Nonaccrual Loans Individually Evaluated (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfFinancingReceivablesNonAccrualStatusTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivableNonaccrualNoAllowance",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R48": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:FinancingReceivablesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "4",
      "first": true,
      "lang": null,
      "name": "fmbh:FinancingReceivableModificationToTotalFinancingReceivablesPercent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100480 - Disclosure - Loans and Allowance for Credit Losses - Amortized Cost Basis of Loans Experiencing Financial Difficulty and Modified (Details)",
     "menuCat": "Details",
     "order": "48",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
     "shortName": "Loans and Allowance for Credit Losses - Amortized Cost Basis of Loans Experiencing Financial Difficulty and Modified (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:FinancingReceivablesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "4",
      "first": true,
      "lang": null,
      "name": "fmbh:FinancingReceivableModificationToTotalFinancingReceivablesPercent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     }
    },
    "R49": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_bafdce6e-dcc7-45ee-8b7c-176c131e5014",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "fmbh:FinancingReceivableModificationsPerformanceRecordedInvestment",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100490 - Disclosure - Loans and Allowance for Credit Losses - Performance of Loans Modified (Details)",
     "menuCat": "Details",
     "order": "49",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
     "shortName": "Loans and Allowance for Credit Losses - Performance of Loans Modified (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_bafdce6e-dcc7-45ee-8b7c-176c131e5014",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "fmbh:FinancingReceivableModificationsPerformanceRecordedInvestment",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R5": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100050 - Statement - Condensed Consolidated Statements of Comprehensive Income (Loss) (unaudited)",
     "menuCat": "Statements",
     "order": "5",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfComprehensiveIncomeLossUnaudited",
     "shortName": "Condensed Consolidated Statements of Comprehensive Income (Loss) (unaudited)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R50": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:FinancialEffectOfLoanModificationsTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "4",
      "first": true,
      "lang": null,
      "name": "fmbh:FinancingReceivableLoanModificationsWeightedAverageInterestRateReduction",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100500 - Disclosure - Loans and Allowance for Credit Losses - Financial Effect of Loan Modifications (Details)",
     "menuCat": "Details",
     "order": "50",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesFinancialEffectOfLoanModificationsDetails",
     "shortName": "Loans and Allowance for Credit Losses - Financial Effect of Loan Modifications (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:FinancialEffectOfLoanModificationsTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "4",
      "first": true,
      "lang": null,
      "name": "fmbh:FinancingReceivableLoanModificationsWeightedAverageInterestRateReduction",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     }
    },
    "R51": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:FinancingReceivablestroubledDebtRestructuringsDuringPeriodTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_d8de1d95-5cf2-446b-aca8-960eb216981d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "fmbh:FinancingReceivableModificationsPerformingRecordedInvestment",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100510 - Disclosure - Loans and Allowance for Credit Losses - Loans Classified as Troubled Debt Restructurings (Details)",
     "menuCat": "Details",
     "order": "51",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansClassifiedAsTroubledDebtRestructuringsDetails",
     "shortName": "Loans and Allowance for Credit Losses - Loans Classified as Troubled Debt Restructurings (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:FinancingReceivablestroubledDebtRestructuringsDuringPeriodTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_d8de1d95-5cf2-446b-aca8-960eb216981d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "fmbh:FinancingReceivableModificationsPerformingRecordedInvestment",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R52": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:SummaryOfPurchasedCreditDeterioratedPCDLoansTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_9f79edec-7d58-4168-acd5-6f09ea48ac7d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100520 - Disclosure - Loans and Allowance for Credit Losses - Summary of Purchased Credit Deteriorated (PCD) Loans (Details)",
     "menuCat": "Details",
     "order": "52",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails",
     "shortName": "Loans and Allowance for Credit Losses - Summary of Purchased Credit Deteriorated (PCD) Loans (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:SummaryOfPurchasedCreditDeterioratedPCDLoansTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_9f79edec-7d58-4168-acd5-6f09ea48ac7d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R53": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:GoodwillGross",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100530 - Disclosure - Goodwill and Intangible Assets - Schedule of Intangible Assets and Goodwill (Details)",
     "menuCat": "Details",
     "order": "53",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails",
     "shortName": "Goodwill and Intangible Assets - Schedule of Intangible Assets and Goodwill (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:GoodwillGross",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R54": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:Goodwill",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100540 - Disclosure - Goodwill and Intangible Assets - Additional Information (Details)",
     "menuCat": "Details",
     "order": "54",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
     "shortName": "Goodwill and Intangible Assets - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": null
    },
    "R55": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:Goodwill",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100550 - Disclosure - Goodwill and Intangible Assets - Schedule of Reconciliation of Purchase Price Paid for Acquisition and Goodwill Recorded (Details)",
     "menuCat": "Details",
     "order": "55",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails",
     "shortName": "Goodwill and Intangible Assets - Schedule of Reconciliation of Purchase Price Paid for Acquisition and Goodwill Recorded (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:ScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedTableTextBlock",
       "div",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_cde2cf8c-6b84-422e-8461-e5c2bafa2ecf",
      "decimals": "-3",
      "lang": null,
      "name": "fmbh:BusinessAcquisitionUnallocatedPurchasePrice",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R56": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "us-gaap:MortgageServicingRightsMSRImpairmentRecovery",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100560 - Disclosure - Goodwill and Intangible Assets - Intangible Assets Mortgage Servicing Rights (Details)",
     "menuCat": "Details",
     "order": "56",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails",
     "shortName": "Goodwill and Intangible Assets - Intangible Assets Mortgage Servicing Rights (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:IntangibleAssetsMortgageServicingRightsTableTextBlock",
       "div",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_be296305-4908-4560-99d2-47fe7b36c01f",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:AmortizationOfMortgageServicingRightsMSRs",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R57": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AmortizationOfIntangibleAssets",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100570 - Disclosure - Goodwill and Intangible Assets - Schedule of Intangible Assets Amortization Expense (Details)",
     "menuCat": "Details",
     "order": "57",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails",
     "shortName": "Goodwill and Intangible Assets - Schedule of Intangible Assets Amortization Expense (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FiniteLivedIntangibleAssetsAmortizationExpenseTableTextBlock",
       "div",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_262811e7-c44e-4090-8ac7-b8a7a1ae6fb1",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:AmortizationOfIntangibleAssets",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R58": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AmortizationOfIntangibleAssets",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100580 - Disclosure - Goodwill and Intangible Assets - Schedule of Expected Amortization Expense (Details)",
     "menuCat": "Details",
     "order": "58",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfExpectedAmortizationExpenseDetails",
     "shortName": "Goodwill and Intangible Assets - Schedule of Expected Amortization Expense (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock",
       "div",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:FiniteLivedIntangibleAssetsAmortizationExpenseNextRollingTwelveMonths",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R59": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:SecuritiesSoldUnderAgreementsToRepurchase",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100590 - Disclosure - Repurchase Agreements and Other Borrowings - Additional Information (Details)",
     "menuCat": "Details",
     "order": "59",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails",
     "shortName": "Repurchase Agreements and Other Borrowings - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "-5",
      "lang": null,
      "name": "fmbh:SecuritiesSoldUnderAgreementsToRepurchaseIncreaseDecrease",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R6": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100060 - Statement - Condensed Consolidated Statements of Comprehensive Income (Loss) (unaudited) (Parenthetical)",
     "menuCat": "Statements",
     "order": "6",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfComprehensiveIncomeLossUnauditedParenthetical",
     "shortName": "Condensed Consolidated Statements of Comprehensive Income (Loss) (unaudited) (Parenthetical)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R60": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfSecuritiesFinancingTransactionsTextBlock",
       "div",
       "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_a064e8bf-7060-4ab3-a145-bebf10449abc",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DebtSecurities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100600 - Disclosure - Repurchase Agreements and Other Borrowings - Schedule of Securities Financing Transactions (Details)",
     "menuCat": "Details",
     "order": "60",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails",
     "shortName": "Repurchase Agreements and Other Borrowings - Schedule of Securities Financing Transactions (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfSecuritiesFinancingTransactionsTextBlock",
       "div",
       "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_a064e8bf-7060-4ab3-a145-bebf10449abc",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DebtSecurities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R61": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:FederalHomeLoanBankAdvancesTableTextBlock",
       "div",
       "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "fmbh:FederalHomeLoanBankAdvancesShortAndLongTerm",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100610 - Disclosure - Repurchase Agreements and Other Borrowings - Federal Home Loan Bank, Advances (Details)",
     "menuCat": "Details",
     "order": "61",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails",
     "shortName": "Repurchase Agreements and Other Borrowings - Federal Home Loan Bank, Advances (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FederalHomeLoanBankAdvancesTableTextBlock",
       "div",
       "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_fa679955-4dc8-4dbd-ac72-96ab132d7fc0",
      "decimals": "0",
      "lang": null,
      "name": "fmbh:FederalHomeLoanBankAdvancesShortAndLongTerm",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R62": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtSecurities",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100620 - Disclosure - Fair Value of Assets and Liabilities - Assets and Liabilities Measured at Fair Value on Recurring Basis (Details)",
     "menuCat": "Details",
     "order": "62",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
     "shortName": "Fair Value of Assets and Liabilities - Assets and Liabilities Measured at Fair Value on Recurring Basis (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_f54bc4ba-7659-4750-979b-03c2e28bdc1f",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtSecurities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R63": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_d8de1d95-5cf2-446b-aca8-960eb216981d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100630 - Disclosure - Fair Value of Assets and Liabilities - Fair Value of Assets Measured on a Recurring Basis Using Significant Unobservable Inputs (Details)",
     "menuCat": "Details",
     "order": "63",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails",
     "shortName": "Fair Value of Assets and Liabilities - Fair Value of Assets Measured on a Recurring Basis Using Significant Unobservable Inputs (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_d8de1d95-5cf2-446b-aca8-960eb216981d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R64": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:FinancingReceivableIndividuallyEvaluatedCollateralDependentTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ImpairedFinancingReceivableRelatedAllowance",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100640 - Disclosure - Fair Value of Assets and Liabilities - Additional Information (Details)",
     "menuCat": "Details",
     "order": "64",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
     "shortName": "Fair Value of Assets and Liabilities - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_4b2d71e4-b188-4f2a-9a0d-647fec64f3fc",
      "decimals": "-5",
      "lang": null,
      "name": "us-gaap:ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R65": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueAssetsMeasuredOnRecurringAndNonrecurringBasisTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_535a594a-e66e-421a-9d43-e1063a83a70f",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AssetsFairValueDisclosure",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100650 - Disclosure - Fair Value of Assets and Liabilities - Assets Measured at Fair Value on a Nonrecurring Basis (Details)",
     "menuCat": "Details",
     "order": "65",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
     "shortName": "Fair Value of Assets and Liabilities - Assets Measured at Fair Value on a Nonrecurring Basis (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueAssetsMeasuredOnRecurringAndNonrecurringBasisTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_13d8e927-b8d8-4763-b7bc-0f9cb59624dd",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:AssetsFairValueDisclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R66": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_d44e651a-24dd-4882-98b1-1ae89787e889",
      "decimals": "2",
      "first": true,
      "lang": null,
      "name": "fmbh:DiscountToReflectRealizableValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100660 - Disclosure - Fair Value of Assets and Liabilities - Significant Unobservable Inputs Used in Valuation of Level 3 Fair Value Measurements (Details)",
     "menuCat": "Details",
     "order": "66",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
     "shortName": "Fair Value of Assets and Liabilities - Significant Unobservable Inputs Used in Valuation of Level 3 Fair Value Measurements (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_d44e651a-24dd-4882-98b1-1ae89787e889",
      "decimals": "2",
      "first": true,
      "lang": null,
      "name": "fmbh:DiscountToReflectRealizableValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     }
    },
    "R67": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtSecurities",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100670 - Disclosure - Fair Value of Assets and Liabilities - Summary of Estimated Fair Values of Company Financial Instruments (Details)",
     "menuCat": "Details",
     "order": "67",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails",
     "shortName": "Fair Value of Assets and Liabilities - Summary of Estimated Fair Values of Company Financial Instruments (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueByBalanceSheetGroupingTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_c6702c04-860c-4f3f-b947-9b7034a599da",
      "decimals": "-3",
      "lang": null,
      "name": "fmbh:CashAndDueFromBanksFairValueDisclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R68": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:CommonStockParOrStatedValuePerShare",
      "reportCount": 1,
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100680 - Disclosure - Business Combinations - Additional Information (Details)",
     "menuCat": "Details",
     "order": "68",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
     "shortName": "Business Combinations - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_444d72ce-4ec1-450a-8dc6-fe5bfdfeb431",
      "decimals": "INF",
      "lang": null,
      "name": "us-gaap:BusinessAcquisitionPercentageOfVotingInterestsAcquired",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     }
    },
    "R69": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:Goodwill",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100690 - Disclosure - Business Combinations - Estimated Fair Values of Assets Acquired and Liabilities Assumed (Details)",
     "menuCat": "Details",
     "order": "69",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails",
     "shortName": "Business Combinations - Estimated Fair Values of Assets Acquired and Liabilities Assumed (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock",
       "div",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_444d72ce-4ec1-450a-8dc6-fe5bfdfeb431",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R7": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_d7c02ae4-ab4a-41cc-bded-336b6d604cee",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:StockholdersEquity",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100070 - Statement - Condensed Consolidated Statements of Changes in Stockholders' Equity (Unaudited)",
     "menuCat": "Statements",
     "order": "7",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited",
     "shortName": "Condensed Consolidated Statements of Changes in Stockholders' Equity (Unaudited)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_b99c3ecb-0d10-43f0-877f-5ce15aa625d6",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:StockholdersEquity",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R70": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:BusinessAcquisitionProFormaInformationTextBlock",
       "div",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_8a52c0cb-90df-41c6-9642-cc63ef0b9fc8",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "fmbh:BusinessAcquisitionsProFormaNetInterestIncome",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100700 - Disclosure - Business Combinations - Unaudited Pro Forma Condensed Combined Financial Information (Details)",
     "menuCat": "Details",
     "order": "70",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails",
     "shortName": "Business Combinations - Unaudited Pro Forma Condensed Combined Financial Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:BusinessAcquisitionProFormaInformationTextBlock",
       "div",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_8a52c0cb-90df-41c6-9642-cc63ef0b9fc8",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "fmbh:BusinessAcquisitionsProFormaNetInterestIncome",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R71": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_a7ba9918-57f6-4522-89f0-72279e69b24e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LesseeOperatingLeaseRenewalTerm",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100710 - Disclosure - Leases - Additional Information (Details)",
     "menuCat": "Details",
     "order": "71",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesAdditionalInformationDetails",
     "shortName": "Leases - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_a7ba9918-57f6-4522-89f0-72279e69b24e",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LesseeOperatingLeaseRenewalTerm",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R72": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeaseRightOfUseAsset",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100720 - Disclosure - Leases - Summary of Supplemental Balance Sheet Information (Details)",
     "menuCat": "Details",
     "order": "72",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfSupplementalBalanceSheetInformationDetails",
     "shortName": "Leases - Summary of Supplemental Balance Sheet Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:ScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesTableTextBlock",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_7667827f-aef3-45f3-92b2-9e7a540bbb69",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:OperatingLeaseRightOfUseAsset",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R73": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100730 - Disclosure - Leases - Summary of Maturities of Lease Liabilities (Details)",
     "menuCat": "Details",
     "order": "73",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails",
     "shortName": "Leases - Summary of Maturities of Lease Liabilities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R74": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfOtherOperatingCostAndExpenseByComponentTextBlock",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeaseCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100740 - Disclosure - Leases - Summary of Components of Lease Expense (Details)",
     "menuCat": "Details",
     "order": "74",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails",
     "shortName": "Leases - Summary of Components of Lease Expense (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfOtherOperatingCostAndExpenseByComponentTextBlock",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeaseCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R75": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeasePayments",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100750 - Disclosure - Leases - Summary of Operating Lease Cash Flows (Details)",
     "menuCat": "Details",
     "order": "75",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfOperatingLeaseCashFlowsDetails",
     "shortName": "Leases - Summary of Operating Lease Cash Flows (Details)",
     "subGroupType": "details",
     "uniqueAnchor": null
    },
    "R76": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_e13291a6-99a5-46ab-a2b3-049eab0bf480",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativeAverageRemainingMaturity1",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100760 - Disclosure - Derivatives - Schedule of Derivative Instruments (Details)",
     "menuCat": "Details",
     "order": "76",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
     "shortName": "Derivatives - Schedule of Derivative Instruments (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_e13291a6-99a5-46ab-a2b3-049eab0bf480",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativeAverageRemainingMaturity1",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R77": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_31206e98-5fd6-4e7a-902b-59e469b0dae9",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeGainLossOnDerivativeNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100770 - Disclosure - Derivatives - Summary of Derivative Instruments, Gain (Loss) (Details)",
     "menuCat": "Details",
     "order": "77",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
     "shortName": "Derivatives - Summary of Derivative Instruments, Gain (Loss) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_31206e98-5fd6-4e7a-902b-59e469b0dae9",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeGainLossOnDerivativeNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R78": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:SummaryOfCumulativeBasisAdjustmentOfFairValueHedgesTableTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:HedgedAssetFairValueHedge",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100780 - Disclosure - Derivatives - Summary of Hedged Instrument (Details)",
     "menuCat": "Details",
     "order": "78",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfHedgedInstrumentDetails",
     "shortName": "Derivatives - Summary of Hedged Instrument (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:SummaryOfCumulativeBasisAdjustmentOfFairValueHedgesTableTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_61b77e64-17fa-4fd5-9655-5ad9d903a073",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:HedgedAssetFairValueHedge",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R79": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_99aaf099-90d6-4b57-b3ca-f64dfd7e187f",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativeAverageRemainingMaturity1",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100790 - Disclosure - Derivatives - Summary of Non Hedge Instruments (Details)",
     "menuCat": "Details",
     "order": "79",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails",
     "shortName": "Derivatives - Summary of Non Hedge Instruments (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_99aaf099-90d6-4b57-b3ca-f64dfd7e187f",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativeAverageRemainingMaturity1",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R8": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:CommonStockDividendsPerShareDeclared",
      "reportCount": 1,
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100080 - Statement - Condensed Consolidated Statements of Changes in Stockholders' Equity (Unaudited) (Parenthetical)",
     "menuCat": "Statements",
     "order": "8",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical",
     "shortName": "Condensed Consolidated Statements of Changes in Stockholders' Equity (Unaudited) (Parenthetical)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_768c0be1-efa5-45ea-87c4-2e51248d24c8",
      "decimals": "INF",
      "lang": null,
      "name": "us-gaap:DeferredCompensationArrangementWithIndividualSharesIssued",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R9": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ProfitLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100090 - Statement - Condensed Consolidated Statements of Cash Flows (unaudited)",
     "menuCat": "Statements",
     "order": "9",
     "role": "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited",
     "shortName": "Condensed Consolidated Statements of Cash Flows (unaudited)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "fmbh-20230331.htm",
      "contextRef": "C_920e4902-62c1-495c-b4fc-80fa1d62b38e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ProfitLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    }
   },
   "segmentCount": 129,
   "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_CoverAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cover page.",
        "label": "Cover [Abstract]"
       }
      }
     },
     "localname": "CoverAbstract",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "gMonthDayItemType"
    },
    "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "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",
        "verboseLabel": "Document Fiscal Year Focus"
       }
      }
     },
     "localname": "DocumentFiscalYearFocus",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "gYearItemType"
    },
    "dei_DocumentPeriodEndDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For the EDGAR submission types of Form 8-K: the date of the report, the date of the earliest event reported; for the EDGAR submission types of Form N-1A: the filing date; for all other submission types: the end of the reporting or transition period.  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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "dateItemType"
    },
    "dei_DocumentQuarterlyReport": {
     "auth_ref": [
      "r733"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true only for a form used as an quarterly report.",
        "label": "Document Quarterly Report",
        "terseLabel": "Document Quarterly Report"
       }
      }
     },
     "localname": "DocumentQuarterlyReport",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_DocumentTransitionReport": {
     "auth_ref": [
      "r734"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "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 Line1",
        "verboseLabel": "Entity Address, Address Line One"
       }
      }
     },
     "localname": "EntityAddressAddressLine1",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "stateOrProvinceItemType"
    },
    "dei_EntityCentralIndexKey": {
     "auth_ref": [
      "r731"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityEmergingGrowthCompany": {
     "auth_ref": [
      "r731"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "fileNumberItemType"
    },
    "dei_EntityFilerCategory": {
     "auth_ref": [
      "r731"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "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 Country Code",
        "terseLabel": "Entity Incorporation, State or Country Code"
       }
      }
     },
     "localname": "EntityIncorporationStateCountryCode",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "edgarStateCountryItemType"
    },
    "dei_EntityInteractiveDataCurrent": {
     "auth_ref": [
      "r735"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityRegistrantName": {
     "auth_ref": [
      "r731"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityShellCompany": {
     "auth_ref": [
      "r731"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntitySmallBusiness": {
     "auth_ref": [
      "r731"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityTaxIdentificationNumber": {
     "auth_ref": [
      "r731"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "employerIdItemType"
    },
    "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_Security12bTitle": {
     "auth_ref": [
      "r730"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Title of a 12(b) registered security.",
        "label": "Security12b Title",
        "terseLabel": "Title of 12(b) Security"
       }
      }
     },
     "localname": "Security12bTitle",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "securityTitleItemType"
    },
    "dei_SecurityExchangeName": {
     "auth_ref": [
      "r732"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the Exchange on which a security is registered.",
        "label": "Security Exchange Name",
        "terseLabel": "Security Exchange Name"
       }
      }
     },
     "localname": "SecurityExchangeName",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "edgarExchangeCodeItemType"
    },
    "dei_TradingSymbol": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Trading symbol of an instrument as listed on an exchange.",
        "label": "Trading Symbol",
        "terseLabel": "Trading Symbol"
       }
      }
     },
     "localname": "TradingSymbol",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "tradingSymbolItemType"
    },
    "fmbh_ATMDebitCardExpense": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 7.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "ATM Debit Card Expense",
        "label": "A T M Debit Card Expense",
        "terseLabel": "ATM / debit card"
       }
      }
     },
     "localname": "ATMDebitCardExpense",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_AcquiredBookValueMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Acquired Book Value [Member]",
        "label": "Acquired Book Value [Member]",
        "terseLabel": "Acquired Book Value"
       }
      }
     },
     "localname": "AcquiredBookValueMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_AdjustmentsToAdditionalPaidInCapitalIncomeTaxBenefitFromDeferredCompensation": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tax benefit associated with an equity-based deferred compensation plan. The tax benefit results from the deduction by the entity on its tax return for an award of stock that exceeds the cumulative compensation cost for common stock or preferred stock recognized for financial reporting. Includes any resulting tax benefit that exceeds the previously recognized deferred tax asset (excess tax benefits).",
        "label": "Adjustments To Additional Paid In Capital Income Tax Benefit From Deferred Compensation",
        "terseLabel": "Tax benefit related to deferred compensation distributions"
       }
      }
     },
     "localname": "AdjustmentsToAdditionalPaidInCapitalIncomeTaxBenefitFromDeferredCompensation",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_AdjustmentsToDeferredCompensationEquityShareBasedCompensationRestrictedStockUnitOrRestrictedStockAward": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Adjustments to deferred compensation equity share based compensation restricted stock unit or restricted stock award.",
        "label": "Adjustments To Deferred Compensation Equity Share Based Compensation Restricted Stock Unit Or Restricted Stock Award",
        "terseLabel": "Vested restricted shares/units compensation expense"
       }
      }
     },
     "localname": "AdjustmentsToDeferredCompensationEquityShareBasedCompensationRestrictedStockUnitOrRestrictedStockAward",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_AgriculturalExcludingAgriculturalRealEstatePortfolioSegmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Agricultural excluding agricultural real estate portfolio segment.",
        "label": "Agricultural Excluding Agricultural Real Estate Portfolio Segment [Member]",
        "terseLabel": "Agricultural Loans"
       }
      }
     },
     "localname": "AgriculturalExcludingAgriculturalRealEstatePortfolioSegmentMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_AgriculturalLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loans or extension of credit for agricultural uses.",
        "label": "Agricultural Loans [Member]",
        "terseLabel": "Agricultural Loans",
        "verboseLabel": "Agricultural"
       }
      }
     },
     "localname": "AgriculturalLoansMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_AgriculturalPortfolioSegmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Agricultural portfolio segment.",
        "label": "Agricultural Portfolio Segment [Member]",
        "terseLabel": "Agricultural"
       }
      }
     },
     "localname": "AgriculturalPortfolioSegmentMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_AgriculturalRealEstateLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loans or extension of credit secured by farms.",
        "label": "Agricultural Real Estate Loans [Member]",
        "terseLabel": "Agricultural Real Estate Loans",
        "verboseLabel": "Farm"
       }
      }
     },
     "localname": "AgriculturalRealEstateLoansMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_AmortizationExpenseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortization expense.",
        "label": "Amortization Expense [Abstract]",
        "terseLabel": "Aggregate amortization expense:"
       }
      }
     },
     "localname": "AmortizationExpenseAbstract",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfExpectedAmortizationExpenseDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fmbh_AmortizationPeriodOfLoan": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The useful life of the loan receivable.",
        "label": "Amortization Period Of Loan",
        "terseLabel": "Amortization period of loans"
       }
      }
     },
     "localname": "AmortizationPeriodOfLoan",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "fmbh_AmortizationPeriodOfLoans": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The useful life of the loan receivable.",
        "label": "Amortization Period Of Loans",
        "terseLabel": "Amortization period of loans"
       }
      }
     },
     "localname": "AmortizationPeriodOfLoans",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fmbh_AvailableForSaleAndHeldForMaturitySecuritiesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of available-for-sale and held-for-maturity securities which includes, but is not limited to, changes in the cost basis and fair value, fair value and gross unrealized gain (loss), fair values by type of security, contractual maturity and classification, amortized cost basis, contracts to acquire securities to be accounted for, debt maturities, transfers to trading, change in net unrealized holding gain (loss) net of tax, continuous unrealized loss position fair value, aggregate losses qualitative disclosures, other than temporary impairment (OTTI) losses or other disclosures.",
        "label": "Available For Sale And Held For Maturity Securities Table [Text Block]",
        "terseLabel": "Available for Sale and Held for Maturity Securities"
       }
      }
     },
     "localname": "AvailableForSaleAndHeldForMaturitySecuritiesTableTextBlock",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fmbh_AvailableForSaleFullTaxEquivalentYieldMaturities": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The yield on an available-for-sale government security, when the effect of reduced taxes are taken into account, for securities that mature. The full tax-equivalent yield show what yield a fully taxable security would have to give, in order to be equivalent to a tax free government security.",
        "label": "Available For Sale Full Tax Equivalent Yield Maturities",
        "terseLabel": "Available-for-sale, Full Tax-equivalent yield,Total (in hundredths)"
       }
      }
     },
     "localname": "AvailableForSaleFullTaxEquivalentYieldMaturities",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_AvailableForSaleFullTaxEquivalentYieldMaturitiesAfter1Through5Years": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The yield on an available-for-sale government security, when the effect of reduced taxes are taken into account, for securities that mature after one through five years. The full tax-equivalent yield show what yield a fully taxable security would have to give, in order to be equivalent to a tax free government security.",
        "label": "Available For Sale Full Tax Equivalent Yield Maturities After1 Through5 Years",
        "terseLabel": "Available-for-sale, Full Tax-equivalent yield,After 1 through 5 years (in hundredths)"
       }
      }
     },
     "localname": "AvailableForSaleFullTaxEquivalentYieldMaturitiesAfter1Through5Years",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_AvailableForSaleFullTaxEquivalentYieldMaturitiesAfter5Through10Years": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The yield on an available-for-sale government security, when the effect of reduced taxes are taken into account, for securities that mature after five through ten years. The full tax-equivalent yield show what yield a fully taxable security would have to give, in order to be equivalent to a tax free government security.",
        "label": "Available For Sale Full Tax Equivalent Yield Maturities After5 Through10 Years",
        "terseLabel": "Available-for-sale, Full Tax-equivalent yield, After 5 through 10 years (in hundredths)"
       }
      }
     },
     "localname": "AvailableForSaleFullTaxEquivalentYieldMaturitiesAfter5Through10Years",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_AvailableForSaleFullTaxEquivalentYieldMaturitiesAfterTenYears": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The yield on an available for sale government security, when the effect of reduced taxes are taken into account, for securities that mature after ten years. The full tax-equivalent yield show what yield a fully taxable security would have to give, in order to be equivalent to a tax free government security.",
        "label": "Available For Sale Full Tax Equivalent Yield Maturities After Ten Years",
        "terseLabel": "Available-for-sale, Full Tax-equivalent yield,After ten years (in hundredths)"
       }
      }
     },
     "localname": "AvailableForSaleFullTaxEquivalentYieldMaturitiesAfterTenYears",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_AvailableForSaleFullTaxEquivalentYieldMaturitiesYearOne": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The yield on an available-for-sale government security, when the effect of reduced taxes are taken into account, for securities that mature in less than twelve months. The full tax-equivalent yield show what yield a fully taxable security would have to give, in order to be equivalent to a tax free government security.",
        "label": "Available For Sale Full Tax Equivalent Yield Maturities Year One",
        "terseLabel": "Available-for-sale, Full Tax-equivalent yield, One year or less (in hundredths)"
       }
      }
     },
     "localname": "AvailableForSaleFullTaxEquivalentYieldMaturitiesYearOne",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_AvailableForSaleWeightedAverageYieldMaturities": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average yield for available-for-sale investment securities held by the entity with maturities.",
        "label": "Available For Sale Weighted Average Yield Maturities",
        "terseLabel": "Available-for-sale , Weighted average yield,Total (in hundredths)"
       }
      }
     },
     "localname": "AvailableForSaleWeightedAverageYieldMaturities",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_AvailableForSaleWeightedAverageYieldMaturitiesAfter10Years": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average yield for available-for-sale investment securities held by the entity with maturities after ten years.",
        "label": "Available For Sale Weighted Average Yield Maturities After10 Years",
        "terseLabel": "Available-for-sale , Weighted average yield,After ten years (in hundredths)"
       }
      }
     },
     "localname": "AvailableForSaleWeightedAverageYieldMaturitiesAfter10Years",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_AvailableForSaleWeightedAverageYieldMaturitiesAfter1Through5Years": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average yield for available-for-sale investment securities held by the entity with maturities after one through five years.",
        "label": "Available For Sale Weighted Average Yield Maturities After1 Through5 Years",
        "terseLabel": "Available-for-sale , Weighted average yield,After 1 through 5 years (in hundredths)"
       }
      }
     },
     "localname": "AvailableForSaleWeightedAverageYieldMaturitiesAfter1Through5Years",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_AvailableForSaleWeightedAverageYieldMaturitiesAfter5Through10Years": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average yield for available-for-sale investment securities held by the entity with maturities after five through ten years.",
        "label": "Available For Sale Weighted Average Yield Maturities After5 Through10 Years",
        "terseLabel": "Available-for-sale, Weighted average yield,After 5 through 10 years (in hundredths)"
       }
      }
     },
     "localname": "AvailableForSaleWeightedAverageYieldMaturitiesAfter5Through10Years",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_AvailableForSaleWeightedAverageYieldMaturitiesYearOne": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average yield for available-for-sale investment securities held by the entity with maturities of one year or less.",
        "label": "Available For Sale Weighted Average Yield Maturities Year One",
        "terseLabel": "Available-for-sale, Weighted average yield, One year or less (in hundredths)"
       }
      }
     },
     "localname": "AvailableForSaleWeightedAverageYieldMaturitiesYearOne",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_BBMAndAssociatesIncMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "BBM and Associates Inc.",
        "label": "B B M And Associates Inc [Member]",
        "terseLabel": "BBM &amp; Associates, Inc."
       }
      }
     },
     "localname": "BBMAndAssociatesIncMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_BankOwnedLifeInsuranceMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bank owned life insurance.",
        "label": "Bank Owned Life Insurance [Member]",
        "terseLabel": "Bank Owned Life Insurance"
       }
      }
     },
     "localname": "BankOwnedLifeInsuranceMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_BlackhawkBancorpIncMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Blackhawk Bancorp, Inc",
        "label": "Blackhawk Bancorp, Inc [Member]",
        "terseLabel": "Blackhawk Bancorp, Inc"
       }
      }
     },
     "localname": "BlackhawkBancorpIncMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_BusinessAcquisitionUnallocatedPurchasePrice": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business acquisition unallocated purchase price.",
        "label": "Business Acquisition Unallocated Purchase Price",
        "terseLabel": "Unallocated purchase price"
       }
      }
     },
     "localname": "BusinessAcquisitionUnallocatedPurchasePrice",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_BusinessAcquisitionsProFormaIncomeTaxExpenseBenefit": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business acquisitions pro forma income tax expense benefit.",
        "label": "Business Acquisitions Pro Forma Income Tax Expense Benefit",
        "terseLabel": "Income tax expense"
       }
      }
     },
     "localname": "BusinessAcquisitionsProFormaIncomeTaxExpenseBenefit",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_BusinessAcquisitionsProFormaIncomebeforeIncomeTaxes": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business Acquisitions Pro Forma Income before Income Taxes",
        "label": "Business Acquisitions Pro Forma Incomebefore Income Taxes",
        "totalLabel": "Income before taxes"
       }
      }
     },
     "localname": "BusinessAcquisitionsProFormaIncomebeforeIncomeTaxes",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_BusinessAcquisitionsProFormaNetInterestIncome": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails": {
       "order": 0.0,
       "parentTag": "fmbh_BusinessAcquisitionsProFormaIncomebeforeIncomeTaxes",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business Acquisitions Pro Forma Net Interest Income",
        "label": "Business Acquisitions Pro Forma Net Interest Income",
        "terseLabel": "Net interest income"
       }
      }
     },
     "localname": "BusinessAcquisitionsProFormaNetInterestIncome",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_BusinessAcquisitionsProFormaNonInterestExpense": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails": {
       "order": 3.0,
       "parentTag": "fmbh_BusinessAcquisitionsProFormaIncomebeforeIncomeTaxes",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business Acquisitions Pro Forma Non-Interest Expense",
        "label": "Business Acquisitions Pro Forma Non Interest Expense",
        "terseLabel": "Non-interest expense"
       }
      }
     },
     "localname": "BusinessAcquisitionsProFormaNonInterestExpense",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_BusinessAcquisitionsProFormaNonInterestIncome": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails": {
       "order": 2.0,
       "parentTag": "fmbh_BusinessAcquisitionsProFormaIncomebeforeIncomeTaxes",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business Acquisitions Pro Forma Non-Interest Income",
        "label": "Business Acquisitions Pro Forma Non Interest Income",
        "terseLabel": "Non-interest income"
       }
      }
     },
     "localname": "BusinessAcquisitionsProFormaNonInterestIncome",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_BusinessAcquisitionsProFormaProvisionForLoanLosses": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails": {
       "order": 1.0,
       "parentTag": "fmbh_BusinessAcquisitionsProFormaIncomebeforeIncomeTaxes",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business Acquisitions Pro Forma Provision For Loan Losses",
        "label": "Business Acquisitions Pro Forma Provision For Loan Losses",
        "terseLabel": "Provision for loan losses"
       }
      }
     },
     "localname": "BusinessAcquisitionsProFormaProvisionForLoanLosses",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_BusinessAssetsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business Assets [Member]",
        "label": "Business Assets [Member]",
        "terseLabel": "Business Assets"
       }
      }
     },
     "localname": "BusinessAssetsMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetAcquiredAndLiabilityAssumedOtherBorrowings": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business combination recognized identifiable asset acquired and liability assumed other borrowings.",
        "label": "Business Combination Recognized Identifiable Asset Acquired And Liability Assumed Other Borrowings",
        "terseLabel": "Other borrowings"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetAcquiredAndLiabilityAssumedOtherBorrowings",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetAcquiredAndLiabilityAssumedOtherRealEstateOwned": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business combination recognized identifiable asset acquired and liability assumed other real estate owned.",
        "label": "Business Combination Recognized Identifiable Asset Acquired And Liability Assumed Other Real Estate Owned",
        "terseLabel": "Other real estate owned"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetAcquiredAndLiabilityAssumedOtherRealEstateOwned",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccretedToInterestIncomeOverRemainingTermOfLoans": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business combination recognized identifiable assets acquired and liabilities assumed accreted to interest income over remaining term of loans.",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Accreted To Interest Income Over Remaining Term Of Loans",
        "terseLabel": "Accreted to interest income over the remaining term of loans"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccretedToInterestIncomeOverRemainingTermOfLoans",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAllowanceForCreditLosses": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business combination recognized identifiable assets acquired and liabilities assumed allowance for credit losses.",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Allowance For Credit Losses",
        "terseLabel": "Allowance for credit losses"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAllowanceForCreditLosses",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssets": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "order": 8.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed, Other Assets",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Other Assets",
        "terseLabel": "Other assets"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssets",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherLiabilities": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed, Other Liabilities",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Other Liabilities",
        "terseLabel": "Other liabilities"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherLiabilities",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedSecuritiesSoldUnderAgreementstoRepurchase": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed, Securities Sold Under Agreements to Repurchase",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Securities Sold Under Agreementsto Repurchase",
        "terseLabel": "Securities sold under agreements to repurchase"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedSecuritiesSoldUnderAgreementstoRepurchase",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedDeposits": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business Combination: Approximate Deposits to be acquired",
        "label": "Business Combination Recognized Identifiable Assets Acquiredand Liabilities Assumed Deposits",
        "terseLabel": "Deposits",
        "verboseLabel": "Change in acquired time deposits"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedDeposits",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedFHLBAdvances": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, FHLB Advances",
        "label": "Business Combination Recognized Identifiable Assets Acquiredand Liabilities Assumed F H L B Advances",
        "terseLabel": "FHLB advances",
        "verboseLabel": "Change in FHLB advances"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedFHLBAdvances",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_CaptiveInsuranceCompanyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Captive insurance company.",
        "label": "Captive Insurance Company Policy [Text Block]",
        "terseLabel": "Captive Insurance Company"
       }
      }
     },
     "localname": "CaptiveInsuranceCompanyPolicyTextBlock",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fmbh_CaptiveMaximumGrossPremiums": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Captive maximum gross premiums.",
        "label": "Captive Maximum Gross Premiums",
        "terseLabel": "Captive maximum gross premiums"
       }
      }
     },
     "localname": "CaptiveMaximumGrossPremiums",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_CashAndDueFromBanksFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents the portion of the balance sheet assertion valued at fair value by the entity whether such amount is presented as a separate caption or as a parenthetical disclosure. Additionally, this element may be used in connection with the fair value disclosures required in the footnote disclosures to the financial statements. The element may be used in both the balance sheet and disclosure in the same submission. This item includes currency on hand as well as demand deposits with banks or financial institutions. It also includes other kinds of accounts that have the general characteristics of demand deposits in that the Company may deposit additional funds at any time and also effectively may withdraw funds at any time without prior notice or penalty.",
        "label": "Cash And Due From Banks Fair Value Disclosure",
        "terseLabel": "Cash and due from banks"
       }
      }
     },
     "localname": "CashAndDueFromBanksFairValueDisclosure",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_CashPaidDuringPeriodForAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash paid during period for.",
        "label": "Cash Paid During Period For [Abstract]",
        "terseLabel": "Cash paid during the period for:"
       }
      }
     },
     "localname": "CashPaidDuringPeriodForAbstract",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "fmbh_CertificatesOfDepositInvestmentsFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Certificates of deposit investments fair value disclosure.",
        "label": "Certificates Of Deposit Investments Fair Value Disclosure",
        "terseLabel": "Certificates of deposit investments"
       }
      }
     },
     "localname": "CertificatesOfDepositInvestmentsFairValueDisclosure",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_CollateralDependentLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Collateral dependent loans.",
        "label": "Collateral Dependent Loans [Member]",
        "terseLabel": "Collateral Dependent Loans"
       }
      }
     },
     "localname": "CollateralDependentLoansMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_CommercialAndIndustrialPortfolioSegmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commercial And Industrial Portfolio Segment.",
        "label": "Commercial And Industrial Portfolio Segment [Member]",
        "terseLabel": "Commercial and Industrial Loans",
        "verboseLabel": "Commercial and Industrial Loans"
       }
      }
     },
     "localname": "CommercialAndIndustrialPortfolioSegmentMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesFinancialEffectOfLoanModificationsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_CommercialAndMultifamilyPortfolioSegmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commercial and multifamily portfolio segment.",
        "label": "Commercial And Multifamily Portfolio Segment [Member]",
        "terseLabel": "Commercial And Multifamily Portfolio Segment"
       }
      }
     },
     "localname": "CommercialAndMultifamilyPortfolioSegmentMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_CommercialIndustrialAndOtherPortfolioSegmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commercial industrial and other portfolio segment.",
        "label": "Commercial Industrial And Other Portfolio Segment [Member]",
        "terseLabel": "Commercial Industrial And Other Portfolio Segment"
       }
      }
     },
     "localname": "CommercialIndustrialAndOtherPortfolioSegmentMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_ConsiderationPayableInShares": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Consideration payable in shares.",
        "label": "Consideration Payable In Shares",
        "terseLabel": "Consideration payable in shares"
       }
      }
     },
     "localname": "ConsiderationPayableInShares",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "fmbh_ConstructionAndLandDevelopmentPortfolioSegmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Construction and land development portfolio segment.",
        "label": "Construction And Land Development Portfolio Segment [Member]",
        "terseLabel": "Construction and Land Development",
        "verboseLabel": "Construction and Land Development"
       }
      }
     },
     "localname": "ConstructionAndLandDevelopmentPortfolioSegmentMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_CornAndOtherGrainFarmingMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loans receivable to businesses that concentrate in corn and other grain farming.",
        "label": "Corn And Other Grain Farming [Member]",
        "terseLabel": "Corn and Other Grain Farming"
       }
      }
     },
     "localname": "CornAndOtherGrainFarmingMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_DebtAndEquitySecuritiesAvailableForSaleRealizedGain": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt and equity securities available for sale realized gain.",
        "label": "Debt And Equity Securities Available For Sale Realized Gain",
        "terseLabel": "Gross gains"
       }
      }
     },
     "localname": "DebtAndEquitySecuritiesAvailableForSaleRealizedGain",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesRealizedGainsAndLossesFromSaleOfSecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_DebtAndEquitySecuritiesAvailableForSaleRealizedLoss": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt and equity securities available for sale realized loss.",
        "label": "Debt And Equity Securities Available For Sale Realized Loss",
        "negatedLabel": "Gross losses"
       }
      }
     },
     "localname": "DebtAndEquitySecuritiesAvailableForSaleRealizedLoss",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesRealizedGainsAndLossesFromSaleOfSecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_DebtCoverageRatio": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The ratio used to analyze the amount of debt that can be supported by the cash flow generated from the property. The calculation is the net income generated by the property divided by the commercial mortgage payment.",
        "label": "Debt Coverage Ratio",
        "terseLabel": "Debt coverage ratio"
       }
      }
     },
     "localname": "DebtCoverageRatio",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fmbh_DeferredCompensationAdjustmentsRelatingToTreasuryStock": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred compensation adjustments relating to treasury stock.",
        "label": "Deferred Compensation Adjustments Relating To Treasury Stock",
        "terseLabel": "Deferred compensation"
       }
      }
     },
     "localname": "DeferredCompensationAdjustmentsRelatingToTreasuryStock",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_DeferredCompensationPlanEquity": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 3.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Balance includes deferred compensation plan in which amounts earned by an employee are invested in the Company's common stock and placed in a Rabbi Trust. Included in this balance is an amount equal to the original amount of compensation deferred. Balance also includes the value of stock under share-based plans to executive officers which is the unearned portion accounted for under the fair value method.",
        "label": "Deferred Compensation Plan Equity",
        "terseLabel": "Deferred compensation"
       }
      }
     },
     "localname": "DeferredCompensationPlanEquity",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_DeltaAcquisitionMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Delta acquisition.",
        "label": "Delta Acquisition [Member]",
        "terseLabel": "Delta Acquisition [Member]"
       }
      }
     },
     "localname": "DeltaAcquisitionMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_DeltaBancshareCompanyMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Delta Bancshare Company.",
        "label": "Delta Bancshare Company [Member]",
        "terseLabel": "Delta Bancshare Company"
       }
      }
     },
     "localname": "DeltaBancshareCompanyMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsTables",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_DeltaBancsharesCompanyMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Delta Bancshares company.",
        "label": "Delta Bancshares Company [Member]",
        "terseLabel": "Delta Bancshares Company"
       }
      }
     },
     "localname": "DeltaBancsharesCompanyMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_DerivativeInstrumentsDetailAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative Instruments Detail [Abstract]",
        "label": "Derivative Instruments Detail [Abstract]"
       }
      }
     },
     "localname": "DerivativeInstrumentsDetailAbstract",
     "nsuri": "http://www.firstmid.com/20230331",
     "xbrltype": "stringItemType"
    },
    "fmbh_DerivativeInstrumentsGainLossAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative Instruments, Gain (Loss) [Abstract]",
        "label": "Derivative Instruments Gain Loss [Abstract]"
       }
      }
     },
     "localname": "DerivativeInstrumentsGainLossAbstract",
     "nsuri": "http://www.firstmid.com/20230331",
     "xbrltype": "stringItemType"
    },
    "fmbh_DiscountToReflectRealizableValue": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Discount to reflect realizable value used when pricing the investments.",
        "label": "Discount To Reflect Realizable Value",
        "terseLabel": "Collateral dependent loans"
       }
      }
     },
     "localname": "DiscountToReflectRealizableValue",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_EliminationOfDeferredFeesAndUnearnedDiscountsPreviouslyRecordedByJeffersonBank": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Elimination of deferred fees and unearned discounts previously recorded by jefferson bank.",
        "label": "Elimination Of Deferred Fees And Unearned Discounts Previously Recorded By Jefferson Bank",
        "terseLabel": "Elimination of deferred fees and unearned discounts previously recorded by Jefferson Bank"
       }
      }
     },
     "localname": "EliminationOfDeferredFeesAndUnearnedDiscountsPreviouslyRecordedByJeffersonBank",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_EliminationOfDeferredFeesAndUnearnedDiscountsPreviouslyRecordedByProvidenceBank": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Elimination of deferred fees and unearned discounts previously recorded by providence bank.",
        "label": "Elimination Of Deferred Fees And Unearned Discounts Previously Recorded By Providence Bank",
        "terseLabel": "Elimination of deferred fees and unearned discounts previously recorded by Providence Bank"
       }
      }
     },
     "localname": "EliminationOfDeferredFeesAndUnearnedDiscountsPreviouslyRecordedByProvidenceBank",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_EmployeeDiscountForEmployeeStockPurchasePlan": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Employee discount for employee stock purchase plan.",
        "label": "Employee Discount For Employee Stock Purchase Plan",
        "terseLabel": "Employee discount for employee stock purchase plan"
       }
      }
     },
     "localname": "EmployeeDiscountForEmployeeStockPurchasePlan",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_EmployeeStockPurchasePlanNumberOfSharesAuthorized": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Employee stock purchase plan, number of shares authorized.",
        "label": "Employee Stock Purchase Plan Number Of Shares Authorized",
        "terseLabel": "Employee stock purchase plan, number of shares authorized"
       }
      }
     },
     "localname": "EmployeeStockPurchasePlanNumberOfSharesAuthorized",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "fmbh_EstimatedAmortizationExpenseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Estimated Amortization Expense [Abstract]",
        "label": "Estimated Amortization Expense [Abstract]",
        "terseLabel": "Estimated amortization expense:"
       }
      }
     },
     "localname": "EstimatedAmortizationExpenseAbstract",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfExpectedAmortizationExpenseDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fmbh_FairValueAdjustmentsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair Value Adjustments [Member]",
        "label": "Fair Value Adjustments [Member]",
        "terseLabel": "Fair Value Adjustments"
       }
      }
     },
     "localname": "FairValueAdjustmentsMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_FederalHomeLoanBankAdvancesMaturityDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Federal Home Loan Bank, advances, maturity date.",
        "label": "Federal Home Loan Bank Advances Maturity Date",
        "terseLabel": "Federal Home Loan Bank, Advances, Maturity Date"
       }
      }
     },
     "localname": "FederalHomeLoanBankAdvancesMaturityDate",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "dateItemType"
    },
    "fmbh_FederalHomeLoanBankAdvancesOriginalMaturityTerm": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Federal Home Loan Bank Advances, Original Term",
        "label": "Federal Home Loan Bank Advances Original Maturity Term",
        "terseLabel": "Federal Home Loan Bank Advances, Term (in years)"
       }
      }
     },
     "localname": "FederalHomeLoanBankAdvancesOriginalMaturityTerm",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "fmbh_FederalHomeLoanBankAdvancesShortAndLongTerm": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Short-term and long-term Federal Home Loan Bank borrowings.",
        "label": "Federal Home Loan Bank Advances Short And Long Term",
        "terseLabel": "Federal Home Loan Bank Advances",
        "verboseLabel": "FHLB borrowings"
       }
      }
     },
     "localname": "FederalHomeLoanBankAdvancesShortAndLongTerm",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_FederalHomeLoanBankPremiumOnBorrowing": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Federal home loan bank premium on borrowing.",
        "label": "Federal Home Loan Bank Premium On Borrowing",
        "verboseLabel": "FHLB premium on borrowing"
       }
      }
     },
     "localname": "FederalHomeLoanBankPremiumOnBorrowing",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_FinancialEffectOfLoanModificationsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial effect of loan modifications",
        "label": "Financial Effect Of Loan Modifications [Table Text Block]",
        "terseLabel": "Financial Effect of Loan Modifications"
       }
      }
     },
     "localname": "FinancialEffectOfLoanModificationsTableTextBlock",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fmbh_FinancingReceivableCurrentPeriodGrossWriteoffsFiveOrMoreYearsBeforeLatestFiscalYear": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing Receivable Current Period Gross Writeoffs Five Or More Years Before Latest Fiscal Year.",
        "label": "Financing Receivable Current Period Gross Writeoffs Five Or More Years Before Latest Fiscal Year",
        "terseLabel": "Current period gross writeoffs, prior"
       }
      }
     },
     "localname": "FinancingReceivableCurrentPeriodGrossWriteoffsFiveOrMoreYearsBeforeLatestFiscalYear",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_FinancingReceivableCurrentPeriodGrossWriteoffsFourYearsBeforeLatestFiscalYear": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing Receivable Current Period Gross Writeoffs Four Years Before Latest Fiscal Year.",
        "label": "Financing Receivable Current Period Gross Writeoffs Four Years Before Latest Fiscal Year",
        "terseLabel": "Current period gross writeoffs, four year before current fiscal year"
       }
      }
     },
     "localname": "FinancingReceivableCurrentPeriodGrossWriteoffsFourYearsBeforeLatestFiscalYear",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_FinancingReceivableCurrentPeriodGrossWriteoffsInCurrentFiscalYear": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing Receivable Current Period Gross Writeoffs In Current Fiscal Year",
        "label": "Financing Receivable Current Period Gross Writeoffs In Current Fiscal Year",
        "terseLabel": "Current period gross writeoffs, current fiscal year"
       }
      }
     },
     "localname": "FinancingReceivableCurrentPeriodGrossWriteoffsInCurrentFiscalYear",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_FinancingReceivableCurrentPeriodGrossWriteoffsInFiscalYearBeforeLatestFiscalYear": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing Receivable Current Period Gross Writeoffs In Fiscal Year Before Latest Fiscal Year.",
        "label": "Financing Receivable Current Period Gross Writeoffs In Fiscal Year Before Latest Fiscal Year",
        "terseLabel": "Current period gross writeoffs, fiscal year before current fiscal year"
       }
      }
     },
     "localname": "FinancingReceivableCurrentPeriodGrossWriteoffsInFiscalYearBeforeLatestFiscalYear",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_FinancingReceivableCurrentPeriodGrossWriteoffsIncludingHeldForSaleNetOfDeferredIncome": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivable current period gross writeoffs including held for sale net of deferred income.",
        "label": "Financing Receivable Current Period Gross Writeoffs Including Held For Sale Net Of Deferred Income",
        "totalLabel": "Current period gross writeoffs, total loans receivables"
       }
      }
     },
     "localname": "FinancingReceivableCurrentPeriodGrossWriteoffsIncludingHeldForSaleNetOfDeferredIncome",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_FinancingReceivableCurrentPeriodGrossWriteoffsRevolving": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing Receivable Current Period Gross Writeoffs Revolving.",
        "label": "Financing Receivable Current Period Gross Writeoffs Revolving",
        "terseLabel": "Current period gross writeoffs, revolving loans"
       }
      }
     },
     "localname": "FinancingReceivableCurrentPeriodGrossWriteoffsRevolving",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_FinancingReceivableCurrentPeriodGrossWriteoffsThreeYearsBeforeLatestFiscalYear": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing Receivable Current Period Gross Writeoffs Three Years Before Latest Fiscal Year.",
        "label": "Financing Receivable Current Period Gross Writeoffs Three Years Before Latest Fiscal Year",
        "terseLabel": "Current period gross writeoffs, three year before current fiscal year"
       }
      }
     },
     "localname": "FinancingReceivableCurrentPeriodGrossWriteoffsThreeYearsBeforeLatestFiscalYear",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_FinancingReceivableCurrentPeriodGrossWriteoffsTwoYearsBeforeLatestFiscalYear": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing Receivable Current Period Gross Writeoffs Two Years Before Latest Fiscal Year",
        "label": "Financing Receivable Current Period Gross Writeoffs Two Years Before Latest Fiscal Year",
        "terseLabel": "Current period gross writeoffs, two year before current fiscal year"
       }
      }
     },
     "localname": "FinancingReceivableCurrentPeriodGrossWriteoffsTwoYearsBeforeLatestFiscalYear",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_FinancingReceivableGrossExcludingLoansHeldForSale": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_FinancingReceivableBeforeAllowanceForCreditLossAndFee",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allowance of loans and leases held in portfolio, including but not limited to, commercial and consumer loans. Includes deferred interest and fees, undisbursed portion of loan balance, unamortized costs and premiums and discounts from face amounts. Excludes Loans held-for-sale and loans and leases covered under loss sharing agreements.",
        "label": "Financing Receivable Gross Excluding Loans Held For Sale",
        "terseLabel": "Loans and leases receivable gross excluding loans held for sale"
       }
      }
     },
     "localname": "FinancingReceivableGrossExcludingLoansHeldForSale",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_FinancingReceivableIncludingHeldForSaleNetOfDeferredIncome": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivable including held for sale net of deferred income.",
        "label": "Financing Receivable Including Held For Sale Net Of Deferred Income",
        "terseLabel": "Total Loans Receivable",
        "totalLabel": "Total Loans Receivable"
       }
      }
     },
     "localname": "FinancingReceivableIncludingHeldForSaleNetOfDeferredIncome",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_FinancingReceivableIndividuallyEvaluatedCollateralDependentTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivable, individually evaluated, collateral dependent.",
        "label": "Financing Receivable Individually Evaluated Collateral Dependent Table [Text Block]",
        "terseLabel": "Amortized Cost Basis of Collateral-Dependent Loans by Class of Loans Individually Evaluated"
       }
      }
     },
     "localname": "FinancingReceivableIndividuallyEvaluatedCollateralDependentTableTextBlock",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fmbh_FinancingReceivableLoanModificationsWeightedAverageInterestRateReduction": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivable, loan modifications weighted average interest rate reduction.",
        "label": "Financing Receivable, Loan Modifications Weighted Average Interest Rate Reduction",
        "terseLabel": "Weighted Average Interest Rate Reduction"
       }
      }
     },
     "localname": "FinancingReceivableLoanModificationsWeightedAverageInterestRateReduction",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesFinancialEffectOfLoanModificationsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_FinancingReceivableLoanModificationsWeightedAverageTermExtension": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivable, loan modifications weighted average term extension.",
        "label": "Financing Receivable, Loan Modifications Weighted Average Term Extension",
        "terseLabel": "Weighted Average Term Extension (in months)"
       }
      }
     },
     "localname": "FinancingReceivableLoanModificationsWeightedAverageTermExtension",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesFinancialEffectOfLoanModificationsDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "fmbh_FinancingReceivableModificationToTotalFinancingReceivablesPercent": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivable, modification to total financing receivables, percent.",
        "label": "Financing Receivable Modification To Total Financing Receivables Percent",
        "terseLabel": "Total Class of Financing Receivable"
       }
      }
     },
     "localname": "FinancingReceivableModificationToTotalFinancingReceivablesPercent",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_FinancingReceivableModificationsNonPerformingRecordedInvestment": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansClassifiedAsTroubledDebtRestructuringsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_FinancingReceivableModificationsRecordedInvestment",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivable modifications non performing recorded investment.",
        "label": "Financing Receivable Modifications Non Performing Recorded Investment",
        "terseLabel": "Nonperforming TDRs"
       }
      }
     },
     "localname": "FinancingReceivableModificationsNonPerformingRecordedInvestment",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansClassifiedAsTroubledDebtRestructuringsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_FinancingReceivableModificationsPerformanceRecordedInvestment": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivable modifications performance recorded investment.",
        "label": "Financing Receivable Modifications Performance Recorded Investment",
        "terseLabel": "Performance recorded Investment"
       }
      }
     },
     "localname": "FinancingReceivableModificationsPerformanceRecordedInvestment",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_FinancingReceivableModificationsPerformingRecordedInvestment": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansClassifiedAsTroubledDebtRestructuringsDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_FinancingReceivableModificationsRecordedInvestment",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of the outstanding recorded investment related to financing receivables that have been modified by troubled debt restructurings and are still accruing interest.",
        "label": "Financing Receivable Modifications Performing Recorded Investment",
        "terseLabel": "Financing Receivable Modifications Performing Recorded Investment",
        "verboseLabel": "Performing TDRs"
       }
      }
     },
     "localname": "FinancingReceivableModificationsPerformingRecordedInvestment",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansClassifiedAsTroubledDebtRestructuringsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_FinancingReceivablePerformanceOfLoansModifiedTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivable performance of loans modified.",
        "label": "Financing Receivable Performance of Loans Modified [Table Text Block]",
        "terseLabel": "Performance of loans modified"
       }
      }
     },
     "localname": "FinancingReceivablePerformanceOfLoansModifiedTableTextBlock",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fmbh_FinancingReceivableRecordedInvestmentsAgingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing Receivable, Recorded Investments, Aging.",
        "label": "Financing Receivable Recorded Investments Aging [Abstract]",
        "terseLabel": "Loans Receivable Aging Analysis [Abstract]"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentsAgingAbstract",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fmbh_FinancingReceivablesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivables amortized cost basis of loans experiencing difficulty and modified.",
        "label": "Financing Receivables Amortized Cost Basis of Loans Experiencing Difficulty and Modified [Table Text Block]",
        "terseLabel": "Amortized Cost Basis of Loans Experiencing Difficulty and Modified"
       }
      }
     },
     "localname": "FinancingReceivablesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedTableTextBlock",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fmbh_FinancingReceivablesModificationsDuringPeriodBalance": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing Receivables, Modifications during Period, Balance",
        "label": "Financing Receivables Modifications During Period Balance",
        "terseLabel": "Financing Receivables, Modifications during Period, Balance"
       }
      }
     },
     "localname": "FinancingReceivablesModificationsDuringPeriodBalance",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_FinancingReceivablestroubledDebtRestructuringsDuringPeriodTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivables,troubled debt restructurings during period.",
        "label": "Financing Receivablestroubled Debt Restructurings During Period Table [Text Block]",
        "terseLabel": "Loans Classified as Troubled Debt Restructurings"
       }
      }
     },
     "localname": "FinancingReceivablestroubledDebtRestructuringsDuringPeriodTableTextBlock",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fmbh_ForeclosedAssetsHeldForSaleMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Foreclosed assets held for sale.",
        "label": "Foreclosed Assets Held For Sale [Member]",
        "terseLabel": "Foreclosed Assets Held-for-sale"
       }
      }
     },
     "localname": "ForeclosedAssetsHeldForSaleMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_GainLossOnRedemptionOfBankOwnedLifeInsurance": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gain (loss) on redemption of bank owned life insurance.",
        "label": "Gain (Loss) on Redemption of Bank Owned Life Insurance",
        "negatedLabel": "Gain on redemption of bank owned life insurance",
        "terseLabel": "Gain on redemption of bank owned life insurance"
       }
      }
     },
     "localname": "GainLossOnRedemptionOfBankOwnedLifeInsurance",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_GainsOrLossesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gains or losses.",
        "label": "Gains Or Losses [Abstract]",
        "terseLabel": "Total gains or losses:"
       }
      }
     },
     "localname": "GainsOrLossesAbstract",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fmbh_GeneralLitigationPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "General litigation.",
        "label": "General Litigation Policy [Text Block]",
        "terseLabel": "General Litigation"
       }
      }
     },
     "localname": "GeneralLitigationPolicyTextBlock",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fmbh_GoodwillAccumulatedAmortization": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Goodwill accumulated amortization.",
        "label": "Goodwill Accumulated Amortization",
        "terseLabel": "Goodwill, Accumulated Amortization"
       }
      }
     },
     "localname": "GoodwillAccumulatedAmortization",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_GoodwillAdjustmentsOfCoreDepositIntangible": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_GoodwillPurchaseAccountingAdjustments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Goodwill adjustments of core deposit intangible.",
        "label": "Goodwill Adjustments Of Core Deposit Intangible",
        "terseLabel": "Core deposit intangible"
       }
      }
     },
     "localname": "GoodwillAdjustmentsOfCoreDepositIntangible",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_GoodwillAdjustmentsOfFairValueOfFHLBAdvances": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_GoodwillPurchaseAccountingAdjustments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Goodwill adjustments of fair value of FHLB advances.",
        "label": "Goodwill Adjustments Of Fair Value Of F H L B Advances",
        "terseLabel": "Fair value of FHLB advances"
       }
      }
     },
     "localname": "GoodwillAdjustmentsOfFairValueOfFHLBAdvances",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_GoodwillAdjustmentsOfFairValueOfLoansNet": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_GoodwillPurchaseAccountingAdjustments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Goodwill adjustments of fair value of loans, net.",
        "label": "Goodwill Adjustments Of Fair Value Of Loans Net",
        "terseLabel": "Fair value of loans, net"
       }
      }
     },
     "localname": "GoodwillAdjustmentsOfFairValueOfLoansNet",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_GoodwillAdjustmentsOfFairValueOfOtherRealEstateOwned": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails": {
       "order": 8.0,
       "parentTag": "us-gaap_GoodwillPurchaseAccountingAdjustments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Goodwill adjustments of fair value of other real estate owned.",
        "label": "Goodwill Adjustments Of Fair Value Of Other Real Estate Owned",
        "terseLabel": "Fair value of other real estate owned"
       }
      }
     },
     "localname": "GoodwillAdjustmentsOfFairValueOfOtherRealEstateOwned",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_GoodwillAdjustmentsOfFairValueOfPremisesAndEquipment": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_GoodwillPurchaseAccountingAdjustments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Goodwill adjustments of fair value of premises and equipment.",
        "label": "Goodwill Adjustments Of Fair Value Of Premises And Equipment",
        "terseLabel": "Fair value of premises and equipment"
       }
      }
     },
     "localname": "GoodwillAdjustmentsOfFairValueOfPremisesAndEquipment",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_GoodwillAdjustmentsOfFairValueOfSecurities": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_GoodwillPurchaseAccountingAdjustments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Goodwill adjustments of Fair value of securities.",
        "label": "Goodwill Adjustments Of Fair Value Of Securities",
        "terseLabel": "Fair value of securities"
       }
      }
     },
     "localname": "GoodwillAdjustmentsOfFairValueOfSecurities",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_GoodwillAdjustmentsOfFairValueOfTimeDeposits": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_GoodwillPurchaseAccountingAdjustments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Goodwill adjustments of fair value of time deposits.",
        "label": "Goodwill Adjustments Of Fair Value Of Time Deposits",
        "terseLabel": "Fair value of time deposits"
       }
      }
     },
     "localname": "GoodwillAdjustmentsOfFairValueOfTimeDeposits",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_GoodwillAdjustmentsOfOtherAssets": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_GoodwillPurchaseAccountingAdjustments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Goodwill adjustments of other assets.",
        "label": "Goodwill Adjustments Of Other Assets",
        "terseLabel": "Other assets"
       }
      }
     },
     "localname": "GoodwillAdjustmentsOfOtherAssets",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_GoodwillAdjustmentsOfOtherLiabilities": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails": {
       "order": 7.0,
       "parentTag": "us-gaap_GoodwillPurchaseAccountingAdjustments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Goodwill adjustments of other liabilities.",
        "label": "Goodwill Adjustments Of Other Liabilities",
        "terseLabel": "Other liabilities"
       }
      }
     },
     "localname": "GoodwillAdjustmentsOfOtherLiabilities",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_GoodwillAndIntangibleAssetsAccumulatedAmortization": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Goodwill and intangible assets accumulated amortization.",
        "label": "Goodwill And Intangible Assets Accumulated Amortization",
        "terseLabel": "Goodwill and Intangible Assets, Accumulated Amortization"
       }
      }
     },
     "localname": "GoodwillAndIntangibleAssetsAccumulatedAmortization",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_GoodwillAndIntangibleAssetsGrossCarryingValue": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gross amount, as of the balance sheet date, of the cumulative amount paid and (if applicable) the fair value of any noncontrolling interest in the acquiree, adjusted for any amortization recognized prior to the adoption of any changes in generally accepted accounting principles (as applicable), in excess of the fair value of net assets acquired in one or more business combination transactions. This amount includes the gross amount of intangibles from acquisitions and other major intangibles.",
        "label": "Goodwill And Intangible Assets Gross Carrying Value",
        "terseLabel": "Goodwill and Intangible Assets, Gross Carrying Value"
       }
      }
     },
     "localname": "GoodwillAndIntangibleAssetsGrossCarryingValue",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_GoodwillPurchaseAccountingAdjustmentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Goodwill purchase accounting adjustments.",
        "label": "Goodwill Purchase Accounting Adjustments [Abstract]",
        "terseLabel": "Less purchase accounting adjustments:"
       }
      }
     },
     "localname": "GoodwillPurchaseAccountingAdjustmentsAbstract",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fmbh_GrantOfRestrictedUnitsPursuantToStockIncentivePlan": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Grant of restricted units pursuant to stock incentive plan.",
        "label": "Grant Of Restricted Units Pursuant To Stock Incentive Plan",
        "terseLabel": "Grant of restricted units pursuant to 2017 stock incentive plan"
       }
      }
     },
     "localname": "GrantOfRestrictedUnitsPursuantToStockIncentivePlan",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_GrossLeaseCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_LeaseCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gross lease cost.",
        "label": "Gross Lease Cost",
        "totalLabel": "Total lease cost"
       }
      }
     },
     "localname": "GrossLeaseCost",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_HedgedInstrumentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Hedged Instruments [Abstract]",
        "label": "Hedged Instruments [Abstract]"
       }
      }
     },
     "localname": "HedgedInstrumentsAbstract",
     "nsuri": "http://www.firstmid.com/20230331",
     "xbrltype": "stringItemType"
    },
    "fmbh_HeldToMaturityTaxEquivalentYieldMaturities": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Held To Maturity Tax Equivalent Yield Maturities",
        "label": "Held To Maturity Tax Equivalent Yield Maturities",
        "terseLabel": "Held To Maturity, Full tax-equivalent yield , Total"
       }
      }
     },
     "localname": "HeldToMaturityTaxEquivalentYieldMaturities",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_HeldToMaturityTaxEquivalentYieldMaturitiesAfter10Years": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Held To Maturity Tax Equivalent Yield Maturities After 10 Years",
        "label": "Held To Maturity Tax Equivalent Yield Maturities After10 Years",
        "terseLabel": "Held To Maturity, Full tax-equivalent yield , After ten years"
       }
      }
     },
     "localname": "HeldToMaturityTaxEquivalentYieldMaturitiesAfter10Years",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_HeldToMaturityTaxEquivalentYieldMaturitiesAfter1Through5Years": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Held To Maturity Tax Equivalent Yield Maturities After 1 Through 5 Years",
        "label": "Held To Maturity Tax Equivalent Yield Maturities After1 Through5 Years",
        "terseLabel": "Held To Maturity, Full tax-equivalent yield , After 1 through 5 years"
       }
      }
     },
     "localname": "HeldToMaturityTaxEquivalentYieldMaturitiesAfter1Through5Years",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_HeldToMaturityTaxEquivalentYieldMaturitiesAfter5Through10Years": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Held To Maturity Tax Equivalent Yield Maturities After 5 Through 10 Years",
        "label": "Held To Maturity Tax Equivalent Yield Maturities After5 Through10 Years",
        "terseLabel": "Held To Maturity, Full tax-equivalent yield , After 5 through 10 years"
       }
      }
     },
     "localname": "HeldToMaturityTaxEquivalentYieldMaturitiesAfter5Through10Years",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_HeldToMaturityTaxEquivalentYieldMaturitiesYearOne": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Held To Maturity Tax Equivalent Yield Maturities Year One",
        "label": "Held To Maturity Tax Equivalent Yield Maturities Year One",
        "terseLabel": "Held To Maturity, Full tax-equivalent yield , One year or less"
       }
      }
     },
     "localname": "HeldToMaturityTaxEquivalentYieldMaturitiesYearOne",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_HeldToMaturityWeightedAverageYieldMaturities": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Held To Maturity Weighted Average Yield Maturities",
        "label": "Held To Maturity Weighted Average Yield Maturities",
        "terseLabel": "Held To Maturity Weighted average yield ,Total"
       }
      }
     },
     "localname": "HeldToMaturityWeightedAverageYieldMaturities",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_HeldToMaturityWeightedAverageYieldMaturitiesAfter10Years": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Held To Maturity Weighted Average Yield Maturities After 10 Years",
        "label": "Held To Maturity Weighted Average Yield Maturities After10 Years",
        "terseLabel": "Held To Maturity Weighted average yield After ten years"
       }
      }
     },
     "localname": "HeldToMaturityWeightedAverageYieldMaturitiesAfter10Years",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_HeldToMaturityWeightedAverageYieldMaturitiesAfter1Through5Years": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Held To Maturity Weighted Average Yield Maturities After 1 Through 5 Years",
        "label": "Held To Maturity Weighted Average Yield Maturities After1 Through5 Years",
        "terseLabel": "Held To Maturity Weighted average yield, After 1 through 5 years"
       }
      }
     },
     "localname": "HeldToMaturityWeightedAverageYieldMaturitiesAfter1Through5Years",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_HeldToMaturityWeightedAverageYieldMaturitiesAfter5Through10Years": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Held To Maturity Weighted Average Yield Maturities After 5 Through 10 Years",
        "label": "Held To Maturity Weighted Average Yield Maturities After5 Through10 Years",
        "terseLabel": "Held To Maturity Weighted average yield After 5 through 10 years"
       }
      }
     },
     "localname": "HeldToMaturityWeightedAverageYieldMaturitiesAfter5Through10Years",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_HeldToMaturityWeightedAverageYieldMaturitiesYearOne": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Held To Maturity Weighted Average Yield Maturities Year One",
        "label": "Held To Maturity Weighted Average Yield Maturities Year One",
        "terseLabel": "Held To Maturity Weighted average yield, One year or less"
       }
      }
     },
     "localname": "HeldToMaturityWeightedAverageYieldMaturitiesYearOne",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_IncreaseDecreaseInOtherInvestments": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 15.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Increase (decrease) in other investments.",
        "label": "Increase Decrease In Other Investments",
        "negatedLabel": "Decrease (increase) in other investment"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherInvestments",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_IncreaseDecreaseInRepurchaseAgreements": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Increased decrease in repurchase agreements.",
        "label": "Increase Decrease in Repurchase Agreements",
        "terseLabel": "Increase in repurchase agreements"
       }
      }
     },
     "localname": "IncreaseDecreaseInRepurchaseAgreements",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_IncrementalCommonSharesAttributableToShareBasedPaymentArrangementsRestrictedStockAwards": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Additional shares included in the calculation of diluted EPS as a result of the potentially dilutive effect of restricted stock awarded share based payment arrangements using the treasury stock method.",
        "label": "Incremental Common Shares Attributable To Share Based Payment Arrangements Restricted Stock Awards",
        "terseLabel": "Dilutive potential common shares: restricted stock awarded"
       }
      }
     },
     "localname": "IncrementalCommonSharesAttributableToShareBasedPaymentArrangementsRestrictedStockAwards",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "fmbh_InitialRecognitionOfOperatingLeaseLiaibility": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Initial Recognition Of Operating Lease Liaibility",
        "label": "Initial Recognition Of Operating Lease Liaibility",
        "terseLabel": "Initial recognition of lease liabilities"
       }
      }
     },
     "localname": "InitialRecognitionOfOperatingLeaseLiaibility",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_IntangibleAssetsMortgageServicingRightsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Intangible assets, mortgage servicing rights table text block.",
        "label": "Intangible Assets Mortgage Servicing Rights Table [Text Block]",
        "terseLabel": "Intangible Assets Mortgage Servicing Rights"
       }
      }
     },
     "localname": "IntangibleAssetsMortgageServicingRightsTableTextBlock",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fmbh_IntangiblesFromBranchAcquisitionMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Intangibles from branch acquisition.",
        "label": "Intangibles From Branch Acquisition [Member]",
        "terseLabel": "Intangibles from Branch Acquisition"
       }
      }
     },
     "localname": "IntangiblesFromBranchAcquisitionMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_InterestExpenseFederalHomeLoanBankAdvancesShortAndLongTerm": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 2.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest expense incurred during the reporting period on short-term and long-term borrowings associated with Federal Home Loan Bank advances.",
        "label": "Interest Expense Federal Home Loan Bank Advances Short And Long Term",
        "terseLabel": "Interest on FHLB borrowings"
       }
      }
     },
     "localname": "InterestExpenseFederalHomeLoanBankAdvancesShortAndLongTerm",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_InterestPayableFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents the portion of the balance sheet assertion valued at fair value by the entity whether such amount is presented as a separate caption or as a parenthetical disclosure. Additionally, this element may be used in connection with the fair value disclosures required in the footnote disclosures to the financial statements. The element may be used in both the balance sheet and disclosure in the same submission. This element represents the fair value of interest payable.",
        "label": "Interest Payable Fair Value Disclosure",
        "terseLabel": "Interest payable"
       }
      }
     },
     "localname": "InterestPayableFairValueDisclosure",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_InterestRateFourPointEightOneMaturingOnNovemberTenTwoThousandTwentyThreeMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "interest rate four point eight one maturing on november ten two thousand twenty three member",
        "label": "Interest Rate Four Point Eight One Maturing On November Ten Two Thousand Twenty Three Member",
        "terseLabel": "Interest Rate 4.81% - Maturity Date November 10, 2023"
       }
      }
     },
     "localname": "InterestRateFourPointEightOneMaturingOnNovemberTenTwoThousandTwentyThreeMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_InterestRateFourPointEightSixMaturingOnAprilOneTwoThousandTwentyThreeMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate four point eight six maturing on April one two thousand twenty three.",
        "label": "Interest Rate Four Point Eight Six Maturing on April One Two Thousand Twenty Three [Member]",
        "terseLabel": "Interest Rate 4.86% - Maturity Date April 1, 2023"
       }
      }
     },
     "localname": "InterestRateFourPointEightSixMaturingOnAprilOneTwoThousandTwentyThreeMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_InterestRateFourPointFiveNineMaturingOnNovemberEightTwoThousandTwentyFourMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "interest rate four point five nine maturing on november eight two thousand twenty four member.",
        "label": "Interest Rate Four Point Five Nine Maturing On November Eight Two Thousand Twenty Four Member",
        "terseLabel": "Interest Rate 4.59% - Maturity Date November 8, 2024"
       }
      }
     },
     "localname": "InterestRateFourPointFiveNineMaturingOnNovemberEightTwoThousandTwentyFourMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_InterestRateFourPointSixNineMaturingOnMayTenTwoThousandTwentyFourMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "interest rate four point six nine maturing on may ten two thousand twenty four member.",
        "label": "Interest Rate Four Point Six Nine Maturing On May Ten Two Thousand Twenty Four Member",
        "terseLabel": "Interest Rate 4.69% - Maturity Date May 10, 2024"
       }
      }
     },
     "localname": "InterestRateFourPointSixNineMaturingOnMayTenTwoThousandTwentyFourMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_InterestRateFourPointThreeFourMaturingOnJuneThirtyTwoThousandTwentyThreeMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate four point three four maturing on june thirty two thousand twenty three.",
        "label": "Interest Rate Four Point Three Four Maturing On June Thirty Two Thousand Twenty Three [Member]",
        "terseLabel": "Interest Rate 4.34% - Maturity Date June 30, 2023"
       }
      }
     },
     "localname": "InterestRateFourPointThreeFourMaturingOnJuneThirtyTwoThousandTwentyThreeMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_InterestRateOnePointFiveOneMaturingOnJulyThirtyOneTwoThousandTwentyThreeMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate two point five one maturing on July thirty one two thousand twenty three.",
        "label": "Interest Rate One Point Five One Maturing On July Thirty One Two Thousand Twenty Three [Member]",
        "terseLabel": "Interest Rate 1.51% - Maturity Date July 31, 2023"
       }
      }
     },
     "localname": "InterestRateOnePointFiveOneMaturingOnJulyThirtyOneTwoThousandTwentyThreeMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_InterestRateOnePointFourFiveMaturingOnDecemberThirtyOneTwoThousandTwentyFourMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate one point four five maturing on December thirty one two thousand twenty four.",
        "label": "Interest Rate One Point Four Five Maturing On December Thirty One Two Thousand Twenty Four [Member]",
        "terseLabel": "Interest Rate 1.45% - Maturity Date December 31, 2024"
       }
      }
     },
     "localname": "InterestRateOnePointFourFiveMaturingOnDecemberThirtyOneTwoThousandTwentyFourMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_InterestRateOnePointOneFiveMaturingOnOctoberThreeTwoThousandTwentyNineMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate one point one five maturing on October three two thousand twenty nine.",
        "label": "Interest Rate One Point One Five Maturing On October Three Two Thousand Twenty Nine [Member]",
        "terseLabel": "Interest Rate 1.15% - Maturity Date October 3, 2029"
       }
      }
     },
     "localname": "InterestRateOnePointOneFiveMaturingOnOctoberThreeTwoThousandTwentyNineMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_InterestRateOnePointOneTwoMaturingOnOctoberThreeTwoThousandTwentyNineMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate one point one two maturing on October three two thousand twenty nine.",
        "label": "Interest Rate One Point One Two Maturing On October Three Two Thousand Twenty Nine [Member]",
        "terseLabel": "Interest Rate 1.12% - Maturity Date October 3, 2029"
       }
      }
     },
     "localname": "InterestRateOnePointOneTwoMaturingOnOctoberThreeTwoThousandTwentyNineMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_InterestRateOnePointThreeNineMaturingOnDecemberThirtyOneTwoThousandTwentyNineMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate one point three nine maturing on December thirty one two thousand twenty nine.",
        "label": "Interest Rate One Point Three Nine Maturing On December Thirty One Two Thousand Twenty Nine [Member]",
        "terseLabel": "Interest Rate 1.39% - Maturity Date December 31, 2029"
       }
      }
     },
     "localname": "InterestRateOnePointThreeNineMaturingOnDecemberThirtyOneTwoThousandTwentyNineMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_InterestRateThreePointFiveSixMaturingOnMarchTenTwoThousandTwentyEightMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate three point five six maturing on March ten two thousand twenty eight.",
        "label": "Interest Rate Three Point Five Six Maturing on March Ten Two Thousand Twenty Eight [Member]",
        "terseLabel": "Interest Rate 3.56% - Maturity Date March 10, 2028"
       }
      }
     },
     "localname": "InterestRateThreePointFiveSixMaturingOnMarchTenTwoThousandTwentyEightMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_InterestRateThreePointFourNineMaturingOnDecemberEightTwoThousandTwentySevenMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "interest rate three point four nine maturing on december eight two thousand twenty seven member.",
        "label": "Interest Rate Three Point Four Nine Maturing On December Eight Two Thousand Twenty Seven Member",
        "terseLabel": "Interest Rate 3.49% - Maturity Date December 8, 2027"
       }
      }
     },
     "localname": "InterestRateThreePointFourNineMaturingOnDecemberEightTwoThousandTwentySevenMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_InterestRateThreePointFourSevenMaturingOnMarchThirteenTwoThousandTwentyEightMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate three point four seven maturing on March thirteen two thousand twenty eight.",
        "label": "Interest Rate Three Point Four Seven Maturing on March Thirteen Two Thousand Twenty Eight [Member]",
        "terseLabel": "Interest Rate 3.47% - Maturity Date March 13, 2028"
       }
      }
     },
     "localname": "InterestRateThreePointFourSevenMaturingOnMarchThirteenTwoThousandTwentyEightMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_InterestRateThreePointThreeFiveMaturingOnMarchThirteenTwoThousandTwentyEightMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate three point three five maturing on March thirteen two thousand twenty eight.",
        "label": "Interest Rate Three Point Three Five Maturing on March Thirteen Two Thousand Twenty Eight [Member]",
        "terseLabel": "Interest Rate 3.35% - Maturity Date March 13, 2028"
       }
      }
     },
     "localname": "InterestRateThreePointThreeFiveMaturingOnMarchThirteenTwoThousandTwentyEightMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_InterestRateThreePointTwoEightMaturingOnDecemberEightTwoThousandTwentySevenMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "interest rate three point two eight maturing on december eight two thousand twenty seven member.",
        "label": "Interest Rate Three Point Two Eight Maturing On December Eight Two Thousand Twenty Seven Member",
        "terseLabel": "Interest Rate 3.28% - Maturity Date December 8, 2027"
       }
      }
     },
     "localname": "InterestRateThreePointTwoEightMaturingOnDecemberEightTwoThousandTwentySevenMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_InterestRateTwoPointFourFourMaturingOnMayThirtyTwoThousandTwentyThreeMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate two point four four maturing on may thirty two thousand twenty three.",
        "label": "Interest Rate Two Point Four Four Maturing On May Thirty Two Thousand Twenty Three [Member]",
        "terseLabel": "Interest Rate 2.44% - Maturity Date May 30, 2023"
       }
      }
     },
     "localname": "InterestRateTwoPointFourFourMaturingOnMayThirtyTwoThousandTwentyThreeMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_InterestRateTwoPointFourZeroMaturingOnMarchFifteenTwoThousandThirtyThreeMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate two point four zero maturing on March fifteen two thousand thirty three.",
        "label": "Interest Rate Two Point Four Zero Maturing on March Fifteen Two Thousand Thirty Three [Member]",
        "terseLabel": "Interest Rate 2.40% - Maturity Date March 15, 2033"
       }
      }
     },
     "localname": "InterestRateTwoPointFourZeroMaturingOnMarchFifteenTwoThousandThirtyThreeMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_InterestRateTwoPointNineEightMaturingOnDecemberEightTwoThousandTwentySevenMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate two point nine eight maturing on December eight two thousand twenty seven.",
        "label": "Interest Rate Two Point Nine Eight Maturing on December Eight Two Thousand Twenty Seven [Member]",
        "terseLabel": "Interest Rate 2.98% - Maturity Date December 8, 2027"
       }
      }
     },
     "localname": "InterestRateTwoPointNineEightMaturingOnDecemberEightTwoThousandTwentySevenMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_InterestRateTwoPointSevenSevenMaturingOnDecemberThirteenTwoThousandThirtyTwoMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate two point seven seven maturing on December thirteen two thousand thirty two.",
        "label": "Interest Rate Two Point Seven Seven Maturing on December Thirteen Two Thousand Thirty Two [Member]",
        "terseLabel": "Interest Rate 2.77% - Maturity Date December 13, 2032"
       }
      }
     },
     "localname": "InterestRateTwoPointSevenSevenMaturingOnDecemberThirteenTwoThousandThirtyTwoMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_InterestRateTwoPointSixFourMaturingOnDecemberTwentyThreeTwoThousandTwentyFiveMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate two point six four maturing on December twenty three two thousand twenty five.",
        "label": "Interest Rate Two Point Six Four Maturing On December Twenty Three Two Thousand Twenty Five [Member]",
        "terseLabel": "Interest Rate 2.64% - Maturity Date December 23, 2025"
       }
      }
     },
     "localname": "InterestRateTwoPointSixFourMaturingOnDecemberTwentyThreeTwoThousandTwentyFiveMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_InterestRateTwoPointSixZeroMaturingOnMarchFourteenTwoThousandThirtyThreeMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate two point six zero maturing on March fourteen two thousand thirty three.",
        "label": "Interest Rate Two Point Six Zero Maturing on March Fourteen Two Thousand Thirty Three [Member]",
        "terseLabel": "Interest Rate 2.60% - Maturity Date March 14, 2033"
       }
      }
     },
     "localname": "InterestRateTwoPointSixZeroMaturingOnMarchFourteenTwoThousandThirtyThreeMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_InterestRateTwoPointZeroZeroMaturingOnMayThirtyOneTwoThousandTwentyThreeMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate two point zero zero maturing on may thirty one two thousand twenty three.",
        "label": "Interest Rate Two Point Zero Zero Maturing On May Thirty One Two Thousand Twenty Three [Member]",
        "terseLabel": "Interest Rate 2.00% - Maturity Date May 31, 2023"
       }
      }
     },
     "localname": "InterestRateTwoPointZeroZeroMaturingOnMayThirtyOneTwoThousandTwentyThreeMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_InterestRateZeroPointNineOneMaturingOnMarchTenTwoThousandTwentyFiveMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate zero point nine one maturing on March ten two thousand twenty five.",
        "label": "Interest Rate Zero Point Nine One Maturing On March Ten Two Thousand Twenty Five [Member]",
        "terseLabel": "Interest Rate 0.91% - Maturity Date March 10, 2025"
       }
      }
     },
     "localname": "InterestRateZeroPointNineOneMaturingOnMarchTenTwoThousandTwentyFiveMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_InterestRateZeroPointSevenSevenMaturingOnSeptemberElevenTwoThousandTwentyThreeMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate zero point seven seven maturing on September eleven two thousand twenty three.",
        "label": "Interest Rate Zero Point Seven Seven Maturing On September Eleven Two Thousand Twenty Three [Member]",
        "terseLabel": "Interest Rate 0.77% - Maturity Date September 11, 2023"
       }
      }
     },
     "localname": "InterestRateZeroPointSevenSevenMaturingOnSeptemberElevenTwoThousandTwentyThreeMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_InterestReceivableFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents the portion of the balance sheet assertion valued at fair value by the entity whether such amount is presented as a separate caption or as a parenthetical disclosure. Additionally, this element may be used in connection with the fair value disclosures required in the footnote disclosures to the financial statements. The element may be used in both the balance sheet and disclosure in the same submission. This item represents the interest receivable from third parties.",
        "label": "Interest Receivable Fair Value Disclosure",
        "terseLabel": "Interest receivable"
       }
      }
     },
     "localname": "InterestReceivableFairValueDisclosure",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_InvestmentInFederalReserveBankStockFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents the portion of the balance sheet assertion valued at fair value by the entity whether such amount is presented as a separate caption or as a parenthetical disclosure. Additionally, this element may be used in connection with the fair value disclosures required in the footnote disclosures to the financial statements. The element may be used in both the balance sheet and disclosure in the same submission. This item represents the amount shown on an entity's books for investments in Federal Reserve Bank stock.",
        "label": "Investment In Federal Reserve Bank Stock Fair Value Disclosure",
        "terseLabel": "Federal Reserve Bank stock"
       }
      }
     },
     "localname": "InvestmentInFederalReserveBankStockFairValueDisclosure",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_LINCOBancsharesIncMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "LINCO Bancshares, Inc.",
        "label": "L I N C O Bancshares Inc [Member]",
        "terseLabel": "LINCO Bancshares, Inc."
       }
      }
     },
     "localname": "LINCOBancsharesIncMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFour": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lessee operating lease liability payments due after year four.",
        "label": "Lessee Operating Lease Liability Payments Due After Year Four",
        "terseLabel": "Thereafter"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFour",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_LoanReceivableTimePeriod": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Specifies the time period covered by the loan receivable.",
        "label": "Loan Receivable Time Period",
        "terseLabel": "Loans receivable, time period"
       }
      }
     },
     "localname": "LoanReceivableTimePeriod",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "fmbh_LoanToValueRatio": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of the mortgage loan as a percentage of the total appraised value of the real property. Loan-to-value is one of the key risk factors that lenders assess when qualifying borrowers for a mortgage.",
        "label": "Loan To Value Ratio",
        "terseLabel": "Maximum loan-to-value ratio (in hundredths)"
       }
      }
     },
     "localname": "LoanToValueRatio",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_LoansAcquired": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loans acquired.",
        "label": "Loans Acquired",
        "terseLabel": "Loans acquired"
       }
      }
     },
     "localname": "LoansAcquired",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_LoansAndLeasesReceivableInterestReceivable": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loans and leases receivable, interest receivable.",
        "label": "Loans And Leases Receivable Interest Receivable",
        "terseLabel": "Accrued interest on loans"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableInterestReceivable",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_LoansReceivableModificationsAllowance": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The allowance for loan losses related to financing receivables that have been modified by troubled debt restructurings.",
        "label": "Loans Receivable Modifications Allowance",
        "verboseLabel": "Loans receivable, modifications, allowance"
       }
      }
     },
     "localname": "LoansReceivableModificationsAllowance",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_MSRInterestOnlyStripIncreaseDecrease": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MSR interest only strip increase decrease.",
        "label": "M S R Interest Only Strip Increase Decrease",
        "negatedLabel": "Interest only strip"
       }
      }
     },
     "localname": "MSRInterestOnlyStripIncreaseDecrease",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_MinimumValueOfLoansIndividuallyMeasuredForImpairment": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Minimum value of loans individually measured for impairment.",
        "label": "Minimum Value Of Loans Individually Measured For Impairment",
        "terseLabel": "Minimum value of loans individually measured for impairment"
       }
      }
     },
     "localname": "MinimumValueOfLoansIndividuallyMeasuredForImpairment",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_MortgageServicingRightsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Mortgage Servicing Rights [Abstract]",
        "label": "Mortgage Servicing Rights [Abstract]"
       }
      }
     },
     "localname": "MortgageServicingRightsAbstract",
     "nsuri": "http://www.firstmid.com/20230331",
     "xbrltype": "stringItemType"
    },
    "fmbh_MortgageServicingRightsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Mortgage Servicing Rights [Member]",
        "label": "Mortgage Servicing Rights [Member]",
        "terseLabel": "Mortgage Servicing Rights",
        "verboseLabel": "Mortgage Servicing Rights"
       }
      }
     },
     "localname": "MortgageServicingRightsMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_MotelsAndHotelsLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Motels and hotels loans.",
        "label": "Motels And Hotels Loans [Member]",
        "terseLabel": "Motels and Hotels Loans"
       }
      }
     },
     "localname": "MotelsAndHotelsLoansMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_MultifamilyResidentialPropertiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Property that is used to house multifamilies, such as an apartment complex.",
        "label": "Multifamily Residential Properties [Member]",
        "terseLabel": "Multifamily Residential Properties"
       }
      }
     },
     "localname": "MultifamilyResidentialPropertiesMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_NetOtherRealEstateOwnedIncomeExpense": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 2.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Net Other Real Estate Owned (Income) Expense including cost of acquiring and holding real estate for sale, net gain (loss) resulting from sales and other disposals of real estate, and write-downs of other real estate owned after acquisition or physical possession.",
        "label": "Net Other Real Estate Owned Income Expense",
        "terseLabel": "Net other real estate owned expense"
       }
      }
     },
     "localname": "NetOtherRealEstateOwnedIncomeExpense",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_NonResidentialBuildingsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Non residential buildings.",
        "label": "Non Residential Buildings [Member]",
        "terseLabel": "Non-residential Buildings"
       }
      }
     },
     "localname": "NonResidentialBuildingsMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_NoncashOrPartNoncashAcquisitionCashPaid": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 0.0,
       "parentTag": "fmbh_NoncashorPartNoncashAcquisitionTotalConsideration",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash portion of noncash Or part noncash acquisition transaction",
        "label": "Noncash Or Part Noncash Acquisition Cash Paid",
        "terseLabel": "Cash paid"
       }
      }
     },
     "localname": "NoncashOrPartNoncashAcquisitionCashPaid",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_NoncashorPartNoncashAcquisitionTotalConsideration": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_NoncashOrPartNoncashAcquisitionValueOfLiabilitiesAssumed1",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Noncash or Part Noncash Acquisition, Total Consideration",
        "label": "Noncashor Part Noncash Acquisition Total Consideration",
        "totalLabel": "Total consideration paid"
       }
      }
     },
     "localname": "NoncashorPartNoncashAcquisitionTotalConsideration",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_NumberOfAlternativesForMeasuringImpairedLoansReceivable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of alternatives for measuring impaired loans receivable.",
        "label": "Number Of Alternatives For Measuring Impaired Loans Receivable",
        "terseLabel": "Number of alternatives for measuring impaired loans receivable"
       }
      }
     },
     "localname": "NumberOfAlternativesForMeasuringImpairedLoansReceivable",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "fmbh_OneToFourFamilyMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "One to four family.",
        "label": "One To Four Family [Member]",
        "terseLabel": "1-4 Family"
       }
      }
     },
     "localname": "OneToFourFamilyMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_OperatingLeaseCashFlowTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Operating lease cash flow table text block.",
        "label": "Operating Lease Cash Flow Table [Text Block]",
        "terseLabel": "Summary of Operating Lease Cash Flows"
       }
      }
     },
     "localname": "OperatingLeaseCashFlowTableTextBlock",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fmbh_OtherBorrowingsFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other borrowings fair value disclosure.",
        "label": "Other Borrowings Fair Value Disclosure",
        "terseLabel": "Other borrowings"
       }
      }
     },
     "localname": "OtherBorrowingsFairValueDisclosure",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_OtherCollateralAssetsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other Collateral Assets.",
        "label": "Other Collateral Assets [Member]",
        "terseLabel": "Other Property"
       }
      }
     },
     "localname": "OtherCollateralAssetsMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_OtherGamblingIndustriesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other gambling industries.",
        "label": "Other Gambling Industries [Member]",
        "terseLabel": "Other Gambling Industries"
       }
      }
     },
     "localname": "OtherGamblingIndustriesMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_OtherSecuredLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other secured loans.",
        "label": "Other Secured Loans [Member]",
        "terseLabel": "Other Secured Loans"
       }
      }
     },
     "localname": "OtherSecuredLoansMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_PercentageInvestmentBookValueExceedsStockholdersEquity": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage investment book value exceeds stockholders' equity.",
        "label": "Percentage Investment Book Value Exceeds Stockholders Equity",
        "terseLabel": "Percentage investment book value exceeds stockholders' equity (in hundredths)"
       }
      }
     },
     "localname": "PercentageInvestmentBookValueExceedsStockholdersEquity",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_PublicSecuritiesAssociationStandardPrepaymentModelRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Public securities association standard prepayment model rate.",
        "label": "Public Securities Association Standard Prepayment Model Rate",
        "terseLabel": "Mortgage servicing rights"
       }
      }
     },
     "localname": "PublicSecuritiesAssociationStandardPrepaymentModelRate",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_ReleaseOfRestrictedStockUnitsPursuantToStockIncentivePlan": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Release of restricted stock units pursuant to stock incentive plan.",
        "label": "Release Of Restricted Stock Units Pursuant To Stock Incentive Plan",
        "negatedLabel": "Release of restricted units pursuant to 2017 stock incentive plan"
       }
      }
     },
     "localname": "ReleaseOfRestrictedStockUnitsPursuantToStockIncentivePlan",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_RepaymentOfFederalHomeLoanBankAdvances": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repayment of federal home loan bank advances.",
        "label": "Repayment Of Federal Home Loan Bank Advances",
        "negatedLabel": "Repayment of FHLB advances"
       }
      }
     },
     "localname": "RepaymentOfFederalHomeLoanBankAdvances",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_RepurchaseAgreementsAndOtherBorrowingsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repurchase Agreements And Other Borrowings.",
        "label": "Repurchase Agreements And Other Borrowings [Abstract]"
       }
      }
     },
     "localname": "RepurchaseAgreementsAndOtherBorrowingsAbstract",
     "nsuri": "http://www.firstmid.com/20230331",
     "xbrltype": "stringItemType"
    },
    "fmbh_RepurchaseAgreementsAndOtherBorrowingsTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of change in repurchase agreements, FHLB Advances and other borrowings.",
        "label": "Repurchase Agreements And Other Borrowings [Text Block]",
        "terseLabel": "Repurchase Agreements and Other Borrowings"
       }
      }
     },
     "localname": "RepurchaseAgreementsAndOtherBorrowingsTextBlock",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowings"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fmbh_ResidentialBuildingsAndDwellingsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential buildings and dwellings.",
        "label": "Residential Buildings And Dwellings [Member]",
        "terseLabel": "Residential Buildings and Dwellings"
       }
      }
     },
     "localname": "ResidentialBuildingsAndDwellingsMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_ResidentialPropertiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Property that is used as a home for one to four families.",
        "label": "Residential Properties [Member]",
        "terseLabel": "1-4 Family Residential Properties"
       }
      }
     },
     "localname": "ResidentialPropertiesMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "fmbh_RevenueFromContractWithCustomerATMDebitCard": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 5.0,
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Revenue From Contract With Customer, ATM &amp; Debit Card",
        "label": "Revenue From Contract With Customer A T M Debit Card",
        "terseLabel": "ATM / debit card revenue"
       }
      }
     },
     "localname": "RevenueFromContractWithCustomerATMDebitCard",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_RevenueFromContractWithCustomerDepositServiceCharges": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 2.0,
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Revenue From Contract With Customer, Deposit Service Charges",
        "label": "Revenue From Contract With Customer Deposit Service Charges",
        "terseLabel": "Service charges"
       }
      }
     },
     "localname": "RevenueFromContractWithCustomerDepositServiceCharges",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_RevenueFromContractWithCustomerMortgageBanking": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 4.0,
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Revenue From Contract With Customer, Mortgage Banking",
        "label": "Revenue From Contract With Customer Mortgage Banking",
        "terseLabel": "Mortgage banking revenue, net"
       }
      }
     },
     "localname": "RevenueFromContractWithCustomerMortgageBanking",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_RevenueFromContractWithCustomerWealthManagement": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 0.0,
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Revenue From Contract With Customer, Wealth Management",
        "label": "Revenue From Contract With Customer Wealth Management",
        "terseLabel": "Wealth management revenues"
       }
      }
     },
     "localname": "RevenueFromContractWithCustomerWealthManagement",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_ScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of amounts reclassified from accumulated other comprehensive income table text block.",
        "label": "Schedule Of Amounts Reclassified From Accumulated Other Comprehensive Income Table [Text Block]",
        "terseLabel": "Schedule of Amounts Reclassified from Accumulated Other Comprehensive Income"
       }
      }
     },
     "localname": "ScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeTableTextBlock",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fmbh_ScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of reconciliation of purchase price paid for acquisition and goodwill recorded.",
        "label": "Schedule Of Reconciliation Of Purchase Price Paid For Acquisition And Goodwill Recorded Table [Text Block]",
        "terseLabel": "Schedule of Reconciliation of Purchase Price Paid for Acquisition and Goodwill Recorded"
       }
      }
     },
     "localname": "ScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedTableTextBlock",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fmbh_ScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of supplemental balance sheet information related to leases.",
        "label": "Schedule Of Supplemental Balance Sheet Information Related To Leases Table [Text Block]",
        "terseLabel": "Summary of Supplemental Balance Sheet Information"
       }
      }
     },
     "localname": "ScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesTableTextBlock",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fmbh_SecuritiesSoldUnderAgreementsToRepurchaseIncreaseDecrease": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) in the carrying value as of the balance sheet date of securities that an institution sells and agrees to repurchase (the identical or substantially the same securities) as a seller-borrower at a specified date for a specified price, also known as a repurchase agreement, or repo. Most repos involve obligations of the federal government or its agencies, but other financial instruments, such as commercial paper, banker's acceptances, and negotiable certificates of deposit, are sometimes used in repos.",
        "label": "Securities Sold Under Agreements To Repurchase Increase Decrease",
        "terseLabel": "Securities sold under agreements to repurchase increase (decrease)"
       }
      }
     },
     "localname": "SecuritiesSoldUnderAgreementsToRepurchaseIncreaseDecrease",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_SecuritiesSoldUnderAgreementsToRepurchaseWeightedAverageRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Securities Sold Under Agreements to Repurchase Weighted Average Rate",
        "label": "Securities Sold Under Agreements To Repurchase Weighted Average Rate",
        "terseLabel": "Securities sold under agreements to repurchase weighted average rate"
       }
      }
     },
     "localname": "SecuritiesSoldUnderAgreementsToRepurchaseWeightedAverageRate",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "fmbh_StockIncentivePlanTerm": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock incentive plan, term.",
        "label": "Stock Incentive Plan Term",
        "terseLabel": "Stock plans, term"
       }
      }
     },
     "localname": "StockIncentivePlanTerm",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "fmbh_StockIssuedDuringPeriodSharesStockIncentivePlan": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock issued during period shares stock incentive plan.",
        "label": "Stock Issued During Period Shares Stock Incentive Plan",
        "terseLabel": "Restricted stock issued during period, shares, pursuant to the 2017 stock incentive plan"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesStockIncentivePlan",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "fmbh_StockIssuedDuringPeriodValueDeferredCompensationPlan": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value of shares issued during the period to a deferred compensation plan.",
        "label": "Stock Issued During Period Value Deferred Compensation Plan",
        "terseLabel": "Issuance of common shares pursuant to the deferred compensation plan"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueDeferredCompensationPlan",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_StockIssuedDuringPeriodValueStockIncentivePlan": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock issued during period value stock incentive plan.",
        "label": "Stock Issued During Period Value Stock Incentive Plan",
        "terseLabel": "Issuance of common shares pursuant to 2017 stock incentive plan"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueStockIncentivePlan",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "fmbh_SummaryOfCumulativeBasisAdjustmentOfFairValueHedgesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summary of cumulative basis adjustment of fair value hedges.",
        "label": "Summary Of Cumulative Basis Adjustment Of Fair Value Hedges Table [Text Block]",
        "terseLabel": "Summary of Cumulative Basis Adjustment of Fair Value Hedges"
       }
      }
     },
     "localname": "SummaryOfCumulativeBasisAdjustmentOfFairValueHedgesTableTextBlock",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fmbh_SummaryOfPurchasedCreditDeterioratedLoansLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summary of purchased credit deteriorated loans.",
        "label": "Summary Of Purchased Credit Deteriorated Loans [Line Items]",
        "terseLabel": "Summary Of Purchased Credit Deteriorated Loans [Line Items]"
       }
      }
     },
     "localname": "SummaryOfPurchasedCreditDeterioratedLoansLineItems",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fmbh_SummaryOfPurchasedCreditDeterioratedLoansTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summary of purchased credit deteriorated loans.",
        "label": "Summary Of Purchased Credit Deteriorated Loans [Table]",
        "terseLabel": "Summary Of Purchased Credit Deteriorated Loans [Table]"
       }
      }
     },
     "localname": "SummaryOfPurchasedCreditDeterioratedLoansTable",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fmbh_SummaryOfPurchasedCreditDeterioratedPCDLoansTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summary of purchased credit deteriorated (PCD) loans.",
        "label": "Summary Of Purchased Credit Deteriorated P C D Loans Table [Text Block]",
        "terseLabel": "Summary of Purchased Credit Deteriorated (PCD) Loans"
       }
      }
     },
     "localname": "SummaryOfPurchasedCreditDeterioratedPCDLoansTableTextBlock",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "fmbh_SummaryOfSignificantAccountingPoliciesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summary of significant accounting policies.",
        "label": "Summary Of Significant Accounting Policies [Line Items]",
        "terseLabel": "Summary Of Significant Accounting Policies [Line Items]"
       }
      }
     },
     "localname": "SummaryOfSignificantAccountingPoliciesLineItems",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fmbh_SummaryOfSignificantAccountingPoliciesTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summary of significant accounting policies.",
        "label": "Summary Of Significant Accounting Policies [Table]",
        "terseLabel": "Summary Of Significant Accounting Policies [Table]"
       }
      }
     },
     "localname": "SummaryOfSignificantAccountingPoliciesTable",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "fmbh_SupplementalDisclosuresOfPurchasesOfCapitalStockAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Supplemental disclosures of purchases of capital stock.",
        "label": "Supplemental Disclosures Of Purchases Of Capital Stock [Abstract]",
        "terseLabel": "Supplemental disclosures of purchases of capital stock"
       }
      }
     },
     "localname": "SupplementalDisclosuresOfPurchasesOfCapitalStockAbstract",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "fmbh_UnsecuredOpenEndLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unsecured open end loans.",
        "label": "Unsecured Open End Loans [Member]",
        "terseLabel": "Unsecured Open-end Loans"
       }
      }
     },
     "localname": "UnsecuredOpenEndLoansMember",
     "nsuri": "http://www.firstmid.com/20230331",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember": {
     "auth_ref": [
      "r238",
      "r288",
      "r295",
      "r301",
      "r367",
      "r483",
      "r484",
      "r485",
      "r494",
      "r495",
      "r522",
      "r525",
      "r527",
      "r528",
      "r586"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cumulative Effect Period Of Adoption Adjustment [Member]",
        "verboseLabel": "Cumulative Change in Accounting Principal, Adjustment"
       }
      }
     },
     "localname": "CumulativeEffectPeriodOfAdoptionAdjustmentMember",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_CumulativeEffectPeriodOfAdoptionAxis": {
     "auth_ref": [
      "r238",
      "r288",
      "r295",
      "r301",
      "r367",
      "r483",
      "r484",
      "r485",
      "r494",
      "r495",
      "r522",
      "r525",
      "r527",
      "r528",
      "r586"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cumulative Effect Period Of Adoption [Axis]",
        "terseLabel": "Cumulative Effect, Period of Adoption"
       }
      }
     },
     "localname": "CumulativeEffectPeriodOfAdoptionAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_CumulativeEffectPeriodOfAdoptionDomain": {
     "auth_ref": [
      "r238",
      "r288",
      "r295",
      "r301",
      "r367",
      "r483",
      "r484",
      "r485",
      "r494",
      "r495",
      "r522",
      "r525",
      "r527",
      "r528",
      "r586"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cumulative Effect Period Of Adoption [Domain]",
        "terseLabel": "Cumulative Effect, Period of Adoption"
       }
      }
     },
     "localname": "CumulativeEffectPeriodOfAdoptionDomain",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MaximumMember": {
     "auth_ref": [
      "r414",
      "r415",
      "r416",
      "r417",
      "r453",
      "r622",
      "r651",
      "r677",
      "r678",
      "r713",
      "r719",
      "r728",
      "r779",
      "r796",
      "r797",
      "r798",
      "r799",
      "r800",
      "r801"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maximum [Member]",
        "terseLabel": "Maximum",
        "verboseLabel": "Maximum"
       }
      }
     },
     "localname": "MaximumMember",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MinimumMember": {
     "auth_ref": [
      "r414",
      "r415",
      "r416",
      "r417",
      "r453",
      "r622",
      "r651",
      "r677",
      "r678",
      "r713",
      "r719",
      "r728",
      "r779",
      "r796",
      "r797",
      "r798",
      "r799",
      "r800",
      "r801"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Minimum [Member]",
        "terseLabel": "Minimum",
        "verboseLabel": "Minimum"
       }
      }
     },
     "localname": "MinimumMember",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis": {
     "auth_ref": [
      "r665",
      "r668",
      "r669",
      "r670",
      "r671",
      "r672",
      "r673",
      "r674",
      "r675",
      "r676"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Mortgage Loans On Real Estate Description Type Of Property [Axis]",
        "terseLabel": "Real Estate, Type of Property"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_MortgageLoansOnRealEstateNamePropertyTypeDomain": {
     "auth_ref": [
      "r668",
      "r669",
      "r670",
      "r671",
      "r672",
      "r673",
      "r674",
      "r675",
      "r676"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Mortgage Loans On Real Estate Name Property Type [Domain]",
        "terseLabel": "Real Estate"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateNamePropertyTypeDomain",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MultifamilyMember": {
     "auth_ref": [
      "r808",
      "r809"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Multifamily [Member]",
        "terseLabel": "Multifamily"
       }
      }
     },
     "localname": "MultifamilyMember",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RangeAxis": {
     "auth_ref": [
      "r414",
      "r415",
      "r416",
      "r417",
      "r446",
      "r453",
      "r479",
      "r480",
      "r481",
      "r595",
      "r622",
      "r651",
      "r677",
      "r678",
      "r713",
      "r719",
      "r728",
      "r776",
      "r779",
      "r797",
      "r798",
      "r799",
      "r800",
      "r801"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Range [Axis]",
        "terseLabel": "Statistical Measurement"
       }
      }
     },
     "localname": "RangeAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_RangeMember": {
     "auth_ref": [
      "r414",
      "r415",
      "r416",
      "r417",
      "r446",
      "r453",
      "r479",
      "r480",
      "r481",
      "r595",
      "r622",
      "r651",
      "r677",
      "r678",
      "r713",
      "r719",
      "r728",
      "r776",
      "r779",
      "r797",
      "r798",
      "r799",
      "r800",
      "r801"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Range [Member]",
        "terseLabel": "Statistical Measurement"
       }
      }
     },
     "localname": "RangeMember",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_WeightedAverageMember": {
     "auth_ref": [
      "r677",
      "r678",
      "r796",
      "r798",
      "r801"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted Average [Member]",
        "terseLabel": "Weighted Average"
       }
      }
     },
     "localname": "WeightedAverageMember",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccountingStandardsUpdate201613Member": {
     "auth_ref": [
      "r363"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accounting Standards Update 2016-13 Financial Instruments-Credit Losses (Topic 326): Measurement of Credit Losses on Financial Instruments.",
        "label": "Accounting Standards Update201613 [Member]",
        "terseLabel": "ASU 2016-13"
       }
      }
     },
     "localname": "AccountingStandardsUpdate201613Member",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "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 And Loans Receivable [Line Items]",
        "terseLabel": "Accounts, Notes, Loans and Financing Receivable [Line Items]"
       }
      }
     },
     "localname": "AccountsNotesAndLoansReceivableLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesFinancialEffectOfLoanModificationsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember": {
     "auth_ref": [
      "r18",
      "r23",
      "r137",
      "r739",
      "r740",
      "r741"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accumulated other comprehensive (income) loss related to defined benefit plans attributable to the parent.",
        "label": "Accumulated Defined Benefit Plans Adjustment [Member]",
        "terseLabel": "Accumulated Defined Benefit Plans Adjustment Attributable to Parent"
       }
      }
     },
     "localname": "AccumulatedDefinedBenefitPlansAdjustmentMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax": {
     "auth_ref": [
      "r20",
      "r22",
      "r23",
      "r249",
      "r645",
      "r659",
      "r663"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 4.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accumulated change in equity from transactions and other events and circumstances from non-owner sources, net of tax effect, at period end. Excludes Net Income (Loss), and accumulated changes in equity from transactions resulting from investments by owners and distributions to owners. Includes foreign currency translation items, certain pension adjustments, unrealized gains and losses on certain investments in debt and equity securities, other than temporary impairment (OTTI) losses related to factors other than credit losses on available-for-sale and held-to-maturity debt securities that an entity does not intend to sell and it is not more likely than not that the entity will be required to sell before recovery of the amortized cost basis, as well as changes in the fair value of derivatives related to the effective portion of a designated cash flow hedge.",
        "label": "Accumulated Other Comprehensive Income Loss Net Of Tax",
        "terseLabel": "Accumulated other comprehensive loss",
        "totalLabel": "Accumulated Other Comprehensive Income (Loss), Net of Tax, Total"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated Other Comprehensive Income Loss Net Of Tax [Abstract]"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossNetOfTaxAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeMember": {
     "auth_ref": [
      "r19",
      "r23",
      "r137",
      "r588",
      "r654",
      "r655",
      "r739",
      "r740",
      "r741",
      "r751",
      "r752",
      "r753"
     ],
     "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": "Accumulated Other Comprehensive Income [Member]",
        "terseLabel": "Accumulated Other Comprehensive Loss"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdditionalPaidInCapitalCommonStock": {
     "auth_ref": [
      "r6"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value received from shareholders in common stock-related transactions that are in excess of par value or stated value and amounts received from other stock-related transactions. Includes only common stock transactions (excludes preferred stock transactions). May be called contributed capital, capital in excess of par, capital surplus, or paid-in capital.",
        "label": "Additional Paid In Capital Common Stock",
        "terseLabel": "Additional paid-in capital"
       }
      }
     },
     "localname": "AdditionalPaidInCapitalCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdditionalPaidInCapitalMember": {
     "auth_ref": [
      "r483",
      "r484",
      "r485",
      "r751",
      "r752",
      "r753",
      "r789"
     ],
     "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.",
        "label": "Additional Paid In Capital [Member]",
        "terseLabel": "Additional Paid-in Capital"
       }
      }
     },
     "localname": "AdditionalPaidInCapitalMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdjustmentsForNewAccountingPronouncementsAxis": {
     "auth_ref": [
      "r236",
      "r237",
      "r238",
      "r239",
      "r240",
      "r289",
      "r290",
      "r291",
      "r292",
      "r301",
      "r340",
      "r341",
      "r364",
      "r365",
      "r366",
      "r367",
      "r368",
      "r369",
      "r483",
      "r484",
      "r485",
      "r492",
      "r493",
      "r494",
      "r495",
      "r503",
      "r504",
      "r505",
      "r519",
      "r520",
      "r521",
      "r522",
      "r523",
      "r524",
      "r525",
      "r526",
      "r527",
      "r528",
      "r529",
      "r530",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552",
      "r553",
      "r560",
      "r561",
      "r564",
      "r565",
      "r566",
      "r567",
      "r583",
      "r584",
      "r585",
      "r586",
      "r587",
      "r588",
      "r625",
      "r626",
      "r627",
      "r652",
      "r653",
      "r654",
      "r655",
      "r656",
      "r657",
      "r658",
      "r659",
      "r660",
      "r661",
      "r662",
      "r663"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by amendment to accounting standards.",
        "label": "Adjustments For New Accounting Pronouncements [Axis]",
        "terseLabel": "Accounting Standards Update"
       }
      }
     },
     "localname": "AdjustmentsForNewAccountingPronouncementsAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AdjustmentsToAdditionalPaidInCapitalStockIssuedIssuanceCosts": {
     "auth_ref": [
      "r110",
      "r111"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of decrease in additional paid in capital (APIC) resulting from direct costs associated with issuing stock. Includes, but is not limited to, legal and accounting fees and direct costs associated with stock issues under a shelf registration.",
        "label": "Adjustments To Additional Paid In Capital Stock Issued Issuance Costs",
        "negatedLabel": "Issuance costs pursuant to acquisition of Delta Bancshares Company"
       }
      }
     },
     "localname": "AdjustmentsToAdditionalPaidInCapitalStockIssuedIssuanceCosts",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AdvancesFromFederalHomeLoanBanks": {
     "auth_ref": [
      "r215"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 3.0,
       "parentTag": "us-gaap_Liabilities",
       "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",
        "terseLabel": "FHLB borrowings",
        "totalLabel": "Advance from Federal Home Loan Bank, Total"
       }
      }
     },
     "localname": "AdvancesFromFederalHomeLoanBanks",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock": {
     "auth_ref": [
      "r66",
      "r767"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of allowance for credit loss on financing receivable.",
        "label": "Allowance For Credit Losses On Financing Receivables Table [Text Block]",
        "terseLabel": "Allowance for Credit Losses Based on Portfolio Segment"
       }
      }
     },
     "localname": "AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_AllowanceForLoanAndLeaseLossesWriteoffsNetAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Allowance For Loan And Lease Losses Writeoffs Net [Abstract]",
        "terseLabel": "Allowance for loan losses [Abstract]"
       }
      }
     },
     "localname": "AllowanceForLoanAndLeaseLossesWriteoffsNetAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AmortizationOfIntangibleAssets": {
     "auth_ref": [
      "r48",
      "r98",
      "r103"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 4.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 intangible assets",
        "verboseLabel": "For period 01/01/23 - 03/31/23"
       }
      }
     },
     "localname": "AmortizationOfIntangibleAssets",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfExpectedAmortizationExpenseDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AmortizationOfMortgageServicingRightsMSRs": {
     "auth_ref": [
      "r48",
      "r802"
     ],
     "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 M S Rs",
        "negatedLabel": "Mortgage servicing rights amortized"
       }
      }
     },
     "localname": "AmortizationOfMortgageServicingRightsMSRs",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount": {
     "auth_ref": [
      "r314"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) or earnings per unit (EPU) in the future that were not included in the computation of diluted EPS or EPU because to do so would increase EPS or EPU amounts or decrease loss per share or unit amounts for the period presented.",
        "label": "Antidilutive Securities Excluded From Computation Of Earnings Per Share Amount",
        "terseLabel": "Number of anti-dilutive shares excluded when computing diluted earnings per share"
       }
      }
     },
     "localname": "AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureEarningsPerShareAdditionalInformationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_AssetPledgedAsCollateralWithoutRightMember": {
     "auth_ref": [
      "r508",
      "r603",
      "r605"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Asset pledged as collateral for which secured party (transferee) does not have right to sell or repledge by contract or custom.",
        "label": "Asset Pledged As Collateral Without Right [Member]",
        "terseLabel": "Asset Pledged as Collateral without Right"
       }
      }
     },
     "localname": "AssetPledgedAsCollateralWithoutRightMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_Assets": {
     "auth_ref": [
      "r178",
      "r221",
      "r246",
      "r278",
      "r322",
      "r324",
      "r326",
      "r362",
      "r418",
      "r419",
      "r420",
      "r421",
      "r422",
      "r423",
      "r424",
      "r425",
      "r426",
      "r508",
      "r512",
      "r545",
      "r726",
      "r777",
      "r778",
      "r794"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets [Abstract]",
        "terseLabel": "Assets"
       }
      }
     },
     "localname": "AssetsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsFairValueDisclosure": {
     "auth_ref": [
      "r159"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails": {
       "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",
        "terseLabel": "Assets, Fair Value",
        "totalLabel": "Total assets",
        "verboseLabel": "Assets, Fair Value"
       }
      }
     },
     "localname": "AssetsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseLineItems": {
     "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": "Assets Sold Under Agreements To Repurchase [Line Items]",
        "terseLabel": "Assets Sold Under Agreements To Repurchase [Line Items]"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax": {
     "auth_ref": [
      "r84"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails": {
       "order": 0.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": "Available For Sale Debt Securities Accumulated Gross Unrealized Gain Before Tax",
        "terseLabel": "Gross Unrealized Gains"
       }
      }
     },
     "localname": "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax": {
     "auth_ref": [
      "r85"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails": {
       "order": 1.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": "Available For Sale Debt Securities Accumulated Gross Unrealized Loss Before Tax",
        "negatedLabel": "Gross Unrealized (Losses)"
       }
      }
     },
     "localname": "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis": {
     "auth_ref": [
      "r343",
      "r390"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails": {
       "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": "Available For Sale Debt Securities Amortized Cost Basis",
        "terseLabel": "Available-for-sale, amotized cost",
        "totalLabel": "Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleDebtSecuritiesAmortizedCostBasis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Available For Sale Securities [Abstract]",
        "terseLabel": "Available-for-sale: [Abstract]",
        "verboseLabel": "Available-for-sale securities:"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionQualitativeDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Available For Sale Securities Continuous Unrealized Loss Position Qualitative Disclosure [Abstract]",
        "terseLabel": "Available-for-sale Securities, Continuous Unrealized Loss Position, Qualitative Disclosure [Abstract]"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesContinuousUnrealizedLossPositionQualitativeDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue": {
     "auth_ref": [
      "r86",
      "r346",
      "r642"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtSecurities",
       "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": "Available For Sale Securities Debt Maturities After Five Through Ten Years Fair Value",
        "terseLabel": "Available-for-sale investments, After 5 through 10 years"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue": {
     "auth_ref": [
      "r86",
      "r345",
      "r641"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtSecurities",
       "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": "Available For Sale Securities Debt Maturities After One Through Five Years Fair Value",
        "terseLabel": "Available-for-sale investments, After 1 through 5 years"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue": {
     "auth_ref": [
      "r86",
      "r347",
      "r643"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtSecurities",
       "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": "Available For Sale Securities Debt Maturities After Ten Years Fair Value",
        "terseLabel": "Available-for-sale investments, After ten years"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Available For Sale Securities Debt Maturities Fair Value [Abstract]",
        "terseLabel": "Debt Securities, Available-for-sale, Fair Value, Fiscal Year Maturity [Abstract]"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue": {
     "auth_ref": [
      "r86",
      "r344",
      "r640"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtSecurities",
       "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": "Available For Sale Securities Debt Maturities Within One Year Fair Value",
        "terseLabel": "Available-for-sale investments, One year or less"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtSecurities": {
     "auth_ref": [
      "r83",
      "r342",
      "r390",
      "r630"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      },
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
       "weight": 1.0
      },
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 2.0,
       "parentTag": "us-gaap_Assets",
       "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": "Total available-for-sale securities",
        "terseLabel": "Available-for-sale, at fair value (amortized cost of $1,406,923 and $1,432,372 at March 31, 2023 and December 31, 2022, respectively)",
        "totalLabel": "Available-for-sale investments, Fair Value",
        "verboseLabel": "Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtSecurities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AwardTypeAxis": {
     "auth_ref": [
      "r454",
      "r455",
      "r456",
      "r458",
      "r459",
      "r460",
      "r461",
      "r462",
      "r463",
      "r464",
      "r465",
      "r466",
      "r467",
      "r468",
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r474",
      "r475",
      "r478",
      "r479",
      "r480",
      "r481",
      "r482"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of award under share-based payment arrangement.",
        "label": "Award Type [Axis]",
        "terseLabel": "Award Type"
       }
      }
     },
     "localname": "AwardTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "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"
       }
      }
     },
     "localname": "BalanceSheetLocationAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BalanceSheetLocationDomain": {
     "auth_ref": [
      "r145",
      "r149"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Location in the balance sheet (statement of financial position).",
        "label": "Balance Sheet Location [Domain]",
        "terseLabel": "Balance Sheet Location"
       }
      }
     },
     "localname": "BalanceSheetLocationDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_BankOwnedLifeInsurance": {
     "auth_ref": [
      "r804"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 12.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The carrying amount of a life insurance policy on an officer, executive or employee for which the reporting entity (a bank) is entitled to proceeds from the policy upon death of the insured or surrender of the insurance policy.",
        "label": "Bank Owned Life Insurance",
        "terseLabel": "Bank owned life insurance"
       }
      }
     },
     "localname": "BankOwnedLifeInsurance",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BankOwnedLifeInsuranceIncome": {
     "auth_ref": [
      "r203"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 6.0,
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Earnings on or other increases in the value of the cash surrender value of bank owned life insurance policies.",
        "label": "Bank Owned Life Insurance Income",
        "terseLabel": "Bank owned life insurance"
       }
      }
     },
     "localname": "BankOwnedLifeInsuranceIncome",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BasisOfAccountingPolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for basis of accounting, or basis of presentation, used to prepare the financial statements (for example, US Generally Accepted Accounting Principles, Other Comprehensive Basis of Accounting, IFRS).",
        "label": "Basis Of Accounting Policy Policy [Text Block]",
        "terseLabel": "Basis of Accounting and Consolidation"
       }
      }
     },
     "localname": "BasisOfAccountingPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_BusinessAcquisitionAcquireeDomain": {
     "auth_ref": [
      "r501",
      "r717",
      "r718"
     ],
     "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"
       }
      }
     },
     "localname": "BusinessAcquisitionAcquireeDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsTables",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_BusinessAcquisitionAxis": {
     "auth_ref": [
      "r122",
      "r123",
      "r501",
      "r717",
      "r718"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by business combination or series of individually immaterial business combinations.",
        "label": "Business Acquisition [Axis]",
        "terseLabel": "Business Acquisition"
       }
      }
     },
     "localname": "BusinessAcquisitionAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsTables",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessAcquisitionCostOfAcquiredEntityTransactionCosts": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of direct costs of the business combination including legal, accounting, and other costs incurred to consummate the business acquisition.",
        "label": "Business Acquisition Cost Of Acquired Entity Transaction Costs",
        "terseLabel": "Pre-tax of acquisition costs"
       }
      }
     },
     "localname": "BusinessAcquisitionCostOfAcquiredEntityTransactionCosts",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued": {
     "auth_ref": [
      "r132"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares of equity interests issued or issuable to acquire entity.",
        "label": "Business Acquisition Equity Interests Issued Or Issuable Number Of Shares Issued",
        "terseLabel": "Consideration payable in shares",
        "verboseLabel": "Consideration paid in shares"
       }
      }
     },
     "localname": "BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsTables",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired": {
     "auth_ref": [
      "r120"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of voting equity interests acquired at the acquisition date in the business combination.",
        "label": "Business Acquisition Percentage Of Voting Interests Acquired",
        "terseLabel": "Percentage of issued and outstanding shares acquired"
       }
      }
     },
     "localname": "BusinessAcquisitionPercentageOfVotingInterestsAcquired",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_BusinessAcquisitionProFormaEarningsPerShareBasic": {
     "auth_ref": [
      "r782",
      "r783"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The pro forma basic net income per share for a period as if the business combination or combinations had been completed at the beginning of a period.",
        "label": "Business Acquisition Pro Forma Earnings Per Share Basic",
        "terseLabel": "Basic"
       }
      }
     },
     "localname": "BusinessAcquisitionProFormaEarningsPerShareBasic",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_BusinessAcquisitionProFormaEarningsPerShareDiluted": {
     "auth_ref": [
      "r782",
      "r783"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The pro forma diluted net income per share for a period as if the business combination or combinations had been completed at the beginning of a period.",
        "label": "Business Acquisition Pro Forma Earnings Per Share Diluted",
        "terseLabel": "Diluted"
       }
      }
     },
     "localname": "BusinessAcquisitionProFormaEarningsPerShareDiluted",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_BusinessAcquisitionProFormaInformationTextBlock": {
     "auth_ref": [
      "r782",
      "r783"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of pro forma results of operations for a material business acquisition or series of individually immaterial business acquisitions that are material in the aggregate.",
        "label": "Business Acquisition Pro Forma Information [Text Block]",
        "terseLabel": "Unaudited Pro Forma Condensed Combined Financial Information"
       }
      }
     },
     "localname": "BusinessAcquisitionProFormaInformationTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_BusinessAcquisitionSharePrice": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Price of a single share of a number of saleable stocks paid or offered to be paid in a business combination.",
        "label": "Business Acquisition Share Price",
        "terseLabel": "Share Price"
       }
      }
     },
     "localname": "BusinessAcquisitionSharePrice",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss": {
     "auth_ref": [
      "r499",
      "r500"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The pro forma net Income or Loss for the period as if the business combination or combinations had been completed at the beginning of a period.",
        "label": "Business Acquisitions Pro Forma Net Income Loss",
        "totalLabel": "Net income"
       }
      }
     },
     "localname": "BusinessAcquisitionsProFormaNetIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationAcquisitionRelatedCosts": {
     "auth_ref": [
      "r119"
     ],
     "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": "Pre-tax of acquisition costs"
       }
      }
     },
     "localname": "BusinessCombinationAcquisitionRelatedCosts",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationConsiderationTransferred1": {
     "auth_ref": [
      "r129",
      "r130",
      "r131"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of consideration transferred, consisting of acquisition-date fair value of assets transferred by the acquirer, liabilities incurred by the acquirer, and equity interest issued by the acquirer.",
        "label": "Business Combination Consideration Transferred1",
        "totalLabel": "Total consideration paid"
       }
      }
     },
     "localname": "BusinessCombinationConsiderationTransferred1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationConsiderationTransferredAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination Consideration Transferred [Abstract]",
        "terseLabel": "Consideration paid"
       }
      }
     },
     "localname": "BusinessCombinationConsiderationTransferredAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable": {
     "auth_ref": [
      "r129",
      "r130"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_BusinessCombinationConsiderationTransferred1",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of equity interests of the acquirer, including instruments or interests issued or issuable in consideration for the business combination.",
        "label": "Business Combination Consideration Transferred Equity Interests Issued And Issuable",
        "terseLabel": "Common stock"
       }
      }
     },
     "localname": "BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationDisclosureTextBlock": {
     "auth_ref": [
      "r133",
      "r502"
     ],
     "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": "Business Combinations"
       }
      }
     },
     "localname": "BusinessCombinationDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinations"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets": {
     "auth_ref": [
      "r125"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of assets acquired at the acquisition date.",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Assets",
        "totalLabel": "Total assets acquired"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCapitalLeaseObligation": {
     "auth_ref": [
      "r125"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lease obligation assumed in business combination.",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Capital Lease Obligation",
        "terseLabel": "Lease liability"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCapitalLeaseObligation",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents": {
     "auth_ref": [
      "r125"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0
      }
     },
     "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 and due from banks"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsMarketableSecurities": {
     "auth_ref": [
      "r125"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investments in debt and equity securities, including, but not limited to, held-to-maturity, trading and available-for-sale 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 Marketable Securities",
        "terseLabel": "Investment securities"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsMarketableSecurities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedFinancialAssets": {
     "auth_ref": [
      "r124",
      "r125",
      "r169"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of financial assets (as defined) recognized as of the acquisition date.",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Financial Assets",
        "terseLabel": "Loans"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedFinancialAssets",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill": {
     "auth_ref": [
      "r125"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "order": 7.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of intangible assets, excluding goodwill, acquired at the acquisition date.",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Intangible Assets Other Than Goodwill",
        "terseLabel": "Intangible assets",
        "totalLabel": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Intangible Assets, Other than Goodwill, Total",
        "verboseLabel": "Intangible asset fair value"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities": {
     "auth_ref": [
      "r125"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liabilities assumed at the acquisition date.",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Liabilities",
        "totalLabel": "Total liabilities assumed"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet": {
     "auth_ref": [
      "r124",
      "r125"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount recognized as of the acquisition date for the identifiable assets acquired in excess of (less than) the aggregate liabilities assumed.",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Net",
        "totalLabel": "Net assets acquired"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment": {
     "auth_ref": [
      "r124",
      "r125"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0
      }
     },
     "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",
        "totalLabel": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Property, Plant, and Equipment, Total"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combinations [Abstract]"
       }
      }
     },
     "localname": "BusinessCombinationsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessCombinationsPolicy": {
     "auth_ref": [
      "r117"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for completed business combinations (purchase method, acquisition method or combination of entities under common control). This accounting policy may include a general discussion of the purchase method or acquisition method of accounting (including for example, the treatment accorded contingent consideration, the identification of assets and liabilities, the purchase price allocation process, how the fair values of acquired assets and liabilities are determined) and the entity's specific application thereof. An entity that acquires another entity in a leveraged buyout transaction generally discloses the accounting policy followed by the acquiring entity in determining the basis used to value its interest in the acquired entity, and the rationale for that accounting policy.",
        "label": "Business Combinations Policy",
        "terseLabel": "Acquisitions"
       }
      }
     },
     "localname": "BusinessCombinationsPolicy",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CarryingReportedAmountFairValueDisclosureMember": {
     "auth_ref": [
      "r167",
      "r168"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measured as reported on the statement of financial position (balance sheet).",
        "label": "Carrying Reported Amount Fair Value Disclosure [Member]",
        "terseLabel": "Carrying Amount"
       }
      }
     },
     "localname": "CarryingReportedAmountFairValueDisclosureMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CashAcquiredFromAcquisition": {
     "auth_ref": [
      "r35"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 12.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the acquisition of business during the period (for example, cash that was held by the acquired business).",
        "label": "Cash Acquired From Acquisition",
        "terseLabel": "Net cash provided by acquisition"
       }
      }
     },
     "localname": "CashAcquiredFromAcquisition",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashAndDueFromBanksAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash And Due From Banks [Abstract]",
        "terseLabel": "Cash and due from banks:"
       }
      }
     },
     "localname": "CashAndDueFromBanksAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CashCashEquivalentsAndFederalFundsSold": {
     "auth_ref": [
      "r183"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 0.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The sum of cash and cash equivalents plus Federal Funds Sold. Cash and cash equivalents consist of short term, highly liquid investments that are readily convertible to known amounts of cash and are so near their maturity that they present negligible risk of changes in value due to changes in interest rates -- usually with an original maturity less than 90 days.",
        "label": "Cash Cash Equivalents And Federal Funds Sold",
        "totalLabel": "Cash and cash equivalents"
       }
      }
     },
     "localname": "CashCashEquivalentsAndFederalFundsSold",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations": {
     "auth_ref": [
      "r44",
      "r50",
      "r56"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; including, but not limited to, 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 Including Disposal Group And Discontinued Operations",
        "periodEndLabel": "Cash and cash equivalents at end of period",
        "periodStartLabel": "Cash and cash equivalents at beginning of period",
        "totalLabel": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Including Disposal Group and Discontinued Operations, Total"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect": {
     "auth_ref": [
      "r44",
      "r170"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "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": "Increase in cash and cash equivalents"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash Flow Noncash Investing And Financing Activities Disclosure [Abstract]",
        "terseLabel": "Supplemental disclosures of noncash investing and financing activities"
       }
      }
     },
     "localname": "CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CertificatesOfDepositAtCarryingValue": {
     "auth_ref": [
      "r737"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A savings certificate entitling the Entity (that is, bearer) to receive interest at an established maturity date, based upon a fixed interest rate. A certificate of deposit may be issued in any denomination. Certificates of deposit are generally issued by commercial banks and, therefore, insured by the FDIC (up to the prescribed limit). Certificates of deposit generally restrict holders from withdrawing funds on demand without the incurrence of penalties. Generally, only certificates of deposit with original maturities of three months or less qualify as cash equivalents. Original maturity means original maturity to the entity holding the investment. As a related example, both a three-month US Treasury bill and a three-year Treasury note purchased three months from maturity qualify as cash equivalents. However, a Treasury note purchased three-years ago does not become a cash equivalent when its remaining maturity is three months.",
        "label": "Certificates Of Deposit At Carrying Value",
        "terseLabel": "Certificates of deposit"
       }
      }
     },
     "localname": "CertificatesOfDepositAtCarryingValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1": {
     "auth_ref": [
      "r156"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of the increase (decrease) in fair value of the hedged item in a fair value hedge recognized in the income statement.",
        "label": "Change In Unrealized Gain Loss On Hedged Item In Fair Value Hedge1",
        "terseLabel": "Gain (Loss) on Hedged Item"
       }
      }
     },
     "localname": "ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CollateralAxis": {
     "auth_ref": [
      "r700"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by category of collateral or no collateral, from lender's perspective.",
        "label": "Collateral [Axis]",
        "terseLabel": "Collateral Held"
       }
      }
     },
     "localname": "CollateralAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CollateralDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Category of collateral or no collateral, from lender's perspective.",
        "label": "Collateral [Domain]",
        "terseLabel": "Collateral Held"
       }
      }
     },
     "localname": "CollateralDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommercialLoanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A loan, whether secured or unsecured, to a company for purposes such as seasonal working capital needs, inventory financing, equipment purchases and acquisitions.",
        "label": "Commercial Loan [Member]",
        "verboseLabel": "Commercial and Industrial Loans"
       }
      }
     },
     "localname": "CommercialLoanMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommercialRealEstateMember": {
     "auth_ref": [
      "r701",
      "r781"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Property that is solely used for business purposes.",
        "label": "Commercial Real Estate [Member]",
        "terseLabel": "Commercial Real Estate"
       }
      }
     },
     "localname": "CommercialRealEstateMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommonStockDividendsPerShareDeclared": {
     "auth_ref": [
      "r111"
     ],
     "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 per common share"
       }
      }
     },
     "localname": "CommonStockDividendsPerShareDeclared",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_CommonStockMember": {
     "auth_ref": [
      "r751",
      "r752",
      "r789"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock that is subordinate to all other stock of the issuer.",
        "label": "Common Stock [Member]",
        "terseLabel": "Common Stock"
       }
      }
     },
     "localname": "CommonStockMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommonStockParOrStatedValuePerShare": {
     "auth_ref": [
      "r5"
     ],
     "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 (in dollars per share)"
       }
      }
     },
     "localname": "CommonStockParOrStatedValuePerShare",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_CommonStockSharesAuthorized": {
     "auth_ref": [
      "r5"
     ],
     "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": "Common stock, authorized (in shares)"
       }
      }
     },
     "localname": "CommonStockSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockSharesIssued": {
     "auth_ref": [
      "r5"
     ],
     "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": "Common stock, issued (in shares)"
       }
      }
     },
     "localname": "CommonStockSharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockSharesOutstanding": {
     "auth_ref": [
      "r5",
      "r110"
     ],
     "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": "Common Stock, Shares, Outstanding, Ending Balance",
        "periodStartLabel": "Common Stock, Shares, Outstanding, Beginning Balance",
        "terseLabel": "Common stock, outstanding (in shares)"
       }
      }
     },
     "localname": "CommonStockSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockValue": {
     "auth_ref": [
      "r5",
      "r726"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 0.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",
        "terseLabel": "Common stock ($4 par value; authorized 30,000,000 shares; issued 21,158,977 and 21,091,466 shares in 2023 and 2022, respectively; outstanding 20,519,717 and 20,452,376 shares in 2023 and 2022, respectively)"
       }
      }
     },
     "localname": "CommonStockValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ComprehensiveIncomeNetOfTax": {
     "auth_ref": [
      "r25",
      "r262",
      "r264",
      "r269",
      "r631",
      "r646"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfComprehensiveIncomeLossUnaudited": {
       "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, attributable to parent entity. Excludes changes in equity resulting from investments by owners and distributions to owners.",
        "label": "Comprehensive Income Net Of Tax",
        "totalLabel": "Comprehensive income/(loss)"
       }
      }
     },
     "localname": "ComprehensiveIncomeNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfComprehensiveIncomeLossUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "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": "Accumulated Other Comprehensive Income"
       }
      }
     },
     "localname": "ComprehensiveIncomePolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ConstructionLoansMember": {
     "auth_ref": [
      "r729"
     ],
     "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]",
        "verboseLabel": "Construction and Land Development"
       }
      }
     },
     "localname": "ConstructionLoansMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ConsumerLoanMember": {
     "auth_ref": [
      "r703"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loan or extension of credit for personal, family, or household use excluding real estate.",
        "label": "Consumer Loan [Member]",
        "terseLabel": "Consumer Loans"
       }
      }
     },
     "localname": "ConsumerLoanMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails"
     ],
     "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]",
        "terseLabel": "Consumer Loans"
       }
      }
     },
     "localname": "ConsumerPortfolioSegmentMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesFinancialEffectOfLoanModificationsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ContractualInterestRateReductionMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loan modification for a reduction of contractual interest rate.",
        "label": "Contractual Interest Rate Reduction [Member]",
        "terseLabel": "Interest Rate Reduction"
       }
      }
     },
     "localname": "ContractualInterestRateReductionMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ConversionOfStockSharesIssued1": {
     "auth_ref": [
      "r53",
      "r54",
      "r55"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of new shares issued in the conversion of stock in a noncash (or part noncash) transaction. Noncash is defined as transactions during a period that do not result in cash receipts or cash payments in the period. \"Part noncash\" refers to that portion of the transaction not resulting in cash receipts or cash payments in the period.",
        "label": "Conversion of Stock, Shares Issued",
        "terseLabel": "Conversion of common stock"
       }
      }
     },
     "localname": "ConversionOfStockSharesIssued1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CoreDepositsMember": {
     "auth_ref": [
      "r216"
     ],
     "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 Deposit Intangibles"
       }
      }
     },
     "localname": "CoreDepositsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CreditQualityInformationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit Quality Information [Abstract]",
        "terseLabel": "Credit Quality Information [Abstract]"
       }
      }
     },
     "localname": "CreditQualityInformationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CustomerListsMember": {
     "auth_ref": [
      "r127"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information about customers such as their name and contact information; it may also be an extensive database that includes other information about the customers such as their order history and demographic information.",
        "label": "Customer Lists [Member]",
        "terseLabel": "Other Intangibles",
        "verboseLabel": "Customer List Intangibles"
       }
      }
     },
     "localname": "CustomerListsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtAndEquitySecuritiesGainLoss": {
     "auth_ref": [
      "r29",
      "r30"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax",
       "weight": -1.0
      },
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 3.0,
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0
      }
     },
     "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",
        "terseLabel": "Securities losses, net",
        "totalLabel": "Debt and Equity Securities, Gain (Loss), Total",
        "verboseLabel": "Realized losses on available-for-sale securities"
       }
      }
     },
     "localname": "DebtAndEquitySecuritiesGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unrealized gain (loss) on investment in debt and equity securities.",
        "label": "Debt And Equity Securities Unrealized Gain Loss",
        "negatedLabel": "Loss on investment securities, net",
        "totalLabel": "Debt and Equity Securities, Unrealized Gain (Loss), Total"
       }
      }
     },
     "localname": "DebtAndEquitySecuritiesUnrealizedGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtInstrumentAxis": {
     "auth_ref": [
      "r1",
      "r2",
      "r3",
      "r179",
      "r180",
      "r219",
      "r284",
      "r427",
      "r428",
      "r429",
      "r430",
      "r431",
      "r432",
      "r433",
      "r434",
      "r435",
      "r436",
      "r437",
      "r438",
      "r439",
      "r440",
      "r441",
      "r442",
      "r563",
      "r708",
      "r709",
      "r710",
      "r711",
      "r712",
      "r749"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of debt instrument, including, but not limited to, draws against credit facilities.",
        "label": "Debt Instrument [Axis]",
        "terseLabel": "Debt Instrument"
       }
      }
     },
     "localname": "DebtInstrumentAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentFairValue": {
     "auth_ref": [
      "r435",
      "r544",
      "r709",
      "r710"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of debt instrument payable, including, but not limited to, notes payable and loans payable.",
        "label": "Debt Instrument Fair Value",
        "terseLabel": "Subordinated debt, net",
        "totalLabel": "Debt Instrument, Fair Value Disclosure, Total"
       }
      }
     },
     "localname": "DebtInstrumentFairValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtInstrumentNameDomain": {
     "auth_ref": [
      "r12",
      "r284",
      "r427",
      "r428",
      "r429",
      "r430",
      "r431",
      "r432",
      "r433",
      "r434",
      "r435",
      "r436",
      "r437",
      "r438",
      "r439",
      "r440",
      "r441",
      "r442",
      "r563",
      "r708",
      "r709",
      "r710",
      "r711",
      "r712",
      "r749"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The name for the particular debt instrument or borrowing that distinguishes it from other debt instruments or borrowings, including draws against credit facilities.",
        "label": "Debt Instrument Name [Domain]",
        "terseLabel": "Debt Instrument, Name"
       }
      }
     },
     "localname": "DebtInstrumentNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtSecurities": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after allowance for credit loss, of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), investment in debt security measured at amortized cost (held-to-maturity), and investment in debt security measured at fair value with change in fair value recognized in net income (trading).",
        "label": "Debt Securities",
        "terseLabel": "Securities pledged to Repurchase Agreements",
        "totalLabel": "Debt Securities, Total"
       }
      }
     },
     "localname": "DebtSecurities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger": {
     "auth_ref": [
      "r360",
      "r395",
      "r705"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
       "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), 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 Position12 Months Or Longer",
        "terseLabel": "Available-for-sale, 12 months or longer, Fair Value",
        "verboseLabel": "Available-for-sale, 12 months or longer, Fair Value"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss": {
     "auth_ref": [
      "r360",
      "r395"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
       "weight": 1.0
      }
     },
     "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 Position12 Months Or Longer Accumulated Loss",
        "negatedLabel": "Available-for-sale, 12 months or longer, Unrealized losses",
        "terseLabel": "12 months or longer, unrealized losses"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months": {
     "auth_ref": [
      "r360",
      "r395",
      "r705"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
       "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), 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 Than12 Months",
        "terseLabel": "Available-for-sale, Less than 12 months, Fair Value"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss": {
     "auth_ref": [
      "r360",
      "r395"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
       "weight": 1.0
      }
     },
     "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 Than12 Months Accumulated Loss",
        "negatedLabel": "Available-for-sale, Less than 12 months, Unrealized Losses"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleRestricted": {
     "auth_ref": [
      "r603",
      "r666",
      "r667"
     ],
     "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": "Debt securities, available-for-sale, restricted"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleRestricted",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleTable": {
     "auth_ref": [
      "r361"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition": {
     "auth_ref": [
      "r357",
      "r391",
      "r705"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "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",
        "totalLabel": "Available-for-sale, Total Fair Value"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss": {
     "auth_ref": [
      "r358",
      "r392"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "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",
        "negatedTotalLabel": "Available-for-sale, Total Unrealized Losses",
        "totalLabel": "Debt Securities, Available-for-Sale, Unrealized Loss Position, Accumulated Loss, Total"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionNumberOfPositions": {
     "auth_ref": [
      "r359",
      "r393"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of investments in debt securities 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 Number Of Positions",
        "terseLabel": "Number of securities in unrealized loss positions"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPositionNumberOfPositions",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "us-gaap_DeferredCompensationArrangementWithIndividualSharesIssued": {
     "auth_ref": [
      "r115"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares issued pursuant to the terms of a deferred compensation arrangement.",
        "label": "Deferred Compensation Arrangement With Individual Shares Issued",
        "terseLabel": "Stock issued during period, shares, deferred compensation"
       }
      }
     },
     "localname": "DeferredCompensationArrangementWithIndividualSharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_DeferredCompensationShareBasedPaymentsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred compensation arrangements (such as stock or unit options and share or unit awards) that are equity-based payments with individual employees. The arrangements are generally based on employment contracts between the entity and one or more selected officers or key employees, and contain a promise by the employer to pay certain amounts or benefits at designated future dates, upon compliance with stipulated requirements. This type of arrangement is distinguished from broader based employee benefit plans as it is usually tailored to the employee. Other \"sub-members\" can be added as necessary.",
        "label": "Deferred Compensation Share Based Payments [Member]",
        "terseLabel": "Deferred Compensation"
       }
      }
     },
     "localname": "DeferredCompensationShareBasedPaymentsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DeferredIncomeTaxAssetsNet": {
     "auth_ref": [
      "r488",
      "r489"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 14.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "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, with jurisdictional netting.",
        "label": "Deferred Income Tax Assets, Net",
        "terseLabel": "'Deferred tax asset, net"
       }
      }
     },
     "localname": "DeferredIncomeTaxAssetsNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_Deposits": {
     "auth_ref": [
      "r184"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 0.0,
       "parentTag": "us-gaap_Liabilities",
       "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",
        "terseLabel": "Deposits",
        "totalLabel": "Total deposits"
       }
      }
     },
     "localname": "Deposits",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepositsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deposits [Abstract]",
        "terseLabel": "Deposits:"
       }
      }
     },
     "localname": "DepositsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DepositsFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of deposit liabilities held by the entity, including, but not limited to, foreign and domestic, interest and noninterest bearing, demand deposits, saving deposits, negotiable orders of withdrawal (NOW) and time deposits.",
        "label": "Deposits Fair Value Disclosure",
        "terseLabel": "Deposits"
       }
      }
     },
     "localname": "DepositsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepreciationAmortizationAndAccretionNet": {
     "auth_ref": [
      "r48"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate net amount of depreciation, amortization, and accretion recognized during an accounting period. As a noncash item, the net amount is added back to net income when calculating cash provided by or used in operations using the indirect method.",
        "label": "Depreciation Amortization And Accretion Net",
        "terseLabel": "Depreciation, amortization and accretion, net",
        "totalLabel": "Depreciation, Amortization and Accretion, Net, Total"
       }
      }
     },
     "localname": "DepreciationAmortizationAndAccretionNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeAssetNotionalAmount": {
     "auth_ref": [
      "r785",
      "r786",
      "r787"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Nominal or face amount used to calculate payments on the derivative asset.",
        "label": "Derivative Asset Notional Amount",
        "terseLabel": "Derivative Assets, Notional Amount"
       }
      }
     },
     "localname": "DerivativeAssetNotionalAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeAverageRemainingMaturity1": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Average remaining period until maturity of the derivative contract, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Derivative Average Remaining Maturity1",
        "terseLabel": "Derivative, Weighted Average Remaining Maturity (Years)"
       }
      }
     },
     "localname": "DerivativeAverageRemainingMaturity1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "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 Type [Domain]",
        "terseLabel": "Derivative Contract"
       }
      }
     },
     "localname": "DerivativeContractTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DerivativeFairValueOfDerivativeAsset": {
     "auth_ref": [
      "r17",
      "r147",
      "r172",
      "r251",
      "r690"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value, before 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 elected not to be offset. Excludes assets not subject to a master netting arrangement.",
        "label": "Derivative Fair Value Of Derivative Asset",
        "terseLabel": "Derivative Assets, Estimated Value"
       }
      }
     },
     "localname": "DerivativeFairValueOfDerivativeAsset",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeFairValueOfDerivativeLiability": {
     "auth_ref": [
      "r17",
      "r147",
      "r172",
      "r251",
      "r690"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value, before 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 elected not to be offset. Excludes liabilities not subject to a master netting arrangement.",
        "label": "Derivative Fair Value Of Derivative Liability",
        "negatedLabel": "Derivative Liability, Estimated Value"
       }
      }
     },
     "localname": "DerivativeFairValueOfDerivativeLiability",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeGainLossOnDerivativeNet": {
     "auth_ref": [
      "r788"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in the fair value of derivatives recognized in the income statement.",
        "label": "Derivative Gain Loss On Derivative Net",
        "terseLabel": "Gain (Loss) on Derivative",
        "totalLabel": "Derivative, Gain (Loss) on Derivative, Net, Total"
       }
      }
     },
     "localname": "DerivativeGainLossOnDerivativeNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeGainLossStatementOfIncomeOrComprehensiveIncomeExtensibleEnumeration": {
     "auth_ref": [
      "r788"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates line item in statement of income or comprehensive income that includes gain (loss) from derivative.",
        "label": "Derivative Gain Loss Statement Of Income Or Comprehensive Income Extensible Enumeration",
        "terseLabel": "Derivative, Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration]"
       }
      }
     },
     "localname": "DerivativeGainLossStatementOfIncomeOrComprehensiveIncomeExtensibleEnumeration",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails"
     ],
     "xbrltype": "enumerationSetItemType"
    },
    "us-gaap_DerivativeInstrumentRiskAxis": {
     "auth_ref": [
      "r146",
      "r148",
      "r151",
      "r152",
      "r690"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of derivative contract.",
        "label": "Derivative Instrument Risk [Axis]",
        "terseLabel": "Derivative Instrument"
       }
      }
     },
     "localname": "DerivativeInstrumentRiskAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Instruments And Hedging Activities Disclosure [Abstract]"
       }
      }
     },
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock": {
     "auth_ref": [
      "r158",
      "r518"
     ],
     "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": "Derivatives"
       }
      }
     },
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivatives"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis": {
     "auth_ref": [
      "r143",
      "r146",
      "r151"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of hedging relationship.",
        "label": "Derivative Instruments Gain Loss By Hedging Relationship [Axis]",
        "terseLabel": "Hedging Relationship"
       }
      }
     },
     "localname": "DerivativeInstrumentsGainLossByHedgingRelationshipAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeLiabilityNotionalAmount": {
     "auth_ref": [
      "r785",
      "r786",
      "r787"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Nominal or face amount used to calculate payments on the derivative liability.",
        "label": "Derivative Liability Notional Amount",
        "terseLabel": "Derivative Liability, Notional Amount"
       }
      }
     },
     "localname": "DerivativeLiabilityNotionalAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeTable": {
     "auth_ref": [
      "r139",
      "r140",
      "r141",
      "r143",
      "r144",
      "r150",
      "r151",
      "r153",
      "r154",
      "r157",
      "r518"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DesignatedAsHedgingInstrumentMember": {
     "auth_ref": [
      "r143"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DisposalGroupHeldforsaleNotDiscontinuedOperationsMember": {
     "auth_ref": [
      "r106",
      "r108",
      "r241"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disposal group that is classified as held-for-sale. Excludes disposals classified as discontinued operations.",
        "label": "Disposal Group Heldforsale Not Discontinued Operations [Member]",
        "terseLabel": "Foreclosed Assets Held-for-sale"
       }
      }
     },
     "localname": "DisposalGroupHeldforsaleNotDiscontinuedOperationsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_Dividends": {
     "auth_ref": [
      "r111",
      "r214"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of paid and unpaid cash, stock, and paid-in-kind (PIK) dividends declared, for example, but not limited to, common and preferred stock.",
        "label": "Dividends",
        "terseLabel": "Dividends",
        "totalLabel": "Dividends, Total"
       }
      }
     },
     "localname": "Dividends",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DividendsCommonStockCash": {
     "auth_ref": [
      "r111"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of paid and unpaid common stock dividends declared with the form of settlement in cash.",
        "label": "Dividends Common Stock Cash",
        "negatedLabel": "Cash dividends on common stock"
       }
      }
     },
     "localname": "DividendsCommonStockCash",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DoubtfulMember": {
     "auth_ref": [
      "r71",
      "r769"
     ],
     "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": "Doubtful"
       }
      }
     },
     "localname": "DoubtfulMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DueFromBanks": {
     "auth_ref": [
      "r182"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 0.0,
       "parentTag": "us-gaap_CashCashEquivalentsAndFederalFundsSold",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A bank's noninterest bearing demand deposits in other banks (such as correspondents).",
        "label": "Due From Banks",
        "terseLabel": "Non-interest bearing"
       }
      }
     },
     "localname": "DueFromBanks",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EarningsPerShareAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share [Abstract]",
        "terseLabel": "Per share data:"
       }
      }
     },
     "localname": "EarningsPerShareAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareBasic": {
     "auth_ref": [
      "r270",
      "r293",
      "r294",
      "r295",
      "r296",
      "r297",
      "r302",
      "r304",
      "r311",
      "r312",
      "r313",
      "r317",
      "r528",
      "r529",
      "r632",
      "r647",
      "r694"
     ],
     "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 net income per common share",
        "totalLabel": "Earnings Per Share, Basic, Total",
        "verboseLabel": "Basic earnings per common share"
       }
      }
     },
     "localname": "EarningsPerShareBasic",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerShareBasicAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share Basic [Abstract]",
        "terseLabel": "Basic Net Income per Common Share Available to Common Stockholders:"
       }
      }
     },
     "localname": "EarningsPerShareBasicAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareDiluted": {
     "auth_ref": [
      "r270",
      "r293",
      "r294",
      "r295",
      "r296",
      "r297",
      "r304",
      "r311",
      "r312",
      "r313",
      "r317",
      "r528",
      "r529",
      "r632",
      "r647",
      "r694"
     ],
     "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 net income per common share",
        "totalLabel": "Earnings Per Share, Diluted, Total",
        "verboseLabel": "Diluted earnings per common share"
       }
      }
     },
     "localname": "EarningsPerShareDiluted",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerShareDilutedAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share Diluted [Abstract]",
        "terseLabel": "Diluted Net Income per Common Share Available to Common Stockholders:"
       }
      }
     },
     "localname": "EarningsPerShareDilutedAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareProFormaAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share Pro Forma [Abstract]",
        "terseLabel": "Earnings per share"
       }
      }
     },
     "localname": "EarningsPerShareProFormaAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareTextBlock": {
     "auth_ref": [
      "r314",
      "r315",
      "r316",
      "r318"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for earnings per share.",
        "label": "Earnings Per Share [Text Block]",
        "terseLabel": "Earnings Per Share"
       }
      }
     },
     "localname": "EarningsPerShareTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureEarningsPerShare"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate": {
     "auth_ref": [
      "r279",
      "r491",
      "r497"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of domestic federal statutory tax rate applicable to pretax income (loss).",
        "label": "Effective Income Tax Rate Reconciliation At Federal Statutory Income Tax Rate",
        "terseLabel": "Tax rate used to calculate tax-equivalent yields (in hundredths)"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EmployeeStockOptionMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share-based payment arrangement granting right, subject to vesting and other restrictions, to purchase or sell certain number of shares at predetermined price for specified period of time.",
        "label": "Employee Stock Option [Member]",
        "terseLabel": "Stock Options"
       }
      }
     },
     "localname": "EmployeeStockOptionMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EmployeeStockOwnershipPlanESOPPolicy": {
     "auth_ref": [
      "r116"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for ESOP transactions, including the method of measuring compensation, the classification of dividends on ESOP shares, and the treatment of ESOP shares for EPS computations. If the employer has both old ESOP shares for which it does not adopt new guidance and new ESOP shares for which new guidance is required, these disclosures are required for both blocks of shares.",
        "label": "Employee Stock Ownership Plan E S O P Policy",
        "terseLabel": "Employee Stock Purchase Plan"
       }
      }
     },
     "localname": "EmployeeStockOwnershipPlanESOPPolicy",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_EquityComponentDomain": {
     "auth_ref": [
      "r110",
      "r238",
      "r265",
      "r266",
      "r267",
      "r285",
      "r286",
      "r287",
      "r290",
      "r298",
      "r300",
      "r319",
      "r367",
      "r445",
      "r483",
      "r484",
      "r485",
      "r494",
      "r495",
      "r527",
      "r554",
      "r555",
      "r556",
      "r557",
      "r558",
      "r559",
      "r588",
      "r654",
      "r655",
      "r656"
     ],
     "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"
       }
      }
     },
     "localname": "EquityComponentDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EquitySecuritiesFvNi": {
     "auth_ref": [
      "r247",
      "r542",
      "r689"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      },
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 4.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in equity security measured at fair value with change in fair value recognized in net income (FV-NI), classified as current.",
        "label": "Equity Securities Fv Ni",
        "terseLabel": "Equity securities, at fair value",
        "verboseLabel": "Equity securities"
       }
      }
     },
     "localname": "EquitySecuritiesFvNi",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EstimateOfFairValueFairValueDisclosureMember": {
     "auth_ref": [
      "r435",
      "r544",
      "r709",
      "r710"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measured as an estimate of fair value.",
        "label": "Estimate Of Fair Value Fair Value Disclosure [Member]",
        "terseLabel": "Fair Value"
       }
      }
     },
     "localname": "EstimateOfFairValueFairValueDisclosureMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ExtendedMaturityMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loan modification for an extension of the term of a loan in which it must be paid.",
        "label": "Extended Maturity [Member]",
        "terseLabel": "Term Extension Modifications"
       }
      }
     },
     "localname": "ExtendedMaturityMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueAssetLiabilityRecurringBasisStillHeldUnrealizedGainLoss": {
     "auth_ref": [
      "r538"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unrealized gain (loss) recognized in income from asset (liability) measured at fair value on recurring basis using unobservable input (level 3) and still held.",
        "label": "Fair Value Asset Liability Recurring Basis Still Held Unrealized Gain Loss",
        "terseLabel": "Total gains or losses for the period included in net income attributable to the change in unrealized gains or losses related to assets and liabilities still held at the reporting date"
       }
      }
     },
     "localname": "FairValueAssetLiabilityRecurringBasisStillHeldUnrealizedGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems": {
     "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 Valuation Techniques [Line Items]",
        "terseLabel": "Fair Value Measurement Inputs and Valuation Techniques [Line Items]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable": {
     "auth_ref": [
      "r161"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about input and valuation technique used to measure fair value and change in valuation approach and technique for each separate class of asset and liability measured on recurring and nonrecurring basis.",
        "label": "Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis Valuation Techniques [Table]",
        "terseLabel": "Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis Valuation Techniques [Table]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock": {
     "auth_ref": [
      "r161"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of input and valuation technique used to measure fair value and change in valuation approach and technique for each separate class of asset and liability measured on recurring and nonrecurring basis.",
        "label": "Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis Valuation Techniques Table [Text Block]",
        "terseLabel": "Significant Unobservable Inputs Used in Valuation of Level 3 Fair Value Measurements"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringAndNonrecurringBasisTableTextBlock": {
     "auth_ref": [
      "r159",
      "r160"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of assets measured at fair value measured on a recurring or nonrecurring basis. Includes, but is not limited to, fair value measurements recorded and the reasons for the measurements, level within the fair value hierarchy in which the fair value measurements are categorized and transfers between levels 1 and 2.",
        "label": "Fair Value Assets Measured On Recurring And Nonrecurring Basis Table [Text Block]",
        "terseLabel": "Assets Measured at Fair Value on a Nonrecurring Basis"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringAndNonrecurringBasisTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain": {
     "auth_ref": [
      "r162"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class of asset.",
        "label": "Fair Value Assets Measured On Recurring Basis Unobservable Input Reconciliation By Asset Class [Domain]",
        "terseLabel": "Asset Class"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward": {
     "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": "Fair Value Assets Measured On Recurring Basis Unobservable Input Reconciliation Calculation Roll Forward",
        "terseLabel": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward]"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock": {
     "auth_ref": [
      "r162",
      "r164"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the fair value measurement of assets using significant unobservable inputs (Level 3), a reconciliation of the beginning and ending balances, separately presenting changes during the period attributable to the following: (1) total gains or losses for the period (realized and unrealized), segregating those gains or losses included in earnings (or changes in net assets) and gains or losses recognized in other comprehensive income (loss), and a description of where those gains or losses included in earnings (or changes in net assets) are reported in the statement of income (or activities); (2) purchases, sales, issues, and settlements (each type disclosed separately); and (3) transfers in and transfers out of Level 3 (for example, transfers due to changes in the observability of significant inputs), by class of asset.",
        "label": "Fair Value Assets Measured On Recurring Basis Unobservable Input Reconciliation [Text Block]",
        "terseLabel": "Fair Value of Assets Measured on a Recurring Basis Using Significant Unobservable Inputs"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesTables"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByAssetClassAxis": {
     "auth_ref": [
      "r159",
      "r164"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by class of asset.",
        "label": "Fair Value By Asset Class [Axis]",
        "terseLabel": "Asset Class"
       }
      }
     },
     "localname": "FairValueByAssetClassAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByBalanceSheetGroupingTable": {
     "auth_ref": [
      "r159",
      "r167",
      "r168"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByBalanceSheetGroupingTextBlock": {
     "auth_ref": [
      "r159",
      "r167"
     ],
     "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 [Text Block]",
        "terseLabel": "Summary of Estimated Fair Values of Company Financial Instruments"
       }
      }
     },
     "localname": "FairValueByBalanceSheetGroupingTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueByFairValueHierarchyLevelAxis": {
     "auth_ref": [
      "r435",
      "r447",
      "r448",
      "r449",
      "r450",
      "r451",
      "r452",
      "r532",
      "r592",
      "r593",
      "r594",
      "r709",
      "r710",
      "r714",
      "r715",
      "r716"
     ],
     "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 By Fair Value Hierarchy Level [Axis]",
        "terseLabel": "Fair Value Hierarchy and NAV"
       }
      }
     },
     "localname": "FairValueByFairValueHierarchyLevelAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByMeasurementBasisAxis": {
     "auth_ref": [
      "r159",
      "r165",
      "r435",
      "r709",
      "r710"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by measurement basis.",
        "label": "Fair Value By Measurement Basis [Axis]",
        "terseLabel": "Measurement Basis"
       }
      }
     },
     "localname": "FairValueByMeasurementBasisAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByMeasurementFrequencyAxis": {
     "auth_ref": [
      "r531",
      "r532",
      "r533",
      "r534",
      "r541"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by measurement frequency.",
        "label": "Fair Value By Measurement Frequency [Axis]",
        "terseLabel": "Measurement Frequency"
       }
      }
     },
     "localname": "FairValueByMeasurementFrequencyAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosureItemAmountsDomain": {
     "auth_ref": [
      "r435",
      "r709",
      "r710"
     ],
     "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 Disclosure Item Amounts [Domain]",
        "terseLabel": "Fair Value Measurement"
       }
      }
     },
     "localname": "FairValueDisclosureItemAmountsDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueDisclosuresAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Disclosures [Abstract]"
       }
      }
     },
     "localname": "FairValueDisclosuresAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosuresTextBlock": {
     "auth_ref": [
      "r540"
     ],
     "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]",
        "terseLabel": "Fair Value of Assets and Liabilities"
       }
      }
     },
     "localname": "FairValueDisclosuresTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilities"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueHedgingMember": {
     "auth_ref": [
      "r142"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A hedge of the exposure to changes in the fair value of a recognized asset or liability, or of an unrecognized firm commitment, that are attributable to a particular risk.",
        "label": "Fair Value Hedging [Member]",
        "terseLabel": "Fair Value Hedging"
       }
      }
     },
     "localname": "FairValueHedgingMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel1Member": {
     "auth_ref": [
      "r435",
      "r447",
      "r452",
      "r532",
      "r592",
      "r714",
      "r715",
      "r716"
     ],
     "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 Level1 [Member]",
        "terseLabel": "Quoted Prices in Active Markets for Identical Assets (Level 1)",
        "verboseLabel": "Fair Value, Inputs, Level 1 [Member]"
       }
      }
     },
     "localname": "FairValueInputsLevel1Member",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel2Member": {
     "auth_ref": [
      "r435",
      "r447",
      "r452",
      "r532",
      "r593",
      "r709",
      "r710",
      "r714",
      "r715",
      "r716"
     ],
     "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 Level2 [Member]",
        "terseLabel": "Significant Other Observable Inputs (Level 2)",
        "verboseLabel": "Fair Value, Inputs, Level 2 [Member]"
       }
      }
     },
     "localname": "FairValueInputsLevel2Member",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel3Member": {
     "auth_ref": [
      "r435",
      "r447",
      "r448",
      "r449",
      "r450",
      "r451",
      "r452",
      "r532",
      "r594",
      "r709",
      "r710",
      "r714",
      "r715",
      "r716"
     ],
     "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 Level3 [Member]",
        "terseLabel": "Significant Unobservable Inputs (Level 3)",
        "verboseLabel": "Level 3"
       }
      }
     },
     "localname": "FairValueInputsLevel3Member",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementFrequencyDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement frequency.",
        "label": "Fair Value Measurement Frequency [Domain]",
        "terseLabel": "Measurement Frequency"
       }
      }
     },
     "localname": "FairValueMeasurementFrequencyDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1": {
     "auth_ref": [
      "r535"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain (loss) recognized in income from asset measured at fair value on recurring basis using unobservable input (level 3).",
        "label": "Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Asset Gain Loss Included In Earnings1",
        "terseLabel": "Included in net income"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInOtherComprehensiveIncomeLoss": {
     "auth_ref": [
      "r536"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain (loss) recognized in other comprehensive income (OCI) from asset measured at fair value on recurring basis using unobservable input (level 3).",
        "label": "Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Asset Gain Loss Included In Other Comprehensive Income Loss",
        "terseLabel": "Included in other comprehensive income (loss)"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInOtherComprehensiveIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetIssues": {
     "auth_ref": [
      "r163"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of issuances of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Asset Issues",
        "terseLabel": "Issuances"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetIssues",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases": {
     "auth_ref": [
      "r163"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of purchases of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Asset Purchases",
        "terseLabel": "Purchases"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchasesSalesIssuancesSettlementsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Asset Purchases Sales Issuances Settlements [Abstract]",
        "terseLabel": "Purchases, issuances, sales and settlements:"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchasesSalesIssuancesSettlementsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales": {
     "auth_ref": [
      "r163"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of sale of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Asset Sales",
        "negatedLabel": "Sales"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements": {
     "auth_ref": [
      "r163"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of settlement of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Asset Settlements",
        "terseLabel": "Settlements"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersIntoLevel3": {
     "auth_ref": [
      "r537"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of transfer of financial instrument classified as an asset into level 3 of the fair value hierarchy.",
        "label": "Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Asset Transfers Into Level3",
        "terseLabel": "Transfers into Level 3"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersIntoLevel3",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3": {
     "auth_ref": [
      "r537"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of transfers of financial instrument classified as an asset out of level 3 of the fair value hierarchy.",
        "label": "Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Asset Transfers Out Of Level3",
        "terseLabel": "Transfers out of Level 3"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue": {
     "auth_ref": [
      "r162"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Asset Value",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementsFairValueHierarchyDomain": {
     "auth_ref": [
      "r435",
      "r447",
      "r448",
      "r449",
      "r450",
      "r451",
      "r452",
      "r592",
      "r593",
      "r594",
      "r709",
      "r710",
      "r714",
      "r715",
      "r716"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Categories used to prioritize the inputs to valuation techniques to measure fair value.",
        "label": "Fair Value Measurements Fair Value Hierarchy [Domain]",
        "terseLabel": "Fair Value Hierarchy and NAV"
       }
      }
     },
     "localname": "FairValueMeasurementsFairValueHierarchyDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementsNonrecurringMember": {
     "auth_ref": [
      "r531",
      "r532",
      "r533",
      "r534",
      "r539",
      "r541"
     ],
     "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 Measurements Nonrecurring [Member]",
        "terseLabel": "Fair Value, Nonrecurring"
       }
      }
     },
     "localname": "FairValueMeasurementsNonrecurringMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementsRecurringMember": {
     "auth_ref": [
      "r540",
      "r541"
     ],
     "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 Measurements Recurring [Member]",
        "terseLabel": "Fair Value, Recurring"
       }
      }
     },
     "localname": "FairValueMeasurementsRecurringMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueRecurringBasisUnobservableInputReconciliationAssetGainLossStatementOfIncomeExtensibleList": {
     "auth_ref": [
      "r535"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates line item in statement in which net income is reported that includes gain (loss) from asset measured at fair value using unobservable input (level 3).",
        "label": "Fair Value, Asset, Recurring Basis, Unobservable Input Reconciliation, Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration]"
       }
      }
     },
     "localname": "FairValueRecurringBasisUnobservableInputReconciliationAssetGainLossStatementOfIncomeExtensibleList",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "xbrltype": "enumerationSetItemType"
    },
    "us-gaap_FederalDepositInsuranceCorporationPremiumExpense": {
     "auth_ref": [
      "r206"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 3.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"
       }
      }
     },
     "localname": "FederalDepositInsuranceCorporationPremiumExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FederalFundsPurchasedAndSecuritiesSoldUnderAgreementsToRepurchase": {
     "auth_ref": [
      "r185"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after offset of short term borrowing where a bank borrows, at the federal funds rate, from another bank and securities that an entity sells and agrees to repurchase at a specified date for a specified price.",
        "label": "Federal Funds Purchased and Securities Sold under Agreements to Repurchase",
        "terseLabel": "Federal funds purchased",
        "totalLabel": "Federal Funds Purchased and Securities Sold under Agreements to Repurchase, Total"
       }
      }
     },
     "localname": "FederalFundsPurchasedAndSecuritiesSoldUnderAgreementsToRepurchase",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FederalFundsSold": {
     "auth_ref": [
      "r192"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 2.0,
       "parentTag": "us-gaap_CashCashEquivalentsAndFederalFundsSold",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "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": "Federal Funds Sold",
        "terseLabel": "Federal funds sold"
       }
      }
     },
     "localname": "FederalFundsSold",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FederalFundsSoldAndSecuritiesBorrowedOrPurchasedUnderAgreementsToResellFairValueDisclosure": {
     "auth_ref": [
      "r186"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of federal funds sold and securities borrowed or purchased under agreements to resell.",
        "label": "Federal Funds Sold And Securities Borrowed Or Purchased Under Agreements To Resell Fair Value Disclosure",
        "terseLabel": "Federal funds sold"
       }
      }
     },
     "localname": "FederalFundsSoldAndSecuritiesBorrowedOrPurchasedUnderAgreementsToResellFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FederalHomeLoanBankAdvancesBranchOfFHLBBankInterestRate": {
     "auth_ref": [
      "r215",
      "r217"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Discloses the single interest rate [if] applicable to the advances from the Federal Home Loan Bank, by branch, as of the Balance Sheet date.",
        "label": "Federal Home Loan Bank Advances Branch Of F H L B Bank Interest Rate",
        "terseLabel": "Federal Home Loan Bank, Advances, Interest Rate"
       }
      }
     },
     "localname": "FederalHomeLoanBankAdvancesBranchOfFHLBBankInterestRate",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_FederalHomeLoanBankAdvancesBranchOfFHLBBankLineItems": {
     "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": "Federal Home Loan Bank Advances Branch Of F H L B Bank [Line Items]",
        "terseLabel": "Federal Home Loan Bank Advances Branch Of F H L B Bank [Line Items]"
       }
      }
     },
     "localname": "FederalHomeLoanBankAdvancesBranchOfFHLBBankLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FederalHomeLoanBankAdvancesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of advances made and reported by Federal Home Loan Bank (FHLBank).",
        "label": "Federal Home Loan Bank Advances Table [Text Block]",
        "terseLabel": "Federal Home Loan Bank, Advances"
       }
      }
     },
     "localname": "FederalHomeLoanBankAdvancesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FederalHomeLoanBankBorrowingsFairValueDisclosure": {
     "auth_ref": [
      "r186"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of borrowing from Federal Home Loan Bank (FHLBank).",
        "label": "Federal Home Loan Bank Borrowings Fair Value Disclosure",
        "terseLabel": "Federal Home Loan Bank borrowings"
       }
      }
     },
     "localname": "FederalHomeLoanBankBorrowingsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLoansAndLeasesReceivablePolicy": {
     "auth_ref": [
      "r59",
      "r70",
      "r73",
      "r77",
      "r331",
      "r337",
      "r338",
      "r339"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for financing receivable.",
        "label": "Finance Loans And Leases Receivable Policy",
        "terseLabel": "Loan Purchase"
       }
      }
     },
     "localname": "FinanceLoansAndLeasesReceivablePolicy",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FinancialAssetNotPastDueMember": {
     "auth_ref": [
      "r378",
      "r704"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial asset not past due.",
        "label": "Financial Asset Not Past Due [Member]",
        "terseLabel": "Current"
       }
      }
     },
     "localname": "FinancialAssetNotPastDueMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancialAssetPastDueMember": {
     "auth_ref": [
      "r378",
      "r704",
      "r758"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial asset past due.",
        "label": "Financial Asset Past Due [Member]",
        "terseLabel": "Total Past Due"
       }
      }
     },
     "localname": "FinancialAssetPastDueMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancialInstrumentAxis": {
     "auth_ref": [
      "r352",
      "r356",
      "r371",
      "r377",
      "r378",
      "r382",
      "r388",
      "r394",
      "r396",
      "r397",
      "r443",
      "r444",
      "r518",
      "r589",
      "r590",
      "r591",
      "r592",
      "r593",
      "r594",
      "r595",
      "r596",
      "r597",
      "r598",
      "r599",
      "r600",
      "r601",
      "r602",
      "r606",
      "r607",
      "r608",
      "r609",
      "r610",
      "r611",
      "r612",
      "r613",
      "r614",
      "r615",
      "r616",
      "r617",
      "r618",
      "r619",
      "r620",
      "r621",
      "r705",
      "r762",
      "r763",
      "r764",
      "r810",
      "r811",
      "r812",
      "r813",
      "r814",
      "r815",
      "r816"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of financial instrument.",
        "label": "Financial Instrument [Axis]",
        "terseLabel": "Financial Instrument"
       }
      }
     },
     "localname": "FinancialInstrumentAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossPurchasedWithCreditDeteriorationIncrease": {
     "auth_ref": [
      "r373"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in allowance for credit loss on financing receivable purchased with credit deterioration.",
        "label": "Financing Receivable Allowance For Credit Loss Purchased With Credit Deterioration Increase",
        "terseLabel": "Initial allowance on loans purchased with credit deterioration"
       }
      }
     },
     "localname": "FinancingReceivableAllowanceForCreditLossPurchasedWithCreditDeteriorationIncrease",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLosses": {
     "auth_ref": [
      "r61",
      "r250",
      "r370",
      "r372",
      "r376",
      "r684",
      "r686",
      "r688",
      "r805"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_LoansAndLeasesReceivableNetReportedAmount",
       "weight": -1.0
      },
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "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 Losses",
        "negatedLabel": "Less allowance for credit losses",
        "periodEndLabel": "Allowance for credit losses, Ending Balance",
        "periodStartLabel": "Allowance for credit losses, Beginning Balance",
        "terseLabel": "Allowance for credit losses"
       }
      }
     },
     "localname": "FinancingReceivableAllowanceForCreditLosses",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossesPeriodIncreaseDecrease": {
     "auth_ref": [
      "r60",
      "r767"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in allowance for credit loss on financing receivable.",
        "label": "Financing Receivable Allowance For Credit Losses Period Increase Decrease",
        "terseLabel": "Provision for credit loss expense",
        "totalLabel": "Financing Receivable, Allowance for Credit Loss, Period Increase (Decrease), Total"
       }
      }
     },
     "localname": "FinancingReceivableAllowanceForCreditLossesPeriodIncreaseDecrease",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossesRecovery": {
     "auth_ref": [
      "r64",
      "r375",
      "r703"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in allowance for credit loss on financing receivable from recovery.",
        "label": "Financing Receivable Allowance For Credit Losses Recovery",
        "terseLabel": "Recoveries collected"
       }
      }
     },
     "localname": "FinancingReceivableAllowanceForCreditLossesRecovery",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossesWriteOffs": {
     "auth_ref": [
      "r63",
      "r374",
      "r703"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of writeoff of financing receivable, charged against allowance for credit loss.",
        "label": "Financing Receivable Allowance For Credit Losses Write Offs",
        "terseLabel": "Loans charged off"
       }
      }
     },
     "localname": "FinancingReceivableAllowanceForCreditLossesWriteOffs",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableBeforeAllowanceForCreditLossAndFee": {
     "auth_ref": [
      "r387",
      "r755",
      "r806"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortized cost, before allowance for credit loss, fee, and loan in process, of financing receivable. Excludes financing receivable covered under loss sharing agreement and net investment in lease.",
        "label": "Financing Receivable Before Allowance For Credit Loss And Fee",
        "totalLabel": "Gross loans"
       }
      }
     },
     "localname": "FinancingReceivableBeforeAllowanceForCreditLossAndFee",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableCreditQualityIndicatorsTableTextBlock": {
     "auth_ref": [
      "r71",
      "r769"
     ],
     "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": "Credit Risk Profile of Loan Portfolio on Amortized Cost Basis Based on Risk Rating Category"
       }
      }
     },
     "localname": "FinancingReceivableCreditQualityIndicatorsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment": {
     "auth_ref": [
      "r65"
     ],
     "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": "Financing Receivable, Individually Evaluated for Impairment"
       }
      }
     },
     "localname": "FinancingReceivableIndividuallyEvaluatedForImpairment",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableModificationsNumberOfContracts2": {
     "auth_ref": [
      "r756"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of financing receivables that have been modified by troubled debt restructurings.",
        "label": "Financing Receivable Modifications Number Of Contracts2",
        "verboseLabel": "Troubled debt restructurings balance"
       }
      }
     },
     "localname": "FinancingReceivableModificationsNumberOfContracts2",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "us-gaap_FinancingReceivableModificationsRecordedInvestment": {
     "auth_ref": [
      "r81",
      "r756"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansClassifiedAsTroubledDebtRestructuringsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of financing receivable modified as troubled debt restructuring.",
        "label": "Financing Receivable Modifications Recorded Investment",
        "terseLabel": "Troubled Debt Restructurings Balance",
        "totalLabel": "Total TDRs",
        "verboseLabel": "Modified loans balance"
       }
      }
     },
     "localname": "FinancingReceivableModificationsRecordedInvestment",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansClassifiedAsTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableNonaccrualNoAllowance": {
     "auth_ref": [
      "r381"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortized cost of financing receivable on nonaccrual status with no allowance for credit loss. Excludes net investment in lease.",
        "label": "Financing Receivable Nonaccrual No Allowance",
        "terseLabel": "Financing Receivable, Nonaccrual, No Allowance"
       }
      }
     },
     "localname": "FinancingReceivableNonaccrualNoAllowance",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableOriginatedFiveOrMoreYearsBeforeLatestFiscalYear": {
     "auth_ref": [
      "r389",
      "r703"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails": {
       "order": 5.0,
       "parentTag": "fmbh_FinancingReceivableIncludingHeldForSaleNetOfDeferredIncome",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortized cost of financing receivable originated more than five years prior to current fiscal year. Excludes net investment in lease.",
        "label": "Financing Receivable Originated Five Or More Years Before Latest Fiscal Year",
        "terseLabel": "Prior"
       }
      }
     },
     "localname": "FinancingReceivableOriginatedFiveOrMoreYearsBeforeLatestFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableOriginatedFourYearsBeforeLatestFiscalYear": {
     "auth_ref": [
      "r389",
      "r703"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails": {
       "order": 4.0,
       "parentTag": "fmbh_FinancingReceivableIncludingHeldForSaleNetOfDeferredIncome",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortized cost of financing receivable originated four years prior to current fiscal year. Excludes net investment in lease.",
        "label": "Financing Receivable Originated Four Years Before Latest Fiscal Year",
        "terseLabel": "Four years before current fiscal year"
       }
      }
     },
     "localname": "FinancingReceivableOriginatedFourYearsBeforeLatestFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableOriginatedInCurrentFiscalYear": {
     "auth_ref": [
      "r389",
      "r703"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails": {
       "order": 0.0,
       "parentTag": "fmbh_FinancingReceivableIncludingHeldForSaleNetOfDeferredIncome",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortized cost of financing receivable originated in current fiscal year. Excludes net investment in lease.",
        "label": "Financing Receivable Originated In Current Fiscal Year",
        "terseLabel": "Current fiscal year"
       }
      }
     },
     "localname": "FinancingReceivableOriginatedInCurrentFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableOriginatedInFiscalYearBeforeLatestFiscalYear": {
     "auth_ref": [
      "r389",
      "r703"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails": {
       "order": 1.0,
       "parentTag": "fmbh_FinancingReceivableIncludingHeldForSaleNetOfDeferredIncome",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortized cost of financing receivable originated in fiscal year prior to current fiscal year. Excludes net investment in lease.",
        "label": "Financing Receivable Originated In Fiscal Year Before Latest Fiscal Year",
        "terseLabel": "Fiscal year before current fiscal year"
       }
      }
     },
     "localname": "FinancingReceivableOriginatedInFiscalYearBeforeLatestFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableOriginatedThreeYearsBeforeLatestFiscalYear": {
     "auth_ref": [
      "r389",
      "r703"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails": {
       "order": 3.0,
       "parentTag": "fmbh_FinancingReceivableIncludingHeldForSaleNetOfDeferredIncome",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortized cost of financing receivable originated three years prior to current fiscal year. Excludes net investment in lease.",
        "label": "Financing Receivable Originated Three Years Before Latest Fiscal Year",
        "terseLabel": "Three years before current fiscal year"
       }
      }
     },
     "localname": "FinancingReceivableOriginatedThreeYearsBeforeLatestFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableOriginatedTwoYearsBeforeLatestFiscalYear": {
     "auth_ref": [
      "r389",
      "r703"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails": {
       "order": 2.0,
       "parentTag": "fmbh_FinancingReceivableIncludingHeldForSaleNetOfDeferredIncome",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortized cost of financing receivable originated two years prior to current fiscal year. Excludes net investment in lease.",
        "label": "Financing Receivable Originated Two Years Before Latest Fiscal Year",
        "terseLabel": "Two years before current fiscal year"
       }
      }
     },
     "localname": "FinancingReceivableOriginatedTwoYearsBeforeLatestFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivablePortfolioSegmentAxis": {
     "auth_ref": [
      "r371",
      "r377",
      "r682",
      "r683",
      "r687",
      "r688",
      "r697",
      "r810",
      "r811",
      "r812",
      "r813",
      "r814",
      "r815",
      "r816",
      "r818",
      "r819",
      "r820"
     ],
     "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"
       }
      }
     },
     "localname": "FinancingReceivablePortfolioSegmentAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesFinancialEffectOfLoanModificationsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivablePortfolioSegmentDomain": {
     "auth_ref": [
      "r682",
      "r683",
      "r687",
      "r688",
      "r810",
      "r811",
      "r812",
      "r813",
      "r814",
      "r815",
      "r816",
      "r818",
      "r819",
      "r820"
     ],
     "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"
       }
      }
     },
     "localname": "FinancingReceivablePortfolioSegmentDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesFinancialEffectOfLoanModificationsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAllowanceForCreditLossAtAcquisitionDate": {
     "auth_ref": [
      "r384"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of allowance for credit loss at acquisition date of financing receivable purchased with credit deterioration.",
        "label": "Financing Receivable Purchased With Credit Deterioration Allowance For Credit Loss At Acquisition Date",
        "negatedLabel": "Allowance for credit losses at acquisition",
        "verboseLabel": "Allowance for credit losses for loans identified as PCD"
       }
      }
     },
     "localname": "FinancingReceivablePurchasedWithCreditDeteriorationAllowanceForCreditLossAtAcquisitionDate",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAmountAtParValue": {
     "auth_ref": [
      "r386"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount at par value of financing receivable purchased with credit deterioration.",
        "label": "Financing Receivable Purchased With Credit Deterioration Amount At Par Value",
        "terseLabel": "Fair value of purchased credit deteriorated loans at acquisition"
       }
      }
     },
     "localname": "FinancingReceivablePurchasedWithCreditDeteriorationAmountAtParValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice": {
     "auth_ref": [
      "r383"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount at purchase price of financing receivable purchased with credit deterioration.",
        "label": "Financing Receivable Purchased With Credit Deterioration Amount At Purchase Price",
        "totalLabel": "Purchase price of purchase credit deteriorated loans at acquisition",
        "verboseLabel": "Purchased credit deteriorated loans"
       }
      }
     },
     "localname": "FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationDiscountPremium": {
     "auth_ref": [
      "r385"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of discount (premium) attributable to other factors on financing receivable purchased with credit deterioration.",
        "label": "Financing Receivable Purchased With Credit Deterioration Discount Premium",
        "terseLabel": "Non-credit discount/(premium) at acquisition"
       }
      }
     },
     "localname": "FinancingReceivablePurchasedWithCreditDeteriorationDiscountPremium",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing": {
     "auth_ref": [
      "r334",
      "r380",
      "r704"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortized cost of financing receivable 90 days or more past due and still accruing. Excludes net investment in lease.",
        "label": "Financing Receivable Recorded Investment90 Days Past Due And Still Accruing",
        "terseLabel": "Total Loans> 90 Days and Accruing"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis": {
     "auth_ref": [
      "r75",
      "r76",
      "r332",
      "r378",
      "r382",
      "r388",
      "r682",
      "r683",
      "r687",
      "r688",
      "r698",
      "r699",
      "r703",
      "r704",
      "r810",
      "r811",
      "r812",
      "r813",
      "r814",
      "r815",
      "r816",
      "r818",
      "r819",
      "r820"
     ],
     "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": "Financing Receivable Recorded Investment By Class Of Financing Receivable [Axis]",
        "terseLabel": "Class of Financing Receivable"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain": {
     "auth_ref": [
      "r682",
      "r683",
      "r687",
      "r688",
      "r810",
      "r811",
      "r812",
      "r813",
      "r814",
      "r815",
      "r816",
      "r818",
      "r819",
      "r820"
     ],
     "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": "Financing Receivable Recorded Investment Class Of Financing Receivable [Domain]",
        "terseLabel": "Class of Financing Receivable"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus": {
     "auth_ref": [
      "r74",
      "r379",
      "r685",
      "r686"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortized cost of financing receivable on nonaccrual status. Excludes net investment in lease.",
        "label": "Financing Receivable Recorded Investment Nonaccrual Status",
        "terseLabel": "Financing Receivable, Nonaccrual"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentNonaccrualStatus",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableRevolving": {
     "auth_ref": [
      "r389",
      "r703"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails": {
       "order": 6.0,
       "parentTag": "fmbh_FinancingReceivableIncludingHeldForSaleNetOfDeferredIncome",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortized cost of financing receivable that can be withdrawn, repaid, and redrawn.",
        "label": "Financing Receivable Revolving",
        "terseLabel": "Revolving Loans"
       }
      }
     },
     "localname": "FinancingReceivableRevolving",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableThresholdPeriodPastDueWriteoff": {
     "auth_ref": [
      "r768"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Threshold period for when financing receivable is considered past due to write off as uncollectible, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Financing Receivable Threshold Period Past Due Writeoff",
        "terseLabel": "Period when loans charged-down"
       }
      }
     },
     "localname": "FinancingReceivableThresholdPeriodPastDueWriteoff",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_FinancingReceivableUnamortizedLoanCommitmentOriginationFeeAndPremiumDiscount": {
     "auth_ref": [
      "r333",
      "r336",
      "r736"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_LoansAndLeasesReceivableNetReportedAmount",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unamortized loan commitment, origination, and other costs (fees) and purchase premium (discount) on financing receivable recognized as adjustment to yield. Excludes financing receivable covered under loss sharing agreement.",
        "label": "Financing Receivable Unamortized Loan Commitment Origination Fee And Premium Discount",
        "negatedLabel": "Net deferred loan fees, premiums and discounts",
        "totalLabel": "Financing Receivable, Unamortized Loan Cost (Fee) and Purchase Premium (Discount), Total"
       }
      }
     },
     "localname": "FinancingReceivableUnamortizedLoanCommitmentOriginationFeeAndPremiumDiscount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivables30To59DaysPastDueMember": {
     "auth_ref": [
      "r704"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial asset more than 29 days past due but fewer than 60 days past due.",
        "label": "Financing Receivables30 To59 Days Past Due [Member]",
        "terseLabel": "Financial Asset, 30 to 59 Days Past Due",
        "verboseLabel": "30-50 Days Past Due"
       }
      }
     },
     "localname": "FinancingReceivables30To59DaysPastDueMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivables60To89DaysPastDueMember": {
     "auth_ref": [
      "r704"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial asset more than 59 days past due but fewer than 90 days past due.",
        "label": "Financing Receivables60 To89 Days Past Due [Member]",
        "terseLabel": "Financial Asset, 60 to 89 Days Past Due",
        "verboseLabel": "60-89 Days Past Due"
       }
      }
     },
     "localname": "FinancingReceivables60To89DaysPastDueMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember": {
     "auth_ref": [
      "r704"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial asset equal to or greater than 90 days past due.",
        "label": "Financing Receivables Equal To Greater Than90 Days Past Due [Member]",
        "terseLabel": "Financial Asset, Equal to or Greater than 90 Days Past Due",
        "verboseLabel": "90 Days or More Past Due"
       }
      }
     },
     "localname": "FinancingReceivablesEqualToGreaterThan90DaysPastDueMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivablesPeriodPastDueAxis": {
     "auth_ref": [
      "r335",
      "r378",
      "r704"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by period in which financial asset is past due or not past due.",
        "label": "Financing Receivables Period Past Due [Axis]",
        "terseLabel": "Financial Asset, Aging"
       }
      }
     },
     "localname": "FinancingReceivablesPeriodPastDueAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivablesPeriodPastDueDomain": {
     "auth_ref": [
      "r335",
      "r378",
      "r704"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period in which financial asset is past due or not past due. For 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": "Financing Receivables Period Past Due [Domain]",
        "terseLabel": "Financial Asset, Aging"
       }
      }
     },
     "localname": "FinancingReceivablesPeriodPastDueDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetUsefulLife": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Useful life of finite-lived intangible assets, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Finite Lived Intangible Asset Useful Life",
        "terseLabel": "Intangible asset estimated useful life"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetUsefulLife",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization": {
     "auth_ref": [
      "r244",
      "r412"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accumulated amount of amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life.",
        "label": "Finite Lived Intangible Assets Accumulated Amortization",
        "terseLabel": "Intangible Assets, Accumulated Amortization"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsAccumulatedAmortization",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextRollingTwelveMonths": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of amortization expense for assets, excluding financial assets and goodwill, lacking physical substance with a finite life expected to be recognized in the next rolling twelve months following the latest balance sheet. For interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date.",
        "label": "Finite Lived Intangible Assets Amortization Expense Next Rolling Twelve Months",
        "terseLabel": "For period 04/01/23 - 12/31/23"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseNextRollingTwelveMonths",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfExpectedAmortizationExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRollingYearFive": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of amortization expense for assets, excluding financial assets and goodwill, lacking physical substance with a finite life expected to be recognized in the fifth rolling twelve months following the latest balance sheet. For interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date.",
        "label": "Finite Lived Intangible Assets Amortization Expense Rolling Year Five",
        "terseLabel": "For year ended 12/31/27"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseRollingYearFive",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfExpectedAmortizationExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRollingYearFour": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of amortization expense for assets, excluding financial assets and goodwill, lacking physical substance with a finite life expected to be recognized in the fourth rolling twelve months following the latest balance sheet. For interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date.",
        "label": "Finite Lived Intangible Assets Amortization Expense Rolling Year Four",
        "terseLabel": "For year ended 12/31/26"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseRollingYearFour",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfExpectedAmortizationExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRollingYearThree": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of amortization expense for assets, excluding financial assets and goodwill, lacking physical substance with a finite life expected to be recognized in the third rolling twelve months following the latest balance sheet. For interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date.",
        "label": "Finite Lived Intangible Assets Amortization Expense Rolling Year Three",
        "terseLabel": "For year ended 12/31/25"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseRollingYearThree",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfExpectedAmortizationExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRollingYearTwo": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of amortization expense for assets, excluding financial assets and goodwill, lacking physical substance with a finite life expected to be recognized in the second rolling twelve months following the latest balance sheet. For interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date.",
        "label": "Finite Lived Intangible Assets Amortization Expense Rolling Year Two",
        "terseLabel": "For year ended 12/31/24"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseRollingYearTwo",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfExpectedAmortizationExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of amortization expense of assets, excluding financial assets, that lack physical substance, having a limited useful life.",
        "label": "Finite Lived Intangible Assets Amortization Expense Table [Text Block]",
        "terseLabel": "Schedule of Intangible Assets Amortization Expense"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis": {
     "auth_ref": [
      "r410",
      "r411",
      "r412",
      "r413",
      "r624",
      "r628"
     ],
     "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"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsByMajorClassAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseCurrentAndFiveSucceedingFiscalYearsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finite Lived Intangible Assets Future Amortization Expense Current And Five Succeeding Fiscal Years [Abstract]"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsFutureAmortizationExpenseCurrentAndFiveSucceedingFiscalYearsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsGross": {
     "auth_ref": [
      "r102",
      "r628"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life.",
        "label": "Finite Lived Intangible Assets Gross",
        "terseLabel": "Intangible Assets, Gross Carrying Value",
        "totalLabel": "Finite-Lived Intangible Assets, Gross, Total"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsLineItems": {
     "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": "Finite Lived Intangible Assets [Line Items]",
        "terseLabel": "Finite Lived Intangible Assets [Line Items]"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain": {
     "auth_ref": [
      "r99",
      "r101"
     ],
     "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"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsMajorClassNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsNet": {
     "auth_ref": [
      "r102",
      "r624"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life.",
        "label": "Finite Lived Intangible Assets Net",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance",
        "terseLabel": "Finite-lived intangible assets, net",
        "totalLabel": "Finite-Lived Intangible Assets, Net, Total"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsRemainingAmortizationPeriod1": {
     "auth_ref": [
      "r624"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Remaining amortization period of finite-lived intangible assets, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Finite Lived Intangible Assets Remaining Amortization Period1",
        "terseLabel": "Amortization period"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsRemainingAmortizationPeriod1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_GainLossOnDispositionOfAssets": {
     "auth_ref": [
      "r748",
      "r774",
      "r775"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10.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 Assets",
        "negatedLabel": "Gain on sale of loans held for sale, net"
       }
      }
     },
     "localname": "GainLossOnDispositionOfAssets",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GainLossOnSaleOfOtherAssets": {
     "auth_ref": [
      "r748"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 9.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain (loss) on sale or disposal of other assets.",
        "label": "Gain Loss On Sale Of Other Assets",
        "negatedLabel": "Loss on sale of other assets"
       }
      }
     },
     "localname": "GainLossOnSaleOfOtherAssets",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GainsLossesOnSalesOfOtherRealEstate": {
     "auth_ref": [
      "r205"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "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",
        "negatedLabel": "Loss (gain) on sales and write downs of other real estate owned, net"
       }
      }
     },
     "localname": "GainsLossesOnSalesOfOtherRealEstate",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_Goodwill": {
     "auth_ref": [
      "r243",
      "r398",
      "r629",
      "r706",
      "r726",
      "r771",
      "r773"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0
      },
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 10.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",
        "periodEndLabel": "Goodwill, Ending Balance",
        "periodStartLabel": "Goodwill, Beginning Balance",
        "terseLabel": "Goodwill",
        "totalLabel": "Goodwill, Total",
        "verboseLabel": "Goodwill, net"
       }
      }
     },
     "localname": "Goodwill",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GoodwillAcquiredDuringPeriod": {
     "auth_ref": [
      "r400",
      "r706"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in asset representing future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized resulting from a business combination.",
        "label": "Goodwill Acquired During Period",
        "terseLabel": "Goodwill acquired during period"
       }
      }
     },
     "localname": "GoodwillAcquiredDuringPeriod",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GoodwillAndIntangibleAssetsDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Goodwill And Intangible Assets Disclosure [Abstract]"
       }
      }
     },
     "localname": "GoodwillAndIntangibleAssetsDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_GoodwillAndIntangibleAssetsDisclosureTextBlock": {
     "auth_ref": [
      "r105"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for goodwill and intangible assets.",
        "label": "Goodwill And Intangible Assets Disclosure [Text Block]",
        "terseLabel": "Goodwill and Intangible Assets"
       }
      }
     },
     "localname": "GoodwillAndIntangibleAssetsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssets"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_GoodwillGross": {
     "auth_ref": [
      "r399",
      "r406",
      "r706"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before 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 Gross",
        "terseLabel": "Goodwill, Gross Carrying Value"
       }
      }
     },
     "localname": "GoodwillGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GoodwillLineItems": {
     "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": "Goodwill [Line Items]",
        "terseLabel": "Goodwill [Line Items]"
       }
      }
     },
     "localname": "GoodwillLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_GoodwillPurchaseAccountingAdjustments": {
     "auth_ref": [
      "r118",
      "r772"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) from adjustments after acquisition date under purchase accounting of an asset representing the future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized.",
        "label": "Goodwill Purchase Accounting Adjustments",
        "totalLabel": "Goodwill, purchase accounting adjustments"
       }
      }
     },
     "localname": "GoodwillPurchaseAccountingAdjustments",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HedgedAssetFairValueHedge": {
     "auth_ref": [
      "r515"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of asset hedged in fair value hedging relationship.",
        "label": "Hedged Asset Fair Value Hedge",
        "terseLabel": "Carrying Amount of the Hedged Asset"
       }
      }
     },
     "localname": "HedgedAssetFairValueHedge",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfHedgedInstrumentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HedgedAssetFairValueHedgeCumulativeIncreaseDecrease": {
     "auth_ref": [
      "r516"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cumulative increase (decrease) in fair value of hedged asset in fair value hedge, attributable to hedged risk.",
        "label": "Hedged Asset Fair Value Hedge Cumulative Increase Decrease",
        "terseLabel": "Cumulative Amount of Fair Value Hedging Adjustment Included in the Carrying Amount of the Hedged Asset"
       }
      }
     },
     "localname": "HedgedAssetFairValueHedgeCumulativeIncreaseDecrease",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfHedgedInstrumentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HedgingDesignationAxis": {
     "auth_ref": [
      "r143",
      "r514"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by designation of purpose of derivative instrument.",
        "label": "Hedging Designation [Axis]",
        "terseLabel": "Hedging Designation"
       }
      }
     },
     "localname": "HedgingDesignationAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_HedgingDesignationDomain": {
     "auth_ref": [
      "r143"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Designation of purpose of derivative instrument.",
        "label": "Hedging Designation [Domain]",
        "terseLabel": "Hedging Designation"
       }
      }
     },
     "localname": "HedgingDesignationDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_HedgingRelationshipDomain": {
     "auth_ref": [
      "r143"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Nature or intent of a hedge.",
        "label": "Hedging Relationship [Domain]",
        "terseLabel": "Hedging Relationship"
       }
      }
     },
     "localname": "HedgingRelationshipDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_HeldToMaturitySecurities": {
     "auth_ref": [
      "r87",
      "r335",
      "r378",
      "r766"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 3.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before allowance for credit loss, of investment in debt security measured at amortized cost (held-to-maturity).",
        "label": "Held To Maturity Securities",
        "terseLabel": "Held-to-maturity, at amortized cost (estimated fair value of $2,979 and $2,954 at March 31, 2023 and December 31, 2022, respectively)",
        "totalLabel": "Held-to-maturity"
       }
      }
     },
     "localname": "HeldToMaturitySecurities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Held To Maturity Securities [Abstract]",
        "terseLabel": "Held-to-maturity: [Abstract]"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain": {
     "auth_ref": [
      "r89",
      "r354"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails": {
       "order": 0.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": "Held To Maturity Securities Accumulated Unrecognized Holding Gain",
        "terseLabel": "Gross Unrealized Gains"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss": {
     "auth_ref": [
      "r90",
      "r355"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails": {
       "order": 1.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": "Held To Maturity Securities Accumulated Unrecognized Holding Loss",
        "negatedLabel": "Unrealized (Losses)"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount": {
     "auth_ref": [
      "r350",
      "r638"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after allowance for credit loss, 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": "Held To Maturity Securities Debt Maturities After Five Through Ten Years Net Carrying Amount",
        "terseLabel": "Held-to-maturity, After 5 through 10 years"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount": {
     "auth_ref": [
      "r349",
      "r637"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after allowance for credit loss, 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": "Held To Maturity Securities Debt Maturities After One Through Five Years Net Carrying Amount",
        "terseLabel": "Held-to-maturity, After1 through 5 years"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount": {
     "auth_ref": [
      "r351",
      "r639"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after allowance for credit loss, 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": "Held To Maturity Securities Debt Maturities After Ten Years Net Carrying Amount",
        "terseLabel": "Held-to-maturity, After ten years"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesNetCarryingAmountAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Held To Maturity Securities Debt Maturities Net Carrying Amount [Abstract]",
        "terseLabel": "Held-to-maturity, Maturity [Abstract]"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesNetCarryingAmountAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount": {
     "auth_ref": [
      "r348",
      "r636"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after allowance for credit loss, 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": "Held To Maturity Securities Debt Maturities Within One Year Net Carrying Amount",
        "terseLabel": "Held-to-maturity, One Year or less"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesFairValue": {
     "auth_ref": [
      "r88",
      "r353",
      "r630"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of investment in debt security measured at amortized cost (held-to-maturity).",
        "label": "Held-to-maturity securities",
        "terseLabel": "Held-to-maturity, at fair value",
        "totalLabel": "Debt Securities, Held-to-Maturity, Fair Value, Total",
        "verboseLabel": "Fair Value"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesFairValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions": {
     "auth_ref": [
      "r91"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure regarding factors used to determine that the impairment of securities categorized as held-to-maturity where cost exceeds fair value is not an other than temporary impairment (OTTI). This item contains disclosure of the number of investment positions in the held-to-maturity investments determined to be temporarily impaired.",
        "label": "Held To Maturity Securities In Unrealized Loss Positions Qualitative Disclosure Number Of Positions",
        "terseLabel": "Held-to-maturity, securities in unrealized loss positions, qualitative disclosure, number of positions"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "xbrltype": "decimalItemType"
    },
    "us-gaap_ImpairedFinancingReceivableRelatedAllowance": {
     "auth_ref": [
      "r68"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of allowance for credit losses related to recorded investment.",
        "label": "Impaired Financing Receivable Related Allowance",
        "terseLabel": "Allowance for Credit Losses"
       }
      }
     },
     "localname": "ImpairedFinancingReceivableRelatedAllowance",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment": {
     "auth_ref": [
      "r67"
     ],
     "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": "Fair value of loans with a specific allowance"
       }
      }
     },
     "localname": "ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance": {
     "auth_ref": [
      "r69"
     ],
     "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",
        "terseLabel": "Carrying amount of loans with a specific allowance"
       }
      }
     },
     "localname": "ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest": {
     "auth_ref": [
      "r27",
      "r174",
      "r195",
      "r230",
      "r322",
      "r323",
      "r325",
      "r327",
      "r634",
      "r696"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 0.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of income (loss) from continuing operations, including income (loss) from equity method investments, before deduction of income tax expense (benefit), and income (loss) attributable to noncontrolling interest.",
        "label": "Income Loss From Continuing Operations Before Income Taxes Extraordinary Items Noncontrolling Interest",
        "totalLabel": "Income before income taxes"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeStatementAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Statement [Abstract]"
       }
      }
     },
     "localname": "IncomeStatementAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r280",
      "r299",
      "r300",
      "r321",
      "r490",
      "r496",
      "r498",
      "r648"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax",
       "weight": 1.0
      },
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": -1.0
      }
     },
     "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",
        "negatedLabel": "Tax effect",
        "terseLabel": "Income taxes",
        "totalLabel": "Income Tax Expense (Benefit), Total"
       }
      }
     },
     "localname": "IncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxesPaid": {
     "auth_ref": [
      "r45",
      "r52"
     ],
     "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",
        "negatedLabel": "Income taxes",
        "terseLabel": "Income taxes"
       }
      }
     },
     "localname": "IncomeTaxesPaid",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInAccountsAndNotesReceivable": {
     "auth_ref": [
      "r47"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period of the sum of amounts due within one year (or one business cycle) from customers for the credit sale of goods and services; and from note holders for outstanding loans.",
        "label": "Increase Decrease In Accounts And Notes Receivable",
        "terseLabel": "Increase (decrease) in accounts and notes receivable"
       }
      }
     },
     "localname": "IncreaseDecreaseInAccountsAndNotesReceivable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet": {
     "auth_ref": [
      "r47"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 11.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the amount due from borrowers for interest payments.",
        "label": "Increase Decrease In Accrued Interest Receivable Net",
        "negatedLabel": "Increase in accrued interest receivable"
       }
      }
     },
     "localname": "IncreaseDecreaseInAccruedInterestReceivableNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInDeposits": {
     "auth_ref": [
      "r51",
      "r212"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 0.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net cash inflow or outflow for the increase (decrease) in the beginning and end of period deposits balances.",
        "label": "Increase Decrease In Deposits",
        "terseLabel": "Net decrease in deposits",
        "totalLabel": "Increase (Decrease) in Deposits, Total"
       }
      }
     },
     "localname": "IncreaseDecreaseInDeposits",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInInterestPayableNet": {
     "auth_ref": [
      "r47"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 12.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in interest payable, which represents the amount owed to note holders, bond holders, and other parties for interest earned on loans or credit extended to the reporting entity.",
        "label": "Increase Decrease In Interest Payable Net",
        "terseLabel": "Increase in accrued interest payable"
       }
      }
     },
     "localname": "IncreaseDecreaseInInterestPayableNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingAssets": {
     "auth_ref": [
      "r47"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 16.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": "Decrease in other assets",
        "totalLabel": "Increase (Decrease) in Other Operating Assets, Total"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherOperatingAssets",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingLiabilities": {
     "auth_ref": [
      "r47"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 17.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",
        "totalLabel": "Increase (Decrease) in Other Operating Liabilities, Total"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherOperatingLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IndefiniteLivedContractualRights": {
     "auth_ref": [
      "r104"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount (original costs adjusted for previously recognized amortization and impairment) as of the balance sheet date of rights with an indefinite period of benefit that arose from a contractual arrangement with a third party (not including franchise rights and license agreements).",
        "label": "Indefinite Lived Contractual Rights",
        "terseLabel": "Indefinite-lived contractual rights"
       }
      }
     },
     "localname": "IndefiniteLivedContractualRights",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InsuranceCommissionsAndFees": {
     "auth_ref": [
      "r202",
      "r231"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Income from agency and brokerage operations (includes sales of annuities and supplemental contracts); service charges, commissions, and fees from the sale of insurance and related services; and management fees from separate accounts, deferred annuities, and universal life products.",
        "label": "Insurance Commissions And Fees",
        "terseLabel": "Insurance commissions"
       }
      }
     },
     "localname": "InsuranceCommissionsAndFees",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InsuranceContractAcquisitionCostPolicyTextBlock": {
     "auth_ref": [
      "r649",
      "r650"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for cost related directly to successful acquisition of new and renewal of insurance contract. Information includes, but is not limited to, input, judgment, assumption, and method used to determine amortization amount, and change in input, judgment, and assumption. Cost, includes but is not limited to, deferred policy acquisition cost, deferred sale inducement cost, and present value of future profit of insurance contract acquired in business combination.",
        "label": "Insurance Contract Acquisition Cost Policy [Text Block]",
        "terseLabel": "Bank Owned Life Insurance"
       }
      }
     },
     "localname": "InsuranceContractAcquisitionCostPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_IntangibleAssetsNetExcludingGoodwill": {
     "auth_ref": [
      "r97",
      "r100"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 11.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sum of the carrying amounts of all intangible assets, excluding goodwill, as of the balance sheet date, net of accumulated amortization and impairment charges.",
        "label": "Intangible Assets Net Excluding Goodwill",
        "terseLabel": "Intangible assets, net",
        "totalLabel": "Intangible Assets, Net (Excluding Goodwill), Total"
       }
      }
     },
     "localname": "IntangibleAssetsNetExcludingGoodwill",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IntangibleAssetsNetIncludingGoodwill": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount of finite-lived intangible assets, indefinite-lived intangible assets and goodwill. Goodwill is an asset representing the future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized. Intangible assets are assets, not including financial assets, lacking physical substance.",
        "label": "Intangible Assets Net Including Goodwill",
        "terseLabel": "Core deposit intangible asset",
        "totalLabel": "Intangible Assets, Net (Including Goodwill), Total"
       }
      }
     },
     "localname": "IntangibleAssetsNetIncludingGoodwill",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestAndDividendIncomeOperating": {
     "auth_ref": [
      "r198"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 0.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",
        "totalLabel": "Total interest income"
       }
      }
     },
     "localname": "InterestAndDividendIncomeOperating",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestAndDividendIncomeOperatingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest And Dividend Income Operating [Abstract]",
        "terseLabel": "Interest income:"
       }
      }
     },
     "localname": "InterestAndDividendIncomeOperatingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InterestAndDividendIncomeSecurities": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "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",
        "terseLabel": "Interest on investment securities",
        "totalLabel": "Interest and Dividend Income, Securities, Operating, Total"
       }
      }
     },
     "localname": "InterestAndDividendIncomeSecurities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestAndFeeIncomeLoansAndLeases": {
     "auth_ref": [
      "r197"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 0.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",
        "totalLabel": "Interest and Fee Income, Loans and Leases, Total"
       }
      }
     },
     "localname": "InterestAndFeeIncomeLoansAndLeases",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestBearingDepositLiabilities": {
     "auth_ref": [
      "r184"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate of all domestic and foreign interest-bearing deposit liabilities.",
        "label": "Interest Bearing Deposit Liabilities",
        "terseLabel": "Interest bearing",
        "totalLabel": "Interest-Bearing Deposit Liabilities, Total"
       }
      }
     },
     "localname": "InterestBearingDepositLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestBearingDepositsInBanks": {
     "auth_ref": [
      "r176",
      "r191"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_CashCashEquivalentsAndFederalFundsSold",
       "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",
        "terseLabel": "Interest bearing"
       }
      }
     },
     "localname": "InterestBearingDepositsInBanks",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpense": {
     "auth_ref": [
      "r171",
      "r211",
      "r268",
      "r320",
      "r562"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "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",
        "totalLabel": "Total interest expense"
       }
      }
     },
     "localname": "InterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InterestExpenseDeposits": {
     "auth_ref": [
      "r208"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 0.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",
        "totalLabel": "Interest Expense, Deposits, Total"
       }
      }
     },
     "localname": "InterestExpenseDeposits",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpenseJuniorSubordinatedDebentures": {
     "auth_ref": [
      "r210"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 4.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest expense incurred during the reporting period on junior subordinated debentures. Includes amortization of expenses incurred in the issuance of subordinated notes and debentures.",
        "label": "Interest Expense Junior Subordinated Debentures",
        "terseLabel": "Interest on junior subordinated debentures"
       }
      }
     },
     "localname": "InterestExpenseJuniorSubordinatedDebentures",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpenseOtherShortTermBorrowings": {
     "auth_ref": [
      "r209"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 3.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest expense incurred during the reporting period on other short-term borrowings.",
        "label": "Interest Expense Other Short Term Borrowings",
        "terseLabel": "Interest on other borrowings"
       }
      }
     },
     "localname": "InterestExpenseOtherShortTermBorrowings",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpenseSecuritiesSoldUnderAgreementsToRepurchase": {
     "auth_ref": [
      "r209",
      "r679",
      "r680"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gross expenses on securities sold coupled with an agreement to repurchase the same from the same counterparty at a fixed or determinable price within a fixed or variable time period.",
        "label": "Interest Expense Securities Sold Under Agreements To Repurchase",
        "terseLabel": "Interest on securities sold under agreements to repurchase"
       }
      }
     },
     "localname": "InterestExpenseSecuritiesSoldUnderAgreementsToRepurchase",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpenseSubordinatedNotesAndDebentures": {
     "auth_ref": [
      "r210"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 5.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest expense incurred during the reporting period on subordinated notes and debentures. Includes amortization of expenses incurred in the issuance of subordinated notes and debentures.",
        "label": "Interest Expense Subordinated Notes And Debentures",
        "terseLabel": "Interest on subordinated debentures"
       }
      }
     },
     "localname": "InterestExpenseSubordinatedNotesAndDebentures",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeAndFeesBankersAcceptancesCertificatesOfDepositAndCommercialPaper": {
     "auth_ref": [
      "r207"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 2.0,
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest and fee income derived from banker's acceptances, certificates of deposit and commercial paper.",
        "label": "Interest Income And Fees Bankers Acceptances Certificates Of Deposit And Commercial Paper",
        "terseLabel": "Interest on certificates of deposit investments"
       }
      }
     },
     "localname": "InterestIncomeAndFeesBankersAcceptancesCertificatesOfDepositAndCommercialPaper",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeDepositsWithFinancialInstitutions": {
     "auth_ref": [
      "r207",
      "r679",
      "r680"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 4.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 financial institutions",
        "totalLabel": "Interest Income, Deposits with Financial Institutions, Total"
       }
      }
     },
     "localname": "InterestIncomeDepositsWithFinancialInstitutions",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss": {
     "auth_ref": [
      "r201"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 0.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "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 credit losses"
       }
      }
     },
     "localname": "InterestIncomeExpenseAfterProvisionForLoanLoss",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeExpenseNet": {
     "auth_ref": [
      "r199"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 0.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",
        "totalLabel": "Net interest income"
       }
      }
     },
     "localname": "InterestIncomeExpenseNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeFederalFundsSold": {
     "auth_ref": [
      "r207",
      "r679",
      "r680"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 3.0,
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest income on federal funds sold. Federal funds sold represent the excess federal funds held by one commercial bank which it lends to another commercial bank, usually at an agreed-upon (federal funds) rate of interest. Such loans generally are of short-duration (overnight).",
        "label": "Interest Income Federal Funds Sold",
        "terseLabel": "Interest on federal funds sold"
       }
      }
     },
     "localname": "InterestIncomeFederalFundsSold",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestPaidNet": {
     "auth_ref": [
      "r273",
      "r276",
      "r277"
     ],
     "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 Net",
        "terseLabel": "Interest"
       }
      }
     },
     "localname": "InterestPaidNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestPayableCurrentAndNoncurrent": {
     "auth_ref": [
      "r188",
      "r226"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 2.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of interest payable on debt, including, but not limited to, trade payables.",
        "label": "Interest Payable Current And Noncurrent",
        "terseLabel": "Interest payable"
       }
      }
     },
     "localname": "InterestPayableCurrentAndNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestRateDerivativeAssetsAtFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value as of the balance sheet date of interest rate derivative assets, which includes all such derivative instruments in hedging and nonhedging relationships that are recognized as assets.",
        "label": "Interest Rate Derivative Assets At Fair Value",
        "terseLabel": "Derivative assets, Interest rate swaps",
        "verboseLabel": "Derivative assets: interest rate swaps"
       }
      }
     },
     "localname": "InterestRateDerivativeAssetsAtFairValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestRateDerivativeLiabilitiesAtFairValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value as of the balance sheet date of interest rate derivative liabilities, which includes all such derivative instruments in hedging and nonhedging relationships that are recognized as liabilities.",
        "label": "Interest Rate Derivative Liabilities At Fair Value",
        "terseLabel": "Derivative liabilities, Interest rate swaps",
        "verboseLabel": "Derivative liabilities: interest swaps"
       }
      }
     },
     "localname": "InterestRateDerivativeLiabilitiesAtFairValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestRateSwapMember": {
     "auth_ref": [
      "r724"
     ],
     "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 Agreements"
       }
      }
     },
     "localname": "InterestRateSwapMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InterestReceivable": {
     "auth_ref": [
      "r738"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 7.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": "Interest receivable"
       }
      }
     },
     "localname": "InterestReceivable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InternalCreditAssessmentAxis": {
     "auth_ref": [
      "r71",
      "r517",
      "r702",
      "r703",
      "r707",
      "r769"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by entity-defined rating.",
        "label": "Internal Credit Assessment [Axis]",
        "terseLabel": "Internal Credit Assessment"
       }
      }
     },
     "localname": "InternalCreditAssessmentAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "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"
       }
      }
     },
     "localname": "InternalCreditAssessmentDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InvestmentInFederalHomeLoanBankStockFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of investments in Federal Home Loan Bank (FHLBank) stock.",
        "label": "Investment In Federal Home Loan Bank Stock Fair Value Disclosure",
        "terseLabel": "Federal Home Loan Bank stock"
       }
      }
     },
     "localname": "InvestmentInFederalHomeLoanBankStockFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "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": "Investments Classified by Contractual Maturity Date"
       }
      }
     },
     "localname": "InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_InvestmentsDebtAndEquitySecuritiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments Debt And Equity Securities [Abstract]"
       }
      }
     },
     "localname": "InvestmentsDebtAndEquitySecuritiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock": {
     "auth_ref": [
      "r94",
      "r175",
      "r213",
      "r234",
      "r681"
     ],
     "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]",
        "terseLabel": "Investment Securities"
       }
      }
     },
     "localname": "InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecurities"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_JuniorSubordinatedDebentureOwedToUnconsolidatedSubsidiaryTrust": {
     "auth_ref": [
      "r190",
      "r227"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 4.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Including the current and noncurrent portions, the carrying value of junior subordinated long-term debt owed to unconsolidated subsidiary trusts as of the balance sheet date. Such debt places a lender in a lien position behind debt having a higher priority of repayment in liquidation of the entity's assets and was initially scheduled to be repaid after one year or beyond the normal operating cycle if longer.",
        "label": "Junior Subordinated Debenture Owed To Unconsolidated Subsidiary Trust",
        "terseLabel": "Junior subordinated debentures, net",
        "totalLabel": "Junior Subordinated Debenture Owed to Unconsolidated Subsidiary Trust, Total"
       }
      }
     },
     "localname": "JuniorSubordinatedDebentureOwedToUnconsolidatedSubsidiaryTrust",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_JuniorSubordinatedDebtMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Borrowing that has a lower priority than senior instruments in event of liquidation of the entity's assets.",
        "label": "Junior Subordinated Debt [Member]",
        "terseLabel": "Junior Subordinated Debentures"
       }
      }
     },
     "localname": "JuniorSubordinatedDebtMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LaborAndRelatedExpense": {
     "auth_ref": [
      "r742"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 0.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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LeaseCost": {
     "auth_ref": [
      "r580",
      "r725"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lease cost recognized by lessee for lease contract.",
        "label": "Lease Cost",
        "totalLabel": "Net lease cost"
       }
      }
     },
     "localname": "LeaseCost",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LeaseCostAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease Cost [Abstract]",
        "terseLabel": "Lease, Cost [Abstract]"
       }
      }
     },
     "localname": "LeaseCostAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LeasesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Leases [Abstract]"
       }
      }
     },
     "localname": "LeasesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_LeasesOperatingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Leases Operating [Abstract]",
        "terseLabel": "Leases, Operating [Abstract]"
       }
      }
     },
     "localname": "LeasesOperatingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfSupplementalBalanceSheetInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LesseeLeaseDescriptionLineItems": {
     "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": "Lessee Lease Description [Line Items]",
        "terseLabel": "Lessee Lease Description [Line Items]"
       }
      }
     },
     "localname": "LesseeLeaseDescriptionLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LesseeLeaseDescriptionTable": {
     "auth_ref": [
      "r571"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about lessee's leases.",
        "label": "Lessee Lease Description [Table]",
        "terseLabel": "Lessee Lease Description [Table]"
       }
      }
     },
     "localname": "LesseeLeaseDescriptionTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock": {
     "auth_ref": [
      "r793"
     ],
     "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": "Summary of Maturities of Lease Liabilities"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue": {
     "auth_ref": [
      "r581"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails2": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails": {
       "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 Payments Due",
        "totalLabel": "Total lease payments"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths": {
     "auth_ref": [
      "r581"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails": {
       "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 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 Payments Due Next Twelve Months",
        "terseLabel": "2024"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour": {
     "auth_ref": [
      "r581"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails": {
       "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 Payments Due Year Four",
        "terseLabel": "2027"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearFour",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree": {
     "auth_ref": [
      "r581"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails": {
       "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 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 Payments Due Year Three",
        "terseLabel": "2026"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearThree",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo": {
     "auth_ref": [
      "r581"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails": {
       "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 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 Payments Due Year Two",
        "terseLabel": "2025"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearTwo",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear": {
     "auth_ref": [
      "r793"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails": {
       "order": 0.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 having initial or remaining lease term in excess of one year to be paid in remainder of current fiscal year.",
        "label": "Lessee Operating Lease Liability Payments Remainder Of Fiscal Year",
        "terseLabel": "2023"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount": {
     "auth_ref": [
      "r581"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails2": {
       "order": 0.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",
        "negatedLabel": "Less imputed interest"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityUndiscountedExcessAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseRenewalTerm": {
     "auth_ref": [
      "r792"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Term of lessee's operating lease renewal, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Lessee Operating Lease Renewal Term",
        "terseLabel": "Renewal term"
       }
      }
     },
     "localname": "LesseeOperatingLeaseRenewalTerm",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_LesseeOperatingLeasesTextBlock": {
     "auth_ref": [
      "r582"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for operating leases of lessee. Includes, but is not limited to, description of operating lease and maturity analysis of operating lease liability.",
        "label": "Lessee Operating Leases [Text Block]",
        "terseLabel": "Leases"
       }
      }
     },
     "localname": "LesseeOperatingLeasesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeases"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_Liabilities": {
     "auth_ref": [
      "r11",
      "r278",
      "r362",
      "r418",
      "r419",
      "r420",
      "r421",
      "r422",
      "r423",
      "r424",
      "r425",
      "r426",
      "r509",
      "r512",
      "r513",
      "r545",
      "r695",
      "r777",
      "r794",
      "r795"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 0.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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesAndStockholdersEquity": {
     "auth_ref": [
      "r10",
      "r181",
      "r224",
      "r726",
      "r750",
      "r765",
      "r791"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "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 Stockholders Equity",
        "totalLabel": "Total liabilities and stockholders\u2019 equity"
       }
      }
     },
     "localname": "LiabilitiesAndStockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesAndStockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities And Stockholders Equity [Abstract]",
        "terseLabel": "Liabilities and stockholders\u2019 equity"
       }
      }
     },
     "localname": "LiabilitiesAndStockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LifeInsuranceCorporateOrBankOwnedChangeInValue": {
     "auth_ref": [
      "r95"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The change in cash surrender or contract value during the period which adjusted the amount of premiums paid in determining the expense or income recognized under the contract for the period.",
        "label": "Life Insurance Corporate Or Bank Owned Change In Value",
        "negatedLabel": "Change in cash surrender value of bank owned life insurance"
       }
      }
     },
     "localname": "LifeInsuranceCorporateOrBankOwnedChangeInValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoanRestructuringModificationAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by concessions made to the terms of loan contracts.",
        "label": "Loan Restructuring Modification [Axis]"
       }
      }
     },
     "localname": "LoanRestructuringModificationAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LoanRestructuringModificationDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Concessions made to the terms of loan contracts, including but not limited to, interest rate reductions, maturity extensions, principal forgiveness, and payment deferral.",
        "label": "Loan Restructuring Modification [Domain]"
       }
      }
     },
     "localname": "LoanRestructuringModificationDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LoansAndLeasesReceivableGrossCarryingAmount": {
     "auth_ref": [
      "r58"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allowance of loans and leases held in portfolio, including but not limited to, commercial and consumer loans. Includes deferred interest and fees, undisbursed portion of loan balance, unamortized costs and premiums and discounts from face amounts. Excludes loans and leases covered under loss sharing agreements.",
        "label": "Loans And Leases Receivable Gross Carrying Amount",
        "terseLabel": "Gross loans"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableGrossCarryingAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansAndLeasesReceivableImpairedInterestLostOnNonaccrualLoans": {
     "auth_ref": [
      "r80"
     ],
     "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 lost on nonaccrual loans"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableImpairedInterestLostOnNonaccrualLoans",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansAndLeasesReceivableNetReportedAmount": {
     "auth_ref": [
      "r58",
      "r193"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after allowance and deduction of deferred interest and fees, unamortized costs and premiums and discounts from face amounts, of loans and leases held in portfolio, including but not limited to, commercial and consumer loans. Excludes loans and leases covered under loss sharing agreements and loans held for sale.",
        "label": "Loans And Leases Receivable Net Reported Amount",
        "totalLabel": "Net loans"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableNetReportedAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansHeldForSaleFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of loans held-for-sale including, but not limited to, mortgage loans and finance receivables.",
        "label": "Loans Held For Sale Fair Value Disclosure",
        "terseLabel": "Loans held for sale"
       }
      }
     },
     "localname": "LoansHeldForSaleFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansNotesTradeAndOtherReceivablesDisclosureTextBlock": {
     "auth_ref": [
      "r759"
     ],
     "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]",
        "terseLabel": "Loans and Allowance for Credit Losses"
       }
      }
     },
     "localname": "LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLosses"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LoansReceivableFairValueDisclosure": {
     "auth_ref": [
      "r79"
     ],
     "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 net of allowance for credit losses"
       }
      }
     },
     "localname": "LoansReceivableFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansReceivableHeldForSaleAmount": {
     "auth_ref": [
      "r328",
      "r664"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_FinancingReceivableBeforeAllowanceForCreditLossAndFee",
       "weight": 1.0
      },
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 5.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before valuation allowance, of financing receivable classified as held-for-sale.",
        "label": "Loans Receivable Held For Sale Amount",
        "terseLabel": "Loans held for sale"
       }
      }
     },
     "localname": "LoansReceivableHeldForSaleAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtFairValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The fair value amount of long-term debt whether such amount is presented as a separate caption or as a parenthetical disclosure. Additionally, this element may be used in connection with the fair value disclosures required in the footnote disclosures to the financial statements. The element may be used in both the balance sheet and disclosure in the same submission.",
        "label": "Long Term Debt Fair Value",
        "terseLabel": "Other borrowings"
       }
      }
     },
     "localname": "LongTermDebtFairValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongtermDebtTypeAxis": {
     "auth_ref": [
      "r12"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of long-term debt.",
        "label": "Longterm Debt Type [Axis]",
        "terseLabel": "Long-Term Debt, Type"
       }
      }
     },
     "localname": "LongtermDebtTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LongtermDebtTypeDomain": {
     "auth_ref": [
      "r12",
      "r109"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Type of long-term debt arrangement, such as notes, line of credit, commercial paper, asset-based financing, project financing, letter of credit financing. 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": "Longterm Debt Type [Domain]",
        "terseLabel": "Long-Term Debt, Type"
       }
      }
     },
     "localname": "LongtermDebtTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MarketApproachValuationTechniqueMember": {
     "auth_ref": [
      "r161"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Valuation approach using price and other relevant information generated by market transaction involving identical or comparable asset, liability, or group of assets and liabilities.",
        "label": "Market Approach Valuation Technique [Member]",
        "terseLabel": "Third Party Valuations"
       }
      }
     },
     "localname": "MarketApproachValuationTechniqueMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MarketableSecuritiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Marketable Securities [Abstract]",
        "terseLabel": "Investment securities:"
       }
      }
     },
     "localname": "MarketableSecuritiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_MarketingAndAdvertisingExpense": {
     "auth_ref": [
      "r32"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 8.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "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": "Marketing and donations",
        "totalLabel": "Marketing and Advertising Expense, Total"
       }
      }
     },
     "localname": "MarketingAndAdvertisingExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MortgageLoansInProcessOfForeclosureAmount": {
     "auth_ref": [
      "r72"
     ],
     "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 secured by real estate In foreclosure"
       }
      }
     },
     "localname": "MortgageLoansInProcessOfForeclosureAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MortgageServicingRightsMSRImpairmentRecovery": {
     "auth_ref": [
      "r748",
      "r803"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The adjustment to the carrying value of the rights retained or purchased to service mortgages. These adjustments are made when the estimate of the fair value is changed. This element is a noncash adjustment to net income when calculating net cash generated by operating activities using the indirect method.",
        "label": "Mortgage Servicing Rights M S R Impairment Recovery",
        "terseLabel": "Mortgage servicing rights (MSR) impairment (recovery)",
        "verboseLabel": "Adjustment to valuation reserve"
       }
      }
     },
     "localname": "MortgageServicingRightsMSRImpairmentRecovery",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivities": {
     "auth_ref": [
      "r275"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 2.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 used in financing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInFinancingActivities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivities": {
     "auth_ref": [
      "r275"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 1.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 provided by investing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInInvestingActivities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivities": {
     "auth_ref": [
      "r44",
      "r46",
      "r49"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 0.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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetIncomeLoss": {
     "auth_ref": [
      "r28",
      "r49",
      "r196",
      "r228",
      "r242",
      "r260",
      "r263",
      "r267",
      "r278",
      "r289",
      "r293",
      "r294",
      "r295",
      "r296",
      "r299",
      "r300",
      "r309",
      "r322",
      "r323",
      "r325",
      "r327",
      "r362",
      "r418",
      "r419",
      "r420",
      "r421",
      "r422",
      "r423",
      "r424",
      "r425",
      "r426",
      "r529",
      "r545",
      "r696",
      "r777"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfComprehensiveIncomeLossUnaudited": {
       "order": 0.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0
      },
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "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",
        "terseLabel": "Net income",
        "totalLabel": "Net income"
       }
      }
     },
     "localname": "NetIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfComprehensiveIncomeLossUnaudited",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted": {
     "auth_ref": [
      "r303",
      "r305",
      "r306",
      "r307",
      "r308",
      "r310",
      "r313"
     ],
     "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": "Net income applicable to diluted earnings per share",
        "totalLabel": "Net Income (Loss) Available to Common Stockholders, Diluted, Total"
       }
      }
     },
     "localname": "NetIncomeLossAvailableToCommonStockholdersDiluted",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "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": "Adoption of New Accounting Guidance"
       }
      }
     },
     "localname": "NewAccountingPronouncementsPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_NoncashOrPartNoncashAcquisitionValueOfAssetsAcquired1": {
     "auth_ref": [
      "r53",
      "r54",
      "r55"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 0.0,
       "parentTag": "us-gaap_NoncashOrPartNoncashAcquisitionValueOfLiabilitiesAssumed1",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The value of an asset or business acquired in a noncash (or part noncash) acquisition. Noncash is defined as information about all investing and financing activities of an enterprise during a period that affect recognized assets or liabilities but that do not result in cash receipts or cash payments in the period. \"Part noncash\" refers to that portion of the transaction not resulting in cash receipts or cash payments in the period.",
        "label": "Noncash Or Part Noncash Acquisition Value Of Assets Acquired1",
        "terseLabel": "Fair value of assets acquired",
        "totalLabel": "Noncash or Part Noncash Acquisition, Value of Assets Acquired, Total"
       }
      }
     },
     "localname": "NoncashOrPartNoncashAcquisitionValueOfAssetsAcquired1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NoncashOrPartNoncashAcquisitionValueOfLiabilitiesAssumed1": {
     "auth_ref": [
      "r53",
      "r54",
      "r55"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total amount of [all] liabilities that an Entity assumes in acquiring a business or in consideration for an asset received in a noncash (or part noncash) acquisition. Noncash is defined as transactions during a period that affect recognized assets or liabilities but that do not result in cash receipts or cash payments in the period. \"Part noncash\" refers to that portion of the transaction not resulting in cash receipts or cash payments in the period.",
        "label": "Noncash Or Part Noncash Acquisition Value Of Liabilities Assumed1",
        "totalLabel": "Fair value of liabilities assumed"
       }
      }
     },
     "localname": "NoncashOrPartNoncashAcquisitionValueOfLiabilitiesAssumed1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NondesignatedMember": {
     "auth_ref": [
      "r143"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative instrument not designated as hedging instrument under Generally Accepted Accounting Principles (GAAP).",
        "label": "Nondesignated [Member]",
        "terseLabel": "Not Designated as Hedging Instrument"
       }
      }
     },
     "localname": "NondesignatedMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_NoninterestBearingDepositLiabilities": {
     "auth_ref": [
      "r184"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 0.0,
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate amount of all domestic and foreign noninterest-bearing deposits liabilities held by the entity.",
        "label": "Noninterest Bearing Deposit Liabilities",
        "terseLabel": "Non-interest bearing",
        "totalLabel": "Noninterest-Bearing Deposit Liabilities, Total"
       }
      }
     },
     "localname": "NoninterestBearingDepositLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NoninterestExpense": {
     "auth_ref": [
      "r206"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total aggregate amount of all noninterest expense.",
        "label": "Noninterest Expense",
        "totalLabel": "Total other expense"
       }
      }
     },
     "localname": "NoninterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NoninterestExpenseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noninterest Expense [Abstract]",
        "terseLabel": "Other expense:"
       }
      }
     },
     "localname": "NoninterestExpenseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NoninterestIncome": {
     "auth_ref": [
      "r203"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "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",
        "totalLabel": "Total other income"
       }
      }
     },
     "localname": "NoninterestIncome",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NoninterestIncomeAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noninterest Income [Abstract]",
        "terseLabel": "Other income:"
       }
      }
     },
     "localname": "NoninterestIncomeAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NoninterestIncomeOtherOperatingIncome": {
     "auth_ref": [
      "r26",
      "r194",
      "r229"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 7.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"
       }
      }
     },
     "localname": "NoninterestIncomeOtherOperatingIncome",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NonrecurringAdjustmentAxis": {
     "auth_ref": [
      "r121"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information about material and nonrecurring adjustment directly attributable to the business combination(s) included in the reported pro forma revenue and earnings (supplemental pro forma information).",
        "label": "Nonrecurring Adjustment [Axis]",
        "terseLabel": "Nonrecurring Adjustment"
       }
      }
     },
     "localname": "NonrecurringAdjustmentAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NonrecurringAdjustmentDomain": {
     "auth_ref": [
      "r121"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Material, nonrecurring adjustment(s) allocated (included) to (in) reported pro forma revenue and earnings (supplemental pro forma information).",
        "label": "Nonrecurring Adjustment [Domain]",
        "terseLabel": "Nonrecurring Adjustment"
       }
      }
     },
     "localname": "NonrecurringAdjustmentDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_NotesReceivableGross": {
     "auth_ref": [
      "r248",
      "r335",
      "r378",
      "r387",
      "r684",
      "r685",
      "r703",
      "r704",
      "r766",
      "r817"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 0.0,
       "parentTag": "us-gaap_NotesReceivableNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortized cost, before allowance for credit loss, of financing receivable. Excludes financing receivable covered under loss sharing agreement and net investment in lease.",
        "label": "Notes Receivable Gross",
        "terseLabel": "Loans",
        "totalLabel": "Financing Receivable, before Allowance for Credit Loss, Total",
        "verboseLabel": "Total Past Due"
       }
      }
     },
     "localname": "NotesReceivableGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NotesReceivableNet": {
     "auth_ref": [
      "r328",
      "r387"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 6.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortized cost, after allowance for credit loss, of financing receivable. Excludes financing receivable covered under loss sharing agreement and net investment in lease.",
        "label": "Notes Receivable Net",
        "totalLabel": "Net loans"
       }
      }
     },
     "localname": "NotesReceivableNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OccupancyNet": {
     "auth_ref": [
      "r33",
      "r204",
      "r235"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 1.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": "Net occupancy and equipment expense"
       }
      }
     },
     "localname": "OccupancyNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseCost": {
     "auth_ref": [
      "r572",
      "r725"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails": {
       "order": 0.0,
       "parentTag": "fmbh_GrossLeaseCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of single lease cost, calculated by allocation of remaining cost of lease over remaining lease term. Includes, but is not limited to, single lease cost, after impairment of right-of-use asset, calculated by amortization of remaining right-of-use asset and accretion of lease liability.",
        "label": "Operating Lease Cost",
        "terseLabel": "Operating lease cost"
       }
      }
     },
     "localname": "OperatingLeaseCost",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Lease Liabilities Payments Due [Abstract]",
        "terseLabel": "Lessee, Operating Lease, Liability, Payment, Due [Abstract]"
       }
      }
     },
     "localname": "OperatingLeaseLiabilitiesPaymentsDueAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OperatingLeaseLiability": {
     "auth_ref": [
      "r569"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails2": {
       "order": 1.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      },
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 6.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease.",
        "label": "Total lease liability",
        "terseLabel": "Lease liabilities",
        "totalLabel": "Total lease liability",
        "verboseLabel": "Operating lease liabilities"
       }
      }
     },
     "localname": "OperatingLeaseLiability",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfSupplementalBalanceSheetInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeasePayments": {
     "auth_ref": [
      "r570",
      "r576"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow from operating lease, excluding payments to bring another asset to condition and location necessary for its intended use.",
        "label": "Operating Lease Payments",
        "negatedLabel": "Operating lease payments",
        "terseLabel": "Operating cash flows from operating leases"
       }
      }
     },
     "localname": "OperatingLeasePayments",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfOperatingLeaseCashFlowsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseRightOfUseAsset": {
     "auth_ref": [
      "r568"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 13.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "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": "Right of use lease assets",
        "verboseLabel": "Operating lease right-of-use assets"
       }
      }
     },
     "localname": "OperatingLeaseRightOfUseAsset",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfSupplementalBalanceSheetInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent": {
     "auth_ref": [
      "r579",
      "r725"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average discount rate for operating lease calculated at point in time.",
        "label": "Operating Lease Weighted Average Discount Rate Percent",
        "terseLabel": "Weighted-average discount rate"
       }
      }
     },
     "localname": "OperatingLeaseWeightedAverageDiscountRatePercent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfSupplementalBalanceSheetInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1": {
     "auth_ref": [
      "r578",
      "r725"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average remaining lease term for operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Operating Lease Weighted Average Remaining Lease Term1",
        "terseLabel": "Weighted-average remaining lease term (in years)"
       }
      }
     },
     "localname": "OperatingLeaseWeightedAverageRemainingLeaseTerm1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfSupplementalBalanceSheetInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Organization Consolidation And Presentation Of Financial Statements [Abstract]"
       }
      }
     },
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock": {
     "auth_ref": [
      "r0",
      "r138"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for organization, consolidation and basis of presentation of financial statements disclosure.",
        "label": "Organization Consolidation And Presentation Of Financial Statements Disclosure [Text Block]",
        "terseLabel": "Basis of Accounting and Consolidation"
       }
      }
     },
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_OtherAssets": {
     "auth_ref": [
      "r177",
      "r220",
      "r245"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 15.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",
        "totalLabel": "Other Assets, Total"
       }
      }
     },
     "localname": "OtherAssets",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherAssetsMember": {
     "auth_ref": [
      "r145",
      "r155"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax": {
     "auth_ref": [
      "r255",
      "r256",
      "r257"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before tax and after adjustment, of 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) and unrealized gain (loss) on investment in debt security measured at amortized cost (held-to-maturity) from transfer to available-for-sale.",
        "label": "Other Comprehensive Income Loss Available For Sale Securities Adjustment Before Tax",
        "negatedLabel": "Net unrealized losses on securities available-for-sale",
        "totalLabel": "OCI, Debt Securities, Available-for-Sale, Gain (Loss), after Adjustment, before Tax, Total"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesTax": {
     "auth_ref": [
      "r255",
      "r256",
      "r258"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after adjustment, of tax expense (benefit) for 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) and tax expense (benefit) for unrealized gain (loss) on investment in debt security measured at amortized cost (held-to-maturity) from transfer to available-for-sale.",
        "label": "Other Comprehensive Income Loss Available For Sale Securities Tax",
        "terseLabel": "Tax benefit",
        "totalLabel": "OCI, Debt Securities, Available-for-Sale, Gain (Loss), after Adjustment, Tax, Total"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossAvailableForSaleSecuritiesTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent": {
     "auth_ref": [
      "r134",
      "r135",
      "r136",
      "r261",
      "r264"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfComprehensiveIncomeLossUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax of other comprehensive income (loss) attributable to parent entity.",
        "label": "Other Comprehensive Income Loss Net Of Tax Portion Attributable To Parent",
        "terseLabel": "Other comprehensive Income (loss), net tax",
        "totalLabel": "Other comprehensive income/(loss), net of taxes"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfComprehensiveIncomeLossUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income Loss Net Of Tax Portion Attributable To Parent [Abstract]",
        "terseLabel": "Other comprehensive income/(loss)"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfComprehensiveIncomeLossUnaudited",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfComprehensiveIncomeLossUnauditedParenthetical"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax": {
     "auth_ref": [
      "r20",
      "r24",
      "r93",
      "r259"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfComprehensiveIncomeLossUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax 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 A O C I For Sale Of Securities Net Of Tax",
        "negatedLabel": "Less: reclassification adjustment for realized gains (losses) included in net income, net of taxes (benefit) of ($13) and $0 for three months ended March 31, 2023 and 2022, respectively",
        "negatedTotalLabel": "Total reclassifications out of accumulated other comprehensive income (loss)",
        "terseLabel": "Less: reclassification adjustment for realized gains (losses) included in net income, net of taxes (benefit) of ($13) and $0 for three months ended March 31, 2023 and 2022, respectively",
        "totalLabel": "Total reclassifications out of accumulated other comprehensive income (loss)",
        "verboseLabel": "Total reclassifications out of accumulated other comprehensive income (loss)"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfComprehensiveIncomeLossUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesTax": {
     "auth_ref": [
      "r21",
      "r93"
     ],
     "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 A O C I For Sale Of Securities Tax",
        "verboseLabel": "Reclassification adjustment for realized gains (losses) included in net income, taxes"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfComprehensiveIncomeLossUnauditedParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax": {
     "auth_ref": [
      "r255",
      "r257"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfComprehensiveIncomeLossUnaudited": {
       "order": 0.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
       "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": "Other Comprehensive Income Unrealized Holding Gain Loss On Securities Arising During Period Net Of Tax",
        "terseLabel": "Unrealized gains (losses) on available-for-sale securities, net of taxes of ($5,544) and $29,898 for three months ended March 31, 2023 and 2022, respectively"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfComprehensiveIncomeLossUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax": {
     "auth_ref": [
      "r21",
      "r256"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before adjustment, of tax expense (benefit) for 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 tax expense (benefit) for unrealized gain (loss) on investment in debt security measured at amortized cost (held-to-maturity) from transfer to available-for-sale.",
        "label": "Other Comprehensive Income Unrealized Holding Gain Loss On Securities Arising During Period Tax",
        "terseLabel": "Unrealized gains (losses) on available-for-sale securities,taxes"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfComprehensiveIncomeLossUnauditedParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherDebtSecuritiesMember": {
     "auth_ref": [
      "r761",
      "r770",
      "r781",
      "r790"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investments in debt securities classified as other.",
        "label": "Other Debt Securities [Member]",
        "terseLabel": "Other Securities",
        "verboseLabel": "Other"
       }
      }
     },
     "localname": "OtherDebtSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherInvestmentsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing other investments.",
        "label": "Other Investments [Member]",
        "terseLabel": "Other Investments"
       }
      }
     },
     "localname": "OtherInvestmentsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherLiabilities": {
     "auth_ref": [
      "r189"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 7.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liabilities classified as other.",
        "label": "Other Liabilities",
        "terseLabel": "Other liabilities",
        "totalLabel": "Other Liabilities, Total"
       }
      }
     },
     "localname": "OtherLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherLiabilitiesMember": {
     "auth_ref": [
      "r145",
      "r155"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherNoninterestExpense": {
     "auth_ref": [
      "r206"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 9.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"
       }
      }
     },
     "localname": "OtherNoninterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherSignificantNoncashTransactionValueOfConsiderationGiven1": {
     "auth_ref": [
      "r53",
      "r54",
      "r55"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 1.0,
       "parentTag": "fmbh_NoncashorPartNoncashAcquisitionTotalConsideration",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The value of the noncash (or part noncash) consideration given (for example, liability, equity) in a transaction. Noncash is defined as transactions during a period that do not result in cash receipts or cash payments in the period. \"Part noncash\" refers to that portion of a transaction not resulting in cash receipts or cash payments in the period.",
        "label": "Other Significant Noncash Transaction Value Of Consideration Given1",
        "terseLabel": "Common stock issued"
       }
      }
     },
     "localname": "OtherSignificantNoncashTransactionValueOfConsiderationGiven1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PassMember": {
     "auth_ref": [
      "r71",
      "r769"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A category of financing receivables not considered to be special mention, substandard, doubtful, and loss receivables.",
        "label": "Pass [Member]",
        "terseLabel": "Pass"
       }
      }
     },
     "localname": "PassMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PastDueFinancingReceivablesTableTextBlock": {
     "auth_ref": [
      "r75",
      "r76",
      "r704",
      "r768"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of aging analysis for financing receivable.",
        "label": "Past Due Financing Receivables Table [Text Block]",
        "terseLabel": "Loan Portfolio Aging Analysis"
       }
      }
     },
     "localname": "PastDueFinancingReceivablesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PaymentDeferralMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loan modification for a temporary postponement of loan payments.",
        "label": "Payment Deferral [Member]",
        "terseLabel": "Payment Delay Investment"
       }
      }
     },
     "localname": "PaymentDeferralMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale": {
     "auth_ref": [
      "r691",
      "r747"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 13.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",
        "negatedLabel": "Origination of loans held for sale"
       }
      }
     },
     "localname": "PaymentsForOriginationOfMortgageLoansHeldForSale",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsForProceedsFromLoansAndLeases": {
     "auth_ref": [
      "r633"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net cash outflow or inflow for the increase (decrease) in the beginning and end of period of loan and lease balances which are not originated or purchased specifically for resale. Includes cash payments and proceeds associated with (a) loans held-for-investment, (b) leases held-for-investment, and (c) both.",
        "label": "Payments For Proceeds From Loans And Leases",
        "negatedLabel": "Net decrease (increase) in loans",
        "totalLabel": "Payments for (Proceeds from) Loans and Leases, Total"
       }
      }
     },
     "localname": "PaymentsForProceedsFromLoansAndLeases",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsForRepurchaseOfCommonStock": {
     "auth_ref": [
      "r42"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 8.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 treasury stock"
       }
      }
     },
     "localname": "PaymentsForRepurchaseOfCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsOfDividends": {
     "auth_ref": [
      "r42"
     ],
     "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",
        "terseLabel": "Dividends paid",
        "totalLabel": "Payments of Dividends, Total"
       }
      }
     },
     "localname": "PaymentsOfDividends",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsOfDividendsCommonStock": {
     "auth_ref": [
      "r42"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 9.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow in the form of ordinary dividends to common shareholders of the parent entity.",
        "label": "Payments Of Dividends Common Stock",
        "negatedLabel": "Dividends paid on common stock"
       }
      }
     },
     "localname": "PaymentsOfDividendsCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsOfStockIssuanceCosts": {
     "auth_ref": [
      "r43"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow for cost incurred directly with the issuance of an equity security.",
        "label": "Payments Of Stock Issuance Costs",
        "negatedLabel": "Direct expenses related to capital transactions"
       }
      }
     },
     "localname": "PaymentsOfStockIssuanceCosts",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt": {
     "auth_ref": [
      "r37",
      "r82",
      "r271"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 5.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 Available For Sale Securities Debt",
        "negatedLabel": "Purchases of securities available-for-sale"
       }
      }
     },
     "localname": "PaymentsToAcquireAvailableForSaleSecuritiesDebt",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireBusinessesGross": {
     "auth_ref": [
      "r38",
      "r506"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_BusinessCombinationConsiderationTransferred1",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow associated with the acquisition of business during the period. The cash portion only of the acquisition price.",
        "label": "Payments To Acquire Businesses Gross",
        "terseLabel": "Consideration payable in cash",
        "verboseLabel": "Consideration paid in cash"
       }
      }
     },
     "localname": "PaymentsToAcquireBusinessesGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireHeldToMaturitySecurities": {
     "auth_ref": [
      "r37",
      "r82"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 6.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": "Purchase of securities hel-to-maturity",
        "terseLabel": "Purchase of securities hel-to-maturity"
       }
      }
     },
     "localname": "PaymentsToAcquireHeldToMaturitySecurities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquirePropertyPlantAndEquipment": {
     "auth_ref": [
      "r39"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 8.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": "Purchases of premises and equipment",
        "totalLabel": "Payments to Acquire Property, Plant, and Equipment, Total"
       }
      }
     },
     "localname": "PaymentsToAcquirePropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireRestrictedCertificatesOfDeposit": {
     "auth_ref": [
      "r40"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow from temporary investment with specific maturity and interest rate that are prohibited for current use.",
        "label": "Payments To Acquire Restricted Certificates Of Deposit",
        "negatedLabel": "Purchases of certificates of deposit investments"
       }
      }
     },
     "localname": "PaymentsToAcquireRestrictedCertificatesOfDeposit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PledgedStatusAxis": {
     "auth_ref": [
      "r508",
      "r721"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by pledged or not pledged status of asset owned by entity.",
        "label": "Pledged Status [Axis]",
        "terseLabel": "Pledged Status"
       }
      }
     },
     "localname": "PledgedStatusAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PledgedStatusDomain": {
     "auth_ref": [
      "r508",
      "r721"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Pledged or not pledged status of asset owned by entity.",
        "label": "Pledged Status [Domain]",
        "terseLabel": "Pledged Status"
       }
      }
     },
     "localname": "PledgedStatusDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PledgingPurposeAxis": {
     "auth_ref": [
      "r604",
      "r721",
      "r727",
      "r784"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by pledging purpose of pledged asset owned.",
        "label": "Pledging Purpose [Axis]",
        "terseLabel": "Pledging Purpose"
       }
      }
     },
     "localname": "PledgingPurposeAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PledgingPurposeDomain": {
     "auth_ref": [
      "r604",
      "r721",
      "r727",
      "r784"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Pledging purpose of pledged asset owned.",
        "label": "Pledging Purpose [Domain]",
        "terseLabel": "Pledging Purpose"
       }
      }
     },
     "localname": "PledgingPurposeDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PortionAtFairValueFairValueDisclosureMember": {
     "auth_ref": [
      "r543"
     ],
     "lang": {
      "en-us": {
       "role": {
        "axisDefault": "Portion at Fair Value Measurement [Member] [Default]",
        "documentation": "Measured at fair value for financial reporting purposes.",
        "label": "Portion At Fair Value Fair Value Disclosure [Member]",
        "terseLabel": "Fair Value Disclosure Item Amounts [Default]"
       }
      }
     },
     "localname": "PortionAtFairValueFairValueDisclosureMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PrincipalForgivenessMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loan modification for a reduction in the amount of unpaid principal on a loan.",
        "label": "Principal Forgiveness [Member]",
        "terseLabel": "Principal Forgiveness"
       }
      }
     },
     "localname": "PrincipalForgivenessMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ProFormaWeightedAverageSharesOutstandingDiluted": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The weighted average number of shares or units and dilutive common stock or unit equivalents outstanding in the calculation of proforma diluted earnings per share (earnings per unit), which is commonly presented in initial public offerings based on the terms of the offering.",
        "label": "Pro Forma Weighted Average Shares Outstanding Diluted",
        "terseLabel": "Diluted weighted average shares o/s"
       }
      }
     },
     "localname": "ProFormaWeightedAverageSharesOutstandingDiluted",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ProceedsFromFederalHomeLoanBankAdvances": {
     "auth_ref": [
      "r743"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow from collection of advance by Federal Home Loan Bank (FHLBank), classified as investing activity.",
        "label": "Proceeds From Federal Home Loan Bank Advances",
        "terseLabel": "Proceeds from FHLB advances"
       }
      }
     },
     "localname": "ProceedsFromFederalHomeLoanBankAdvances",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromIssuanceOfCommonStock": {
     "auth_ref": [
      "r41"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 6.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 issuance of common stock"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities": {
     "auth_ref": [
      "r82",
      "r271",
      "r272"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 3.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 Available For Sale Securities",
        "terseLabel": "Proceeds from maturities of securities available-for-sale"
       }
      }
     },
     "localname": "ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities": {
     "auth_ref": [
      "r34",
      "r82"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 4.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 of securities held-to-maturity"
       }
      }
     },
     "localname": "ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfOtherInvestments": {
     "auth_ref": [
      "r744"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 0.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the maturity (principal being due), prepayment and call (request of early payment) of other investments not otherwise defined in the taxonomy.",
        "label": "Proceeds From Maturities Prepayments And Calls Of Other Investments",
        "terseLabel": "Proceeds from maturities of certificates of deposit investments"
       }
      }
     },
     "localname": "ProceedsFromMaturitiesPrepaymentsAndCallsOfOtherInvestments",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt": {
     "auth_ref": [
      "r34",
      "r82",
      "r271"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 2.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 Available For Sale Securities Debt",
        "terseLabel": "Proceeds from sales of securities available-for-sale"
       }
      }
     },
     "localname": "ProceedsFromSaleOfAvailableForSaleSecuritiesDebt",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfLoansHeldForSale": {
     "auth_ref": [
      "r745",
      "r746"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 14.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 sale of loans held for sale",
        "totalLabel": "Proceeds from Sale of Loans Held-for-sale, Total"
       }
      }
     },
     "localname": "ProceedsFromSaleOfLoansHeldForSale",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfOtherRealEstate": {
     "auth_ref": [
      "r36"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 9.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 property owned"
       }
      }
     },
     "localname": "ProceedsFromSaleOfOtherRealEstate",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProfessionalFees": {
     "auth_ref": [
      "r232",
      "r233"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 6.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "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": "Legal and professional"
       }
      }
     },
     "localname": "ProfessionalFees",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProfitLoss": {
     "auth_ref": [
      "r242",
      "r260",
      "r263",
      "r274",
      "r278",
      "r289",
      "r299",
      "r300",
      "r322",
      "r323",
      "r325",
      "r327",
      "r362",
      "r418",
      "r419",
      "r420",
      "r421",
      "r422",
      "r423",
      "r424",
      "r425",
      "r426",
      "r507",
      "r510",
      "r511",
      "r529",
      "r545",
      "r634",
      "r696",
      "r722",
      "r723",
      "r741",
      "r777"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 0.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The consolidated profit or loss for the period, net of income taxes, including the portion attributable to the noncontrolling interest.",
        "label": "Profit Loss",
        "terseLabel": "Net income",
        "totalLabel": "Net Income (Loss), Including Portion Attributable to Noncontrolling Interest, Total"
       }
      }
     },
     "localname": "ProfitLoss",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentNet": {
     "auth_ref": [
      "r107",
      "r225",
      "r644",
      "r726"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 9.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",
        "totalLabel": "Property, Plant and Equipment, Net, Total"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProvisionForLoanAndLeaseLosses": {
     "auth_ref": [
      "r47",
      "r62",
      "r200"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      },
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "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 credit losses"
       }
      }
     },
     "localname": "ProvisionForLoanAndLeaseLosses",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RealEstateAcquiredThroughForeclosure": {
     "auth_ref": [
      "r329",
      "r330"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 8.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "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": "Other real estate owned",
        "verboseLabel": "Real estate acquired through foreclosure"
       }
      }
     },
     "localname": "RealEstateAcquiredThroughForeclosure",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "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 Loan"
       }
      }
     },
     "localname": "RealEstateLoanMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RealEstateMember": {
     "auth_ref": [
      "r780"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Property consisting of land, land improvement and buildings.",
        "label": "Real Estate [Member]",
        "terseLabel": "Real Estate",
        "verboseLabel": "Loans Secured by Real Estate"
       }
      }
     },
     "localname": "RealEstateMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RealizedGainLossOnInvestmentsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of realized gains and losses on investments reported in the statement of income.",
        "label": "Realized Gain Loss On Investments Table [Text Block]",
        "terseLabel": "Realized Gains and Losses From Sale of Securities"
       }
      }
     },
     "localname": "RealizedGainLossOnInvestmentsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RealizedInvestmentGainsLossesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Realized Investment Gains Losses [Abstract]",
        "terseLabel": "Realized Investment Gains (Losses) [Abstract]"
       }
      }
     },
     "localname": "RealizedInvestmentGainsLossesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesRealizedGainsAndLossesFromSaleOfSecuritiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ReceivablesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Receivables [Abstract]"
       }
      }
     },
     "localname": "ReceivablesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_ResidentialMortgageBackedSecuritiesMember": {
     "auth_ref": [
      "r760",
      "r781"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Securities collateralized by residential real estate mortgage loans.",
        "label": "Residential Mortgage Backed Securities [Member]",
        "terseLabel": "Mortgage-backed Securities: GSE Residential",
        "verboseLabel": "Mortgage-backed Securities"
       }
      }
     },
     "localname": "ResidentialMortgageBackedSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "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 Properties"
       }
      }
     },
     "localname": "ResidentialPortfolioSegmentMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RestrictedStockMember": {
     "auth_ref": [
      "r57"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RestrictedStockUnitsRSUMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share instrument which is convertible to stock or an equivalent amount of cash, after a specified period of time or when specified performance conditions are met.",
        "label": "Restricted Stock Units R S U [Member]",
        "terseLabel": "Restricted Stock Units (RSUs)"
       }
      }
     },
     "localname": "RestrictedStockUnitsRSUMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RetainedEarningsAccumulatedDeficit": {
     "auth_ref": [
      "r7",
      "r111",
      "r223",
      "r658",
      "r663",
      "r726"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 2.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",
        "totalLabel": "Retained Earnings (Accumulated Deficit), Total"
       }
      }
     },
     "localname": "RetainedEarningsAccumulatedDeficit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RetainedEarningsMember": {
     "auth_ref": [
      "r238",
      "r285",
      "r286",
      "r287",
      "r290",
      "r298",
      "r300",
      "r367",
      "r483",
      "r484",
      "r485",
      "r494",
      "r495",
      "r527",
      "r654",
      "r656"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RevenueRecognitionPolicyTextBlock": {
     "auth_ref": [
      "r692",
      "r693"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for revenue. Includes revenue from contract with customer and from other sources.",
        "label": "Revenue Recognition Policy [Text Block]",
        "terseLabel": "Revenue Recognition"
       }
      }
     },
     "localname": "RevenueRecognitionPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability": {
     "auth_ref": [
      "r577",
      "r725"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in right-of-use asset obtained in exchange for operating lease liability.",
        "label": "Right Of Use Asset Obtained In Exchange For Operating Lease Liability",
        "terseLabel": "Initial recognition of right-of-use assets"
       }
      }
     },
     "localname": "RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable": {
     "auth_ref": [
      "r15"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesFinancialEffectOfLoanModificationsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock": {
     "auth_ref": [
      "r15"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the various 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 [Text Block]",
        "terseLabel": "Summary of Loans"
       }
      }
     },
     "localname": "ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfAmountsRecognizedInOtherComprehensiveIncomeLossTableTextBlock": {
     "auth_ref": [
      "r114"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the net gain (loss) and net prior service cost or credit recognized in other comprehensive income (loss) for the period for pension plans and/or other employee benefit plans, and reclassification adjustments of other comprehensive income (loss) for the period, as those amounts, including amortization of the net transition asset or obligation, are recognized as components of net periodic benefit cost.",
        "label": "Schedule Of Amounts Recognized In Other Comprehensive Income Loss Table [Text Block]",
        "terseLabel": "Schedule of Components of Accumulated Other Comprehensive loss"
       }
      }
     },
     "localname": "ScheduleOfAmountsRecognizedInOtherComprehensiveIncomeLossTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTable": {
     "auth_ref": [
      "r283"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule, as of the most recent balance sheet date, of securities or other assets sold under repurchase agreements when this amount exceeds 10 percent of total assets. Disclosure may include the following: the type of securities or assets sold under agreements to repurchase, the carrying amount, market value (including accrued interest plus any cash or other assets on deposit. The information is segregated into securities maturing (1) overnight; (2) term up to 30 days; (3) term of 30 to 90 days; (4) term over 90 days; (5) demand.",
        "label": "Schedule Of Assets Sold Under Agreements To Repurchase [Table]",
        "terseLabel": "Schedule Of Assets Sold Under Agreements To Repurchase [Table]"
       }
      }
     },
     "localname": "ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "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": "Schedule Of Available For Sale Securities [Line Items]",
        "terseLabel": "Schedule Of Available For Sale Securities [Line Items]"
       }
      }
     },
     "localname": "ScheduleOfAvailableForSaleSecuritiesLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable": {
     "auth_ref": [
      "r122",
      "r123",
      "r501"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsTables",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock": {
     "auth_ref": [
      "r146",
      "r151",
      "r514"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the location and amount of derivative instruments and nonderivative instruments designated as hedging instruments reported before netting adjustments, and the amount of gain (loss) on derivative instruments and nonderivative instruments designated and qualified as hedging instruments.",
        "label": "Schedule Of Derivative Instruments Gain Loss In Statement Of Financial Performance [Text Block]",
        "terseLabel": "Summary of Derivative Instruments, Gain (Loss)"
       }
      }
     },
     "localname": "ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock": {
     "auth_ref": [
      "r150"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the location and fair value amounts of derivative instruments (and nonderivative instruments that are designated and qualify as hedging instruments) reported in the statement of financial position.",
        "label": "Schedule Of Derivative Instruments In Statement Of Financial Position Fair Value [Text Block]",
        "terseLabel": "Summary of Fair Value Derivative Instruments"
       }
      }
     },
     "localname": "ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock": {
     "auth_ref": [
      "r754"
     ],
     "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": "Components of Basic and Diluted Net Income per Common Share"
       }
      }
     },
     "localname": "ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureEarningsPerShareTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock": {
     "auth_ref": [
      "r531",
      "r532"
     ],
     "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 at Fair Value on Recurring Basis"
       }
      }
     },
     "localname": "ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfFederalHomeLoanBankAdvancesByBranchOfFHLBBankTable": {
     "auth_ref": [
      "r187",
      "r215",
      "r218"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the total amount of advances due to the Federal Home Loan Bank, by Branch, as of the balance sheet date.",
        "label": "Schedule Of Federal Home Loan Bank Advances By Branch Of F H L B Bank [Table]",
        "terseLabel": "Schedule Of Federal Home Loan Bank Advances By Branch Of F H L B Bank [Table]"
       }
      }
     },
     "localname": "ScheduleOfFederalHomeLoanBankAdvancesByBranchOfFHLBBankTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfFinancingReceivablesNonAccrualStatusTableTextBlock": {
     "auth_ref": [
      "r75",
      "r382"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of financing receivable on nonaccrual status.",
        "label": "Schedule Of Financing Receivables Non Accrual Status Table [Text Block]",
        "terseLabel": "Amortized Cost Basis of Loans on Nonaccrual Status and Nonaccrual Loans Individually Evaluated"
       }
      }
     },
     "localname": "ScheduleOfFinancingReceivablesNonAccrualStatusTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable": {
     "auth_ref": [
      "r99",
      "r101",
      "r624"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of assets, excluding financial assets and goodwill, lacking physical substance with a finite life.",
        "label": "Schedule Of Finite Lived Intangible Assets [Table]",
        "terseLabel": "Schedule Of Finite Lived Intangible Assets [Table]"
       }
      }
     },
     "localname": "ScheduleOfFiniteLivedIntangibleAssetsTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfGoodwillTable": {
     "auth_ref": [
      "r399",
      "r400",
      "r401",
      "r402",
      "r403",
      "r404",
      "r405",
      "r406",
      "r407",
      "r408",
      "r409",
      "r706"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of goodwill and the changes during the year due to acquisition, sale, impairment or for other reasons.",
        "label": "Schedule Of Goodwill [Table]",
        "terseLabel": "Schedule Of Goodwill [Table]"
       }
      }
     },
     "localname": "ScheduleOfGoodwillTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfIntangibleAssetsAndGoodwillTableTextBlock": {
     "auth_ref": [
      "r96"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of goodwill and intangible assets, which may be broken down by segment or major class.",
        "label": "Schedule Of Intangible Assets And Goodwill Table [Text Block]",
        "terseLabel": "Schedule of Intangible Assets and Goodwill"
       }
      }
     },
     "localname": "ScheduleOfIntangibleAssetsAndGoodwillTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfOtherOperatingCostAndExpenseByComponentTextBlock": {
     "auth_ref": [
      "r31"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of each detailed component of other operating costs and expenses that are applicable to sales and revenues, but not included in the cost of sales in the income statement.",
        "label": "Schedule Of Other Operating Cost And Expense By Component [Text Block]",
        "terseLabel": "Summary of Components of Lease Expense"
       }
      }
     },
     "localname": "ScheduleOfOtherOperatingCostAndExpenseByComponentTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock": {
     "auth_ref": [
      "r126"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the amounts recognized as of the acquisition date for each major class of assets acquired and liabilities assumed. May include but not limited to the following: (a) acquired receivables; (b) contingencies recognized at the acquisition date; and (c) the fair value of noncontrolling interests in the acquiree.",
        "label": "Schedule Of Recognized Identified Assets Acquired And Liabilities Assumed Table [Text Block]",
        "terseLabel": "Estimated Fair Values of Assets Acquired and Liabilities Assumed"
       }
      }
     },
     "localname": "ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfSecuritiesFinancingTransactionsTextBlock": {
     "auth_ref": [
      "r173",
      "r253"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of securities financing transactions including resale and repurchase agreements, securities borrowed and lending transactions, securities received as collateral and obligations to return securities received as collateral.",
        "label": "Schedule Of Securities Financing Transactions [Text Block]",
        "terseLabel": "Schedule of Securities Financing Transactions"
       }
      }
     },
     "localname": "ScheduleOfSecuritiesFinancingTransactionsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfUnrealizedLossOnInvestmentsTableTextBlock": {
     "auth_ref": [
      "r92"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For all investments in an unrealized loss position, including those 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), a tabular disclosure of the aggregate related fair value of investments with unrealized losses and the aggregate amount of unrealized losses (that is, the amount by which amortized cost basis exceeds fair value).",
        "label": "Schedule Of Unrealized Loss On Investments Table [Text Block]",
        "terseLabel": "Fair Value of Investments with Sustained Gross Unrealized Losses"
       }
      }
     },
     "localname": "ScheduleOfUnrealizedLossOnInvestmentsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock": {
     "auth_ref": [
      "r101"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the amount of amortization expense expected to be recorded in succeeding fiscal years for finite-lived intangible assets.",
        "label": "Scheduleof Finite Lived Intangible Assets Future Amortization Expense Table [Text Block]",
        "terseLabel": "Schedule of Expected Amortization Expense"
       }
      }
     },
     "localname": "ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SecuritiesLoanedOrSoldUnderAgreementsToRepurchaseFairValueDisclosure": {
     "auth_ref": [
      "r166"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of securities that an entity sells and agrees to repurchase at a specified date for a specified price.",
        "label": "Securities Loaned Or Sold Under Agreements To Repurchase Fair Value Disclosure",
        "terseLabel": "Securities sold under agreements to repurchase"
       }
      }
     },
     "localname": "SecuritiesLoanedOrSoldUnderAgreementsToRepurchaseFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SecuritiesSoldUnderAgreementsToRepurchase": {
     "auth_ref": [
      "r185",
      "r252",
      "r254",
      "r281",
      "r282"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_Liabilities",
       "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": "Securities sold under agreements to repurchase",
        "totalLabel": "Securities Sold under Agreements to Repurchase, Total"
       }
      }
     },
     "localname": "SecuritiesSoldUnderAgreementsToRepurchase",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseMember": {
     "auth_ref": [
      "r166"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The securities that an institution sells and agrees to repurchase (the identical or substantially the same securities) as a seller-borrower at a specified date for a specified price, also known as a repurchase agreement, or repo. Most repos involve obligations of the federal government or its agencies, but other financial instruments, such as commercial paper, banker's acceptances, and negotiable certificates of deposit, are sometimes used in repos.",
        "label": "Securities Sold Under Agreements To Repurchase [Member]",
        "terseLabel": "Securities Sold under Agreements to Repurchase"
       }
      }
     },
     "localname": "SecuritiesSoldUnderAgreementsToRepurchaseMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShareBasedCompensation": {
     "auth_ref": [
      "r47"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 5.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 Compensation",
        "terseLabel": "Stock-based compensation expense",
        "totalLabel": "Share-Based Payment Arrangement, Noncash Expense, Total"
       }
      }
     },
     "localname": "ShareBasedCompensation",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized": {
     "auth_ref": [
      "r720"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares authorized for issuance under share-based payment arrangement.",
        "label": "Share Based Compensation Arrangement By Share Based Payment Award Number Of Shares Authorized",
        "terseLabel": "Maximum number of shares to be issued in stock incentive plan (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross": {
     "auth_ref": [
      "r462"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gross number of share options (or share units) granted during the period.",
        "label": "Share Based Compensation Arrangement By Share Based Payment Award Options Grants In Period Gross",
        "terseLabel": "Common stock awarded in SI plan (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "auth_ref": [
      "r454",
      "r455",
      "r456",
      "r458",
      "r459",
      "r460",
      "r461",
      "r462",
      "r463",
      "r464",
      "r465",
      "r466",
      "r467",
      "r468",
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r474",
      "r475",
      "r478",
      "r479",
      "r480",
      "r481",
      "r482"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Award under share-based payment arrangement.",
        "label": "Share Based Compensation Arrangements By Share Based Payment Award Award Type And Plan Name [Domain]",
        "terseLabel": "Award Type"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShareBasedCompensationOptionAndIncentivePlansPolicy": {
     "auth_ref": [
      "r457",
      "r476",
      "r477",
      "r478",
      "r479",
      "r482",
      "r486",
      "r487"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for award under share-based payment arrangement. Includes, but is not limited to, methodology and assumption used in measuring cost.",
        "label": "Share Based Compensation Option And Incentive Plans Policy",
        "terseLabel": "Stock Plans"
       }
      }
     },
     "localname": "ShareBasedCompensationOptionAndIncentivePlansPolicy",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ShortTermLeaseCost": {
     "auth_ref": [
      "r573",
      "r725"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails": {
       "order": 1.0,
       "parentTag": "fmbh_GrossLeaseCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of short-term lease cost, excluding expense for lease with term of one month or less.",
        "label": "Short Term Lease Cost",
        "terseLabel": "Short-term lease cost"
       }
      }
     },
     "localname": "ShortTermLeaseCost",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SpecialMentionMember": {
     "auth_ref": [
      "r71",
      "r769"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A category of financing receivables considered to have potential weaknesses that deserve management's close attention. If left uncorrected, those potential weaknesses may result in a deterioration of the repayment prospects for the asset or of the creditor's position at some future date.",
        "label": "Special Mention [Member]",
        "terseLabel": "Special Mention"
       }
      }
     },
     "localname": "SpecialMentionMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_StatementEquityComponentsAxis": {
     "auth_ref": [
      "r14",
      "r110",
      "r238",
      "r265",
      "r266",
      "r267",
      "r285",
      "r286",
      "r287",
      "r290",
      "r298",
      "r300",
      "r319",
      "r367",
      "r445",
      "r483",
      "r484",
      "r485",
      "r494",
      "r495",
      "r527",
      "r554",
      "r555",
      "r556",
      "r557",
      "r558",
      "r559",
      "r588",
      "r654",
      "r655",
      "r656"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by component of equity.",
        "label": "Statement Equity Components [Axis]",
        "terseLabel": "Accumulated Other Comprehensive Income (Loss)"
       }
      }
     },
     "localname": "StatementEquityComponentsAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfCashFlowsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement Of Cash Flows [Abstract]"
       }
      }
     },
     "localname": "StatementOfCashFlowsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfFinancialPositionAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement Of Financial Position [Abstract]"
       }
      }
     },
     "localname": "StatementOfFinancialPositionAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfIncomeAndComprehensiveIncomeAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement Of Income And Comprehensive Income [Abstract]"
       }
      }
     },
     "localname": "StatementOfIncomeAndComprehensiveIncomeAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfStockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement Of Stockholders Equity [Abstract]"
       }
      }
     },
     "localname": "StatementOfStockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementTable": {
     "auth_ref": [
      "r285",
      "r286",
      "r287",
      "r319",
      "r623"
     ],
     "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/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesAcquisitions": {
     "auth_ref": [
      "r4",
      "r5",
      "r111"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares of stock issued during the period pursuant to acquisitions.",
        "label": "Stock Issued During Period Shares Acquisitions",
        "terseLabel": "Stock Issued During Period, Shares, Acquisitions"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesAcquisitions",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesDividendReinvestmentPlan": {
     "auth_ref": [
      "r110"
     ],
     "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": "Issuance of common shares pursuant to the Dividend Reinvestment Plan (in shares)"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesDividendReinvestmentPlan",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans": {
     "auth_ref": [
      "r4",
      "r5",
      "r110",
      "r111"
     ],
     "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": "Stock issued during period, shares, employee stock purchase plans"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardForfeited": {
     "auth_ref": [
      "r4",
      "r5",
      "r110",
      "r111"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares related to Restricted Stock Award forfeited during the period.",
        "label": "Stock Issued During Period Shares Restricted Stock Award Forfeited",
        "terseLabel": "Stock issued during period, shares, restricted stock award, forfeited"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesRestrictedStockAwardForfeited",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross": {
     "auth_ref": [
      "r110",
      "r111"
     ],
     "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": "Restricted stock issued during period, shares, pursuant to the 2017 stock incentive plan"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesRestrictedStockAwardGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueAcquisitions": {
     "auth_ref": [
      "r14",
      "r110",
      "r111"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value of stock issued pursuant to acquisitions during the period.",
        "label": "Stock Issued During Period Value Acquisitions",
        "terseLabel": "Issuance of shares pursuant to the acquisition"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueAcquisitions",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueDividendReinvestmentPlan": {
     "auth_ref": [
      "r110"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value of stock issued during the period from a dividend reinvestment plan (DRIP). A dividend reinvestment plan allows the holder of the stock to reinvest dividends paid to them by the entity on new issues of stock by the entity.",
        "label": "Stock Issued During Period Value Dividend Reinvestment Plan",
        "terseLabel": "Issuance of common shares pursuant to the dividend reinvestment plan"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueDividendReinvestmentPlan",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan": {
     "auth_ref": [
      "r4",
      "r5",
      "r110",
      "r111"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate change in value for stock issued during the period as a result of employee stock purchase plan.",
        "label": "Stock Issued During Period Value Employee Stock Purchase Plan",
        "terseLabel": "Issuance of common shares pursuant to the employee stock purchase plan"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueEmployeeStockPurchasePlan",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardForfeitures": {
     "auth_ref": [
      "r4",
      "r5",
      "r110",
      "r111"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value of stock related to Restricted Stock Awards forfeited during the period.",
        "label": "Stock Issued During Period Value Restricted Stock Award Forfeitures",
        "negatedLabel": "Forfeiture of restricted shares pursuant to the 2017 stock incentive plan"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueRestrictedStockAwardForfeitures",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardGross": {
     "auth_ref": [
      "r4",
      "r5",
      "r110",
      "r111"
     ],
     "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 shares pursuant to the stock incentive plan"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueRestrictedStockAwardGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquity": {
     "auth_ref": [
      "r5",
      "r8",
      "r9",
      "r78",
      "r726",
      "r750",
      "r765",
      "r791"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 1.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",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance",
        "terseLabel": "Balance",
        "totalLabel": "Total stockholders\u2019 equity"
       }
      }
     },
     "localname": "StockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stockholders Equity [Abstract]",
        "terseLabel": "Stockholders\u2019 equity:"
       }
      }
     },
     "localname": "StockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubleaseIncome": {
     "auth_ref": [
      "r575",
      "r725"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_LeaseCost",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of sublease income excluding finance and operating lease expense.",
        "label": "Sublease Income",
        "negatedLabel": "Income from subleases"
       }
      }
     },
     "localname": "SubleaseIncome",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SubordinatedDebt": {
     "auth_ref": [
      "r1",
      "r3",
      "r180",
      "r222"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 5.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Including the current and noncurrent portions, carrying value as of the balance sheet date of subordinated debt (with initial maturities beyond one year or beyond the operating cycle if longer). Subordinated debt places a lender in a lien position behind debt having a higher priority of repayment in liquidation of the entity's assets.",
        "label": "Subordinated Debt",
        "periodEndLabel": "Subordinated Debt, Ending Balance",
        "periodStartLabel": "Subordinated Debt, Beginning Balance",
        "terseLabel": "Subordinated debt, net",
        "totalLabel": "Subordinated Debt, Total"
       }
      }
     },
     "localname": "SubordinatedDebt",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SubordinatedDebtMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents domestic or foreign subordinated debt. Subordinated debt has a lower priority of repayment in liquidation of the entity's assets.",
        "label": "Subordinated Debt [Member]",
        "terseLabel": "Subordinated Debt"
       }
      }
     },
     "localname": "SubordinatedDebtMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SubstandardMember": {
     "auth_ref": [
      "r71",
      "r769"
     ],
     "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": "Substandard"
       }
      }
     },
     "localname": "SubstandardMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SupplementalCashFlowInformationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Supplemental Cash Flow Information [Abstract]",
        "terseLabel": "Supplemental disclosures of cash flow information"
       }
      }
     },
     "localname": "SupplementalCashFlowInformationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SuppliesExpense": {
     "auth_ref": [
      "r206"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited": {
       "order": 5.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense associated with supplies that were used during the current accounting period.",
        "label": "Supplies Expense",
        "terseLabel": "Stationery and supplies"
       }
      }
     },
     "localname": "SuppliesExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TransferToOtherRealEstate": {
     "auth_ref": [
      "r53",
      "r54",
      "r55"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value transferred from mortgage loans to real estate owned (REO) in noncash transactions.",
        "label": "Transfer To Other Real Estate",
        "terseLabel": "Loans transferred to other real estate"
       }
      }
     },
     "localname": "TransferToOtherRealEstate",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain": {
     "auth_ref": [
      "r352",
      "r356",
      "r443",
      "r444",
      "r518",
      "r589",
      "r590",
      "r591",
      "r592",
      "r593",
      "r594",
      "r595",
      "r596",
      "r597",
      "r598",
      "r599",
      "r600",
      "r601",
      "r602",
      "r606",
      "r607",
      "r608",
      "r609",
      "r610",
      "r611",
      "r612",
      "r613",
      "r614",
      "r615",
      "r616",
      "r617",
      "r618",
      "r619",
      "r620",
      "r621",
      "r762",
      "r763",
      "r764",
      "r810",
      "r811",
      "r812",
      "r813",
      "r814",
      "r815",
      "r816"
     ],
     "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": "Transfers And Servicing Of Financial Instruments Types Of Financial Instruments [Domain]",
        "terseLabel": "Financial Instruments"
       }
      }
     },
     "localname": "TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TreasuryStockCommonMember": {
     "auth_ref": [
      "r112"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Previously issued common shares repurchased by the issuing entity and held in treasury.",
        "label": "Treasury Stock Common [Member]",
        "terseLabel": "Treasury Stock"
       }
      }
     },
     "localname": "TreasuryStockCommonMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TreasuryStockCommonValue": {
     "auth_ref": [
      "r16",
      "r112",
      "r113"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited": {
       "order": 5.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount allocated to previously issued common shares repurchased by the issuing entity and held in treasury.",
        "label": "Treasury Stock Common Value",
        "negatedLabel": "Less treasury stock, at cost (639,260 shares in 2023 and 639,090 shares in 2022)"
       }
      }
     },
     "localname": "TreasuryStockCommonValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TreasuryStockShares": {
     "auth_ref": [
      "r13",
      "r112"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of common and preferred shares that were previously issued and that were repurchased by the issuing entity and held in treasury on the financial statement date. This stock has no voting rights and receives no dividends.",
        "label": "Treasury Stock Shares",
        "terseLabel": "Treasury stock (in shares)",
        "totalLabel": "Treasury Stock, Shares, Total"
       }
      }
     },
     "localname": "TreasuryStockShares",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_TreasuryStockSharesAcquired": {
     "auth_ref": [
      "r5",
      "r110",
      "r111"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares that have been repurchased during the period and are being held in treasury.",
        "label": "Treasury Stock Shares Acquired",
        "terseLabel": "Purchase of treasury shares (in shares)"
       }
      }
     },
     "localname": "TreasuryStockSharesAcquired",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_TreasuryStockValueAcquiredCostMethod": {
     "auth_ref": [
      "r110",
      "r111",
      "r112"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity impact of the cost of common and preferred stock that were repurchased during the period. Recorded using the cost method.",
        "label": "Treasury Stock Value Acquired Cost Method",
        "negatedLabel": "Purchase of shares of treasury stock"
       }
      }
     },
     "localname": "TreasuryStockValueAcquiredCostMethod",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TroubledDebtRestructuringsOnFinancingReceivablesTableTextBlock": {
     "auth_ref": [
      "r756",
      "r757"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of financing receivable modified as troubled debt restructuring.",
        "label": "Troubled Debt Restructurings On Financing Receivables Table [Text Block]",
        "terseLabel": "Amortized Cost Basis of Loans Modification"
       }
      }
     },
     "localname": "TroubledDebtRestructuringsOnFinancingReceivablesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_TypeOfAdoptionMember": {
     "auth_ref": [
      "r236",
      "r237",
      "r238",
      "r239",
      "r240",
      "r289",
      "r290",
      "r291",
      "r292",
      "r301",
      "r340",
      "r341",
      "r364",
      "r365",
      "r366",
      "r367",
      "r368",
      "r369",
      "r483",
      "r484",
      "r485",
      "r492",
      "r493",
      "r494",
      "r495",
      "r503",
      "r504",
      "r505",
      "r519",
      "r520",
      "r521",
      "r522",
      "r523",
      "r524",
      "r525",
      "r526",
      "r527",
      "r528",
      "r529",
      "r530",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552",
      "r553",
      "r560",
      "r561",
      "r564",
      "r565",
      "r566",
      "r567",
      "r583",
      "r584",
      "r585",
      "r586",
      "r587",
      "r588",
      "r625",
      "r626",
      "r627",
      "r652",
      "r653",
      "r654",
      "r655",
      "r656",
      "r657",
      "r658",
      "r659",
      "r660",
      "r661",
      "r662",
      "r663"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amendment to accounting standards.",
        "label": "Type Of Adoption [Member]",
        "terseLabel": "Accounting Standards Update"
       }
      }
     },
     "localname": "TypeOfAdoptionMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_USStatesAndPoliticalSubdivisionsMember": {
     "auth_ref": [
      "r714",
      "r807"
     ],
     "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": "U S States And Political Subdivisions [Member]",
        "terseLabel": "Obligations of States and Political Subdivisions"
       }
      }
     },
     "localname": "USStatesAndPoliticalSubdivisionsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_USTreasuryAndGovernmentMember": {
     "auth_ref": [
      "r635",
      "r714",
      "r807"
     ],
     "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": "U S Treasury And Government [Member]",
        "terseLabel": "U.S. Treasury Securities and Obligations of U.S. Government Corporations and Agencies"
       }
      }
     },
     "localname": "USTreasuryAndGovernmentMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "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": "All Other Loans",
        "verboseLabel": "Other Loans"
       }
      }
     },
     "localname": "UnallocatedFinancingReceivablesMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_UseRightsMember": {
     "auth_ref": [
      "r128"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Legal right to use or benefit from the use of natural resources or access. Examples include, but are not limited to, drilling rights, water rights, air rights, timber cutting rights and route authorities.",
        "label": "Use Rights [Member]",
        "terseLabel": "Right of Use Asset"
       }
      }
     },
     "localname": "UseRightsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ValuationTechniqueAxis": {
     "auth_ref": [
      "r161"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by valuation approach and technique.",
        "label": "Valuation Technique [Axis]",
        "terseLabel": "Valuation Approach and Technique"
       }
      }
     },
     "localname": "ValuationTechniqueAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ValuationTechniqueDomain": {
     "auth_ref": [
      "r161"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Valuation approach and technique.",
        "label": "Valuation Technique [Domain]",
        "terseLabel": "Valuation Approach and Technique"
       }
      }
     },
     "localname": "ValuationTechniqueDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_VariableLeaseCost": {
     "auth_ref": [
      "r574",
      "r725"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails": {
       "order": 2.0,
       "parentTag": "fmbh_GrossLeaseCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of variable lease cost, excluded from lease liability, recognized when obligation for payment is incurred for finance and operating leases.",
        "label": "Variable Lease Cost",
        "terseLabel": "Variable lease cost"
       }
      }
     },
     "localname": "VariableLeaseCost",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_WeightedAverageBasicSharesOutstandingProForma": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The weighted average number of shares (units) outstanding in the calculation of pro forma basic earnings per share (earnings per unit), which is commonly presented in initial public offerings based on the terms of the offering.",
        "label": "Weighted Average Basic Shares Outstanding Pro Forma",
        "terseLabel": "Basic weighted average shares o/s"
       }
      }
     },
     "localname": "WeightedAverageBasicSharesOutstandingProForma",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding": {
     "auth_ref": [
      "r303",
      "r313"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails": {
       "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 Diluted Shares Outstanding",
        "totalLabel": "Diluted weighted average common shares outstanding"
       }
      }
     },
     "localname": "WeightedAverageNumberOfDilutedSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic": {
     "auth_ref": [
      "r302",
      "r313"
     ],
     "calculation": {
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails": {
       "order": 0.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": "Weighted average common shares outstanding",
        "totalLabel": "Weighted Average Number of Shares Outstanding, Basic, Total"
       }
      }
     },
     "localname": "WeightedAverageNumberOfSharesOutstandingBasic",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.firstmid.com/20230331/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails"
     ],
     "xbrltype": "sharesItemType"
    }
   },
   "unitCount": 8
  }
 },
 "std_ref": {
  "r0": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "205",
   "URI": "https://asc.fasb.org/topic&trid=2122149",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r1": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(19))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r10": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(32))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r100": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "((a)(1),(b))",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r101": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r102": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(1)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r103": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(2)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r104": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r105": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "350",
   "URI": "https://asc.fasb.org/topic&trid=2144416",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r106": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=126905981&loc=d3e2599-110228",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r107": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r108": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=109226691&loc=d3e2941-110230",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r109": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123465755&loc=SL6230698-112601",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r11": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19-26)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r110": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=d3e21463-112644",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r111": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.3-04)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=120397183&loc=d3e187085-122770",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r112": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=6405813&loc=d3e23239-112655",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r113": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=6405834&loc=d3e23315-112656",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r114": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(i)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r115": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(l)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r116": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(b)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=109244661&loc=d3e17540-113929",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r117": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "05",
   "SubTopic": "10",
   "Subparagraph": "(a)-(d)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=6909625&loc=d3e227-128457",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r118": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "10",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=123586518&loc=d3e961-128460",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r119": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "23",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "10",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=123586518&loc=d3e1043-128460",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r12": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r120": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=79982066&loc=d3e1392-128463",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r121": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(4)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=79982066&loc=d3e1392-128463",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r122": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=79982066&loc=d3e1392-128463",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r123": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=79982066&loc=d3e1486-128463",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r124": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "37",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=123455525&loc=d3e2207-128464",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r125": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=128092470&loc=d3e4845-128472",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r126": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=128092470&loc=d3e4845-128472",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r127": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=123410050&loc=d3e5333-128473",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r128": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "31",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Subparagraph": "(i)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=123410050&loc=d3e5419-128473",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r129": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "30",
   "SubTopic": "30",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=126966197&loc=d3e6578-128477",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r13": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.29,30)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r130": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "30",
   "SubTopic": "30",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=126966197&loc=d3e6613-128477",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r131": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=126975305&loc=d3e6927-128479",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r132": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)(4)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=126975305&loc=d3e6927-128479",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r133": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "805",
   "URI": "https://asc.fasb.org/topic&trid=2303972",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r134": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=126929396&loc=SL4569616-111683",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r135": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=126929396&loc=SL4569643-111683",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r136": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(3)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r137": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c),(3)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r138": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "810",
   "URI": "https://asc.fasb.org/topic&trid=2197479",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r139": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5579240-113959",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r14": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.29-31)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r140": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5579245-113959",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r141": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5580258-113959",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r142": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)(i)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=d3e41620-113959",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r143": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=d3e41620-113959",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r144": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=d3e41638-113959",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r145": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5618551-113959",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r146": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5618551-113959",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r147": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a),(c)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5624163-113959",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r148": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5624163-113959",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r149": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5624163-113959",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r15": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.3,4)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r150": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5624163-113959",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r151": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5624171-113959",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r152": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5624177-113959",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r153": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=d3e41641-113959",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r154": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=d3e41678-113959",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r155": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "182",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=127000641&loc=SL5629052-113961",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r156": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "25",
   "Subparagraph": "(a)(1)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=121577467&loc=d3e76258-113986",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r157": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "25",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=121577467&loc=d3e76258-113986",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r158": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "815",
   "URI": "https://asc.fasb.org/topic&trid=2229140",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r159": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r16": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.30)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r160": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r161": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r162": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r163": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r164": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19279-110258",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r165": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=SL6742756-110258",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r166": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=123594938&loc=d3e13433-108611",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r167": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=123594938&loc=d3e13467-108611",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r168": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=123594938&loc=d3e13476-108611",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r169": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "825",
   "URI": "https://asc.fasb.org/topic&trid=2134543",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r17": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=99393222&loc=SL20226000-175313",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r170": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "230",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=123444420&loc=d3e33268-110906",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r171": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "https://asc.fasb.org/extlink&oid=124435984&loc=d3e28555-108399",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r172": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=SL51823488-111719",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r173": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=109249958&loc=SL6224234-111729",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r174": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "20",
   "Topic": "940",
   "URI": "https://asc.fasb.org/extlink&oid=126941158&loc=d3e41242-110953",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r175": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "940",
   "URI": "https://asc.fasb.org/subtopic&trid=2176304",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r176": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "210",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126970686&loc=d3e59706-112781",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r177": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(10))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r178": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(11))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r179": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(13))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r18": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(i),(j),(k)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669646-108580",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r180": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(16))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r181": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(23))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r182": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.1)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r183": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.1,2,3)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r184": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.12)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r185": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.13(1))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r186": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.13(3)(a))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r187": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.13,16)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r188": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.15(5))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r189": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.15)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r19": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669646-108580",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r190": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.16)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r191": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.2)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r192": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.3)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r193": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.7)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r194": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(13))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r195": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(15))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r196": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(22))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r197": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.1)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r198": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.1-5)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r199": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.10)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r2": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(20))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r20": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=d3e637-108580",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r200": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.11)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r201": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.12)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r202": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.13(c),(d))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r203": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.13)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r204": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.14(b))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r205": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.14(d))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r206": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.14)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r207": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.4)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r208": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.6)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r209": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.7)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r21": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=d3e640-108580",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r210": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.8)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r211": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.9)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r212": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "230",
   "Subparagraph": "(b)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=123398031&loc=d3e60009-112784",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r213": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "942",
   "URI": "https://asc.fasb.org/subtopic&trid=2209399",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r214": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "405",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=6957935&loc=d3e64057-112817",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r215": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "470",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=6479118&loc=d3e64650-112822",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r216": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "470",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=123599511&loc=d3e64684-112823",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r217": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "470",
   "Subparagraph": "(b)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=123599511&loc=d3e64711-112823",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r218": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "470",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=123599511&loc=d3e64711-112823",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r219": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(16))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r22": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=d3e681-108580",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r220": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(10))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r221": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(12))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r222": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(16))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r223": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(23)(a)(4))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r224": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(25))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r225": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(8))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r226": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.15(a))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r227": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.16)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r228": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(18))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r229": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(4))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r23": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669686-108580",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r230": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(8))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r231": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04.4)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r232": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "220",
   "Subparagraph": "(k)",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=124433917&loc=SL114874205-224268",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r233": {
   "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": "https://asc.fasb.org/extlink&oid=120401555&loc=SL114874292-224272",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r234": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "946",
   "URI": "https://asc.fasb.org/subtopic&trid=2324412",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r235": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "840",
   "URI": "https://asc.fasb.org/extlink&oid=123386454&loc=d3e45280-112737",
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef"
  },
  "r236": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "105",
   "URI": "https://asc.fasb.org/extlink&oid=126987489&loc=SL124442142-165695",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r237": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "105",
   "URI": "https://asc.fasb.org/extlink&oid=126987489&loc=SL124442142-165695",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r238": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "105",
   "URI": "https://asc.fasb.org/extlink&oid=126987489&loc=SL124442142-165695",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r239": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "105",
   "URI": "https://asc.fasb.org/extlink&oid=126987489&loc=SL124442142-165695",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r24": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=d3e689-108580",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r240": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "105",
   "URI": "https://asc.fasb.org/extlink&oid=126987489&loc=SL124442142-165695",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r241": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(2)",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222650&loc=SL51721675-107760",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r242": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222650&loc=SL51721683-107760",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r243": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(15))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r244": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(16))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r245": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(17))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r246": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(18))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r247": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(2))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r248": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(3)(b))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r249": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(4))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r25": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=d3e557-108580",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r250": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(4))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r251": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r252": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r253": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=51824906&loc=SL20225877-175312",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r254": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=99393222&loc=SL20226008-175313",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r255": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669646-108580",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r256": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669646-108580",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r257": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=d3e637-108580",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r258": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=d3e640-108580",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r259": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL34724391-108580",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r26": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(1)(e))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868656-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r260": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669619-108580",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r261": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669619-108580",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r262": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669619-108580",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r263": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669625-108580",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r264": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669625-108580",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r265": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=124431353&loc=SL124442407-227067",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r266": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=124431353&loc=SL124442411-227067",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r267": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=124431353&loc=SL124452729-227067",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r268": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(210.5-03(11))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r269": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(24))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r27": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(10))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r270": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(25))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r271": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3151-108585",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r272": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3179-108585",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r273": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3367-108585",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r274": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3000-108585",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r275": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3521-108585",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r276": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3536-108585",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r277": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126999549&loc=d3e4297-108586",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r278": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(g)(1)(ii))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r279": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h)(2))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r28": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(20))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r280": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r281": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(1)(i))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r282": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(1)(ii)(A)(i))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r283": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(1)(ii)(A))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r284": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-04(a))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e24072-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r285": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "23",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124436220&loc=d3e21914-107793",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r286": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124436220&loc=d3e21930-107793",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r287": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124436220&loc=d3e21711-107793",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r288": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124436220&loc=d3e21728-107793",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r289": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(2)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r29": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(7)(c))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r290": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(3)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r291": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(4)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r292": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r293": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22694-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r294": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22694-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r295": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22583-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r296": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22595-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r297": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22644-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r298": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22644-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r299": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22658-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r3": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(22))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r30": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(9)(a))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r300": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22663-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r301": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 11.M.Q2)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=122038215&loc=d3e31137-122693",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r302": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=d3e1448-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r303": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=d3e1505-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r304": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=d3e1252-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r305": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=d3e1930-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r306": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)(1)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=d3e1930-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r307": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)(2)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=d3e1930-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r308": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)(3)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=d3e1930-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r309": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=SL5780133-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r31": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.3)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r310": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=SL5780133-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r311": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=SL5780133-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r312": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=d3e1337-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r313": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r314": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r315": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=124432515&loc=d3e3630-109257",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r316": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=109243012&loc=SL65017193-207537",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r317": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=128363288&loc=d3e3842-109258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r318": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "260",
   "URI": "https://asc.fasb.org/topic&trid=2144383",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r319": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "272",
   "URI": "https://asc.fasb.org/extlink&oid=125520817&loc=d3e70191-108054",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r32": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.4)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r320": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r321": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r322": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r323": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8906-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r324": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8906-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r325": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8933-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r326": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8933-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r327": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8933-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r328": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=124259787&loc=d3e4428-111522",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r329": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=124259787&loc=d3e4437-111522",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r33": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.6)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r330": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=d3e5162-111524",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r331": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=d3e5033-111524",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r332": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=d3e5066-111524",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r333": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=d3e5074-111524",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r334": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=d3e5111-111524",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r335": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=SL6953401-111524",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r336": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=6378536&loc=d3e10092-111533",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r337": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=84159169&loc=d3e10133-111534",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r338": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=84159169&loc=d3e10149-111534",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r339": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=84159169&loc=d3e10178-111534",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r34": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3179-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r340": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=126986314&loc=SL124402458-218513",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r341": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=126986314&loc=SL124402458-218513",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r342": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=124260329&loc=d3e26610-111562",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r343": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27161-111563",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r344": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27198-111563",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r345": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27198-111563",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r346": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27198-111563",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r347": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27198-111563",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r348": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(1)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27232-111563",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r349": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27232-111563",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r35": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3179-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r350": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(3)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27232-111563",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r351": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(4)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27232-111563",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r352": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27232-111563",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r353": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=SL120269820-111563",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r354": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=SL120269820-111563",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r355": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=SL120269820-111563",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r356": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=SL120269820-111563",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r357": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27290-111563",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r358": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27290-111563",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r359": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(3)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27290-111563",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r36": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3179-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r360": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27337-111563",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r361": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "320",
   "URI": "https://asc.fasb.org/topic&trid=2196928",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r362": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "323",
   "URI": "https://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r363": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL82887624-210437",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r364": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r365": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r366": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r367": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r368": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(3)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r369": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(4)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r37": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3213-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r370": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255206&loc=SL82895884-210446",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r371": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919244-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r372": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919249-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r373": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919249-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r374": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919249-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r375": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919249-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r376": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(f)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919249-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r377": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919249-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r378": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919253-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r379": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919258-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r38": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3213-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r380": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919258-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r381": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919258-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r382": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919258-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r383": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919265-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r384": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919265-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r385": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919265-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r386": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919265-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r387": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919230-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r388": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919230-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r389": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919232-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r39": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3213-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r390": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124258926&loc=SL82898722-210454",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r391": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(1)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124269663&loc=SL82922888-210455",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r392": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(2)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124269663&loc=SL82922888-210455",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r393": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)(3)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124269663&loc=SL82922888-210455",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r394": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124269663&loc=SL82922888-210455",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r395": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124269663&loc=SL82922890-210455",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r396": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124269663&loc=SL82922895-210455",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r397": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124269663&loc=SL82922900-210455",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r398": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=99380562&loc=d3e13770-109266",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r399": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r4": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(28))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r40": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3213-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r400": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r401": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r402": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r403": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r404": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(f)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r405": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r406": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r407": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r408": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=SL108378252-109267",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r409": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13854-109267",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r41": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3255-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r410": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16265-109275",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r411": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(d)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16265-109275",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r412": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(1)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r413": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(d)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r414": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=121557415&loc=d3e14435-108349",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r415": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=121557415&loc=d3e14557-108349",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r416": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "20",
   "Subparagraph": "(SAB Topic 5.Y.Q2)",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=27011672&loc=d3e149879-122751",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r417": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "20",
   "Subparagraph": "(SAB Topic 5.Y.Q4)",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=27011672&loc=d3e149879-122751",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r418": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(i))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r419": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii)(A))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r42": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3291-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r420": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iv))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r421": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(5))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r422": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(i))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442552-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r423": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(A))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442552-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r424": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(B))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442552-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r425": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iv))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442552-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r426": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(5))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442552-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r427": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r428": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r429": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r43": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3291-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r430": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r431": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(f)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r432": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r433": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495340-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r434": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495340-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r435": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495340-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r436": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495348-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r437": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495348-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r438": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495348-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r439": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495355-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r44": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3521-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r440": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495355-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r441": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495355-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r442": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495355-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r443": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1I",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495371-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r444": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496189-112644",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r445": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.3-04)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=120397183&loc=d3e187085-122770",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r446": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(i)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r447": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(01)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r448": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r449": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(A)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r45": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3536-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r450": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(B)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r451": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(C)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r452": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(03)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r453": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(d)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r454": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r455": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r456": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r457": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r458": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r459": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(ii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r46": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3536-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r460": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r461": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r462": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(01)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r463": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(02)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r464": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(03)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r465": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(04)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r466": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r467": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(ii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r468": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r469": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(01)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r47": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r470": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(02)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r471": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(03)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r472": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r473": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r474": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r475": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r476": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r477": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r478": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r479": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(ii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r48": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r480": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(iii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r481": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(iv)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r482": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(v)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r483": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128097895&loc=SL121327923-165333",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r484": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(f)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128097895&loc=SL121327923-165333",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r485": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128097895&loc=SL121327923-165333",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r486": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 14.D.2.Q6)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=122041274&loc=d3e301413-122809",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r487": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "718",
   "URI": "https://asc.fasb.org/topic&trid=2228938",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r488": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=123427490&loc=d3e31917-109318",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r489": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=123427490&loc=d3e31931-109318",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r49": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r490": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32672-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r491": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32687-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r492": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=126983759&loc=SL121830611-158277",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r493": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=126983759&loc=SL121830611-158277",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r494": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(2)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=126983759&loc=SL121830611-158277",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r495": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(3)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=126983759&loc=SL121830611-158277",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r496": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB TOPIC 6.I.7)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r497": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.Fact.4)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r498": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=123586238&loc=d3e38679-109324",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r499": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(2)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=79982066&loc=d3e1392-128463",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r5": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(29))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r50": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3044-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r500": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(3)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=79982066&loc=d3e1392-128463",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r501": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=128092470&loc=d3e4946-128472",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r502": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=128092470&loc=d3e4946-128472",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r503": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=128092918&loc=SL128093175-196984",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r504": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=128092918&loc=SL128093175-196984",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r505": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=128092918&loc=SL128093175-196984",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r506": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)(1)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=126975305&loc=d3e6927-128479",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r507": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=126929396&loc=SL4569616-111683",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r508": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=116870748&loc=SL6758485-165988",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r509": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=116870748&loc=SL6758485-165988",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r51": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3095-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r510": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r511": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r512": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bb)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=123419778&loc=d3e5710-111685",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r513": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=123419778&loc=d3e5710-111685",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r514": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5624181-113959",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r515": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4EE",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL109999712-113959",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r516": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4EE",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL109999712-113959",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r517": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(4)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5708775-113959",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r518": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(f)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126731327&loc=d3e90205-114008",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r519": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(a)(1)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r52": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126999549&loc=d3e4297-108586",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r520": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(a)(2)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r521": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(a)(3)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r522": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(b)(1)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r523": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(b)(2)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r524": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(c)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r525": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r526": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(2)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r527": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(3)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r528": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(4)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r529": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r53": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126999549&loc=d3e4304-108586",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r530": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL126732908-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r531": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r532": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r533": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)(1)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r534": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)(2)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r535": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r536": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1a)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r537": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(3)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r538": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r539": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r54": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126999549&loc=d3e4313-108586",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r540": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r541": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=SL6742756-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r542": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=123594786&loc=SL75136599-209740",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r543": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=123594809&loc=d3e13220-108610",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r544": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=123594938&loc=d3e13433-108611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r545": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=123596393&loc=d3e14064-108612",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r546": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=126983955&loc=SL120254526-165497",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r547": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=126983955&loc=SL120254526-165497",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r548": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=126983955&loc=SL121967933-165497",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r549": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=126983955&loc=SL121967933-165497",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r55": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126999549&loc=d3e4332-108586",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r550": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=126983955&loc=SL121967933-165497",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r551": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=126983955&loc=SL121967933-165497",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r552": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=126983955&loc=SL122642865-165497",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r553": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=126983955&loc=SL122642865-165497",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r554": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=118261656&loc=d3e32136-110900",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r555": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r556": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r557": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(c)",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r558": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(d)",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r559": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=6450520&loc=d3e32583-110901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r56": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126999549&loc=SL98516268-108586",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r560": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "832",
   "URI": "https://asc.fasb.org/extlink&oid=128342835&loc=SL128342857-244232",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r561": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "832",
   "URI": "https://asc.fasb.org/extlink&oid=128342835&loc=SL128342857-244232",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r562": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "835",
   "URI": "https://asc.fasb.org/extlink&oid=6450988&loc=d3e26243-108391",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r563": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "https://asc.fasb.org/extlink&oid=124429444&loc=SL124452920-239629",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r564": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128293352&loc=SL126838806-209984",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r565": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128293352&loc=SL126838806-209984",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r566": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128293352&loc=SL126838806-209984",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r567": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(1)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128293352&loc=SL126838806-209984",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r568": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=123391704&loc=SL77918627-209977",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r569": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=123391704&loc=SL77918627-209977",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r57": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r570": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=123391704&loc=SL77918643-209977",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r571": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918673-209980",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r572": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r573": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r574": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r575": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r576": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)(1)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r577": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)(2)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r578": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)(3)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r579": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)(4)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r58": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=124259787&loc=d3e4428-111522",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r580": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r581": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918701-209980",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r582": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "https://asc.fasb.org/subtopic&trid=77888251",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r583": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "848",
   "URI": "https://asc.fasb.org/extlink&oid=125980421&loc=SL122150809-237846",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r584": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "848",
   "URI": "https://asc.fasb.org/extlink&oid=125980421&loc=SL125981372-237846",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r585": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "848",
   "URI": "https://asc.fasb.org/extlink&oid=125980421&loc=SL125981372-237846",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r586": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "848",
   "URI": "https://asc.fasb.org/extlink&oid=125980421&loc=SL125981372-237846",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r587": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)(iii)(01)",
   "Topic": "848",
   "URI": "https://asc.fasb.org/extlink&oid=125980421&loc=SL125981372-237846",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r588": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)(iii)(03)",
   "Topic": "848",
   "URI": "https://asc.fasb.org/extlink&oid=125980421&loc=SL125981372-237846",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r589": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)(i)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r59": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=SL6953423-111524",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r590": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)(ii)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r591": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r592": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r593": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r594": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r595": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r596": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r597": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r598": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r599": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r6": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(1))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r60": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=SL6953423-111524",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r600": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r601": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r602": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=66007379&loc=d3e113888-111728",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r603": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)(1)(i)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=109249958&loc=SL6224234-111729",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r604": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)(1)(ii)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=109249958&loc=SL6224234-111729",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r605": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=109249958&loc=SL6224234-111729",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r606": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=109249958&loc=SL34722452-111729",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r607": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122625-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r608": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122625-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r609": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122625-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r61": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=SL6953423-111524",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r610": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(4)(i)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122625-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r611": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r612": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r613": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r614": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(4)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r615": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(5)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r616": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(6)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r617": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(7)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r618": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(b)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r619": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r62": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=SL6953423-111524",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r620": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r621": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r622": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "910",
   "URI": "https://asc.fasb.org/extlink&oid=126937589&loc=SL119991595-234733",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r623": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 11.L)",
   "Topic": "924",
   "URI": "https://asc.fasb.org/extlink&oid=6472922&loc=d3e499488-122856",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r624": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "926",
   "URI": "https://asc.fasb.org/extlink&oid=120154696&loc=d3e54445-107959",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r625": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "926",
   "URI": "https://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r626": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "926",
   "URI": "https://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r627": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "926",
   "URI": "https://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r628": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "340",
   "Topic": "928",
   "URI": "https://asc.fasb.org/extlink&oid=6473545&loc=d3e61844-108004",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r629": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(10)(1))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r63": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(3)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=SL6953423-111524",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r630": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(6))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r631": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(26))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r632": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(27))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r633": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "230",
   "Subparagraph": "(c)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=123398031&loc=d3e60009-112784",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r634": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.9-05(b)(2))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399901&loc=d3e537907-122884",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r635": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(b)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126980459&loc=d3e62557-112803",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r636": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(a)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126980459&loc=d3e62586-112803",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r637": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(b)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126980459&loc=d3e62586-112803",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r638": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(c)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126980459&loc=d3e62586-112803",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r639": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(d)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126980459&loc=d3e62586-112803",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r64": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(4)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=SL6953423-111524",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r640": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(a)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126980459&loc=SL120269850-112803",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r641": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(b)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126980459&loc=SL120269850-112803",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r642": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(c)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126980459&loc=SL120269850-112803",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r643": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(d)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126980459&loc=SL120269850-112803",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r644": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "360",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=124429447&loc=SL124453093-239630",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r645": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(23)(a)(3))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r646": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(22))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r647": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(23))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r648": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(9))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r649": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=35755530&loc=d3e11264-158415",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r65": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=SL6953423-111524",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r650": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124505477&loc=SL117422539-158416",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r651": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(d)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124506351&loc=SL117782755-158439",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r652": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r653": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(b)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r654": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r655": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)(1)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r656": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)(2)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r657": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(1)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r658": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(i)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r659": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(ii)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r66": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=SL6953423-111524",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r660": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(iii)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r661": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(iv)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r662": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(h)(1)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r663": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(h)(2)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r664": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "310",
   "Topic": "948",
   "URI": "https://asc.fasb.org/extlink&oid=124265262&loc=d3e48678-111004",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r665": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29(Footnote 4))",
   "Topic": "948",
   "URI": "https://asc.fasb.org/extlink&oid=120402547&loc=d3e617274-123014",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r666": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "210",
   "Topic": "954",
   "URI": "https://asc.fasb.org/extlink&oid=120413173&loc=SL6242262-115580",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r667": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "210",
   "Topic": "954",
   "URI": "https://asc.fasb.org/extlink&oid=127002003&loc=SL6242269-115581",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r668": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column B))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r669": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column C))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r67": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=SL6953550-111524",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r670": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column D))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r671": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column E))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r672": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column F))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r673": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column G))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r674": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column H))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r675": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column I))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r676": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Footnote 2))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r677": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "310",
   "Subparagraph": "(c)",
   "Topic": "976",
   "URI": "https://asc.fasb.org/extlink&oid=6497875&loc=d3e22274-108663",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r678": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "310",
   "Subparagraph": "(b)",
   "Topic": "978",
   "URI": "https://asc.fasb.org/extlink&oid=126945304&loc=d3e27327-108691",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r679": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "1402",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r68": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=d3e5212-111524",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r680": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(1)",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r681": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1403",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r682": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "1404",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r683": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1404",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r684": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "1405",
   "Subparagraph": "(1)",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r685": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "1405",
   "Subparagraph": "(2)",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r686": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "1405",
   "Subparagraph": "(3)",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r687": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "1405",
   "Subparagraph": "(4)",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r688": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(c)",
   "Publisher": "SEC",
   "Section": "1405",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r689": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=124098289&loc=d3e6676-107765",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r69": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(4)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=d3e5212-111524",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r690": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=99393222&loc=SL20226052-175313",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r691": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3461-108585",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r692": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=126899994&loc=d3e18823-107790",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r693": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=126899994&loc=d3e18823-107790",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r694": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "52",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=128363288&loc=d3e4984-109258",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r695": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8906-108599",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r696": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "31",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8924-108599",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r697": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124267575&loc=SL82921830-210448",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r698": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124267575&loc=SL82921833-210448",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r699": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124267575&loc=SL82921835-210448",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r7": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(3))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r70": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b,d)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=d3e5212-111524",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r700": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124267575&loc=SL82921835-210448",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r701": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Subparagraph": "(d)(2)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124267575&loc=SL82921835-210448",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r702": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124267575&loc=SL82921842-210448",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r703": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "79",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124267575&loc=SL82922352-210448",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r704": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "80",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124267575&loc=SL82922355-210448",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r705": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=121590138&loc=SL82922954-210456",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r706": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=122137925&loc=d3e14258-109268",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r707": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(4)",
   "Topic": "460",
   "URI": "https://asc.fasb.org/extlink&oid=124440162&loc=d3e12069-110248",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r708": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r709": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69B",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466577&loc=SL123495735-112612",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r71": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=SL6953659-111524",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r710": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69C",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466577&loc=SL123495737-112612",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r711": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69E",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466577&loc=SL123495743-112612",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r712": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69F",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466577&loc=SL123495745-112612",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r713": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496158-112644",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r714": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(ii)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r715": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(01)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r716": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123450688&loc=d3e4179-114921",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r717": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=65877416&loc=SL14450702-114947",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r718": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=65877416&loc=SL14450673-114947",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r719": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "80",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=35742348&loc=SL14450788-114948",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r72": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "35",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=SL49126937-111524",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r720": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r721": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bb)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=123419778&loc=d3e5710-111685",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r722": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4J",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=120409616&loc=SL4591551-111686",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r723": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=120409616&loc=SL4591552-111686",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r724": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5624177-113959",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r725": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "53",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=123414884&loc=SL77918982-209971",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r726": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "852",
   "URI": "https://asc.fasb.org/extlink&oid=84165509&loc=d3e56426-112766",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r727": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=109249958&loc=SL6224234-111729",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r728": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29F",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126561865&loc=SL117819544-158441",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r729": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29(Footnote 4))",
   "Topic": "948",
   "URI": "https://asc.fasb.org/extlink&oid=120402547&loc=d3e617274-123014",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r73": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=d3e5093-111524",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r730": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r731": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b-2",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r732": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "d1-1",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r733": {
   "Name": "Form 10-Q",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "308",
   "Subsection": "a",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r734": {
   "Name": "Forms 10-K, 10-Q, 20-F",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "13",
   "Subsection": "a-1",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r735": {
   "Name": "Regulation S-T",
   "Number": "232",
   "Publisher": "SEC",
   "Section": "405",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r736": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=84159169&loc=d3e10152-111534",
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef"
  },
  "r737": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(1))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r738": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(3)(a)(4))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r739": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=124431353&loc=SL124442407-227067",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r74": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=d3e5111-111524",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r740": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=124431353&loc=SL124442411-227067",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r741": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=124431353&loc=SL124452729-227067",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r742": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(b)(4))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r743": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3179-108585",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r744": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3179-108585",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r745": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3337-108585",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r746": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3461-108585",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r747": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3536-108585",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r748": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r749": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(f))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r75": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=d3e5111-111524",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r750": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(g)(1)(ii))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r751": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "23",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124436220&loc=d3e21914-107793",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r752": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124436220&loc=d3e21930-107793",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r753": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124436220&loc=d3e21711-107793",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r754": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r755": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=124259787&loc=d3e4428-111522",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r756": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "33",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=SL6953676-111524",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r757": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "34",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=SL6953682-111524",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r758": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=SL6953401-111524",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r759": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/subtopic&trid=2196772",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r76": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=SL6953401-111524",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r760": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=SL6283291-111563",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r761": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27290-111563",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r762": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "321",
   "URI": "https://asc.fasb.org/extlink&oid=126980263&loc=SL75117539-209714",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r763": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "321",
   "URI": "https://asc.fasb.org/extlink&oid=126980263&loc=SL75117539-209714",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r764": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "321",
   "URI": "https://asc.fasb.org/extlink&oid=126980263&loc=SL75117539-209714",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r765": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "323",
   "URI": "https://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r766": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255206&loc=SL82895884-210446",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r767": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919249-210447",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r768": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919253-210447",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r769": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919230-210447",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r77": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=d3e5144-111524",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r770": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124269663&loc=SL82922888-210455",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r771": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r772": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r773": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r774": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=126905981&loc=d3e2443-110228",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r775": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=109226691&loc=d3e2941-110230",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r776": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(c)",
   "Topic": "410",
   "URI": "https://asc.fasb.org/extlink&oid=6393242&loc=d3e13237-110859",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r777": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(ii))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r778": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r779": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r78": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 4.E)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=122038336&loc=d3e74512-122707",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r780": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920602&loc=SL49130690-203046-203046",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r781": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(ii)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r782": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(2)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=79982066&loc=d3e1392-128463",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r783": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(3)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=79982066&loc=d3e1392-128463",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r784": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=116870748&loc=SL6758485-165988",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r785": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5579245-113959",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r786": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5579245-113959",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r787": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5580258-113959",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r788": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(1)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5618551-113959",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r789": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(3)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r79": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/subtopic&trid=2196772",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r790": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r791": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=123596393&loc=d3e14064-108612",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r792": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(3)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918673-209980",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r793": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918701-209980",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r794": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "852",
   "URI": "https://asc.fasb.org/extlink&oid=124433192&loc=SL2890621-112765",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r795": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "852",
   "URI": "https://asc.fasb.org/extlink&oid=124433192&loc=SL2890621-112765",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r796": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r797": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r798": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r799": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r8": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r80": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=121585226&loc=d3e18794-111554",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r800": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r801": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r802": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(4)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r803": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(6)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r804": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(10))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r805": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(7)(2))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r806": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(7))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r807": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(e)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124508989&loc=d3e19393-158473",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r808": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29(Footnote 4))",
   "Topic": "948",
   "URI": "https://asc.fasb.org/extlink&oid=120402547&loc=d3e617274-123014",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r809": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Footnote 2))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r81": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=121585226&loc=d3e18845-111554",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r810": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "1402",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r811": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(1)",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r812": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r813": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(3)",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r814": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(c)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)(i)",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r815": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(c)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)(ii)",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r816": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(c)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)(iii)",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r817": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "1404",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r818": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "1405",
   "Subparagraph": "(1)",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r819": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "1405",
   "Subparagraph": "(2)",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r82": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=124260329&loc=d3e26853-111562",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r820": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "1405",
   "Subparagraph": "(3)",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r83": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(aa)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27161-111563",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r84": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27161-111563",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r85": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27161-111563",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r86": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27161-111563",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r87": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27232-111563",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r88": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(aa)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27232-111563",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r89": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27232-111563",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r9": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(31))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r90": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27232-111563",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r91": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(3)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27290-111563",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r92": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27290-111563",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r93": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27357-111563",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r94": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "320",
   "URI": "https://asc.fasb.org/topic&trid=2196928",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r95": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "30",
   "Topic": "325",
   "URI": "https://asc.fasb.org/extlink&oid=6384439&loc=d3e42048-111605",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r96": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r97": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=6388964&loc=d3e16212-109274",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r98": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=6388964&loc=d3e16225-109274",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r99": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16265-109275",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  }
 },
 "version": "2.2"
}
