{
 "version": "2.2",
 "instance": {
  "fmbh-20240630.htm": {
   "nsprefix": "fmbh",
   "nsuri": "http://www.firstmid.com/20240630",
   "dts": {
    "inline": {
     "local": [
      "fmbh-20240630.htm"
     ]
    },
    "schema": {
     "local": [
      "fmbh-20240630.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/arcrole/esma-arcrole-2018-11-21.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/2023/calculation-1.1.xsd",
      "https://www.xbrl.org/dtr/type/2020-01-21/types.xsd",
      "https://www.xbrl.org/dtr/type/2022-03-31/types.xsd",
      "https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd",
      "https://xbrl.fasb.org/srt/2024/elts/srt-roles-2024.xsd",
      "https://xbrl.fasb.org/srt/2024/elts/srt-types-2024.xsd",
      "https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd",
      "https://xbrl.fasb.org/us-gaap/2024/elts/us-roles-2024.xsd",
      "https://xbrl.fasb.org/us-gaap/2024/elts/us-types-2024.xsd",
      "https://xbrl.sec.gov/country/2024/country-2024.xsd",
      "https://xbrl.sec.gov/dei/2024/dei-2024.xsd",
      "https://xbrl.sec.gov/ecd/2024/ecd-2024.xsd",
      "https://xbrl.sec.gov/ecd/2024/ecd-sub-2024.xsd",
      "https://xbrl.sec.gov/stpr/2024/stpr-2024.xsd"
     ]
    }
   },
   "keyStandard": 347,
   "keyCustom": 142,
   "axisStandard": 27,
   "axisCustom": 0,
   "memberStandard": 63,
   "memberCustom": 48,
   "hidden": {
    "total": 15,
    "http://fasb.org/us-gaap/2024": 9,
    "http://xbrl.sec.gov/dei/2024": 4,
    "http://www.firstmid.com/20240630": 2
   },
   "contextCount": 678,
   "entityCount": 1,
   "segmentCount": 115,
   "elementCount": 913,
   "unitCount": 8,
   "baseTaxonomies": {
    "http://fasb.org/us-gaap/2024": 2118,
    "http://xbrl.sec.gov/dei/2024": 29,
    "http://xbrl.sec.gov/ecd/2024": 5
   },
   "report": {
    "R1": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation",
     "longName": "100000 - Document - Document and Entity Information",
     "shortName": "Document and Entity Information",
     "isDefault": "true",
     "groupType": "document",
     "subGroupType": "",
     "menuCat": "Cover",
     "order": "1",
     "firstAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "dei:DocumentType",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "dei:DocumentType",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R2": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited",
     "longName": "100010 - Statement - Condensed Consolidated Balance Sheets (Unaudited)",
     "shortName": "Condensed Consolidated Balance Sheets (Unaudited)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "2",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:DueFromBanks",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:DueFromBanks",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R3": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical",
     "longName": "100030 - Statement - Condensed Consolidated Balance Sheets (Unaudited) (Parenthetical)",
     "shortName": "Condensed Consolidated Balance Sheets (Unaudited) (Parenthetical)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "parenthetical",
     "menuCat": "Statements",
     "order": "3",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:HeldToMaturitySecuritiesFairValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:CommonStockSharesAuthorized",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R4": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited",
     "longName": "100040 - Statement - Condensed Consolidated Statements of Income (unaudited)",
     "shortName": "Condensed Consolidated Statements of Income (unaudited)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "4",
     "firstAnchor": {
      "contextRef": "C_35344679-ceb6-4bf4-8e91-7ffe0e2758c3",
      "name": "us-gaap:InterestAndFeeIncomeLoansAndLeases",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35344679-ceb6-4bf4-8e91-7ffe0e2758c3",
      "name": "us-gaap:InterestAndFeeIncomeLoansAndLeases",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R5": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/StatementCondensedConsolidatedStatementsOfComprehensiveIncomeUnaudited",
     "longName": "100050 - Statement - Condensed Consolidated Statements of Comprehensive Income (unaudited)",
     "shortName": "Condensed Consolidated Statements of Comprehensive Income (unaudited)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "5",
     "firstAnchor": {
      "contextRef": "C_35344679-ceb6-4bf4-8e91-7ffe0e2758c3",
      "name": "us-gaap:NetIncomeLoss",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35344679-ceb6-4bf4-8e91-7ffe0e2758c3",
      "name": "us-gaap:OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R6": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfComprehensiveIncomeLossUnauditedParenthetical",
     "longName": "100060 - Statement - Condensed Consolidated Statements of Comprehensive Income (Loss) (unaudited) (Parenthetical)",
     "shortName": "Condensed Consolidated Statements of Comprehensive Income (Loss) (unaudited) (Parenthetical)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "parenthetical",
     "menuCat": "Statements",
     "order": "6",
     "firstAnchor": {
      "contextRef": "C_35344679-ceb6-4bf4-8e91-7ffe0e2758c3",
      "name": "us-gaap:OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35344679-ceb6-4bf4-8e91-7ffe0e2758c3",
      "name": "us-gaap:OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R7": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited",
     "longName": "100070 - Statement - Condensed Consolidated Statements of Changes in Stockholders' Equity (Unaudited)",
     "shortName": "Condensed Consolidated Statements of Changes in Stockholders' Equity (Unaudited)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "7",
     "firstAnchor": {
      "contextRef": "C_fd4b9868-c69c-4adb-b5ff-1f9cd54fec7c",
      "name": "us-gaap:StockholdersEquity",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d974a967-9245-4d3e-8ab1-6c72e9cbbbf9",
      "name": "us-gaap:StockholdersEquity",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R8": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical",
     "longName": "100080 - Statement - Condensed Consolidated Statements of Changes in Stockholders' Equity (Unaudited) (Parenthetical)",
     "shortName": "Condensed Consolidated Statements of Changes in Stockholders' Equity (Unaudited) (Parenthetical)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "parenthetical",
     "menuCat": "Statements",
     "order": "8",
     "firstAnchor": {
      "contextRef": "C_35344679-ceb6-4bf4-8e91-7ffe0e2758c3",
      "name": "us-gaap:CommonStockDividendsPerShareDeclared",
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d4831cdb-c1e3-41fc-b331-bb27a4052685",
      "name": "us-gaap:StockIssuedDuringPeriodSharesRestrictedStockAwardGross",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R9": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited",
     "longName": "100090 - Statement - Condensed Consolidated Statements of Cash Flows (unaudited)",
     "shortName": "Condensed Consolidated Statements of Cash Flows (unaudited)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "9",
     "firstAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:ProfitLoss",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:ProfitLoss",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R10": {
     "role": "http://xbrl.sec.gov/ecd/role/PvpDisclosure",
     "longName": "995410 - Disclosure - Pay vs Performance Disclosure",
     "shortName": "Pay vs Performance Disclosure",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "10",
     "firstAnchor": {
      "contextRef": "C_35344679-ceb6-4bf4-8e91-7ffe0e2758c3",
      "name": "us-gaap:NetIncomeLoss",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R11": {
     "role": "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements",
     "longName": "995445 - Disclosure - Insider Trading Arrangements",
     "shortName": "Insider Trading Arrangements",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "11",
     "firstAnchor": {
      "contextRef": "C_35344679-ceb6-4bf4-8e91-7ffe0e2758c3",
      "name": "ecd:TrdArrIndTitle",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35344679-ceb6-4bf4-8e91-7ffe0e2758c3",
      "name": "ecd:TrdArrIndTitle",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R12": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidation",
     "longName": "995455 - Disclosure - Basis of Accounting and Consolidation",
     "shortName": "Basis of Accounting and Consolidation",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "12",
     "firstAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R13": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureEarningsPerShare",
     "longName": "995465 - Disclosure - Earnings Per Share",
     "shortName": "Earnings Per Share",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "13",
     "firstAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R14": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecurities",
     "longName": "995475 - Disclosure - Investment Securities",
     "shortName": "Investment Securities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "14",
     "firstAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R15": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLosses",
     "longName": "995485 - Disclosure - Loans and Allowance for Credit Losses",
     "shortName": "Loans and Allowance for Credit Losses",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "15",
     "firstAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R16": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssets",
     "longName": "995495 - Disclosure - Goodwill and Intangible Assets",
     "shortName": "Goodwill and Intangible Assets",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "16",
     "firstAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R17": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowings",
     "longName": "995505 - Disclosure - Repurchase Agreements and Other Borrowings",
     "shortName": "Repurchase Agreements and Other Borrowings",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "17",
     "firstAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R18": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilities",
     "longName": "995515 - Disclosure - Fair Value of Assets and Liabilities",
     "shortName": "Fair Value of Assets and Liabilities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "18",
     "firstAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R19": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinations",
     "longName": "995525 - Disclosure - Business Combinations",
     "shortName": "Business Combinations",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "19",
     "firstAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:BusinessCombinationDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:BusinessCombinationDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R20": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeases",
     "longName": "995535 - Disclosure - Leases",
     "shortName": "Leases",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "20",
     "firstAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:LesseeOperatingLeasesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:LesseeOperatingLeasesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R21": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivatives",
     "longName": "995545 - Disclosure - Derivatives",
     "shortName": "Derivatives",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "21",
     "firstAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R22": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies",
     "longName": "995555 - Disclosure - Basis of Accounting and Consolidation (Policies)",
     "shortName": "Basis of Accounting and Consolidation (Policies)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "policies",
     "menuCat": "Policies",
     "order": "22",
     "firstAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R23": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationTables",
     "longName": "995565 - Disclosure - Basis of Accounting and Consolidation (Tables)",
     "shortName": "Basis of Accounting and Consolidation (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "23",
     "firstAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:ScheduleOfAmountsRecognizedInOtherComprehensiveIncomeLossTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:ComprehensiveIncomePolicyPolicyTextBlock",
       "div",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:ScheduleOfAmountsRecognizedInOtherComprehensiveIncomeLossTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:ComprehensiveIncomePolicyPolicyTextBlock",
       "div",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R24": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureEarningsPerShareTables",
     "longName": "995575 - Disclosure - Earnings Per Share (Tables)",
     "shortName": "Earnings Per Share (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "24",
     "firstAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R25": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesTables",
     "longName": "995585 - Disclosure - Investment Securities (Tables)",
     "shortName": "Investment Securities (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "25",
     "firstAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "fmbh:AvailableForSaleAndHeldForMaturitySecuritiesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "fmbh:AvailableForSaleAndHeldForMaturitySecuritiesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R26": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables",
     "longName": "995595 - Disclosure - Loans and Allowance for Credit Losses (Tables)",
     "shortName": "Loans and Allowance for Credit Losses (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "26",
     "firstAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R27": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables",
     "longName": "995605 - Disclosure - Goodwill and Intangible Assets (Tables)",
     "shortName": "Goodwill and Intangible Assets (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "27",
     "firstAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:ScheduleOfIntangibleAssetsAndGoodwillTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:ScheduleOfIntangibleAssetsAndGoodwillTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R28": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsTables",
     "longName": "995615 - Disclosure - Repurchase Agreements and Other Borrowings (Tables)",
     "shortName": "Repurchase Agreements and Other Borrowings (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "28",
     "firstAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:ScheduleOfSecuritiesFinancingTransactionsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:ScheduleOfSecuritiesFinancingTransactionsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R29": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesTables",
     "longName": "995625 - Disclosure - Fair Value of Assets and Liabilities (Tables)",
     "shortName": "Fair Value of Assets and Liabilities (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "29",
     "firstAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R30": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsTables",
     "longName": "995635 - Disclosure - Business Combinations (Tables)",
     "shortName": "Business Combinations (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "30",
     "firstAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "fmbh:SummaryOfPurchasedCreditDeterioratedPCDLoansTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_b65da252-e3be-4a53-9c59-095a2fc2d0a0",
      "name": "us-gaap:ScheduleOfBusinessAcquisitionsByAcquisitionContingentConsiderationTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R31": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesTables",
     "longName": "995645 - Disclosure - Leases (Tables)",
     "shortName": "Leases (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "31",
     "firstAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "fmbh:ScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "fmbh:ScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R32": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesTables",
     "longName": "995655 - Disclosure - Derivatives (Tables)",
     "shortName": "Derivatives (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "32",
     "firstAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R33": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
     "longName": "995665 - Disclosure - Basis of Accounting and Consolidation - Additional Information (Details)",
     "shortName": "Basis of Accounting and Consolidation - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "33",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:CommonStockParOrStatedValuePerShare",
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "fmbh:StockIncentivePlanTerm",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:ShareBasedCompensationOptionAndIncentivePlansPolicy",
       "div",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R34": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails",
     "longName": "995675 - Disclosure - Basis of Accounting and Consolidation - Schedule of Components of Accumulated Other Comprehensive Loss (Details)",
     "shortName": "Basis of Accounting and Consolidation - Schedule of Components of Accumulated Other Comprehensive Loss (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "34",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:StockholdersEquity",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_eea8a5ae-e4ab-46ab-bbec-4161158744d3",
      "name": "us-gaap:OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAmountsRecognizedInOtherComprehensiveIncomeLossTableTextBlock",
       "div",
       "us-gaap:ComprehensiveIncomePolicyPolicyTextBlock",
       "div",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R35": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetails",
     "longName": "995685 - Disclosure - Basis of Accounting and Consolidation - Schedule of Amounts Reclassified from Accumulated Other Comprehensive Income (Loss) (Details)",
     "shortName": "Basis of Accounting and Consolidation - Schedule of Amounts Reclassified from Accumulated Other Comprehensive Income (Loss) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "35",
     "firstAnchor": {
      "contextRef": "C_35344679-ceb6-4bf4-8e91-7ffe0e2758c3",
      "name": "us-gaap:DebtAndEquitySecuritiesGainLoss",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_6527e472-ad34-4247-856f-6ca84ac12c35",
      "name": "us-gaap:DebtAndEquitySecuritiesGainLoss",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:ScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeTableTextBlock",
       "div",
       "us-gaap:ComprehensiveIncomePolicyPolicyTextBlock",
       "div",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R36": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails",
     "longName": "995695 - Disclosure - Earnings Per Share - Components of Basic and Diluted Net Income Per Common Share (Details)",
     "shortName": "Earnings Per Share - Components of Basic and Diluted Net Income Per Common Share (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "36",
     "firstAnchor": {
      "contextRef": "C_35344679-ceb6-4bf4-8e91-7ffe0e2758c3",
      "name": "us-gaap:NetIncomeLoss",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35344679-ceb6-4bf4-8e91-7ffe0e2758c3",
      "name": "us-gaap:NetIncomeLossAvailableToCommonStockholdersDiluted",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R37": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureEarningsPerShareAdditionalInformationDetails",
     "longName": "995705 - Disclosure - Earnings Per Share - Additional Information (Details)",
     "shortName": "Earnings Per Share - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "37",
     "firstAnchor": {
      "contextRef": "C_35344679-ceb6-4bf4-8e91-7ffe0e2758c3",
      "name": "us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35344679-ceb6-4bf4-8e91-7ffe0e2758c3",
      "name": "us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R38": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
     "longName": "995715 - Disclosure - Investment Securities - Available for Sale and Held for Maturity Securities (Details)",
     "shortName": "Investment Securities - Available for Sale and Held for Maturity Securities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "38",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:AvailableForSaleAndHeldForMaturitySecuritiesTableTextBlock",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R39": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
     "longName": "995725 - Disclosure - Investment Securities - Additional Information (Details)",
     "shortName": "Investment Securities - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "39",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:EquitySecuritiesFvNi",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "span",
       "p",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R40": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesRealizedGainsAndLossesFromSaleOfSecuritiesDetails",
     "longName": "995735 - Disclosure - Investment Securities - Realized Gains and Losses From Sale of Securities (Details)",
     "shortName": "Investment Securities - Realized Gains and Losses From Sale of Securities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "40",
     "firstAnchor": {
      "contextRef": "C_35344679-ceb6-4bf4-8e91-7ffe0e2758c3",
      "name": "fmbh:DebtAndEquitySecuritiesAvailableForSaleRealizedGain",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:RealizedGainLossOnInvestmentsTableTextBlock",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35344679-ceb6-4bf4-8e91-7ffe0e2758c3",
      "name": "fmbh:DebtAndEquitySecuritiesAvailableForSaleRealizedGain",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:RealizedGainLossOnInvestmentsTableTextBlock",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R41": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails",
     "longName": "995745 - Disclosure - Investment Securities - Investments Classified by Contractual Maturity Date (Details)",
     "shortName": "Investment Securities - Investments Classified by Contractual Maturity Date (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "41",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R42": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
     "longName": "995755 - Disclosure - Investment Securities - Fair Value of Investments with Sustained Gross Unrealized Losses (Details)",
     "shortName": "Investment Securities - Fair Value of Investments with Sustained Gross Unrealized Losses (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "42",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:DebtSecuritiesAvailableForSaleUnrealizedLossPositionFairValueTableTextBlock",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:DebtSecuritiesAvailableForSaleUnrealizedLossPositionFairValueTableTextBlock",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R43": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails",
     "longName": "995765 - Disclosure - Loans and Allowance for Credit Losses - Summary of Loans (Details)",
     "shortName": "Loans and Allowance for Credit Losses - Summary of Loans (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "43",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:FinancingReceivableBeforeAllowanceForCreditLossAndFee",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "fmbh:FinancingReceivableGrossExcludingLoansHeldForSale",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R44": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
     "longName": "995775 - Disclosure - Loans and Allowance for Credit Losses - Additional Information (Details)",
     "shortName": "Loans and Allowance for Credit Losses - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "44",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "fmbh:LoansAndLeasesReceivableInterestReceivable",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "fmbh:LoansAndLeasesReceivableInterestReceivable",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R45": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfGrossCommercialRealEstateLoansByPropertyTypeDetails",
     "longName": "995785 - Disclosure - Loans and Allowance for Credit Losses - Summary of Gross Commercial Real Estate Loans By Property Type (Details)",
     "shortName": "Loans and Allowance for Credit Losses - Summary of Gross Commercial Real Estate Loans By Property Type (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "45",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:FinancingReceivableBeforeAllowanceForCreditLossAndFee",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ba256482-3ea1-424f-a930-34ef515d8b0e",
      "name": "us-gaap:FinancingReceivableBeforeAllowanceForCreditLossAndFee",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:SummaryOfGrossCommercialRealEsateLoansByPropertyTypeTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R46": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
     "longName": "995795 - Disclosure - Loans and Allowance for Credit Losses - Allowance for Credit Losses Based on Portfolio Segment (Details)",
     "shortName": "Loans and Allowance for Credit Losses - Allowance for Credit Losses Based on Portfolio Segment (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "46",
     "firstAnchor": {
      "contextRef": "C_6c4cda02-e7d7-4128-a3f4-b2e14a61260a",
      "name": "us-gaap:FinancingReceivableAllowanceForCreditLosses",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_bd381774-d262-43c3-998f-3e37d6833033",
      "name": "us-gaap:FinancingReceivableAllowanceForCreditLossPurchasedWithCreditDeteriorationIncrease",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R47": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
     "longName": "995805 - Disclosure - Loans and Allowance for Credit Losses - Amortized Cost Basis of Collateral-Dependent Loans by Class of Loans Individually Evaluated (Details)",
     "shortName": "Loans and Allowance for Credit Losses - Amortized Cost Basis of Collateral-Dependent Loans by Class of Loans Individually Evaluated (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "47",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:FinancingReceivableIndividuallyEvaluatedForImpairment",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:FinancingReceivableIndividuallyEvaluatedCollateralDependentTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:FinancingReceivableIndividuallyEvaluatedForImpairment",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:FinancingReceivableIndividuallyEvaluatedCollateralDependentTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R48": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
     "longName": "995815 - Disclosure - Loans and Allowance for Credit Losses - Credit Risk Profile of Loan Portfolio on Amortized Cost Basis Based on Risk Rating Category (Details)",
     "shortName": "Loans and Allowance for Credit Losses - Credit Risk Profile of Loan Portfolio on Amortized Cost Basis Based on Risk Rating Category (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "48",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:FinancingReceivableOriginatedInCurrentFiscalYear",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FinancingReceivableCreditQualityIndicatorsTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:FinancingReceivableOriginatedInCurrentFiscalYear",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FinancingReceivableCreditQualityIndicatorsTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R49": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
     "longName": "995825 - Disclosure - Loans and Allowance for Credit Losses - Loan Portfolio Aging Analysis (Details)",
     "shortName": "Loans and Allowance for Credit Losses - Loan Portfolio Aging Analysis (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "49",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:NotesReceivableGross",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:PastDueFinancingReceivablesTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R50": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails",
     "longName": "995835 - Disclosure - Loans and Allowance for Credit Losses - Amortized Cost Basis of Loans on Nonaccrual Status and Nonaccrual Loans Individually Evaluated (Details)",
     "shortName": "Loans and Allowance for Credit Losses - Amortized Cost Basis of Loans on Nonaccrual Status and Nonaccrual Loans Individually Evaluated (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "50",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:FinancingReceivableNonaccrualNoAllowance",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfFinancingReceivablesNonAccrualStatusTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:FinancingReceivableNonaccrualNoAllowance",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfFinancingReceivablesNonAccrualStatusTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R51": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
     "longName": "995845 - Disclosure - Loans and Allowance for Credit Losses - Amortized Cost Basis of Loans Experiencing Financial Difficulty and Modified (Details)",
     "shortName": "Loans and Allowance for Credit Losses - Amortized Cost Basis of Loans Experiencing Financial Difficulty and Modified (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "51",
     "firstAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:FinancingReceivableModificationToTotalFinancingReceivablesPercent",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:FinancingReceivablesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:FinancingReceivableModificationToTotalFinancingReceivablesPercent",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:FinancingReceivablesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R52": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
     "longName": "995855 - Disclosure - Loans and Allowance for Credit Losses - Performance of Loans Modified (Details)",
     "shortName": "Loans and Allowance for Credit Losses - Performance of Loans Modified (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "52",
     "firstAnchor": {
      "contextRef": "C_48d81b3a-31f9-4a15-8f04-cad157113350",
      "name": "fmbh:FinancingReceivableModificationsPerformanceRecordedInvestment",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_48d81b3a-31f9-4a15-8f04-cad157113350",
      "name": "fmbh:FinancingReceivableModificationsPerformanceRecordedInvestment",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R53": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesFinancialEffectOfLoanModificationsDetails",
     "longName": "995865 - Disclosure - Loans and Allowance for Credit Losses - Financial Effect of Loan Modifications (Details)",
     "shortName": "Loans and Allowance for Credit Losses - Financial Effect of Loan Modifications (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "53",
     "firstAnchor": {
      "contextRef": "C_35344679-ceb6-4bf4-8e91-7ffe0e2758c3",
      "name": "fmbh:FinancingReceivableLoanModificationsWeightedAverageInterestRateReduction",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:FinancialEffectOfLoanModificationsTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35344679-ceb6-4bf4-8e91-7ffe0e2758c3",
      "name": "fmbh:FinancingReceivableLoanModificationsWeightedAverageInterestRateReduction",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:FinancialEffectOfLoanModificationsTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R54": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails",
     "longName": "995885 - Disclosure - Loans and Allowance for Credit Losses - Summary of Purchased Credit Deteriorated (PCD) Loans (Details)",
     "shortName": "Loans and Allowance for Credit Losses - Summary of Purchased Credit Deteriorated (PCD) Loans (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "54",
     "firstAnchor": {
      "contextRef": "C_1f096dfb-028e-4b9d-81c6-7c902c478ca2",
      "name": "us-gaap:FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:SummaryOfPurchasedCreditDeterioratedPCDLoansTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_1f096dfb-028e-4b9d-81c6-7c902c478ca2",
      "name": "us-gaap:FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:SummaryOfPurchasedCreditDeterioratedPCDLoansTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R55": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails",
     "longName": "995895 - Disclosure - Goodwill and Intangible Assets - Schedule of Intangible Assets and Goodwill (Details)",
     "shortName": "Goodwill and Intangible Assets - Schedule of Intangible Assets and Goodwill (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "55",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:GoodwillGross",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:GoodwillGross",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R56": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
     "longName": "995905 - Disclosure - Goodwill and Intangible Assets - Additional Information (Details)",
     "shortName": "Goodwill and Intangible Assets - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "56",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:Goodwill",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R57": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails",
     "longName": "995915 - Disclosure - Goodwill and Intangible Assets - Schedule of Reconciliation of Purchase Price Paid for Acquisition and Goodwill Recorded (Details)",
     "shortName": "Goodwill and Intangible Assets - Schedule of Reconciliation of Purchase Price Paid for Acquisition and Goodwill Recorded (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "57",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:Goodwill",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_87252101-a275-4935-bc13-3c54621e347f",
      "name": "fmbh:BusinessAcquisitionUnallocatedPurchasePrice",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R58": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails",
     "longName": "995925 - Disclosure - Goodwill and Intangible Assets - Intangible Assets Mortgage Servicing Rights (Details)",
     "shortName": "Goodwill and Intangible Assets - Intangible Assets Mortgage Servicing Rights (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "58",
     "firstAnchor": {
      "contextRef": "C_566a1f1a-e0b0-4381-8f51-f0fa19f8c20e",
      "name": "us-gaap:FiniteLivedIntangibleAssetsNet",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:IntangibleAssetsMortgageServicingRightsTableTextBlock",
       "div",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_4e9ae72e-b1ec-41e4-92a4-5e2d8ba9cc66",
      "name": "fmbh:MsrmortgageServicingRightsAcquired",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:IntangibleAssetsMortgageServicingRightsTableTextBlock",
       "div",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R59": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails",
     "longName": "995935 - Disclosure - Goodwill and Intangible Assets - Schedule of Intangible Assets Amortization Expense (Details)",
     "shortName": "Goodwill and Intangible Assets - Schedule of Intangible Assets Amortization Expense (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "59",
     "firstAnchor": {
      "contextRef": "C_35344679-ceb6-4bf4-8e91-7ffe0e2758c3",
      "name": "us-gaap:AmortizationOfIntangibleAssets",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_7447244e-f92a-42d4-bfc5-e731a1ac94f3",
      "name": "us-gaap:AmortizationOfIntangibleAssets",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FiniteLivedIntangibleAssetsAmortizationExpenseTableTextBlock",
       "div",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R60": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfExpectedAmortizationExpenseDetails",
     "longName": "995945 - Disclosure - Goodwill and Intangible Assets - Schedule of Expected Amortization Expense (Details)",
     "shortName": "Goodwill and Intangible Assets - Schedule of Expected Amortization Expense (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "60",
     "firstAnchor": {
      "contextRef": "C_35344679-ceb6-4bf4-8e91-7ffe0e2758c3",
      "name": "us-gaap:AmortizationOfIntangibleAssets",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R61": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails",
     "longName": "995955 - Disclosure - Repurchase Agreements and Other Borrowings - Additional Information (Details)",
     "shortName": "Repurchase Agreements and Other Borrowings - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "61",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:SecuritiesSoldUnderAgreementsToRepurchase",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "fmbh:SecuritiesSoldUnderAgreementsToRepurchaseIncreaseDecrease",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R62": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails",
     "longName": "995965 - Disclosure - Repurchase Agreements and Other Borrowings - Schedule of Securities Financing Transactions (Details)",
     "shortName": "Repurchase Agreements and Other Borrowings - Schedule of Securities Financing Transactions (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "62",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:DebtSecurities",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfSecuritiesFinancingTransactionsTextBlock",
       "div",
       "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:DebtSecurities",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfSecuritiesFinancingTransactionsTextBlock",
       "div",
       "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R63": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails",
     "longName": "995975 - Disclosure - Repurchase Agreements and Other Borrowings - Federal Home Loan Bank, Advances (Details)",
     "shortName": "Repurchase Agreements and Other Borrowings - Federal Home Loan Bank, Advances (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "63",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "fmbh:FederalHomeLoanBankAdvancesShortAndLongTerm",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "us-gaap:FederalHomeLoanBankAdvancesTableTextBlock",
       "div",
       "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_bbc1f3d0-a074-47e4-8d29-15a898efcbe3",
      "name": "fmbh:FederalHomeLoanBankAdvancesShortAndLongTerm",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FederalHomeLoanBankAdvancesTableTextBlock",
       "div",
       "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R64": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
     "longName": "995985 - Disclosure - Fair Value of Assets and Liabilities - Assets and Liabilities Measured at Fair Value on Recurring Basis (Details)",
     "shortName": "Fair Value of Assets and Liabilities - Assets and Liabilities Measured at Fair Value on Recurring Basis (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "64",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:AvailableForSaleSecuritiesDebtSecurities",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_738afc61-41fc-4656-8b6b-0fe419bee2a9",
      "name": "us-gaap:AvailableForSaleSecuritiesDebtSecurities",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R65": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails",
     "longName": "995995 - Disclosure - Fair Value of Assets and Liabilities - Fair Value of Assets Measured on a Recurring Basis Using Significant Unobservable Inputs (Details)",
     "shortName": "Fair Value of Assets and Liabilities - Fair Value of Assets Measured on a Recurring Basis Using Significant Unobservable Inputs (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "65",
     "firstAnchor": {
      "contextRef": "C_6c4cda02-e7d7-4128-a3f4-b2e14a61260a",
      "name": "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_6c4cda02-e7d7-4128-a3f4-b2e14a61260a",
      "name": "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R66": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
     "longName": "996005 - Disclosure - Fair Value of Assets and Liabilities - Additional Information (Details)",
     "shortName": "Fair Value of Assets and Liabilities - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "66",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:FinancingReceivableAllowanceForCreditLosses",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_fa442435-88f8-413c-bc19-1c2d887f2377",
      "name": "fmbh:FinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "span",
       "p",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R67": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
     "longName": "996015 - Disclosure - Fair Value of Assets and Liabilities - Assets Measured at Fair Value on a Nonrecurring Basis (Details)",
     "shortName": "Fair Value of Assets and Liabilities - Assets Measured at Fair Value on a Nonrecurring Basis (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "67",
     "firstAnchor": {
      "contextRef": "C_1c9421c5-7933-4cab-838b-35c941d3ab2f",
      "name": "us-gaap:AssetsFairValueDisclosure",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueAssetsMeasuredOnRecurringAndNonrecurringBasisTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_adbc2769-be4b-407a-a4d7-af42abf705d5",
      "name": "us-gaap:AssetsFairValueDisclosure",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueAssetsMeasuredOnRecurringAndNonrecurringBasisTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R68": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
     "longName": "996025 - Disclosure - Fair Value of Assets and Liabilities - Significant Unobservable Inputs Used in Valuation of Level 3 Fair Value Measurements (Details)",
     "shortName": "Fair Value of Assets and Liabilities - Significant Unobservable Inputs Used in Valuation of Level 3 Fair Value Measurements (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "68",
     "firstAnchor": {
      "contextRef": "C_0d17a63f-34ce-408b-9ab5-759bea02bf86",
      "name": "fmbh:DiscountToReflectRealizableValue",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0d17a63f-34ce-408b-9ab5-759bea02bf86",
      "name": "fmbh:DiscountToReflectRealizableValue",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R69": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails",
     "longName": "996035 - Disclosure - Fair Value of Assets and Liabilities - Summary of Estimated Fair Values of Company Financial Instruments (Details)",
     "shortName": "Fair Value of Assets and Liabilities - Summary of Estimated Fair Values of Company Financial Instruments (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "69",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:AvailableForSaleSecuritiesDebtSecurities",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_8303fa74-921e-4c9e-ab35-ee22e4728ecb",
      "name": "fmbh:CashAndDueFromBanksFairValueDisclosure",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueByBalanceSheetGroupingTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R70": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
     "longName": "996045 - Disclosure - Business Combinations - Additional Information (Details)",
     "shortName": "Business Combinations - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "70",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:CommonStockParOrStatedValuePerShare",
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_2a507291-2cc5-499d-826d-18b305b458bd",
      "name": "us-gaap:BusinessCombinationAcquisitionRelatedCosts",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "span",
       "p",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R71": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredDetails",
     "longName": "996055 - Disclosure - Business Combinations - Summary of Consideration Transferred (Details)",
     "shortName": "Business Combinations - Summary of Consideration Transferred (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "71",
     "firstAnchor": {
      "contextRef": "C_4a029df4-8a40-4f18-b05e-2a1344a6ec7b",
      "name": "fmbh:BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationCommonStockIssued",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfBusinessAcquisitionsByAcquisitionContingentConsiderationTextBlock",
       "div",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R72": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredParentheticalDetails",
     "longName": "996065 - Disclosure - Business Combinations - Summary of Consideration Transferred (Parenthetical) (Details)",
     "shortName": "Business Combinations - Summary of Consideration Transferred (Parenthetical) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "72",
     "firstAnchor": {
      "contextRef": "C_ebacde12-d71e-4690-af14-e6abb3451b74",
      "name": "us-gaap:BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "us-gaap:BusinessCombinationsPolicy",
       "div",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R73": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails",
     "longName": "996075 - Disclosure - Business Combinations - Summary of Fair Value of Assets Acquired and Liabilities Assumed (Details)",
     "shortName": "Business Combinations - Summary of Fair Value of Assets Acquired and Liabilities Assumed (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "73",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:Goodwill",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d7cb9f16-0970-4d59-87fd-67678b9d533e",
      "name": "us-gaap:BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock",
       "div",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R74": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfPurchasedCreditDeterioratedPcdLoansDetails",
     "longName": "996085 - Disclosure - Business Combinations - Summary of Purchased Credit Deteriorated (PCD) Loans (Details)",
     "shortName": "Business Combinations - Summary of Purchased Credit Deteriorated (PCD) Loans (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "74",
     "firstAnchor": {
      "contextRef": "C_ebacde12-d71e-4690-af14-e6abb3451b74",
      "name": "us-gaap:FinancingReceivablePurchasedWithCreditDeteriorationAmountAtParValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:SummaryOfPurchasedCreditDeterioratedPCDLoansTableTextBlock",
       "div",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ebacde12-d71e-4690-af14-e6abb3451b74",
      "name": "us-gaap:FinancingReceivablePurchasedWithCreditDeteriorationAmountAtParValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:SummaryOfPurchasedCreditDeterioratedPCDLoansTableTextBlock",
       "div",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R75": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails",
     "longName": "996095 - Disclosure - Business Combinations - Unaudited Pro Forma Condensed Combined Financial Information (Details)",
     "shortName": "Business Combinations - Unaudited Pro Forma Condensed Combined Financial Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "75",
     "firstAnchor": {
      "contextRef": "C_739aebde-d58f-4ae0-b3df-75e0c5ae6d5c",
      "name": "fmbh:BusinessAcquisitionsProFormaNetInterestIncome",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:BusinessAcquisitionProFormaInformationTextBlock",
       "div",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_739aebde-d58f-4ae0-b3df-75e0c5ae6d5c",
      "name": "fmbh:BusinessAcquisitionsProFormaNetInterestIncome",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:BusinessAcquisitionProFormaInformationTextBlock",
       "div",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R76": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesAdditionalInformationDetails",
     "longName": "996105 - Disclosure - Leases - Additional Information (Details)",
     "shortName": "Leases - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "76",
     "firstAnchor": {
      "contextRef": "C_738ca669-984a-497f-b99c-6667346c44a9",
      "name": "us-gaap:LesseeOperatingLeaseRenewalTerm",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_738ca669-984a-497f-b99c-6667346c44a9",
      "name": "us-gaap:LesseeOperatingLeaseRenewalTerm",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R77": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfSupplementalBalanceSheetInformationDetails",
     "longName": "996115 - Disclosure - Leases - Summary of Supplemental Balance Sheet Information (Details)",
     "shortName": "Leases - Summary of Supplemental Balance Sheet Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "77",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:OperatingLeaseRightOfUseAsset",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_df6ce9b5-39cf-43ab-b989-77811cca6ff9",
      "name": "us-gaap:OperatingLeaseRightOfUseAsset",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:ScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesTableTextBlock",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "unique": true
     }
    },
    "R78": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails",
     "longName": "996125 - Disclosure - Leases - Summary of Maturities of Lease Liabilities (Details)",
     "shortName": "Leases - Summary of Maturities of Lease Liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "78",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R79": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails",
     "longName": "996135 - Disclosure - Leases - Summary of Components of Lease Expense (Details)",
     "shortName": "Leases - Summary of Components of Lease Expense (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "79",
     "firstAnchor": {
      "contextRef": "C_35344679-ceb6-4bf4-8e91-7ffe0e2758c3",
      "name": "us-gaap:OperatingLeaseCost",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfOtherOperatingCostAndExpenseByComponentTextBlock",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35344679-ceb6-4bf4-8e91-7ffe0e2758c3",
      "name": "us-gaap:OperatingLeaseCost",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfOtherOperatingCostAndExpenseByComponentTextBlock",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R80": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfOperatingLeaseCashFlowsDetails",
     "longName": "996145 - Disclosure - Leases - Summary of Operating Lease Cash Flows (Details)",
     "shortName": "Leases - Summary of Operating Lease Cash Flows (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "80",
     "firstAnchor": {
      "contextRef": "C_ed4081ab-ae45-4c38-91c7-9dccbae74eba",
      "name": "us-gaap:OperatingLeasePayments",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R81": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
     "longName": "996155 - Disclosure - Derivatives - Schedule of Derivative Instruments (Details)",
     "shortName": "Derivatives - Schedule of Derivative Instruments (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "81",
     "firstAnchor": {
      "contextRef": "C_c04006ff-8dba-42bf-b134-3e5310f95c87",
      "name": "us-gaap:DerivativeAverageRemainingMaturity1",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_c04006ff-8dba-42bf-b134-3e5310f95c87",
      "name": "us-gaap:DerivativeAverageRemainingMaturity1",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R82": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
     "longName": "996165 - Disclosure - Derivatives - Summary of Derivative Instruments, Gain (Loss) (Details)",
     "shortName": "Derivatives - Summary of Derivative Instruments, Gain (Loss) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "82",
     "firstAnchor": {
      "contextRef": "C_3bb0d478-3197-4c32-bd1e-a2a9af2d0918",
      "name": "us-gaap:DerivativeGainLossOnDerivativeNet",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_3bb0d478-3197-4c32-bd1e-a2a9af2d0918",
      "name": "us-gaap:DerivativeGainLossOnDerivativeNet",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R83": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfHedgedInstrumentDetails",
     "longName": "996175 - Disclosure - Derivatives - Summary of Hedged Instrument (Details)",
     "shortName": "Derivatives - Summary of Hedged Instrument (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "83",
     "firstAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:HedgedAssetFairValueHedge",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:SummaryOfCumulativeBasisAdjustmentOfFairValueHedgesTableTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_eb5537d1-8cbf-4347-8739-706fb02aa2c1",
      "name": "us-gaap:HedgedAssetFairValueHedge",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:SummaryOfCumulativeBasisAdjustmentOfFairValueHedgesTableTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R84": {
     "role": "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails",
     "longName": "996185 - Disclosure - Derivatives - Summary of Non Hedge Instruments (Details)",
     "shortName": "Derivatives - Summary of Non Hedge Instruments (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "84",
     "firstAnchor": {
      "contextRef": "C_3c2efc68-e93c-4143-9753-7acb8b66f946",
      "name": "us-gaap:DerivativeAverageRemainingMaturity1",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_3c2efc68-e93c-4143-9753-7acb8b66f946",
      "name": "us-gaap:DerivativeAverageRemainingMaturity1",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20240630.htm",
      "first": true,
      "unique": true
     }
    }
   },
   "tag": {
    "fmbh_ATMDebitCardExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "ATMDebitCardExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "ATM/debit card",
        "label": "A T M Debit Card Expense",
        "documentation": "ATM Debit Card Expense"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccountingStandardsUpdate201613Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AccountingStandardsUpdate201613Member",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "ASU 2016-13",
        "label": "Accounting Standards Update 2016-13 [Member]",
        "documentation": "Accounting Standards Update 2016-13 Financial Instruments-Credit Losses (Topic 326): Measurement of Credit Losses on Financial Instruments."
       }
      }
     },
     "auth_ref": [
      "r350"
     ]
    },
    "us-gaap_AccountsNotesAndLoansReceivableLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AccountsNotesAndLoansReceivableLineItems",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesFinancialEffectOfLoanModificationsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfGrossCommercialRealEstateLoansByPropertyTypeDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accounts, Notes, Loans and Financing Receivable [Line Items]",
        "label": "Accounts, Notes, Loans and Financing Receivable [Line Items]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r305",
      "r1032"
     ]
    },
    "us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AccumulatedDefinedBenefitPlansAdjustmentMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accumulated Defined Benefit Plans Adjustment Attributable to Parent",
        "label": "Accumulated Defined Benefit Plans Adjustment Attributable to Parent [Member]",
        "documentation": "Accumulated other comprehensive (income) loss related to defined benefit plans attributable to the parent."
       }
      }
     },
     "auth_ref": [
      "r5",
      "r6",
      "r18",
      "r27",
      "r92",
      "r998",
      "r999",
      "r1000"
     ]
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AccumulatedOtherComprehensiveIncomeLossNetOfTax",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Accumulated Other Comprehensive Income (Loss), Net of Tax, Total",
        "terseLabel": "Accumulated other comprehensive loss",
        "label": "Accumulated Other Comprehensive Income (Loss), Net of Tax",
        "documentation": "Amount, after tax, of accumulated increase (decrease) in equity from transaction and other event and circumstance from nonowner source."
       }
      }
     },
     "auth_ref": [
      "r26",
      "r27",
      "r93",
      "r222",
      "r697",
      "r722",
      "r726"
     ]
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AccumulatedOtherComprehensiveIncomeLossNetOfTaxAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated Other Comprehensive Income (Loss), Net of Tax [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AccumulatedOtherComprehensiveIncomeMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accumulated Other Comprehensive Income (Loss)",
        "label": "AOCI Attributable to Parent [Member]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r4",
      "r18",
      "r27",
      "r548",
      "r551",
      "r630",
      "r717",
      "r718",
      "r998",
      "r999",
      "r1000",
      "r1012",
      "r1013",
      "r1014",
      "r1015"
     ]
    },
    "fmbh_AcquiredBookValueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "AcquiredBookValueMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Acquired Book Value",
        "label": "Acquired Book Value [Member]",
        "documentation": "Acquired Book Value [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_Additional402vDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "Additional402vDisclosureTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional 402(v) Disclosure [Text Block]",
        "terseLabel": "Additional 402(v) Disclosure"
       }
      }
     },
     "auth_ref": [
      "r930"
     ]
    },
    "us-gaap_AdditionalPaidInCapitalCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AdditionalPaidInCapitalCommonStock",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Additional paid-in capital",
        "label": "Additional Paid in Capital, Common Stock",
        "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."
       }
      }
     },
     "auth_ref": [
      "r85"
     ]
    },
    "us-gaap_AdditionalPaidInCapitalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AdditionalPaidInCapitalMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Additional Paid-in Capital",
        "label": "Additional Paid-in Capital [Member]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r733",
      "r1012",
      "r1013",
      "r1014",
      "r1015",
      "r1086",
      "r1135"
     ]
    },
    "ecd_AdjToCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AdjToCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment to Compensation Amount",
        "terseLabel": "Adjustment to Compensation, Amount"
       }
      }
     },
     "auth_ref": [
      "r943"
     ]
    },
    "ecd_AdjToCompAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AdjToCompAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment to Compensation [Axis]",
        "terseLabel": "Adjustment to Compensation:"
       }
      }
     },
     "auth_ref": [
      "r943"
     ]
    },
    "ecd_AdjToNonPeoNeoCompFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AdjToNonPeoNeoCompFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment to Non-PEO NEO Compensation Footnote [Text Block]",
        "terseLabel": "Adjustment to Non-PEO NEO Compensation Footnote"
       }
      }
     },
     "auth_ref": [
      "r943"
     ]
    },
    "ecd_AdjToPeoCompFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AdjToPeoCompFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment To PEO Compensation, Footnote [Text Block]",
        "terseLabel": "Adjustment To PEO Compensation, Footnote"
       }
      }
     },
     "auth_ref": [
      "r943"
     ]
    },
    "us-gaap_AdjustmentsForNewAccountingPronouncementsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AdjustmentsForNewAccountingPronouncementsAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accounting Standards Update",
        "label": "Accounting Standards Update [Axis]",
        "documentation": "Information by amendment to accounting standards."
       }
      }
     },
     "auth_ref": [
      "r208",
      "r209",
      "r210",
      "r211",
      "r212",
      "r213",
      "r263",
      "r264",
      "r265",
      "r266",
      "r276",
      "r302",
      "r303",
      "r351",
      "r352",
      "r353",
      "r354",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360",
      "r416",
      "r417",
      "r419",
      "r501",
      "r502",
      "r503",
      "r504",
      "r505",
      "r508",
      "r509",
      "r510",
      "r511",
      "r512",
      "r513",
      "r514",
      "r515",
      "r516",
      "r521",
      "r522",
      "r523",
      "r525",
      "r526",
      "r527",
      "r528",
      "r529",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552",
      "r553",
      "r555",
      "r556",
      "r557",
      "r558",
      "r559",
      "r560",
      "r561",
      "r562",
      "r563",
      "r564",
      "r565",
      "r591",
      "r592",
      "r605",
      "r606",
      "r607",
      "r625",
      "r626",
      "r627",
      "r628",
      "r629",
      "r630",
      "r666",
      "r667",
      "r668",
      "r715",
      "r716",
      "r717",
      "r718",
      "r719",
      "r720",
      "r721",
      "r722",
      "r723",
      "r724",
      "r725",
      "r726"
     ]
    },
    "fmbh_AdjustmentsToAdditionalPaidInCapitalIncomeTaxBenefitFromDeferredCompensation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "AdjustmentsToAdditionalPaidInCapitalIncomeTaxBenefitFromDeferredCompensation",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax benefit related to deferred compensation distributions",
        "label": "Adjustments To Additional Paid In Capital Income Tax Benefit From Deferred Compensation",
        "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)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AdjustmentsToAdditionalPaidInCapitalStockIssuedIssuanceCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AdjustmentsToAdditionalPaidInCapitalStockIssuedIssuanceCosts",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Issuance costs pursuant to acquisition of Delta Bancshares Company",
        "label": "Adjustments to Additional Paid in Capital, Stock Issued, Issuance Costs",
        "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."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r109"
     ]
    },
    "fmbh_AdjustmentsToDeferredCompensationEquityShareBasedCompensationRestrictedStockUnitOrRestrictedStockAward": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "AdjustmentsToDeferredCompensationEquityShareBasedCompensationRestrictedStockUnitOrRestrictedStockAward",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Vested restricted shares/units compensation expense",
        "label": "Adjustments To Deferred Compensation Equity Share Based Compensation Restricted Stock Unit Or Restricted Stock Award",
        "documentation": "Adjustments to deferred compensation equity share based compensation restricted stock unit or restricted stock award."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Adjustments to reconcile net income to net cash provided by operating activities:",
        "label": "Adjustments to Reconcile Net Income (Loss) to Cash Provided by (Used in) Operating Activities [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AdvancesFromFederalHomeLoanBanks": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AdvancesFromFederalHomeLoanBanks",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Advance from Federal Home Loan Bank, Total",
        "terseLabel": "FHLB borrowings",
        "label": "Advance from Federal Home Loan Bank",
        "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."
       }
      }
     },
     "auth_ref": [
      "r160"
     ]
    },
    "ecd_AggtChngPnsnValInSummryCompstnTblForAplblYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AggtChngPnsnValInSummryCompstnTblForAplblYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aggregate Change in Present Value of Accumulated Benefit for All Pension Plans Reported in Summary Compensation Table [Member]",
        "terseLabel": "Aggregate Change in Present Value of Accumulated Benefit for All Pension Plans Reported in Summary Compensation Table"
       }
      }
     },
     "auth_ref": [
      "r976"
     ]
    },
    "ecd_AggtErrCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AggtErrCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aggregate Erroneous Compensation Amount",
        "terseLabel": "Aggregate Erroneous Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r902",
      "r912",
      "r922",
      "r954"
     ]
    },
    "ecd_AggtErrCompNotYetDeterminedTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AggtErrCompNotYetDeterminedTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aggregate Erroneous Compensation Not Yet Determined [Text Block]",
        "terseLabel": "Aggregate Erroneous Compensation Not Yet Determined"
       }
      }
     },
     "auth_ref": [
      "r905",
      "r915",
      "r925",
      "r957"
     ]
    },
    "ecd_AggtPnsnAdjsSvcCstMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AggtPnsnAdjsSvcCstMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aggregate Pension Adjustments Service Cost [Member]",
        "terseLabel": "Aggregate Pension Adjustments Service Cost"
       }
      }
     },
     "auth_ref": [
      "r977"
     ]
    },
    "fmbh_AgriculturalExcludingAgriculturalRealEstatePortfolioSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "AgriculturalExcludingAgriculturalRealEstatePortfolioSegmentMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Agricultural Loans",
        "label": "Agricultural Excluding Agricultural Real Estate Portfolio Segment [Member]",
        "documentation": "Agricultural excluding agricultural real estate portfolio segment."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AgriculturalLoansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "AgriculturalLoansMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Agricultural",
        "terseLabel": "Agricultural Loans",
        "label": "Agricultural Loans [Member]",
        "documentation": "Loans or extension of credit for agricultural uses."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AgriculturalPortfolioSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "AgriculturalPortfolioSegmentMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Agricultural",
        "label": "Agricultural Portfolio Segment [Member]",
        "documentation": "Agricultural portfolio segment."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AgriculturalRealEstateLoansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "AgriculturalRealEstateLoansMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Farm",
        "terseLabel": "Agricultural Real Estate Loans",
        "label": "Agricultural Real Estate Loans [Member]",
        "documentation": "Loans or extension of credit secured by farms."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AllAdjToCompMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AllAdjToCompMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Adjustments to Compensation [Member]",
        "terseLabel": "All Adjustments to Compensation"
       }
      }
     },
     "auth_ref": [
      "r943"
     ]
    },
    "ecd_AllExecutiveCategoriesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AllExecutiveCategoriesMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Executive Categories [Member]",
        "terseLabel": "All Executive Categories"
       }
      }
     },
     "auth_ref": [
      "r950"
     ]
    },
    "ecd_AllIndividualsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AllIndividualsMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure",
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure",
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements",
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Individuals [Member]",
        "terseLabel": "All Individuals"
       }
      }
     },
     "auth_ref": [
      "r906",
      "r916",
      "r926",
      "r950",
      "r958",
      "r962",
      "r970"
     ]
    },
    "ecd_AllTradingArrangementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AllTradingArrangementsMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Trading Arrangements [Member]",
        "terseLabel": "All Trading Arrangements"
       }
      }
     },
     "auth_ref": [
      "r968"
     ]
    },
    "us-gaap_AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Allowance for Credit Losses Based on Portfolio Segment",
        "label": "Financing Receivable, Allowance for Credit Loss [Table Text Block]",
        "documentation": "Tabular disclosure of allowance for credit loss on financing receivable."
       }
      }
     },
     "auth_ref": [
      "r163",
      "r1051"
     ]
    },
    "us-gaap_AllowanceForLoanAndLeaseLossesWriteoffsNetAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AllowanceForLoanAndLeaseLossesWriteoffsNetAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Allowance for loan losses [Abstract]",
        "label": "Financing Receivable, Allowance for Credit Loss, Writeoff, after Recovery [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_AmendmentFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "AmendmentFlag",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amendment Flag",
        "label": "Amendment Flag",
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AmortizationExpenseAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "AmortizationExpenseAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfExpectedAmortizationExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Aggregate amortization expense:",
        "label": "Amortization Expense [Abstract]",
        "documentation": "Amortization expense."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AmortizationOfIntangibleAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AmortizationOfIntangibleAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfExpectedAmortizationExpenseDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "For period 01/01/24 - 06/30/24",
        "terseLabel": "Amortization of intangible assets",
        "label": "Amortization of Intangible Assets",
        "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."
       }
      }
     },
     "auth_ref": [
      "r15",
      "r405",
      "r412",
      "r843"
     ]
    },
    "us-gaap_AmortizationOfMortgageServicingRightsMSRs": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AmortizationOfMortgageServicingRightsMSRs",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Mortgage servicing rights amortized",
        "label": "Amortization of Mortgage Servicing Rights (MSRs)",
        "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."
       }
      }
     },
     "auth_ref": [
      "r15",
      "r1117"
     ]
    },
    "fmbh_AmortizationPeriodOfLoans": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "AmortizationPeriodOfLoans",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The useful life of the loan receivable.",
        "label": "Amortization Period Of Loans",
        "terseLabel": "Amortization period of loans"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureEarningsPerShareAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of anti-dilutive shares excluded when computing diluted earnings per share",
        "label": "Antidilutive Securities Excluded from Computation of Earnings Per Share, Amount",
        "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."
       }
      }
     },
     "auth_ref": [
      "r290"
     ]
    },
    "us-gaap_Assets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "Assets",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total assets",
        "label": "Assets",
        "documentation": "Amount of asset recognized for present right to economic benefit."
       }
      }
     },
     "auth_ref": [
      "r130",
      "r162",
      "r219",
      "r253",
      "r294",
      "r296",
      "r300",
      "r301",
      "r349",
      "r424",
      "r425",
      "r426",
      "r427",
      "r428",
      "r429",
      "r430",
      "r431",
      "r432",
      "r531",
      "r535",
      "r596",
      "r694",
      "r758",
      "r829",
      "r830",
      "r873",
      "r892",
      "r1077",
      "r1078",
      "r1109"
     ]
    },
    "us-gaap_AssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AssetsAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Assets",
        "label": "Assets [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AssetsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AssetsFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Assets, Fair Value",
        "totalLabel": "Total assets",
        "terseLabel": "Assets, Fair Value",
        "label": "Assets, Fair Value Disclosure",
        "documentation": "Fair value portion of asset recognized for present right to economic benefit."
       }
      }
     },
     "auth_ref": [
      "r567",
      "r568",
      "r861"
     ]
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AssetsSoldUnderAgreementsToRepurchaseLineItems",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Assets Sold Under Agreements To Repurchase [Line Items]",
        "label": "Assets Sold under Agreements to Repurchase [Line Items]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r257",
      "r647"
     ]
    },
    "fmbh_AssistedLivingFacilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "AssistedLivingFacilityMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfGrossCommercialRealEstateLoansByPropertyTypeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Assisted Living Facility",
        "label": "Assisted Living Facility [Member]",
        "documentation": "Assisted living facility."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AvailableForSaleAndHeldForMaturitySecuritiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "AvailableForSaleAndHeldForMaturitySecuritiesTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Available for Sale and Held for Maturity Securities",
        "label": "Available For Sale And Held For Maturity Securities Table [Text Block]",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gross Unrealized Gains",
        "label": "Debt Securities, Available-for-Sale, Accumulated Gross Unrealized Gain, before Tax",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r321"
     ]
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Gross Unrealized (Losses)",
        "label": "Debt Securities, Available-for-Sale, Accumulated Gross Unrealized Loss, before Tax",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r322"
     ]
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AvailableForSaleDebtSecuritiesAmortizedCostBasis",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Available-for-sale, amotized cost",
        "totalLabel": "Amortized Cost",
        "label": "Debt Securities, Available-for-Sale, Amortized Cost",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r318",
      "r383",
      "r692"
     ]
    },
    "fmbh_AvailableForSaleFullTaxEquivalentYieldMaturities": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "AvailableForSaleFullTaxEquivalentYieldMaturities",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Available-for-sale, Full Tax-equivalent yield,Total (in hundredths)",
        "label": "Available For Sale Full Tax Equivalent Yield Maturities",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AvailableForSaleFullTaxEquivalentYieldMaturitiesAfter1Through5Years": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "AvailableForSaleFullTaxEquivalentYieldMaturitiesAfter1Through5Years",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Available-for-sale, Full Tax-equivalent yield,After 1 through 5 years (in hundredths)",
        "label": "Available For Sale Full Tax Equivalent Yield Maturities After1 Through5 Years",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AvailableForSaleFullTaxEquivalentYieldMaturitiesAfter5Through10Years": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "AvailableForSaleFullTaxEquivalentYieldMaturitiesAfter5Through10Years",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Available-for-sale, Full Tax-equivalent yield, After 5 through 10 years (in hundredths)",
        "label": "Available For Sale Full Tax Equivalent Yield Maturities After5 Through10 Years",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AvailableForSaleFullTaxEquivalentYieldMaturitiesAfterTenYears": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "AvailableForSaleFullTaxEquivalentYieldMaturitiesAfterTenYears",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Available-for-sale, Full Tax-equivalent yield,After ten years (in hundredths)",
        "label": "Available For Sale Full Tax Equivalent Yield Maturities After Ten Years",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AvailableForSaleFullTaxEquivalentYieldMaturitiesYearOne": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "AvailableForSaleFullTaxEquivalentYieldMaturitiesYearOne",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Available-for-sale, Full Tax-equivalent yield, One year or less (in hundredths)",
        "label": "Available For Sale Full Tax Equivalent Yield Maturities Year One",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AvailableForSaleSecuritiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AvailableForSaleSecuritiesAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Available-for-sale securities:",
        "terseLabel": "Available-for-sale: [Abstract]",
        "label": "Debt Securities, Available-for-Sale [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionQualitativeDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AvailableForSaleSecuritiesContinuousUnrealizedLossPositionQualitativeDisclosureAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Available-for-sale Securities, Continuous Unrealized Loss Position, Qualitative Disclosure [Abstract]",
        "label": "Available-for-Sale Securities, Continuous Unrealized Loss Position, Qualitative Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Available-for-sale investments, After 5 through 10 years",
        "label": "Debt Securities, Available-for-Sale, Fair Value, Maturity, Allocated and Single Maturity Date, after Year 5 Through 10",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r327",
      "r686"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Available-for-sale investments, After 1 through 5 years",
        "label": "Debt Securities, Available-for-Sale, Fair Value, Maturity, Allocated and Single Maturity Date, after Year One Through Five",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r326",
      "r685"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Available-for-sale investments, After ten years",
        "label": "Debt Securities, Available-for-Sale, Fair Value, Maturity, Allocated and Single Maturity Date, after Year 10",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r328",
      "r687"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt Securities, Available-for-sale, Fair Value, Fiscal Year Maturity [Abstract]",
        "label": "Debt Securities, Available-for-Sale, Fair Value, Fiscal Year Maturity [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Available-for-sale investments, One year or less",
        "label": "Debt Securities, Available-for-Sale, Fair Value, Maturity, Allocated and Single Maturity Date, Year One",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r325",
      "r684"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AvailableForSaleSecuritiesDebtSecurities",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Available-for-sale, at fair value (amortized cost of $1,311,109 and $1,363,721 at June 30, 2024 and December 31, 2023, respectively)",
        "label": "Total available-for-sale securities",
        "verboseLabel": "Fair Value",
        "totalLabel": "Available-for-sale investments, Fair Value",
        "documentation": "Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale)."
       }
      }
     },
     "auth_ref": [
      "r319",
      "r383",
      "r567",
      "r672",
      "r861",
      "r864",
      "r1036",
      "r1090",
      "r1091",
      "r1092"
     ]
    },
    "fmbh_AvailableForSaleWeightedAverageYieldMaturities": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "AvailableForSaleWeightedAverageYieldMaturities",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Available-for-sale , Weighted average yield,Total (in hundredths)",
        "label": "Available For Sale Weighted Average Yield Maturities",
        "documentation": "Weighted average yield for available-for-sale investment securities held by the entity with maturities."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AvailableForSaleWeightedAverageYieldMaturitiesAfter10Years": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "AvailableForSaleWeightedAverageYieldMaturitiesAfter10Years",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Available-for-sale , Weighted average yield,After ten years (in hundredths)",
        "label": "Available For Sale Weighted Average Yield Maturities After10 Years",
        "documentation": "Weighted average yield for available-for-sale investment securities held by the entity with maturities after ten years."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AvailableForSaleWeightedAverageYieldMaturitiesAfter1Through5Years": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "AvailableForSaleWeightedAverageYieldMaturitiesAfter1Through5Years",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Available-for-sale , Weighted average yield,After 1 through 5 years (in hundredths)",
        "label": "Available For Sale Weighted Average Yield Maturities After1 Through5 Years",
        "documentation": "Weighted average yield for available-for-sale investment securities held by the entity with maturities after one through five years."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AvailableForSaleWeightedAverageYieldMaturitiesAfter5Through10Years": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "AvailableForSaleWeightedAverageYieldMaturitiesAfter5Through10Years",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Available-for-sale, Weighted average yield,After 5 through 10 years (in hundredths)",
        "label": "Available For Sale Weighted Average Yield Maturities After5 Through10 Years",
        "documentation": "Weighted average yield for available-for-sale investment securities held by the entity with maturities after five through ten years."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AvailableForSaleWeightedAverageYieldMaturitiesYearOne": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "AvailableForSaleWeightedAverageYieldMaturitiesYearOne",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Available-for-sale, Weighted average yield, One year or less (in hundredths)",
        "label": "Available For Sale Weighted Average Yield Maturities Year One",
        "documentation": "Weighted average yield for available-for-sale investment securities held by the entity with maturities of one year or less."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AwardExrcPrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardExrcPrice",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Exercise Price",
        "terseLabel": "Exercise Price"
       }
      }
     },
     "auth_ref": [
      "r965"
     ]
    },
    "ecd_AwardGrantDateFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardGrantDateFairValue",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Grant Date Fair Value",
        "terseLabel": "Fair Value as of Grant Date"
       }
      }
     },
     "auth_ref": [
      "r966"
     ]
    },
    "ecd_AwardTmgDiscLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardTmgDiscLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing Disclosures [Line Items]",
        "terseLabel": "Award Timing Disclosures"
       }
      }
     },
     "auth_ref": [
      "r961"
     ]
    },
    "ecd_AwardTmgHowMnpiCnsdrdTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardTmgHowMnpiCnsdrdTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing, How MNPI Considered [Text Block]",
        "terseLabel": "Award Timing, How MNPI Considered"
       }
      }
     },
     "auth_ref": [
      "r961"
     ]
    },
    "ecd_AwardTmgMethodTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardTmgMethodTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing Method [Text Block]",
        "terseLabel": "Award Timing Method"
       }
      }
     },
     "auth_ref": [
      "r961"
     ]
    },
    "ecd_AwardTmgMnpiCnsdrdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardTmgMnpiCnsdrdFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing MNPI Considered [Flag]",
        "terseLabel": "Award Timing MNPI Considered"
       }
      }
     },
     "auth_ref": [
      "r961"
     ]
    },
    "ecd_AwardTmgMnpiDiscTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardTmgMnpiDiscTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing MNPI Disclosure [Text Block]",
        "terseLabel": "Award Timing MNPI Disclosure"
       }
      }
     },
     "auth_ref": [
      "r961"
     ]
    },
    "ecd_AwardTmgPredtrmndFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardTmgPredtrmndFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing Predetermined [Flag]",
        "terseLabel": "Award Timing Predetermined"
       }
      }
     },
     "auth_ref": [
      "r961"
     ]
    },
    "us-gaap_AwardTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AwardTypeAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Type [Axis]",
        "terseLabel": "Award Type",
        "documentation": "Information by type of award under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r461",
      "r462",
      "r463",
      "r465",
      "r466",
      "r467",
      "r468",
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r474",
      "r475",
      "r476",
      "r477",
      "r478",
      "r479",
      "r480",
      "r481",
      "r482",
      "r485",
      "r486",
      "r487",
      "r488",
      "r489"
     ]
    },
    "ecd_AwardUndrlygSecuritiesAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardUndrlygSecuritiesAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Underlying Securities Amount",
        "terseLabel": "Underlying Securities"
       }
      }
     },
     "auth_ref": [
      "r964"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardsCloseToMnpiDiscIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Awards Close in Time to MNPI Disclosures, Individual Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r963"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardsCloseToMnpiDiscTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Awards Close in Time to MNPI Disclosures [Table]",
        "terseLabel": "Awards Close in Time to MNPI Disclosures"
       }
      }
     },
     "auth_ref": [
      "r962"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardsCloseToMnpiDiscTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Awards Close in Time to MNPI Disclosures [Table Text Block]",
        "terseLabel": "Awards Close in Time to MNPI Disclosures, Table"
       }
      }
     },
     "auth_ref": [
      "r962"
     ]
    },
    "fmbh_BBMAndAssociatesIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BBMAndAssociatesIncMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "BBM &amp; Associates, Inc.",
        "label": "B B M And Associates Inc [Member]",
        "documentation": "BBM and Associates Inc."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BalanceSheetLocationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BalanceSheetLocationAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Balance Sheet Location",
        "label": "Statement of Financial Position Location, Balance [Axis]",
        "documentation": "Information by location in statement of financial position where disaggregated cumulative balance has been reported."
       }
      }
     },
     "auth_ref": [
      "r418",
      "r1127",
      "r1128"
     ]
    },
    "us-gaap_BalanceSheetLocationDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BalanceSheetLocationDomain",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Balance Sheet Location",
        "label": "Statement of Financial Position Location, Balance [Domain]",
        "documentation": "Location in statement of financial position where disaggregated cumulative balance has been reported."
       }
      }
     },
     "auth_ref": [
      "r58",
      "r61",
      "r418",
      "r1127",
      "r1128"
     ]
    },
    "us-gaap_BankOwnedLifeInsurance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BankOwnedLifeInsurance",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bank owned life insurance",
        "label": "Bank Owned Life Insurance",
        "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."
       }
      }
     },
     "auth_ref": [
      "r1119"
     ]
    },
    "us-gaap_BankOwnedLifeInsuranceIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BankOwnedLifeInsuranceIncome",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bank owned life insurance",
        "label": "Bank Owned Life Insurance Income",
        "documentation": "Earnings on or other increases in the value of the cash surrender value of bank owned life insurance policies."
       }
      }
     },
     "auth_ref": [
      "r145"
     ]
    },
    "fmbh_BankOwnedLifeInsuranceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BankOwnedLifeInsuranceMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bank Owned Life Insurance",
        "label": "Bank Owned Life Insurance [Member]",
        "documentation": "Bank owned life insurance."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BasisOfAccountingPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BasisOfAccountingPolicyPolicyTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Basis of Accounting and Consolidation",
        "label": "Basis of Accounting, Policy [Policy Text Block]",
        "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)."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BlackhawkAcquisitionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BlackhawkAcquisitionMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Blackhawk Acquisition [Member[",
        "label": "Blackhawk Acquisition [Member]",
        "documentation": "Blackhawk acquisition."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BlackhawkBancorpIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BlackhawkBancorpIncMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredParentheticalDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfPurchasedCreditDeterioratedPcdLoansDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsTables",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Blackhawk Bancorp, Inc",
        "label": "Blackhawk Bancorp, Inc [Member]",
        "documentation": "Blackhawk Bancorp, Inc"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessAcquisitionAcquireeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessAcquisitionAcquireeDomain",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredParentheticalDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfPurchasedCreditDeterioratedPcdLoansDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsTables",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Business Acquisition, Acquiree",
        "label": "Business Acquisition, Acquiree [Domain]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r406",
      "r407",
      "r408",
      "r409",
      "r410",
      "r519",
      "r853",
      "r854"
     ]
    },
    "us-gaap_BusinessAcquisitionAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessAcquisitionAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredParentheticalDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfPurchasedCreditDeterioratedPcdLoansDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsTables",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Business Acquisition",
        "label": "Business Acquisition [Axis]",
        "documentation": "Information by business combination or series of individually immaterial business combinations."
       }
      }
     },
     "auth_ref": [
      "r47",
      "r49",
      "r406",
      "r407",
      "r408",
      "r409",
      "r410",
      "r519",
      "r853",
      "r854"
     ]
    },
    "us-gaap_BusinessAcquisitionCostOfAcquiredEntityTransactionCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessAcquisitionCostOfAcquiredEntityTransactionCosts",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pre-tax of acquisition costs",
        "label": "Business Acquisition, Transaction Costs",
        "documentation": "Amount of direct costs of the business combination including legal, accounting, and other costs incurred to consummate the business acquisition."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredParentheticalDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Consideration paid in shares",
        "terseLabel": "Consideration payable in shares",
        "label": "Business Acquisition, Equity Interest Issued or Issuable, Number of Shares",
        "documentation": "Number of shares of equity interests issued or issuable to acquire entity."
       }
      }
     },
     "auth_ref": [
      "r117"
     ]
    },
    "us-gaap_BusinessAcquisitionLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessAcquisitionLineItems",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredParentheticalDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfPurchasedCreditDeterioratedPcdLoansDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsTables",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Business Acquisition [Line Items]",
        "label": "Business Acquisition [Line Items]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r519"
     ]
    },
    "us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessAcquisitionPercentageOfVotingInterestsAcquired",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of issued and outstanding shares acquired",
        "label": "Business Acquisition, Percentage of Voting Interests Acquired",
        "documentation": "Percentage of voting equity interests acquired at the acquisition date in the business combination."
       }
      }
     },
     "auth_ref": [
      "r48"
     ]
    },
    "us-gaap_BusinessAcquisitionProFormaEarningsPerShareBasic": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessAcquisitionProFormaEarningsPerShareBasic",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Basic",
        "label": "Business Acquisition, Pro Forma Earnings Per Share, Basic",
        "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."
       }
      }
     },
     "auth_ref": [
      "r981",
      "r982"
     ]
    },
    "us-gaap_BusinessAcquisitionProFormaEarningsPerShareDiluted": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessAcquisitionProFormaEarningsPerShareDiluted",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Diluted",
        "label": "Business Acquisition, Pro Forma Earnings Per Share, Diluted",
        "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."
       }
      }
     },
     "auth_ref": [
      "r981",
      "r982"
     ]
    },
    "us-gaap_BusinessAcquisitionProFormaInformationTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessAcquisitionProFormaInformationTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unaudited Pro Forma Condensed Combined Financial Information",
        "label": "Business Acquisition, Pro Forma Information [Table Text Block]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r981",
      "r982"
     ]
    },
    "us-gaap_BusinessAcquisitionSharePrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessAcquisitionSharePrice",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share Price",
        "label": "Business Acquisition, Share Price",
        "documentation": "Price of a single share of a number of saleable stocks paid or offered to be paid in a business combination."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessAcquisitionUnallocatedPurchasePrice": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessAcquisitionUnallocatedPurchasePrice",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unallocated purchase price",
        "label": "Business Acquisition Unallocated Purchase Price",
        "documentation": "Business acquisition unallocated purchase price."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessAcquisitionsProFormaIncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessAcquisitionsProFormaIncomeTaxExpenseBenefit",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Income tax expense",
        "label": "Business Acquisitions Pro Forma Income Tax Expense Benefit",
        "documentation": "Business acquisitions pro forma income tax expense benefit."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessAcquisitionsProFormaIncomebeforeIncomeTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessAcquisitionsProFormaIncomebeforeIncomeTaxes",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Income before taxes",
        "label": "Business Acquisitions Pro Forma Incomebefore Income Taxes",
        "documentation": "Business Acquisitions Pro Forma Income before Income Taxes"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessAcquisitionsProFormaNetIncomeLoss",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net income",
        "label": "Business Acquisition, Pro Forma Net Income (Loss)",
        "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."
       }
      }
     },
     "auth_ref": [
      "r517",
      "r518"
     ]
    },
    "fmbh_BusinessAcquisitionsProFormaNetInterestIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessAcquisitionsProFormaNetInterestIncome",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net interest income",
        "label": "Business Acquisitions Pro Forma Net Interest Income",
        "documentation": "Business Acquisitions Pro Forma Net Interest Income"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessAcquisitionsProFormaNonInterestExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessAcquisitionsProFormaNonInterestExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-interest expense",
        "label": "Business Acquisitions Pro Forma Non Interest Expense",
        "documentation": "Business Acquisitions Pro Forma Non-Interest Expense"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessAcquisitionsProFormaNonInterestIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessAcquisitionsProFormaNonInterestIncome",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-interest income",
        "label": "Business Acquisitions Pro Forma Non Interest Income",
        "documentation": "Business Acquisitions Pro Forma Non-Interest Income"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessAcquisitionsProFormaProvisionForLoanLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessAcquisitionsProFormaProvisionForLoanLosses",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Acquisitions Pro Forma Provision For Loan Losses",
        "documentation": "Business Acquisitions Pro Forma Provision For Loan Losses",
        "terseLabel": "Provision for credit losses"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessAssetsMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Business Assets",
        "label": "Business Assets [Member]",
        "documentation": "Business Assets [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationAcquisitionRelatedCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationAcquisitionRelatedCosts",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pre-tax of acquisition costs",
        "label": "Business Combination, Acquisition Related Costs",
        "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."
       }
      }
     },
     "auth_ref": [
      "r46"
     ]
    },
    "fmbh_BusinessCombinationConsiderationAllowanceForCreditLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessCombinationConsiderationAllowanceForCreditLosses",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Allowance for credit losses",
        "label": "Business Combination, Consideration Allowance for Credit Losses",
        "documentation": "Business combination consideration allowance for credit losses."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessCombinationConsiderationAllowanceForCreditLossesOnNonPcdLoans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessCombinationConsiderationAllowanceForCreditLossesOnNonPcdLoans",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Allowance for credit losses on non-PCD loans",
        "label": "Business Combination, Consideration Allowance for Credit Losses on Non-PCD Loans",
        "documentation": "Business combination, consideration allowance for credit losses on non-PCD loans."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationConsiderationTransferred1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationConsiderationTransferred1",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total consideration paid",
        "label": "Business Combination, Consideration Transferred",
        "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."
       }
      }
     },
     "auth_ref": [
      "r1",
      "r2",
      "r17"
     ]
    },
    "us-gaap_BusinessCombinationConsiderationTransferredAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationConsiderationTransferredAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Consideration paid",
        "label": "Business Combination, Consideration Transferred [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common stock",
        "label": "Business Combination, Consideration Transferred, Equity Interests Issued and Issuable",
        "documentation": "Amount of equity interests of the acquirer, including instruments or interests issued or issuable in consideration for the business combination."
       }
      }
     },
     "auth_ref": [
      "r1",
      "r2"
     ]
    },
    "fmbh_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationCommonStockIssued": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationCommonStockIssued",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Common stock consideration value",
        "label": "Business Combination Contingent Consideration Arrangements Change In Amount Of Contingent Consideration Common Stock Issued",
        "documentation": "Business combination contingent consideration arrangements change in amount of contingent consideration common stock issued.",
        "terseLabel": "Common stock issued (3,290,222 shares)"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationDisclosureTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Business Combinations",
        "label": "Business Combination Disclosure [Text Block]",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r111",
      "r520"
     ]
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetAcquiredAndLiabilityAssumedOtherBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetAcquiredAndLiabilityAssumedOtherBorrowings",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other borrowings",
        "label": "Business Combination Recognized Identifiable Asset Acquired And Liability Assumed Other Borrowings",
        "documentation": "Business combination recognized identifiable asset acquired and liability assumed other borrowings."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetAcquiredAndLiabilityAssumedOtherRealEstateOwned": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetAcquiredAndLiabilityAssumedOtherRealEstateOwned",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other real estate owned",
        "label": "Business Combination Recognized Identifiable Asset Acquired And Liability Assumed Other Real Estate Owned",
        "documentation": "Business combination recognized identifiable asset acquired and liability assumed other real estate owned."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccretedToInterestIncomeOverRemainingTermOfLoans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccretedToInterestIncomeOverRemainingTermOfLoans",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accreted to interest income over the remaining term of loans",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Accreted To Interest Income Over Remaining Term Of Loans",
        "documentation": "Business combination recognized identifiable assets acquired and liabilities assumed accreted to interest income over remaining term of loans."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedAndOtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedAndOtherLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accrued and other liabilities",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Accrued and Other Liabilities",
        "documentation": "Business combination, recognized identifiable assets acquired and liabilities assumed, accrued and other liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedInterestReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedInterestReceivable",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accrued interest receivable",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Accrued interest receivable",
        "documentation": "Business combination, recognized identifiable assets acquired and liabilities assumed, accrued interest receivable"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAllowanceForCreditLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAllowanceForCreditLosses",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Allowance for credit losses",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Allowance For Credit Losses",
        "documentation": "Business combination recognized identifiable assets acquired and liabilities assumed allowance for credit losses."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total assets acquired",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Assets",
        "documentation": "Amount of assets acquired at the acquisition date."
       }
      }
     },
     "auth_ref": [
      "r51"
     ]
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Assets",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Assets [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCapitalLeaseObligation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCapitalLeaseObligation",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Lease liability",
        "label": "Business Combination, Recognized Identifiable Asset Acquired and Liability Assumed, Lease Obligation",
        "documentation": "Amount of lease obligation assumed in business combination."
       }
      }
     },
     "auth_ref": [
      "r51"
     ]
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash and due from banks",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Cash and Equivalents",
        "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."
       }
      }
     },
     "auth_ref": [
      "r51"
     ]
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsMarketableSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsMarketableSecurities",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment securities",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Current Assets, Marketable Securities",
        "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."
       }
      }
     },
     "auth_ref": [
      "r51"
     ]
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Prepaid expenses",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Current Assets, Prepaid Expense and Other Assets",
        "documentation": "Amount of asset related to consideration paid in advance for costs that provide economic benefits in future periods, and amount of other assets that are expected to be realized or consumed within one year or the normal operating cycle, if longer, acquired at the acquisition date."
       }
      }
     },
     "auth_ref": [
      "r51"
     ]
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccruedInterestPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccruedInterestPayable",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accrued interest payable",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Current Liabilities, Accrued Interest Payable",
        "documentation": "Business combination, recognized identifiable assets acquired and liabilities assumed, current liabilities, accrued interest payable."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesLongTermDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesLongTermDebt",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Current Liabilities, Long-Term Debt",
        "terseLabel": "Subordinated and Junior Subordinated debt",
        "documentation": "Amount of long-term debt due within one year or within the normal operating cycle, if longer, assumed at the acquisition date."
       }
      }
     },
     "auth_ref": [
      "r51"
     ]
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred tax asset",
        "label": "Business Combination Recognized Identifiable Assets Acquired and Liabilities Assumed, Deferred Tax Assets",
        "documentation": "Amount of deferred tax asset attributable to deductible temporary differences and carryforwards acquired at the acquisition date."
       }
      }
     },
     "auth_ref": [
      "r51"
     ]
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedFhlbStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedFhlbStock",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "FHLB stock",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, FHLB stock",
        "documentation": "Business combination, recognized identifiable assets acquired and liabilities assumed, fhlb stock"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedFinancialAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Financial Assets",
        "terseLabel": "Loans, net",
        "documentation": "The amount of financial assets (as defined) recognized as of the acquisition date."
       }
      }
     },
     "auth_ref": [
      "r50",
      "r51",
      "r125"
     ]
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIncomeTaxReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIncomeTaxReceivable",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Income tax receivable",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Income tax receivable",
        "documentation": "Business combination, recognized identifiable assets acquired and liabilities assumed, income tax receivable"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Intangible Assets, Other than Goodwill, Total",
        "verboseLabel": "Intangible asset fair value",
        "terseLabel": "Intangible assets",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Intangible Assets, Other than Goodwill",
        "documentation": "Amount of intangible assets, excluding goodwill, acquired at the acquisition date."
       }
      }
     },
     "auth_ref": [
      "r51"
     ]
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Core deposit intangible",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Finite-Lived Intangibles",
        "documentation": "The amount of identifiable intangible assets recognized as of the acquisition date."
       }
      }
     },
     "auth_ref": [
      "r50",
      "r51"
     ]
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total liabilities assumed",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Liabilities",
        "documentation": "Amount of liabilities assumed at the acquisition date."
       }
      }
     },
     "auth_ref": [
      "r51"
     ]
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Liabilities",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Liabilities [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoansHeldForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoansHeldForSale",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loans held for sale",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed Loans Held for Sale",
        "documentation": "usiness combination, recognized identifiable assets acquired and liabilities assumed loans held for sale"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedMortgageServicingRights": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedMortgageServicingRights",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Mortgage servicing rights",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Mortgage servicing rights",
        "documentation": "Business combination, recognized identifiable assets acquired and liabilities assumed, mortgage servicing rights."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net assets acquired",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Net",
        "documentation": "Amount recognized as of the acquisition date for the identifiable assets acquired in excess of (less than) the aggregate liabilities assumed."
       }
      }
     },
     "auth_ref": [
      "r50",
      "r51"
     ]
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other assets",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Other Assets",
        "documentation": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed, Other Assets"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other liabilities",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Other Liabilities",
        "documentation": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed, Other Liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Property, Plant, and Equipment, Total",
        "terseLabel": "Premises and equipment",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Property, Plant, and Equipment",
        "documentation": "The amount of property, plant, and equipment recognized as of the acquisition date."
       }
      }
     },
     "auth_ref": [
      "r50",
      "r51"
     ]
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedSecuritiesSoldUnderAgreementstoRepurchase": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedSecuritiesSoldUnderAgreementstoRepurchase",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities sold under agreements to repurchase",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Securities Sold Under Agreementsto Repurchase",
        "documentation": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed, Securities Sold Under Agreements to Repurchase"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesShortTermInvestmentsAssumed": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesShortTermInvestmentsAssumed",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Short-term investments",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Short-term investments Assumed",
        "documentation": "Business combination, recognized identifiable assets acquired and liabilities short-term investments assumed"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Goodwill",
        "label": "Business Combination, Recognized Identifiable Assets Acquired, Goodwill, and Liabilities Assumed, Net",
        "totalLabel": "Business Combination, Recognized Identifiable Assets Acquired, Goodwill, and Liabilities Assumed, Net, Total",
        "documentation": "Amount recognized for assets, including goodwill, in excess of (less than) the aggregate liabilities assumed."
       }
      }
     },
     "auth_ref": [
      "r51"
     ]
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedDeposits",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Change in acquired time deposits",
        "terseLabel": "Deposits",
        "label": "Business Combination Recognized Identifiable Assets Acquiredand Liabilities Assumed Deposits",
        "documentation": "Business Combination: Approximate Deposits to be acquired"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedFHLBAdvances": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedFHLBAdvances",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Change in FHLB advances",
        "terseLabel": "FHLB advances",
        "label": "Business Combination Recognized Identifiable Assets Acquiredand Liabilities Assumed F H L B Advances",
        "documentation": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, FHLB Advances"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combinations [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationsPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationsPolicy",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Acquisitions",
        "label": "Business Combinations Policy [Policy Text Block]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r112",
      "r113",
      "r114",
      "r115"
     ]
    },
    "fmbh_CaptiveInsuranceCompanyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "CaptiveInsuranceCompanyPolicyTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Captive Insurance Company",
        "label": "Captive Insurance Company Policy [Text Block]",
        "documentation": "Captive insurance company."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_CaptiveMaximumGrossPremiums": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "CaptiveMaximumGrossPremiums",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Captive maximum gross premiums",
        "label": "Captive Maximum Gross Premiums",
        "documentation": "Captive maximum gross premiums."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CarryingReportedAmountFairValueDisclosureMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CarryingReportedAmountFairValueDisclosureMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Carrying Amount",
        "label": "Reported Value Measurement [Member]",
        "documentation": "Measured as reported on the statement of financial position (balance sheet)."
       }
      }
     },
     "auth_ref": [
      "r68",
      "r69"
     ]
    },
    "us-gaap_CashAndDueFromBanksAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CashAndDueFromBanksAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash and due from banks:",
        "label": "Cash and Due from Banks [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_CashAndDueFromBanksFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "CashAndDueFromBanksFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash and due from banks",
        "label": "Cash And Due From Banks Fair Value Disclosure",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CashCashEquivalentsAndFederalFundsSold": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CashCashEquivalentsAndFederalFundsSold",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Cash and cash equivalents",
        "label": "Cash, Cash Equivalents, and Federal Funds Sold",
        "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."
       }
      }
     },
     "auth_ref": [
      "r128",
      "r138",
      "r140"
     ]
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Including Disposal Group and Discontinued Operations, Total",
        "periodStartLabel": "Cash and cash equivalents at beginning of period",
        "periodEndLabel": "Cash and cash equivalents at end of period",
        "label": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Including Disposal Group and Discontinued Operations",
        "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."
       }
      }
     },
     "auth_ref": [
      "r34",
      "r105",
      "r252"
     ]
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Period Increase (Decrease), Including Exchange Rate Effect",
        "totalLabel": "Increase in cash and cash equivalents",
        "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."
       }
      }
     },
     "auth_ref": [
      "r3",
      "r105"
     ]
    },
    "us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Supplemental disclosures of noncash investing and financing activities",
        "label": "Cash Flow, Noncash Investing and Financing Activities Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_CashPaidDuringPeriodForAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "CashPaidDuringPeriodForAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash paid during the period for:",
        "label": "Cash Paid During Period For [Abstract]",
        "documentation": "Cash paid during period for."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CertificatesOfDepositAtCarryingValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CertificatesOfDepositAtCarryingValue",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Certificates of deposit",
        "label": "Certificates of Deposit, at Carrying Value",
        "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."
       }
      }
     },
     "auth_ref": [
      "r995"
     ]
    },
    "fmbh_CertificatesOfDepositInvestmentsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "CertificatesOfDepositInvestmentsFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Certificates of deposit investments",
        "label": "Certificates Of Deposit Investments Fair Value Disclosure",
        "documentation": "Certificates of deposit investments fair value disclosure."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_ChangeInBankOwnedLifeInsurance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "ChangeInBankOwnedLifeInsurance",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Change in bank owned life insurance.",
        "label": "Change in Bank Owned Life Insurance",
        "negatedLabel": "Change in bank owned life insurance"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gain (Loss) on Hedged Item",
        "label": "Change in Unrealized Gain (Loss) on Hedged Item in Fair Value Hedge",
        "documentation": "Amount of the increase (decrease) in fair value of the hedged item in a fair value hedge recognized in the income statement."
       }
      }
     },
     "auth_ref": [
      "r124"
     ]
    },
    "ecd_ChangedPeerGroupFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ChangedPeerGroupFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Changed Peer Group, Footnote [Text Block]",
        "terseLabel": "Changed Peer Group, Footnote"
       }
      }
     },
     "auth_ref": [
      "r941"
     ]
    },
    "ecd_ChngInFrValAsOfVstngDtOfPrrYrEqtyAwrdsVstdInCvrdYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ChngInFrValAsOfVstngDtOfPrrYrEqtyAwrdsVstdInCvrdYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Change in Fair Value as of Vesting Date of Prior Year Equity Awards Vested in Covered Year [Member]",
        "terseLabel": "Change in Fair Value as of Vesting Date of Prior Year Equity Awards Vested in Covered Year"
       }
      }
     },
     "auth_ref": [
      "r938"
     ]
    },
    "ecd_ChngInFrValOfOutsdngAndUnvstdEqtyAwrdsGrntdInPrrYrsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ChngInFrValOfOutsdngAndUnvstdEqtyAwrdsGrntdInPrrYrsMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Year-over-Year Change in Fair Value of Equity Awards Granted in Prior Years That are Outstanding and Unvested [Member]",
        "terseLabel": "Year-over-Year Change in Fair Value of Equity Awards Granted in Prior Years That are Outstanding and Unvested"
       }
      }
     },
     "auth_ref": [
      "r936"
     ]
    },
    "dei_CityAreaCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "CityAreaCode",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "City Area Code",
        "label": "City Area Code",
        "documentation": "Area code of city"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_CoSelectedMeasureAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "CoSelectedMeasureAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Company Selected Measure Amount",
        "terseLabel": "Company Selected Measure Amount"
       }
      }
     },
     "auth_ref": [
      "r942"
     ]
    },
    "ecd_CoSelectedMeasureName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "CoSelectedMeasureName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Company Selected Measure Name",
        "terseLabel": "Company Selected Measure Name"
       }
      }
     },
     "auth_ref": [
      "r942"
     ]
    },
    "us-gaap_CollateralAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CollateralAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Collateral Held",
        "label": "Collateral Held [Axis]",
        "documentation": "Information by category of collateral or no collateral, from lender's perspective."
       }
      }
     },
     "auth_ref": [
      "r836"
     ]
    },
    "fmbh_CollateralDependentLoansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "CollateralDependentLoansMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Collateral Dependent Loans",
        "label": "Collateral Dependent Loans [Member]",
        "documentation": "Collateral dependent loans."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CollateralDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CollateralDomain",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Collateral Held",
        "label": "Collateral Held [Domain]",
        "documentation": "Category of collateral or no collateral, from lender's perspective."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_CommercialAndIndustrialPortfolioSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "CommercialAndIndustrialPortfolioSegmentMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesFinancialEffectOfLoanModificationsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Commercial and Industrial Loans",
        "terseLabel": "Commercial and Industrial Loans",
        "label": "Commercial And Industrial Portfolio Segment [Member]",
        "documentation": "Commercial And Industrial Portfolio Segment."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_CommercialAndMultifamilyPortfolioSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "CommercialAndMultifamilyPortfolioSegmentMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commercial And Multifamily Portfolio Segment",
        "label": "Commercial And Multifamily Portfolio Segment [Member]",
        "documentation": "Commercial and multifamily portfolio segment."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_CommercialIndustrialAndOtherPortfolioSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "CommercialIndustrialAndOtherPortfolioSegmentMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commercial Industrial And Other Portfolio Segment",
        "label": "Commercial Industrial And Other Portfolio Segment [Member]",
        "documentation": "Commercial industrial and other portfolio segment."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommercialLoanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommercialLoanMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Commercial and Industrial Loans",
        "label": "Commercial Loan [Member]",
        "documentation": "A loan, whether secured or unsecured, to a company for purposes such as seasonal working capital needs, inventory financing, equipment purchases and acquisitions."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommercialPortfolioSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommercialPortfolioSegmentMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfGrossCommercialRealEstateLoansByPropertyTypeDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commercial",
        "label": "Commercial Portfolio Segment [Member]",
        "documentation": "Portfolio segment of the company's total financing receivables related to commercial receivables."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommercialRealEstateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommercialRealEstateMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commercial Real Estate",
        "label": "Commercial Real Estate [Member]",
        "documentation": "Property that is solely used for business purposes."
       }
      }
     },
     "auth_ref": [
      "r831",
      "r837",
      "r1081"
     ]
    },
    "us-gaap_CommonStockDividendsPerShareDeclared": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommonStockDividendsPerShareDeclared",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash dividends declared per common share",
        "label": "Common Stock, Dividends, Per Share, Declared",
        "documentation": "Aggregate dividends declared during the period for each share of common stock outstanding."
       }
      }
     },
     "auth_ref": [
      "r109"
     ]
    },
    "us-gaap_CommonStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommonStockMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common Stock",
        "label": "Common Stock [Member]",
        "documentation": "Stock that is subordinate to all other stock of the issuer."
       }
      }
     },
     "auth_ref": [
      "r879",
      "r880",
      "r881",
      "r884",
      "r885",
      "r886",
      "r889",
      "r1012",
      "r1013",
      "r1015",
      "r1086",
      "r1130",
      "r1135"
     ]
    },
    "us-gaap_CommonStockParOrStatedValuePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommonStockParOrStatedValuePerShare",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common stock, par value (in dollars per share)",
        "label": "Common Stock, Par or Stated Value Per Share",
        "documentation": "Face amount or stated value per share of common stock."
       }
      }
     },
     "auth_ref": [
      "r83"
     ]
    },
    "us-gaap_CommonStockSharesAuthorized": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommonStockSharesAuthorized",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common stock, authorized (in shares)",
        "label": "Common Stock, Shares Authorized",
        "documentation": "The maximum number of common shares permitted to be issued by an entity's charter and bylaws."
       }
      }
     },
     "auth_ref": [
      "r83",
      "r745"
     ]
    },
    "us-gaap_CommonStockSharesIssued": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommonStockSharesIssued",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common stock, issued (in shares)",
        "label": "Common Stock, Shares, Issued",
        "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."
       }
      }
     },
     "auth_ref": [
      "r83"
     ]
    },
    "us-gaap_CommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommonStockSharesOutstanding",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodEndLabel": "Common Stock, Shares, Outstanding, Ending Balance",
        "periodStartLabel": "Common Stock, Shares, Outstanding, Beginning Balance",
        "terseLabel": "Common stock, outstanding (in shares)",
        "label": "Common Stock, Shares, Outstanding",
        "documentation": "Number of shares of common stock outstanding. Common stock represent the ownership interest in a corporation."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r83",
      "r745",
      "r764",
      "r1135",
      "r1136"
     ]
    },
    "us-gaap_CommonStockValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommonStockValue",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common stock ($4 par value; authorized 30,000,000 shares; issued 24,548,439 and 24,479,708 shares in 2024 and 2023, respectively; outstanding 23,895,868 and 23,827,137 shares in 2024 and 2023, respectively)",
        "verboseLabel": "Common Stock Value",
        "label": "Common Stock, Value, Issued",
        "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."
       }
      }
     },
     "auth_ref": [
      "r83",
      "r696",
      "r873"
     ]
    },
    "ecd_CompActuallyPaidVsCoSelectedMeasureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "CompActuallyPaidVsCoSelectedMeasureTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Actually Paid vs. Company Selected Measure [Text Block]",
        "terseLabel": "Compensation Actually Paid vs. Company Selected Measure"
       }
      }
     },
     "auth_ref": [
      "r947"
     ]
    },
    "ecd_CompActuallyPaidVsNetIncomeTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "CompActuallyPaidVsNetIncomeTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Actually Paid vs. Net Income [Text Block]",
        "terseLabel": "Compensation Actually Paid vs. Net Income"
       }
      }
     },
     "auth_ref": [
      "r946"
     ]
    },
    "ecd_CompActuallyPaidVsOtherMeasureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "CompActuallyPaidVsOtherMeasureTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Actually Paid vs. Other Measure [Text Block]",
        "terseLabel": "Compensation Actually Paid vs. Other Measure"
       }
      }
     },
     "auth_ref": [
      "r948"
     ]
    },
    "ecd_CompActuallyPaidVsTotalShareholderRtnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "CompActuallyPaidVsTotalShareholderRtnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Actually Paid vs. Total Shareholder Return [Text Block]",
        "terseLabel": "Compensation Actually Paid vs. Total Shareholder Return"
       }
      }
     },
     "auth_ref": [
      "r945"
     ]
    },
    "us-gaap_ComprehensiveIncomeNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ComprehensiveIncomeNetOfTax",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/StatementCondensedConsolidatedStatementsOfComprehensiveIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Comprehensive Income (Loss), Net of Tax, Attributable to Parent",
        "totalLabel": "Comprehensive income",
        "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."
       }
      }
     },
     "auth_ref": [
      "r28",
      "r235",
      "r237",
      "r241",
      "r675",
      "r706",
      "r707"
     ]
    },
    "us-gaap_ComprehensiveIncomePolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ComprehensiveIncomePolicyPolicyTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accumulated Other Comprehensive Loss",
        "label": "Comprehensive Income, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for comprehensive income."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_ConsiderationPayableInShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "ConsiderationPayableInShares",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Consideration payable in shares.",
        "label": "Consideration Payable In Shares",
        "terseLabel": "Consideration payable in shares"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_ConstructionAndLandDevelopmentPortfolioSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "ConstructionAndLandDevelopmentPortfolioSegmentMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Construction and Land Development",
        "terseLabel": "Construction and Land Development",
        "label": "Construction And Land Development Portfolio Segment [Member]",
        "documentation": "Construction and land development portfolio segment."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ConstructionLoansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ConstructionLoansMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Construction and Land Development",
        "label": "Construction Loans [Member]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r893",
      "r1023"
     ]
    },
    "us-gaap_ConsumerLoanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ConsumerLoanMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Consumer Loans",
        "label": "Consumer Loan [Member]",
        "documentation": "Loan or extension of credit for personal, family, or household use excluding real estate."
       }
      }
     },
     "auth_ref": [
      "r839"
     ]
    },
    "us-gaap_ConsumerPortfolioSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ConsumerPortfolioSegmentMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesFinancialEffectOfLoanModificationsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Consumer Loans",
        "label": "Consumer Portfolio Segment [Member]",
        "documentation": "Portfolio segment of the company's total financing receivables related to consumer receivables."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ContractualInterestRateReductionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ContractualInterestRateReductionMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Rate Reduction",
        "label": "Contractual Interest Rate Reduction [Member]",
        "documentation": "Loan modification for a reduction of contractual interest rate."
       }
      }
     },
     "auth_ref": [
      "r308",
      "r309",
      "r311",
      "r831"
     ]
    },
    "us-gaap_ConversionOfStockSharesIssued1": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ConversionOfStockSharesIssued1",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Conversion of common stock",
        "label": "Conversion of Stock, Shares Issued",
        "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."
       }
      }
     },
     "auth_ref": [
      "r37",
      "r38",
      "r39"
     ]
    },
    "us-gaap_CoreDepositsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CoreDepositsMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Core Deposit Intangibles",
        "label": "Core Deposits [Member]",
        "documentation": "Entity's long-term relationships with depositors, commonly known as core deposit intangibles, which are separate from the financial instruments themselves."
       }
      }
     },
     "auth_ref": [
      "r71",
      "r1061",
      "r1062",
      "r1063",
      "r1064",
      "r1065",
      "r1066",
      "r1069",
      "r1070"
     ]
    },
    "fmbh_CornAndOtherGrainFarmingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "CornAndOtherGrainFarmingMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Corn and Other Grain Farming",
        "label": "Corn And Other Grain Farming [Member]",
        "documentation": "Loans receivable to businesses that concentrate in corn and other grain farming."
       }
      }
     },
     "auth_ref": []
    },
    "dei_CoverAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "CoverAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Cover [Abstract]",
        "documentation": "Cover page."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CreditQualityInformationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CreditQualityInformationAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Credit Quality Information [Abstract]",
        "label": "Credit Quality Information [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "CumulativeEffectPeriodOfAdoptionAdjustmentMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Cumulative Change in Accounting Principal, Adjustment",
        "label": "Cumulative Effect, Period of Adoption, Adjustment [Member]"
       }
      }
     },
     "auth_ref": [
      "r210",
      "r262",
      "r269",
      "r276",
      "r354",
      "r360",
      "r417",
      "r501",
      "r502",
      "r511",
      "r513",
      "r546",
      "r548",
      "r549",
      "r551",
      "r552",
      "r553",
      "r558",
      "r561",
      "r563",
      "r564",
      "r628"
     ]
    },
    "srt_CumulativeEffectPeriodOfAdoptionAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "CumulativeEffectPeriodOfAdoptionAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cumulative Effect, Period of Adoption",
        "label": "Cumulative Effect, Period of Adoption [Axis]"
       }
      }
     },
     "auth_ref": [
      "r210",
      "r262",
      "r269",
      "r276",
      "r354",
      "r360",
      "r417",
      "r501",
      "r502",
      "r511",
      "r513",
      "r546",
      "r548",
      "r549",
      "r551",
      "r552",
      "r553",
      "r558",
      "r561",
      "r563",
      "r564",
      "r628"
     ]
    },
    "srt_CumulativeEffectPeriodOfAdoptionDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "CumulativeEffectPeriodOfAdoptionDomain",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cumulative Effect, Period of Adoption",
        "label": "Cumulative Effect, Period of Adoption [Domain]"
       }
      }
     },
     "auth_ref": [
      "r210",
      "r262",
      "r269",
      "r276",
      "r354",
      "r360",
      "r417",
      "r501",
      "r502",
      "r511",
      "r513",
      "r546",
      "r548",
      "r549",
      "r551",
      "r552",
      "r553",
      "r558",
      "r561",
      "r563",
      "r564",
      "r628"
     ]
    },
    "dei_CurrentFiscalYearEndDate": {
     "xbrltype": "gMonthDayItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "CurrentFiscalYearEndDate",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current Fiscal Year End Date",
        "label": "Current Fiscal Year End Date",
        "documentation": "End date of current fiscal year in the format --MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CustomerListsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CustomerListsMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Customer List Intangibles",
        "terseLabel": "Other Intangibles",
        "label": "Customer Lists [Member]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r52",
      "r1061",
      "r1062",
      "r1063",
      "r1064",
      "r1065",
      "r1066",
      "r1069",
      "r1070"
     ]
    },
    "fmbh_DebtAndEquitySecuritiesAvailableForSaleRealizedGain": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "DebtAndEquitySecuritiesAvailableForSaleRealizedGain",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesRealizedGainsAndLossesFromSaleOfSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gross gains",
        "label": "Debt And Equity Securities Available For Sale Realized Gain",
        "documentation": "Debt and equity securities available for sale realized gain."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_DebtAndEquitySecuritiesAvailableForSaleRealizedLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "DebtAndEquitySecuritiesAvailableForSaleRealizedLoss",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesRealizedGainsAndLossesFromSaleOfSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Gross losses",
        "label": "Debt And Equity Securities Available For Sale Realized Loss",
        "documentation": "Debt and equity securities available for sale realized loss."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtAndEquitySecuritiesGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtAndEquitySecuritiesGainLoss",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities losses, net",
        "totalLabel": "Debt and Equity Securities, Gain (Loss), Total",
        "label": "Debt and Equity Securities, Gain (Loss)",
        "verboseLabel": "Realized gain (loss) on available-for-sale securities",
        "documentation": "Amount of unrealized and realized gain (loss) on investment in debt and equity securities."
       }
      }
     },
     "auth_ref": [
      "r100",
      "r101"
     ]
    },
    "us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtAndEquitySecuritiesUnrealizedGainLoss",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Debt and Equity Securities, Unrealized Gain (Loss), Total",
        "label": "Debt and Equity Securities, Unrealized Gain (Loss)",
        "negatedLabel": "Loss on investment securities, net",
        "documentation": "Amount of unrealized gain (loss) on investment in debt and equity securities."
       }
      }
     },
     "auth_ref": [
      "r775",
      "r776",
      "r800",
      "r801",
      "r802",
      "r1002",
      "r1003"
     ]
    },
    "fmbh_DebtCoverageRatio": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "DebtCoverageRatio",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt coverage ratio",
        "label": "Debt Coverage Ratio",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt Instrument",
        "label": "Debt Instrument [Axis]",
        "documentation": "Information by type of debt instrument, including, but not limited to, draws against credit facilities."
       }
      }
     },
     "auth_ref": [
      "r25",
      "r75",
      "r76",
      "r134",
      "r137",
      "r258",
      "r433",
      "r434",
      "r435",
      "r436",
      "r437",
      "r438",
      "r439",
      "r440",
      "r441",
      "r442",
      "r443",
      "r444",
      "r445",
      "r446",
      "r447",
      "r448",
      "r844",
      "r845",
      "r846",
      "r847",
      "r848",
      "r871",
      "r1010",
      "r1073",
      "r1074",
      "r1075",
      "r1105",
      "r1106"
     ]
    },
    "us-gaap_DebtInstrumentFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentFairValue",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Debt Instrument, Fair Value Disclosure, Total",
        "terseLabel": "Subordinated debt, net",
        "label": "Debt Instrument, Fair Value Disclosure",
        "documentation": "Fair value portion of debt instrument payable, including, but not limited to, notes payable and loans payable."
       }
      }
     },
     "auth_ref": [
      "r441",
      "r595",
      "r845",
      "r846",
      "r1089",
      "r1090",
      "r1091",
      "r1092",
      "r1099"
     ]
    },
    "us-gaap_DebtInstrumentNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentNameDomain",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt Instrument, Name",
        "label": "Debt Instrument, Name [Domain]",
        "documentation": "The name for the particular debt instrument or borrowing that distinguishes it from other debt instruments or borrowings, including draws against credit facilities."
       }
      }
     },
     "auth_ref": [
      "r25",
      "r258",
      "r433",
      "r434",
      "r435",
      "r436",
      "r437",
      "r438",
      "r439",
      "r440",
      "r441",
      "r442",
      "r443",
      "r444",
      "r445",
      "r446",
      "r447",
      "r448",
      "r844",
      "r845",
      "r846",
      "r847",
      "r848",
      "r871",
      "r1010",
      "r1073",
      "r1074",
      "r1075",
      "r1105",
      "r1106"
     ]
    },
    "us-gaap_DebtSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtSecurities",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Debt Securities, Total",
        "terseLabel": "Securities pledged to Repurchase Agreements",
        "label": "Debt Securities",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r314",
      "r690",
      "r691",
      "r876",
      "r878"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Available-for-sale, 12 months or longer, Fair Value",
        "terseLabel": "Available-for-sale, 12 months or longer, Fair Value",
        "label": "Debt Securities, Available-for-Sale, Continuous Unrealized Loss Position, 12 Months or Longer",
        "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."
       }
      }
     },
     "auth_ref": [
      "r193",
      "r388",
      "r841"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Available-for-sale, 12 months or longer, Unrealized losses",
        "terseLabel": "12 months or longer, unrealized losses",
        "label": "Debt Securities, Available-for-Sale, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss",
        "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."
       }
      }
     },
     "auth_ref": [
      "r193",
      "r388"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Available-for-sale, Less than 12 months, Fair Value",
        "label": "Debt Securities, Available-for-Sale, Continuous Unrealized Loss Position, Less than 12 Months",
        "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."
       }
      }
     },
     "auth_ref": [
      "r193",
      "r388",
      "r841"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Available-for-sale, Less than 12 months, Unrealized Losses",
        "label": "Debt Securities, Available-for-Sale, Continuous Unrealized Loss Position, Less than 12 Months, Accumulated Loss",
        "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."
       }
      }
     },
     "auth_ref": [
      "r193",
      "r388"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleRestricted": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtSecuritiesAvailableForSaleRestricted",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt securities, available-for-sale, restricted",
        "label": "Debt Securities, Available-for-Sale, Restricted",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r645",
      "r806",
      "r807"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtSecuritiesAvailableForSaleTable",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt Securities Available For Sale [Table]",
        "label": "Debt Securities, Available-for-Sale [Table]",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r317",
      "r318",
      "r319",
      "r320",
      "r321",
      "r322",
      "r323",
      "r324",
      "r325",
      "r326",
      "r327",
      "r328"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Available-for-sale, Total Fair Value",
        "label": "Debt Securities, Available-for-Sale, Unrealized Loss Position",
        "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."
       }
      }
     },
     "auth_ref": [
      "r190",
      "r385",
      "r841"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Debt Securities, Available-for-Sale, Unrealized Loss Position, Accumulated Loss, Total",
        "negatedTotalLabel": "Available-for-sale, Total Unrealized Losses",
        "label": "Debt Securities, Available-for-Sale, Unrealized Loss Position, Accumulated Loss",
        "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."
       }
      }
     },
     "auth_ref": [
      "r191",
      "r386"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionFairValueTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPositionFairValueTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value of Investments with Sustained Gross Unrealized Losses",
        "label": "Debt Securities, Available-for-Sale, Unrealized Loss Position, Fair Value [Table Text Block]",
        "documentation": "Tabular disclosure of fair value 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. Includes beneficial interest in securitized financial asset."
       }
      }
     },
     "auth_ref": [
      "r189",
      "r841",
      "r1054"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionNumberOfPositions": {
     "xbrltype": "integerItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPositionNumberOfPositions",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of securities in unrealized loss positions",
        "label": "Debt Securities, Available-for-Sale, Unrealized Loss Position, Number of Positions",
        "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."
       }
      }
     },
     "auth_ref": [
      "r192",
      "r387"
     ]
    },
    "fmbh_DebtSecuritiesHeldToMaturitySecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "DebtSecuritiesHeldToMaturitySecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Held-to-maturity, securities in unrealized loss positions, qualitative disclosure, number of positions",
        "label": "Debt Securities Held To Maturity Securities In Unrealized Loss Positions Qualitative Disclosure Number Of Positions",
        "documentation": "Debt securities held to maturity securities in unrealized loss positions qualitative disclosure number of positions."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_DeferredCompensationAdjustmentsRelatingToTreasuryStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "DeferredCompensationAdjustmentsRelatingToTreasuryStock",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred compensation",
        "label": "Deferred Compensation Adjustments Relating To Treasury Stock",
        "documentation": "Deferred compensation adjustments relating to treasury stock."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredCompensationArrangementWithIndividualSharesIssued": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DeferredCompensationArrangementWithIndividualSharesIssued",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stock issued during period, shares, deferred compensation",
        "label": "Deferred Compensation Arrangement with Individual, Shares Issued",
        "documentation": "Number of shares issued pursuant to the terms of a deferred compensation arrangement."
       }
      }
     },
     "auth_ref": [
      "r44"
     ]
    },
    "fmbh_DeferredCompensationPlanEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "DeferredCompensationPlanEquity",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred compensation",
        "label": "Deferred Compensation Plan Equity",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredCompensationShareBasedPaymentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DeferredCompensationShareBasedPaymentsMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred Compensation",
        "label": "Deferred Compensation, Share-Based Payments [Member]",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredIncomeTaxAssetsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DeferredIncomeTaxAssetsNet",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "'Deferred tax asset, net",
        "label": "Deferred Income Tax Assets, Net",
        "documentation": "Amount, after allocation of valuation allowances and deferred tax liability, of deferred tax asset attributable to deductible differences and carryforwards, with jurisdictional netting."
       }
      }
     },
     "auth_ref": [
      "r495",
      "r496"
     ]
    },
    "fmbh_DeltaAcquisitionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "DeltaAcquisitionMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Delta Acquisition [Member]",
        "label": "Delta Acquisition [Member]",
        "documentation": "Delta acquisition."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_DeltaBancshareCompanyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "DeltaBancshareCompanyMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsTables",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Delta Bancshare Company",
        "label": "Delta Bancshare Company [Member]",
        "documentation": "Delta Bancshare Company."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_DeltaBancsharesCompanyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "DeltaBancsharesCompanyMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Delta Bancshares Company",
        "label": "Delta Bancshares Company [Member]",
        "documentation": "Delta Bancshares company."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_Deposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "Deposits",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total deposits",
        "terseLabel": "Deposits",
        "label": "Deposits",
        "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."
       }
      }
     },
     "auth_ref": [
      "r131"
     ]
    },
    "us-gaap_DepositsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DepositsAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deposits:",
        "label": "Deposits [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DepositsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DepositsFairValueDisclosure",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deposits",
        "label": "Deposits, Fair Value Disclosure",
        "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."
       }
      }
     },
     "auth_ref": [
      "r1088",
      "r1089",
      "r1099"
     ]
    },
    "us-gaap_DepreciationAmortizationAndAccretionNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DepreciationAmortizationAndAccretionNet",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Depreciation, Amortization and Accretion, Net, Total",
        "terseLabel": "Depreciation, amortization and accretion, net",
        "label": "Depreciation, Amortization and Accretion, Net",
        "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."
       }
      }
     },
     "auth_ref": [
      "r15"
     ]
    },
    "us-gaap_DerivativeAssetNotionalAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeAssetNotionalAmount",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative Assets, Notional Amount",
        "label": "Derivative Asset, Notional Amount",
        "documentation": "Nominal or face amount used to calculate payments on the derivative asset."
       }
      }
     },
     "auth_ref": [
      "r790",
      "r793",
      "r795",
      "r797",
      "r1082",
      "r1083",
      "r1084"
     ]
    },
    "us-gaap_DerivativeAverageRemainingMaturity1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeAverageRemainingMaturity1",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative, Weighted Average Remaining Maturity (Years)",
        "label": "Derivative, Average Remaining Maturity",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeContractTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeContractTypeDomain",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative Contract",
        "label": "Derivative Contract [Domain]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r735",
      "r737",
      "r750",
      "r751",
      "r752",
      "r754",
      "r755",
      "r756",
      "r757",
      "r759",
      "r760",
      "r761",
      "r762",
      "r771",
      "r772",
      "r773",
      "r774",
      "r777",
      "r778",
      "r779",
      "r780",
      "r790",
      "r792",
      "r796",
      "r798",
      "r879",
      "r881",
      "r1093",
      "r1094",
      "r1095",
      "r1096",
      "r1097",
      "r1098",
      "r1100",
      "r1101"
     ]
    },
    "us-gaap_DerivativeFairValueOfDerivativeAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeFairValueOfDerivativeAsset",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative Assets, Estimated Value",
        "label": "Derivative Asset, Subject to Master Netting Arrangement, before Offset",
        "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."
       }
      }
     },
     "auth_ref": [
      "r23",
      "r91",
      "r121",
      "r122",
      "r224",
      "r823"
     ]
    },
    "us-gaap_DerivativeFairValueOfDerivativeLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeFairValueOfDerivativeLiability",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Derivative Liability, Estimated Value",
        "label": "Derivative Liability, Subject to Master Netting Arrangement, before Offset",
        "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."
       }
      }
     },
     "auth_ref": [
      "r23",
      "r91",
      "r121",
      "r122",
      "r224",
      "r823"
     ]
    },
    "us-gaap_DerivativeGainLossOnDerivativeNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeGainLossOnDerivativeNet",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Derivative, Gain (Loss) on Derivative, Net, Total",
        "terseLabel": "Gain (Loss) on Derivative",
        "label": "Derivative, Gain (Loss) on Derivative, Net",
        "documentation": "Amount of increase (decrease) in the fair value of derivatives recognized in the income statement."
       }
      }
     },
     "auth_ref": [
      "r1085"
     ]
    },
    "us-gaap_DerivativeGainLossStatementOfIncomeOrComprehensiveIncomeExtensibleEnumeration": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeGainLossStatementOfIncomeOrComprehensiveIncomeExtensibleEnumeration",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative, Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "label": "Derivative, Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of income or comprehensive income that includes gain (loss) from derivative."
       }
      }
     },
     "auth_ref": [
      "r1085"
     ]
    },
    "us-gaap_DerivativeInstrumentRiskAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeInstrumentRiskAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative Instrument",
        "label": "Derivative Instrument [Axis]",
        "documentation": "Information by type of derivative contract."
       }
      }
     },
     "auth_ref": [
      "r59",
      "r62",
      "r63",
      "r123",
      "r735",
      "r737",
      "r750",
      "r751",
      "r752",
      "r754",
      "r755",
      "r756",
      "r757",
      "r759",
      "r760",
      "r761",
      "r762",
      "r771",
      "r772",
      "r773",
      "r774",
      "r777",
      "r778",
      "r779",
      "r780",
      "r790",
      "r792",
      "r796",
      "r798",
      "r823",
      "r879",
      "r881",
      "r1093",
      "r1094",
      "r1095",
      "r1096",
      "r1097",
      "r1098",
      "r1100",
      "r1101"
     ]
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Instruments and Hedging Activities Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivatives"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivatives",
        "label": "Derivative Instruments and Hedging Activities Disclosure [Text Block]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r120",
      "r542",
      "r554"
     ]
    },
    "fmbh_DerivativeInstrumentsDetailAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "DerivativeInstrumentsDetailAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Instruments Detail [Abstract]",
        "documentation": "Derivative Instruments Detail [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_DerivativeInstrumentsGainLossAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "DerivativeInstrumentsGainLossAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Instruments Gain Loss [Abstract]",
        "documentation": "Derivative Instruments, Gain (Loss) [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeInstrumentsGainLossByHedgingRelationshipAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Hedging Relationship",
        "label": "Hedging Relationship [Axis]",
        "documentation": "Information by type of hedging relationship."
       }
      }
     },
     "auth_ref": [
      "r20",
      "r59",
      "r62"
     ]
    },
    "us-gaap_DerivativeLiabilityNotionalAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeLiabilityNotionalAmount",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative Liability, Notional Amount",
        "label": "Derivative Liability, Notional Amount",
        "documentation": "Nominal or face amount used to calculate payments on the derivative liability."
       }
      }
     },
     "auth_ref": [
      "r791",
      "r793",
      "r794",
      "r797",
      "r1082",
      "r1083",
      "r1084"
     ]
    },
    "us-gaap_DerivativeLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeLineItems",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative [Line Items]",
        "label": "Derivative [Line Items]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r554"
     ]
    },
    "us-gaap_DerivativeTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeTable",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative [Table]",
        "label": "Derivative [Table]",
        "documentation": "Disclosure of information about derivative instrument or group of derivative instruments, including, but not limited to, type of derivative instrument, risk being hedged, notional amount, hedge designation, related hedged item, inception date, and maturity date."
       }
      }
     },
     "auth_ref": [
      "r20",
      "r53",
      "r54",
      "r55",
      "r57",
      "r60",
      "r62",
      "r64",
      "r65",
      "r67",
      "r554"
     ]
    },
    "us-gaap_DesignatedAsHedgingInstrumentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DesignatedAsHedgingInstrumentMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Designated As Hedging Instrument",
        "label": "Designated as Hedging Instrument [Member]",
        "documentation": "Derivative instrument designated as hedging instrument under Generally Accepted Accounting Principles (GAAP)."
       }
      }
     },
     "auth_ref": [
      "r20"
     ]
    },
    "fmbh_DiscountToReflectRealizableValue": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "DiscountToReflectRealizableValue",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Collateral dependent loans",
        "label": "Discount To Reflect Realizable Value",
        "documentation": "Discount to reflect realizable value used when pricing the investments."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DisposalGroupHeldforsaleNotDiscontinuedOperationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DisposalGroupHeldforsaleNotDiscontinuedOperationsMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreclosed Assets Held-for-sale",
        "label": "Disposal Group, Held-for-Sale, Not Discontinued Operations [Member]",
        "documentation": "Disposal group that is classified as held-for-sale. Excludes disposals classified as discontinued operations."
       }
      }
     },
     "auth_ref": [
      "r8",
      "r22",
      "r214"
     ]
    },
    "us-gaap_Dividends": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "Dividends",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Dividends, Total",
        "terseLabel": "Dividends",
        "label": "Dividends",
        "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."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r109"
     ]
    },
    "us-gaap_DividendsCommonStockCash": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DividendsCommonStockCash",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Cash dividends on common stock",
        "label": "Dividends, Common Stock, Cash",
        "documentation": "Amount of paid and unpaid common stock dividends declared with the form of settlement in cash."
       }
      }
     },
     "auth_ref": [
      "r109"
     ]
    },
    "dei_DocumentFiscalPeriodFocus": {
     "xbrltype": "fiscalPeriodItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentFiscalPeriodFocus",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Fiscal Period Focus",
        "label": "Document Fiscal Period Focus",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentFiscalYearFocus": {
     "xbrltype": "gYearItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentFiscalYearFocus",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Document Fiscal Year Focus",
        "label": "Document Fiscal Year Focus",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentPeriodEndDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentPeriodEndDate",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Period End Date",
        "label": "Document Period End Date",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentQuarterlyReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentQuarterlyReport",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Quarterly Report",
        "label": "Document Quarterly Report",
        "documentation": "Boolean flag that is true only for a form used as an quarterly report."
       }
      }
     },
     "auth_ref": [
      "r897"
     ]
    },
    "dei_DocumentTransitionReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentTransitionReport",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Transition Report",
        "label": "Document Transition Report",
        "documentation": "Boolean flag that is true only for a form used as a transition report."
       }
      }
     },
     "auth_ref": [
      "r929"
     ]
    },
    "dei_DocumentType": {
     "xbrltype": "submissionTypeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentType",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Type",
        "label": "Document Type",
        "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'."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DoubtfulMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DoubtfulMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Doubtful",
        "label": "Doubtful [Member]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r173",
      "r174",
      "r175",
      "r1053"
     ]
    },
    "us-gaap_DueFromBanks": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DueFromBanks",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-interest bearing",
        "label": "Due from Banks",
        "documentation": "A bank's noninterest bearing demand deposits in other banks (such as correspondents)."
       }
      }
     },
     "auth_ref": [
      "r128"
     ]
    },
    "ecd_DvddsOrOthrErngsPdOnEqtyAwrdsNtOthrwsRflctdInTtlCompForCvrdYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "DvddsOrOthrErngsPdOnEqtyAwrdsNtOthrwsRflctdInTtlCompForCvrdYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends or Other Earnings Paid on Equity Awards not Otherwise Reflected in Total Compensation for Covered Year [Member]",
        "terseLabel": "Dividends or Other Earnings Paid on Equity Awards not Otherwise Reflected in Total Compensation for Covered Year"
       }
      }
     },
     "auth_ref": [
      "r940"
     ]
    },
    "us-gaap_EarningsPerShareAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EarningsPerShareAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Per share data:",
        "label": "Earnings Per Share [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EarningsPerShareBasic": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EarningsPerShareBasic",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Earnings Per Share, Basic, Total",
        "verboseLabel": "Basic earnings per common share",
        "terseLabel": "Basic net income per common share",
        "label": "Earnings Per Share, Basic",
        "documentation": "The amount of net income (loss) for the period per each share of common stock or unit outstanding during the reporting period."
       }
      }
     },
     "auth_ref": [
      "r242",
      "r267",
      "r268",
      "r269",
      "r270",
      "r271",
      "r272",
      "r278",
      "r280",
      "r287",
      "r288",
      "r289",
      "r293",
      "r515",
      "r529",
      "r564",
      "r565",
      "r676",
      "r708",
      "r826"
     ]
    },
    "us-gaap_EarningsPerShareBasicAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EarningsPerShareBasicAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share, Basic [Abstract]",
        "terseLabel": "Basic Net Income per Common Share Available to Common Stockholders:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EarningsPerShareDiluted": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EarningsPerShareDiluted",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Earnings Per Share, Diluted, Total",
        "verboseLabel": "Diluted earnings per common share",
        "terseLabel": "Diluted net income per common share",
        "label": "Earnings Per Share, Diluted",
        "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."
       }
      }
     },
     "auth_ref": [
      "r242",
      "r267",
      "r268",
      "r269",
      "r270",
      "r271",
      "r272",
      "r280",
      "r287",
      "r288",
      "r289",
      "r293",
      "r515",
      "r529",
      "r564",
      "r565",
      "r676",
      "r708",
      "r826"
     ]
    },
    "us-gaap_EarningsPerShareDilutedAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EarningsPerShareDilutedAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Diluted Net Income per Common Share Available to Common Stockholders:",
        "label": "Earnings Per Share, Diluted [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EarningsPerShareProFormaAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EarningsPerShareProFormaAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Earnings per share",
        "label": "Earnings Per Share, Pro Forma [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EarningsPerShareTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EarningsPerShareTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureEarningsPerShare"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Earnings Per Share",
        "label": "Earnings Per Share [Text Block]",
        "documentation": "The entire disclosure for earnings per share."
       }
      }
     },
     "auth_ref": [
      "r277",
      "r290",
      "r291",
      "r292"
     ]
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax rate used to calculate tax-equivalent yields (in hundredths)",
        "label": "Effective Income Tax Rate Reconciliation, at Federal Statutory Income Tax Rate, Percent",
        "documentation": "Percentage of domestic federal statutory tax rate applicable to pretax income (loss)."
       }
      }
     },
     "auth_ref": [
      "r254",
      "r498",
      "r506",
      "r857"
     ]
    },
    "fmbh_EliminationOfDeferredFeesAndUnearnedDiscountsPreviouslyRecordedByJeffersonBank": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "EliminationOfDeferredFeesAndUnearnedDiscountsPreviouslyRecordedByJeffersonBank",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "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",
        "documentation": "Elimination of deferred fees and unearned discounts previously recorded by jefferson bank."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_EliminationOfDeferredFeesAndUnearnedDiscountsPreviouslyRecordedByProvidenceBank": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "EliminationOfDeferredFeesAndUnearnedDiscountsPreviouslyRecordedByProvidenceBank",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "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"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_EmployeeDiscountForEmployeeStockPurchasePlan": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "EmployeeDiscountForEmployeeStockPurchasePlan",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Employee discount for employee stock purchase plan",
        "label": "Employee Discount For Employee Stock Purchase Plan",
        "documentation": "Employee discount for employee stock purchase plan."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EmployeeStockOptionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EmployeeStockOptionMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Employee Stock Option [Member]",
        "terseLabel": "Employee Stock Option",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EmployeeStockOwnershipPlanESOPPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EmployeeStockOwnershipPlanESOPPolicy",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Employee Stock Purchase Plan",
        "label": "Employee Stock Ownership Plan (ESOP), Policy [Policy Text Block]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r45"
     ]
    },
    "fmbh_EmployeeStockPurchasePlanNumberOfSharesAuthorized": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "EmployeeStockPurchasePlanNumberOfSharesAuthorized",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Employee stock purchase plan, number of shares authorized",
        "label": "Employee Stock Purchase Plan Number Of Shares Authorized",
        "documentation": "Employee stock purchase plan, number of shares authorized."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressAddressLine1": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityAddressAddressLine1",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Entity Address, Address Line One",
        "label": "Entity Address, Address Line One",
        "documentation": "Address Line 1 such as Attn, Building Name, Street Name"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressCityOrTown": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityAddressCityOrTown",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Address, City or Town",
        "label": "Entity Address, City or Town",
        "documentation": "Name of the City or Town"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressPostalZipCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityAddressPostalZipCode",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Address, Postal Zip Code",
        "label": "Entity Address, Postal Zip Code",
        "documentation": "Code for the postal or zip code"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressStateOrProvince": {
     "xbrltype": "stateOrProvinceItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityAddressStateOrProvince",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Address, State or Province",
        "label": "Entity Address, State or Province",
        "documentation": "Name of the state or province."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCentralIndexKey": {
     "xbrltype": "centralIndexKeyItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityCentralIndexKey",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Central Index Key",
        "label": "Entity Central Index Key",
        "documentation": "A unique 10-digit SEC-issued value to identify entities that have filed disclosures with the SEC. It is commonly abbreviated as CIK."
       }
      }
     },
     "auth_ref": [
      "r895"
     ]
    },
    "dei_EntityCommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityCommonStockSharesOutstanding",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Common Stock, Shares Outstanding",
        "label": "Entity Common Stock, Shares Outstanding",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCurrentReportingStatus": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityCurrentReportingStatus",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Current Reporting Status",
        "label": "Entity Current Reporting Status",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityEmergingGrowthCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityEmergingGrowthCompany",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Emerging Growth Company",
        "label": "Entity Emerging Growth Company",
        "documentation": "Indicate if registrant meets the emerging growth company criteria."
       }
      }
     },
     "auth_ref": [
      "r895"
     ]
    },
    "dei_EntityFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityFileNumber",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity File Number",
        "label": "Securities Act File Number",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityFilerCategory": {
     "xbrltype": "filerCategoryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityFilerCategory",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Filer Category",
        "label": "Entity Filer Category",
        "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."
       }
      }
     },
     "auth_ref": [
      "r895"
     ]
    },
    "dei_EntityIncorporationStateCountryCode": {
     "xbrltype": "edgarStateCountryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityIncorporationStateCountryCode",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Incorporation, State or Country Code",
        "label": "Entity Incorporation, State or Country Code",
        "documentation": "Two-character EDGAR code representing the state or country of incorporation."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityInteractiveDataCurrent": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityInteractiveDataCurrent",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Interactive Data Current",
        "label": "Entity Interactive Data Current",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r979"
     ]
    },
    "dei_EntityRegistrantName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityRegistrantName",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Registrant Name",
        "label": "Entity Registrant Name",
        "documentation": "The exact name of the entity filing the report as specified in its charter, which is required by forms filed with the SEC."
       }
      }
     },
     "auth_ref": [
      "r895"
     ]
    },
    "dei_EntityShellCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityShellCompany",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Shell Company",
        "label": "Entity Shell Company",
        "documentation": "Boolean flag that is true when the registrant is a shell company as defined in Rule 12b-2 of the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r895"
     ]
    },
    "dei_EntitySmallBusiness": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntitySmallBusiness",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Small Business",
        "label": "Entity Small Business",
        "documentation": "Indicates that the company is a Smaller Reporting Company (SRC)."
       }
      }
     },
     "auth_ref": [
      "r895"
     ]
    },
    "dei_EntityTaxIdentificationNumber": {
     "xbrltype": "employerIdItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityTaxIdentificationNumber",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Tax Identification Number",
        "label": "Entity Tax Identification Number",
        "documentation": "The Tax Identification Number (TIN), also known as an Employer Identification Number (EIN), is a unique 9-digit value assigned by the IRS."
       }
      }
     },
     "auth_ref": [
      "r895"
     ]
    },
    "ecd_EqtyAwrdsAdjFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "EqtyAwrdsAdjFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Awards Adjustments, Footnote [Text Block]",
        "terseLabel": "Equity Awards Adjustments, Footnote"
       }
      }
     },
     "auth_ref": [
      "r934"
     ]
    },
    "ecd_EqtyAwrdsAdjsExclgValRprtdInSummryCompstnTblMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "EqtyAwrdsAdjsExclgValRprtdInSummryCompstnTblMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Awards Adjustments, Excluding Value Reported in the Compensation Table [Member]",
        "terseLabel": "Equity Awards Adjustments, Excluding Value Reported in Compensation Table"
       }
      }
     },
     "auth_ref": [
      "r975"
     ]
    },
    "ecd_EqtyAwrdsAdjsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "EqtyAwrdsAdjsMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Awards Adjustments [Member]",
        "terseLabel": "Equity Awards Adjustments"
       }
      }
     },
     "auth_ref": [
      "r975"
     ]
    },
    "ecd_EqtyAwrdsInSummryCompstnTblForAplblYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "EqtyAwrdsInSummryCompstnTblForAplblYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aggregate Grant Date Fair Value of Equity Award Amounts Reported in Summary Compensation Table [Member]",
        "terseLabel": "Aggregate Grant Date Fair Value of Equity Award Amounts Reported in Summary Compensation Table"
       }
      }
     },
     "auth_ref": [
      "r975"
     ]
    },
    "us-gaap_EquityComponentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EquityComponentDomain",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity Component",
        "label": "Equity Component [Domain]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r210",
      "r238",
      "r239",
      "r240",
      "r259",
      "r260",
      "r261",
      "r264",
      "r271",
      "r273",
      "r275",
      "r295",
      "r354",
      "r360",
      "r417",
      "r451",
      "r501",
      "r502",
      "r511",
      "r512",
      "r513",
      "r516",
      "r528",
      "r529",
      "r546",
      "r548",
      "r549",
      "r550",
      "r551",
      "r553",
      "r563",
      "r597",
      "r598",
      "r599",
      "r600",
      "r601",
      "r602",
      "r606",
      "r609",
      "r630",
      "r704",
      "r717",
      "r718",
      "r719",
      "r733",
      "r783"
     ]
    },
    "us-gaap_EquitySecuritiesFvNi": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EquitySecuritiesFvNi",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Equity securities",
        "terseLabel": "Equity securities, at fair value",
        "label": "Equity Securities, FV-NI, Current",
        "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."
       }
      }
     },
     "auth_ref": [
      "r220",
      "r593",
      "r822"
     ]
    },
    "ecd_EquityValuationAssumptionDifferenceFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "EquityValuationAssumptionDifferenceFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Valuation Assumption Difference, Footnote [Text Block]",
        "terseLabel": "Equity Valuation Assumption Difference, Footnote"
       }
      }
     },
     "auth_ref": [
      "r944"
     ]
    },
    "ecd_ErrCompAnalysisTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ErrCompAnalysisTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Erroneous Compensation Analysis [Text Block]",
        "terseLabel": "Erroneous Compensation Analysis"
       }
      }
     },
     "auth_ref": [
      "r902",
      "r912",
      "r922",
      "r954"
     ]
    },
    "ecd_ErrCompRecoveryTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ErrCompRecoveryTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Erroneously Awarded Compensation Recovery [Table]",
        "terseLabel": "Erroneously Awarded Compensation Recovery"
       }
      }
     },
     "auth_ref": [
      "r899",
      "r909",
      "r919",
      "r951"
     ]
    },
    "us-gaap_EstimateOfFairValueFairValueDisclosureMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EstimateOfFairValueFairValueDisclosureMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value",
        "label": "Estimate of Fair Value Measurement [Member]",
        "documentation": "Measured as an estimate of fair value."
       }
      }
     },
     "auth_ref": [
      "r441",
      "r595",
      "r845",
      "r846"
     ]
    },
    "fmbh_EstimatedAmortizationExpenseAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "EstimatedAmortizationExpenseAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfExpectedAmortizationExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Estimated amortization expense:",
        "label": "Estimated Amortization Expense [Abstract]",
        "documentation": "Estimated Amortization Expense [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ExecutiveCategoryAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ExecutiveCategoryAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Executive Category [Axis]",
        "terseLabel": "Executive Category:"
       }
      }
     },
     "auth_ref": [
      "r950"
     ]
    },
    "us-gaap_ExtendedMaturityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ExtendedMaturityMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Term Extension Modifications",
        "label": "Extended Maturity [Member]",
        "documentation": "Loan modification for an extension of the term of a loan in which it must be paid."
       }
      }
     },
     "auth_ref": [
      "r308",
      "r831"
     ]
    },
    "fmbh_FairValueAdjustmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FairValueAdjustmentsMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value Adjustments",
        "label": "Fair Value Adjustments [Member]",
        "documentation": "Fair Value Adjustments [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueAssetLiabilityRecurringBasisStillHeldUnrealizedGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueAssetLiabilityRecurringBasisStillHeldUnrealizedGainLoss",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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",
        "label": "Fair Value, Asset (Liability), Recurring Basis, Still Held, Unrealized Gain (Loss)",
        "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."
       }
      }
     },
     "auth_ref": [
      "r1098"
     ]
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]",
        "label": "Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r567",
      "r568",
      "r581",
      "r861"
     ]
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value Measurement Inputs and Valuation Techniques [Line Items]",
        "label": "Fair Value Measurement Inputs and Valuation Techniques [Line Items]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r569",
      "r570",
      "r571",
      "r864"
     ]
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis Valuation Techniques [Table]",
        "label": "Fair Value Measurement Inputs and Valuation Techniques [Table]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r569",
      "r570",
      "r571",
      "r864"
     ]
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Significant Unobservable Inputs Used in Valuation of Level 3 Fair Value Measurements",
        "label": "Fair Value Measurement Inputs and Valuation Techniques [Table Text Block]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r569",
      "r570",
      "r864"
     ]
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringAndNonrecurringBasisTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueAssetsMeasuredOnRecurringAndNonrecurringBasisTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Assets Measured at Fair Value on a Nonrecurring Basis",
        "label": "Fair Value, Assets Measured on Recurring and Nonrecurring Basis [Table Text Block]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r567",
      "r568"
     ]
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Asset Class",
        "label": "Asset Class [Domain]",
        "documentation": "Class of asset."
       }
      }
     },
     "auth_ref": [
      "r572",
      "r573",
      "r574",
      "r575",
      "r576",
      "r577",
      "r582",
      "r863"
     ]
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward]",
        "label": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward]",
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value of Assets Measured on a Recurring Basis Using Significant Unobservable Inputs",
        "label": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Table Text Block]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r572",
      "r577",
      "r582",
      "r863"
     ]
    },
    "us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value Balance Sheet Grouping Financial Statement Captions [Line Items]",
        "label": "Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueByAssetClassAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueByAssetClassAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Asset Class",
        "label": "Asset Class [Axis]",
        "documentation": "Information by class of asset."
       }
      }
     },
     "auth_ref": [
      "r572",
      "r573",
      "r574",
      "r575",
      "r576",
      "r577",
      "r582",
      "r863"
     ]
    },
    "us-gaap_FairValueByBalanceSheetGroupingTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueByBalanceSheetGroupingTable",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value By Balance Sheet Grouping [Table]",
        "label": "Fair Value, by Balance Sheet Grouping [Table]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r68",
      "r69"
     ]
    },
    "us-gaap_FairValueByBalanceSheetGroupingTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueByBalanceSheetGroupingTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Estimated Fair Values of Company Financial Instruments",
        "label": "Fair Value, by Balance Sheet Grouping [Table Text Block]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r68"
     ]
    },
    "us-gaap_FairValueByFairValueHierarchyLevelAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueByFairValueHierarchyLevelAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value Hierarchy and NAV",
        "label": "Fair Value Hierarchy and NAV [Axis]",
        "documentation": "Information by level within fair value hierarchy and fair value measured at net asset value per share as practical expedient."
       }
      }
     },
     "auth_ref": [
      "r441",
      "r453",
      "r454",
      "r455",
      "r456",
      "r457",
      "r458",
      "r566",
      "r568",
      "r569",
      "r570",
      "r571",
      "r580",
      "r581",
      "r583",
      "r634",
      "r635",
      "r636",
      "r845",
      "r846",
      "r850",
      "r851",
      "r852",
      "r861",
      "r864"
     ]
    },
    "us-gaap_FairValueByMeasurementBasisAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueByMeasurementBasisAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Measurement Basis",
        "label": "Measurement Basis [Axis]",
        "documentation": "Information by measurement basis."
       }
      }
     },
     "auth_ref": [
      "r441",
      "r845",
      "r846"
     ]
    },
    "us-gaap_FairValueByMeasurementFrequencyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueByMeasurementFrequencyAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Measurement Frequency",
        "label": "Measurement Frequency [Axis]",
        "documentation": "Information by measurement frequency."
       }
      }
     },
     "auth_ref": [
      "r567",
      "r568",
      "r569",
      "r571",
      "r861",
      "r1091",
      "r1102"
     ]
    },
    "us-gaap_FairValueDisclosureItemAmountsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueDisclosureItemAmountsDomain",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value Measurement",
        "label": "Fair Value Measurement [Domain]",
        "documentation": "Measurement basis, for example, but not limited to, reported value, fair value, portion at fair value, portion at other than fair value."
       }
      }
     },
     "auth_ref": [
      "r441",
      "r845",
      "r846"
     ]
    },
    "us-gaap_FairValueDisclosuresAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueDisclosuresAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Disclosures [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueDisclosuresTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueDisclosuresTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value of Assets and Liabilities",
        "label": "Fair Value Disclosures [Text Block]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r576",
      "r578",
      "r579",
      "r580",
      "r583",
      "r584",
      "r585",
      "r586",
      "r587",
      "r670",
      "r861",
      "r865"
     ]
    },
    "us-gaap_FairValueHedgingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueHedgingMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value Hedging",
        "label": "Fair Value Hedging [Member]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r56"
     ]
    },
    "us-gaap_FairValueInputsLevel1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueInputsLevel1Member",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Fair Value, Inputs, Level 1 [Member]",
        "terseLabel": "Quoted Prices in Active Markets for Identical Assets (Level 1)",
        "label": "Fair Value, Inputs, Level 1 [Member]",
        "documentation": "Quoted prices in active markets for identical assets or liabilities that the reporting entity can access at the measurement date."
       }
      }
     },
     "auth_ref": [
      "r441",
      "r453",
      "r458",
      "r568",
      "r581",
      "r634",
      "r850",
      "r851",
      "r852",
      "r861"
     ]
    },
    "us-gaap_FairValueInputsLevel2Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueInputsLevel2Member",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Fair Value, Inputs, Level 2 [Member]",
        "terseLabel": "Significant Other Observable Inputs (Level 2)",
        "label": "Fair Value, Inputs, Level 2 [Member]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r441",
      "r453",
      "r458",
      "r568",
      "r569",
      "r581",
      "r635",
      "r845",
      "r846",
      "r850",
      "r851",
      "r852",
      "r861"
     ]
    },
    "us-gaap_FairValueInputsLevel3Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueInputsLevel3Member",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Level 3",
        "terseLabel": "Significant Unobservable Inputs (Level 3)",
        "label": "Fair Value, Inputs, Level 3 [Member]",
        "documentation": "Unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r441",
      "r453",
      "r454",
      "r455",
      "r456",
      "r457",
      "r458",
      "r568",
      "r569",
      "r570",
      "r571",
      "r581",
      "r636",
      "r845",
      "r846",
      "r850",
      "r851",
      "r852",
      "r861",
      "r864"
     ]
    },
    "us-gaap_FairValueMeasurementFrequencyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementFrequencyDomain",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Measurement Frequency",
        "label": "Measurement Frequency [Domain]",
        "documentation": "Measurement frequency."
       }
      }
     },
     "auth_ref": [
      "r567",
      "r568",
      "r569",
      "r571",
      "r861",
      "r1091",
      "r1102"
     ]
    },
    "fmbh_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetMaturities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetMaturities",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value measurement with unobservable inputs reconciliation recurring basis asset maturities.",
        "label": "Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Asset Maturities",
        "terseLabel": "Maturities"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersIntoLevel3": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersIntoLevel3",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Transfers into Level 3",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset Transfers Into Level 3",
        "documentation": "Amount of transfer of financial instrument classified as an asset into level 3 of the fair value hierarchy."
       }
      }
     },
     "auth_ref": [
      "r576",
      "r582",
      "r863"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Transfers out of Level 3",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers out of Level 3",
        "negatedLabel": "Transfers out of Level 3",
        "documentation": "Amount of transfers of financial instrument classified as an asset out of level 3 of the fair value hierarchy."
       }
      }
     },
     "auth_ref": [
      "r576",
      "r582",
      "r863"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset Value",
        "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."
       }
      }
     },
     "auth_ref": [
      "r572",
      "r582",
      "r863"
     ]
    },
    "us-gaap_FairValueMeasurementsFairValueHierarchyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementsFairValueHierarchyDomain",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value Hierarchy and NAV",
        "label": "Fair Value Hierarchy and NAV [Domain]",
        "documentation": "Categories used to prioritize the inputs to valuation techniques to measure fair value."
       }
      }
     },
     "auth_ref": [
      "r441",
      "r453",
      "r454",
      "r455",
      "r456",
      "r457",
      "r458",
      "r566",
      "r568",
      "r569",
      "r570",
      "r571",
      "r580",
      "r581",
      "r583",
      "r634",
      "r635",
      "r636",
      "r845",
      "r846",
      "r850",
      "r851",
      "r852",
      "r861",
      "r864"
     ]
    },
    "us-gaap_FairValueMeasurementsNonrecurringMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementsNonrecurringMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value, Nonrecurring",
        "label": "Fair Value, Nonrecurring [Member]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r567",
      "r568",
      "r569",
      "r571",
      "r861",
      "r1091"
     ]
    },
    "us-gaap_FairValueMeasurementsRecurringMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementsRecurringMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value, Recurring",
        "label": "Fair Value, Recurring [Member]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r861",
      "r1088",
      "r1089",
      "r1090",
      "r1091",
      "r1092",
      "r1102"
     ]
    },
    "us-gaap_FederalDepositInsuranceCorporationPremiumExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FederalDepositInsuranceCorporationPremiumExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "FDIC insurance",
        "label": "Federal Deposit Insurance Corporation Premium Expense",
        "documentation": "Amount of expense for Federal Deposit Insurance Corporation (FDIC) insurance."
       }
      }
     },
     "auth_ref": [
      "r148"
     ]
    },
    "us-gaap_FederalFundsPurchasedAndSecuritiesSoldUnderAgreementsToRepurchase": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FederalFundsPurchasedAndSecuritiesSoldUnderAgreementsToRepurchase",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Federal funds purchased",
        "label": "Federal Funds Purchased and Securities Sold under Agreements to Repurchase",
        "totalLabel": "Federal Funds Purchased and Securities Sold under Agreements to Repurchase, Total",
        "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."
       }
      }
     },
     "auth_ref": [
      "r132"
     ]
    },
    "us-gaap_FederalFundsSold": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FederalFundsSold",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Federal funds sold",
        "label": "Federal Funds Sold",
        "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."
       }
      }
     },
     "auth_ref": [
      "r140"
     ]
    },
    "us-gaap_FederalFundsSoldAndSecuritiesBorrowedOrPurchasedUnderAgreementsToResellFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FederalFundsSoldAndSecuritiesBorrowedOrPurchasedUnderAgreementsToResellFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Federal funds sold",
        "label": "Federal Funds Sold and Securities Borrowed or Purchased under Agreements to Resell, Fair Value Disclosure",
        "documentation": "Fair value portion of federal funds sold and securities borrowed or purchased under agreements to resell."
       }
      }
     },
     "auth_ref": [
      "r133",
      "r1088"
     ]
    },
    "us-gaap_FederalHomeLoanBankAdvancesBranchOfFHLBBankInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FederalHomeLoanBankAdvancesBranchOfFHLBBankInterestRate",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Federal Home Loan Bank, Advances, Interest Rate",
        "label": "Federal Home Loan Bank, Advance, Branch of FHLBank, Interest Rate",
        "documentation": "Rate of interest applicable on advance from Federal Home Loan Bank (FHLBank)."
       }
      }
     },
     "auth_ref": [
      "r73",
      "r160"
     ]
    },
    "us-gaap_FederalHomeLoanBankAdvancesBranchOfFHLBBankLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FederalHomeLoanBankAdvancesBranchOfFHLBBankLineItems",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Federal Home Loan Bank, Advance, Branch of FHLBank [Line Items]",
        "terseLabel": "FHLB Advances [Abstract]",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FederalHomeLoanBankAdvancesMaturityDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FederalHomeLoanBankAdvancesMaturityDate",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Federal Home Loan Bank, Advances, Maturity Date",
        "label": "Federal Home Loan Bank Advances Maturity Date",
        "documentation": "Federal Home Loan Bank, advances, maturity date."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FederalHomeLoanBankAdvancesOriginalMaturityTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FederalHomeLoanBankAdvancesOriginalMaturityTerm",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Federal Home Loan Bank Advances, Term (in years)",
        "label": "Federal Home Loan Bank Advances Original Maturity Term",
        "documentation": "Federal Home Loan Bank Advances, Original Term"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FederalHomeLoanBankAdvancesShortAndLongTerm": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FederalHomeLoanBankAdvancesShortAndLongTerm",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Federal Home Loan Bank Advances",
        "label": "Federal Home Loan Bank Advances Short And Long Term",
        "documentation": "Short-term and long-term Federal Home Loan Bank borrowings.",
        "verboseLabel": "Gross FHLB borrowings"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FederalHomeLoanBankAdvancesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FederalHomeLoanBankAdvancesTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Federal Home Loan Bank, Advances",
        "label": "Federal Home Loan Bank, Advances [Table Text Block]",
        "documentation": "Tabular disclosure of advances made and reported by Federal Home Loan Bank (FHLBank)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FederalHomeLoanBankBorrowingsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FederalHomeLoanBankBorrowingsFairValueDisclosure",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Federal Home Loan Bank borrowings",
        "label": "Federal Home Loan Bank Borrowings, Fair Value Disclosure",
        "documentation": "Fair value portion of borrowing from Federal Home Loan Bank (FHLBank)."
       }
      }
     },
     "auth_ref": [
      "r133",
      "r1088",
      "r1089",
      "r1099"
     ]
    },
    "fmbh_FederalHomeLoanBankPremiumOnBorrowing": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FederalHomeLoanBankPremiumOnBorrowing",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "FHLB premium on borrowing",
        "label": "Federal Home Loan Bank Premium On Borrowing",
        "documentation": "Federal home loan bank premium on borrowing."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinanceLoansAndLeasesReceivablePolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinanceLoansAndLeasesReceivablePolicy",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loan Purchase",
        "label": "Financing Receivable [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for financing receivable."
       }
      }
     },
     "auth_ref": [
      "r164",
      "r170",
      "r171",
      "r178",
      "r183",
      "r312",
      "r1025",
      "r1026",
      "r1027",
      "r1028",
      "r1034",
      "r1035"
     ]
    },
    "us-gaap_FinancialAssetNotPastDueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancialAssetNotPastDueMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current",
        "label": "Financial Asset, Not Past Due [Member]",
        "documentation": "Financial asset not past due."
       }
      }
     },
     "auth_ref": [
      "r370",
      "r840"
     ]
    },
    "us-gaap_FinancialAssetPastDueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancialAssetPastDueMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total Past Due",
        "label": "Financial Asset, Past Due [Member]",
        "documentation": "Financial asset past due."
       }
      }
     },
     "auth_ref": [
      "r182",
      "r370",
      "r840"
     ]
    },
    "fmbh_FinancialEffectOfLoanModificationsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FinancialEffectOfLoanModificationsTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Effect of Loan Modifications",
        "label": "Financial Effect Of Loan Modifications [Table Text Block]",
        "documentation": "Financial effect of loan modifications"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancialInstrumentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancialInstrumentAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Instrument",
        "label": "Financial Instrument [Axis]",
        "documentation": "Information by type of financial instrument."
       }
      }
     },
     "auth_ref": [
      "r317",
      "r318",
      "r319",
      "r320",
      "r321",
      "r322",
      "r323",
      "r324",
      "r325",
      "r326",
      "r327",
      "r328",
      "r329",
      "r330",
      "r331",
      "r332",
      "r333",
      "r334",
      "r335",
      "r336",
      "r337",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r362",
      "r363",
      "r370",
      "r371",
      "r380",
      "r384",
      "r389",
      "r390",
      "r449",
      "r450",
      "r554",
      "r588",
      "r631",
      "r632",
      "r633",
      "r634",
      "r635",
      "r636",
      "r637",
      "r638",
      "r639",
      "r640",
      "r641",
      "r642",
      "r643",
      "r644",
      "r646",
      "r648",
      "r649",
      "r650",
      "r651",
      "r652",
      "r653",
      "r654",
      "r655",
      "r656",
      "r657",
      "r658",
      "r659",
      "r660",
      "r661",
      "r662",
      "r705",
      "r841",
      "r861",
      "r863",
      "r864",
      "r865",
      "r866",
      "r867",
      "r868",
      "r869",
      "r870",
      "r874",
      "r984",
      "r985",
      "r986",
      "r987",
      "r988",
      "r989",
      "r990",
      "r1043",
      "r1044",
      "r1045",
      "r1046",
      "r1087",
      "r1090",
      "r1091",
      "r1092",
      "r1099",
      "r1102"
     ]
    },
    "us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial assets",
        "label": "Financial Instruments, Financial Assets, Balance Sheet Groupings [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial liabilities",
        "label": "Financial Instruments, Financial Liabilities, Balance Sheet Groupings [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossPurchasedWithCreditDeteriorationIncrease": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableAllowanceForCreditLossPurchasedWithCreditDeteriorationIncrease",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Initial allowance on loans purchased with credit deterioration",
        "label": "Financing Receivable, Allowance for Credit Loss, Purchased with Credit Deterioration, Increase",
        "documentation": "Amount of increase in allowance for credit loss on financing receivable purchased with credit deterioration."
       }
      }
     },
     "auth_ref": [
      "r366"
     ]
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableAllowanceForCreditLosses",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Allowance for Credit Losses",
        "terseLabel": "Allowance for credit losses",
        "negatedLabel": "Less allowance for credit losses",
        "periodStartLabel": "Allowance for credit losses, Beginning Balance",
        "periodEndLabel": "Allowance for credit losses, Ending Balance",
        "label": "Financing Receivable, Allowance for Credit Loss",
        "documentation": "Amount of allowance for credit loss on financing receivable. Excludes allowance for financing receivable covered under loss sharing agreement."
       }
      }
     },
     "auth_ref": [
      "r166",
      "r203",
      "r205",
      "r207",
      "r223",
      "r361",
      "r364",
      "r369",
      "r1120"
     ]
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Allowance for Credit Losses",
        "label": "Financing Receivable, Allowance for Credit Loss, Individually Evaluated",
        "documentation": "Amount of allowance for credit loss on financing receivable evaluated on individual basis. Excludes financing receivable evaluated on collective basis."
       }
      }
     },
     "auth_ref": [
      "r169",
      "r832",
      "r1049"
     ]
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossesPeriodIncreaseDecrease": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableAllowanceForCreditLossesPeriodIncreaseDecrease",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Financing Receivable, Allowance for Credit Loss, Period Increase (Decrease), Total",
        "terseLabel": "Provision for credit loss expense",
        "label": "Financing Receivable, Allowance for Credit Loss, Period Increase (Decrease)",
        "documentation": "Amount of increase (decrease) in allowance for credit loss on financing receivable."
       }
      }
     },
     "auth_ref": [
      "r165",
      "r1051"
     ]
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossesRecovery": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableAllowanceForCreditLossesRecovery",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Recoveries collected",
        "label": "Financing Receivable, Allowance for Credit Loss, Recovery",
        "documentation": "Amount of increase in allowance for credit loss on financing receivable from recovery."
       }
      }
     },
     "auth_ref": [
      "r168",
      "r368",
      "r839"
     ]
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossesWriteOffs": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableAllowanceForCreditLossesWriteOffs",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loans charged off",
        "label": "Financing Receivable, Allowance for Credit Loss, Writeoff",
        "totalLabel": "Financing Receivable, Allowance for Credit Loss, Writeoff, Total",
        "documentation": "Amount of writeoff of financing receivable, charged against allowance for credit loss."
       }
      }
     },
     "auth_ref": [
      "r167",
      "r367",
      "r382",
      "r839"
     ]
    },
    "us-gaap_FinancingReceivableBeforeAllowanceForCreditLossAndFee": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableBeforeAllowanceForCreditLossAndFee",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfGrossCommercialRealEstateLoansByPropertyTypeDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Gross loans",
        "label": "Financing Receivable, before Allowance for Credit Loss, Fee and Loan in Process",
        "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."
       }
      }
     },
     "auth_ref": [
      "r381",
      "r1023",
      "r1121"
     ]
    },
    "us-gaap_FinancingReceivableCreditQualityIndicatorsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableCreditQualityIndicatorsTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Credit Risk Profile of Loan Portfolio on Amortized Cost Basis Based on Risk Rating Category",
        "label": "Financing Receivable Credit Quality Indicators [Table Text Block]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r172",
      "r1053"
     ]
    },
    "fmbh_FinancingReceivableCurrentPeriodGrossWriteoffsFiveOrMoreYearsBeforeLatestFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FinancingReceivableCurrentPeriodGrossWriteoffsFiveOrMoreYearsBeforeLatestFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current period gross writeoffs, prior",
        "label": "Financing Receivable Current Period Gross Writeoffs Five Or More Years Before Latest Fiscal Year",
        "documentation": "Financing Receivable Current Period Gross Writeoffs Five Or More Years Before Latest Fiscal Year."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FinancingReceivableCurrentPeriodGrossWriteoffsFourYearsBeforeLatestFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FinancingReceivableCurrentPeriodGrossWriteoffsFourYearsBeforeLatestFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current period gross writeoffs, four year before current fiscal year",
        "label": "Financing Receivable Current Period Gross Writeoffs Four Years Before Latest Fiscal Year",
        "documentation": "Financing Receivable Current Period Gross Writeoffs Four Years Before Latest Fiscal Year."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FinancingReceivableCurrentPeriodGrossWriteoffsInCurrentFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FinancingReceivableCurrentPeriodGrossWriteoffsInCurrentFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current period gross writeoffs, current fiscal year",
        "label": "Financing Receivable Current Period Gross Writeoffs In Current Fiscal Year",
        "documentation": "Financing Receivable Current Period Gross Writeoffs In Current Fiscal Year"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FinancingReceivableCurrentPeriodGrossWriteoffsInFiscalYearBeforeLatestFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FinancingReceivableCurrentPeriodGrossWriteoffsInFiscalYearBeforeLatestFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current period gross writeoffs, fiscal year before current fiscal year",
        "label": "Financing Receivable Current Period Gross Writeoffs In Fiscal Year Before Latest Fiscal Year",
        "documentation": "Financing Receivable Current Period Gross Writeoffs In Fiscal Year Before Latest Fiscal Year."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FinancingReceivableCurrentPeriodGrossWriteoffsIncludingHeldForSaleNetOfDeferredIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FinancingReceivableCurrentPeriodGrossWriteoffsIncludingHeldForSaleNetOfDeferredIncome",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Current period gross writeoffs, total loans receivables",
        "label": "Financing Receivable Current Period Gross Writeoffs Including Held For Sale Net Of Deferred Income",
        "documentation": "Financing receivable current period gross writeoffs including held for sale net of deferred income."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FinancingReceivableCurrentPeriodGrossWriteoffsRevolving": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FinancingReceivableCurrentPeriodGrossWriteoffsRevolving",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current period gross writeoffs, revolving loans",
        "label": "Financing Receivable Current Period Gross Writeoffs Revolving",
        "documentation": "Financing Receivable Current Period Gross Writeoffs Revolving."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FinancingReceivableCurrentPeriodGrossWriteoffsThreeYearsBeforeLatestFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FinancingReceivableCurrentPeriodGrossWriteoffsThreeYearsBeforeLatestFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current period gross writeoffs, three year before current fiscal year",
        "label": "Financing Receivable Current Period Gross Writeoffs Three Years Before Latest Fiscal Year",
        "documentation": "Financing Receivable Current Period Gross Writeoffs Three Years Before Latest Fiscal Year."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FinancingReceivableCurrentPeriodGrossWriteoffsTwoYearsBeforeLatestFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FinancingReceivableCurrentPeriodGrossWriteoffsTwoYearsBeforeLatestFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current period gross writeoffs, two year before current fiscal year",
        "label": "Financing Receivable Current Period Gross Writeoffs Two Years Before Latest Fiscal Year",
        "documentation": "Financing Receivable Current Period Gross Writeoffs Two Years Before Latest Fiscal Year"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FinancingReceivableGrossExcludingLoansHeldForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FinancingReceivableGrossExcludingLoansHeldForSale",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loans and leases receivable gross excluding loans held for sale",
        "label": "Financing Receivable Gross Excluding Loans Held For Sale",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FinancingReceivableIncludingHeldForSaleNetOfDeferredIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FinancingReceivableIncludingHeldForSaleNetOfDeferredIncome",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total Loans Receivable",
        "terseLabel": "Total Loans Receivable",
        "label": "Financing Receivable Including Held For Sale Net Of Deferred Income",
        "documentation": "Financing receivable including held for sale net of deferred income."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FinancingReceivableIndividuallyEvaluatedCollateralDependentTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FinancingReceivableIndividuallyEvaluatedCollateralDependentTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amortized Cost Basis of Collateral-Dependent Loans by Class of Loans Individually Evaluated",
        "label": "Financing Receivable Individually Evaluated Collateral Dependent Table [Text Block]",
        "documentation": "Financing receivable, individually evaluated, collateral dependent."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableIndividuallyEvaluatedForImpairment",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financing Receivable, Individually Evaluated for Impairment",
        "label": "Financing Receivable, Individually Evaluated for Credit Loss",
        "documentation": "Amount of financing receivable individually evaluated for credit loss. Excludes financing receivable collectively evaluated for credit loss."
       }
      }
     },
     "auth_ref": [
      "r307",
      "r832"
     ]
    },
    "fmbh_FinancingReceivableLoanModificationsWeightedAverageInterestRateReduction": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FinancingReceivableLoanModificationsWeightedAverageInterestRateReduction",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesFinancialEffectOfLoanModificationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted Average Interest Rate Reduction",
        "label": "Financing Receivable, Loan Modifications Weighted Average Interest Rate Reduction",
        "documentation": "Financing receivable, loan modifications weighted average interest rate reduction."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FinancingReceivableLoanModificationsWeightedAverageTermExtension": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FinancingReceivableLoanModificationsWeightedAverageTermExtension",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesFinancialEffectOfLoanModificationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted Average Term Extension (in months)",
        "label": "Financing Receivable, Loan Modifications Weighted Average Term Extension",
        "documentation": "Financing receivable, loan modifications weighted average term extension."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivableModificationToTotalFinancingReceivablesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableModificationToTotalFinancingReceivablesPercent",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Modified in Period, to Total Financing Receivables, Percentage",
        "terseLabel": "Total Class of Financing Receivable",
        "documentation": "Percentage of financing receivable modified during period for debtor experiencing financial difficulty to total financing receivables."
       }
      }
     },
     "auth_ref": [
      "r308",
      "r831"
     ]
    },
    "fmbh_FinancingReceivableModificationsNonPerformingRecordedInvestment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FinancingReceivableModificationsNonPerformingRecordedInvestment",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansClassifiedAsTroubledDebtRestructuringsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Nonperforming TDRs",
        "label": "Financing Receivable Modifications Non Performing Recorded Investment",
        "documentation": "Financing receivable modifications non performing recorded investment."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FinancingReceivableModificationsPerformanceRecordedInvestment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FinancingReceivableModificationsPerformanceRecordedInvestment",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable Modifications Performance Recorded Investment",
        "documentation": "Financing receivable modifications performance recorded investment.",
        "terseLabel": "Financing Receivable Modifications Performance Recorded Investment"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FinancingReceivableModificationsPerformingRecordedInvestment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FinancingReceivableModificationsPerformingRecordedInvestment",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansClassifiedAsTroubledDebtRestructuringsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Performing TDRs",
        "terseLabel": "Financing Receivable Modifications Performing Recorded Investment",
        "label": "Financing Receivable Modifications Performing Recorded Investment",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivableModificationsRecordedInvestment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableModificationsRecordedInvestment",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansClassifiedAsTroubledDebtRestructuringsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total TDRs",
        "verboseLabel": "Modified loans balance",
        "terseLabel": "Troubled Debt Restructurings Balance",
        "label": "Financing Receivable, Modified, Accumulated",
        "documentation": "Accumulated amortized cost of financing receivable modified for debtor experiencing financial difficulty."
       }
      }
     },
     "auth_ref": [
      "r176",
      "r185",
      "r1030"
     ]
    },
    "fmbh_FinancingReceivableModifiedNumberOfContracts": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FinancingReceivableModifiedNumberOfContracts",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Troubled debt restructurings balance",
        "label": "Financing Receivable, Modified, Number of Contracts",
        "documentation": "Financing receivable, modified, number of contracts."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivableNonaccrualInterestIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableNonaccrualInterestIncome",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest lost on nonaccrual loans",
        "label": "Financing Receivable, Nonaccrual, Interest Income",
        "documentation": "Amount of interest income on financing receivable on nonaccrual status."
       }
      }
     },
     "auth_ref": [
      "r373"
     ]
    },
    "us-gaap_FinancingReceivableNonaccrualNoAllowance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableNonaccrualNoAllowance",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financing Receivable, Nonaccrual, No Allowance",
        "label": "Financing Receivable, Nonaccrual, No Allowance",
        "documentation": "Amortized cost of financing receivable on nonaccrual status with no allowance for credit loss. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r375"
     ]
    },
    "us-gaap_FinancingReceivableOriginatedFiveOrMoreYearsBeforeLatestFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableOriginatedFiveOrMoreYearsBeforeLatestFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Prior",
        "label": "Financing Receivable, Originated, More than Five Years before Current Fiscal Year",
        "documentation": "Amortized cost of financing receivable originated more than five years prior to current fiscal year. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r382",
      "r839"
     ]
    },
    "us-gaap_FinancingReceivableOriginatedFourYearsBeforeLatestFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableOriginatedFourYearsBeforeLatestFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Four years before current fiscal year",
        "label": "Financing Receivable, Year Five, Originated, Four Years before Current Fiscal Year",
        "documentation": "Amortized cost of financing receivable originated four years prior to current fiscal year. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r382",
      "r839"
     ]
    },
    "us-gaap_FinancingReceivableOriginatedInCurrentFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableOriginatedInCurrentFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current fiscal year",
        "label": "Financing Receivable, Year One, Originated, Current Fiscal Year",
        "documentation": "Amortized cost of financing receivable originated in current fiscal year. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r382",
      "r839"
     ]
    },
    "us-gaap_FinancingReceivableOriginatedInFiscalYearBeforeLatestFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableOriginatedInFiscalYearBeforeLatestFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fiscal year before current fiscal year",
        "label": "Financing Receivable, Year Two, Originated, Fiscal Year before Current Fiscal Year",
        "documentation": "Amortized cost of financing receivable originated in fiscal year prior to current fiscal year. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r382",
      "r839"
     ]
    },
    "us-gaap_FinancingReceivableOriginatedThreeYearsBeforeLatestFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableOriginatedThreeYearsBeforeLatestFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Three years before current fiscal year",
        "label": "Financing Receivable, Year Four, Originated, Three Years before Current Fiscal Year",
        "documentation": "Amortized cost of financing receivable originated three years prior to current fiscal year. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r382",
      "r839"
     ]
    },
    "us-gaap_FinancingReceivableOriginatedTwoYearsBeforeLatestFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableOriginatedTwoYearsBeforeLatestFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Two years before current fiscal year",
        "label": "Financing Receivable, Year Three, Originated, Two Years before Current Fiscal Year",
        "documentation": "Amortized cost of financing receivable originated two years prior to current fiscal year. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r382",
      "r839"
     ]
    },
    "fmbh_FinancingReceivablePerformanceOfLoansModifiedTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FinancingReceivablePerformanceOfLoansModifiedTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Performance of loans modified",
        "label": "Financing Receivable Performance of Loans Modified [Table Text Block]",
        "documentation": "Financing receivable performance of loans modified."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivablePortfolioSegmentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivablePortfolioSegmentAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesFinancialEffectOfLoanModificationsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfGrossCommercialRealEstateLoansByPropertyTypeDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financing Receivable Portfolio Segment",
        "label": "Financing Receivable Portfolio Segment [Axis]",
        "documentation": "Information by the level at which an entity develops and documents a systematic methodology to determine its allowance for credit losses."
       }
      }
     },
     "auth_ref": [
      "r201",
      "r202",
      "r206",
      "r207",
      "r362",
      "r363",
      "r833",
      "r984",
      "r985",
      "r986",
      "r987",
      "r988",
      "r989",
      "r990",
      "r992",
      "r993",
      "r994"
     ]
    },
    "us-gaap_FinancingReceivablePortfolioSegmentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivablePortfolioSegmentDomain",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesFinancialEffectOfLoanModificationsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfGrossCommercialRealEstateLoansByPropertyTypeDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financing Receivable Portfolio Segment",
        "label": "Financing Receivable Portfolio Segment [Domain]",
        "documentation": "Level at which an entity develops and documents a systematic methodology to determine its allowance for credit losses."
       }
      }
     },
     "auth_ref": [
      "r201",
      "r202",
      "r206",
      "r207",
      "r984",
      "r985",
      "r986",
      "r987",
      "r988",
      "r989",
      "r990",
      "r992",
      "r993",
      "r994"
     ]
    },
    "us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAllowanceForCreditLossAtAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivablePurchasedWithCreditDeteriorationAllowanceForCreditLossAtAcquisitionDate",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfPurchasedCreditDeterioratedPcdLoansDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "PCD allowance for credit losses at acquisition",
        "terseLabel": "PCD allowance for credit losses at acquisition",
        "verboseLabel": "Allowance for credit losses for loans identified as PCD",
        "label": "Financing Receivable, Purchased with Credit Deterioration, Allowance for Credit Loss at Acquisition Date",
        "documentation": "Amount of allowance for credit loss at acquisition date of financing receivable purchased with credit deterioration."
       }
      }
     },
     "auth_ref": [
      "r377"
     ]
    },
    "us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAmountAtParValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivablePurchasedWithCreditDeteriorationAmountAtParValue",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfPurchasedCreditDeterioratedPcdLoansDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Unpaid principal balance",
        "terseLabel": "Fair value of purchased credit deteriorated loans at acquisition",
        "label": "Financing Receivable, Purchased with Credit Deterioration, Amount at Par Value",
        "documentation": "Amount at par value of financing receivable purchased with credit deterioration."
       }
      }
     },
     "auth_ref": [
      "r379"
     ]
    },
    "us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfPurchasedCreditDeterioratedPcdLoansDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Fair value of PCD loans",
        "verboseLabel": "Purchased credit deteriorated loans",
        "label": "Financing Receivable, Purchased with Credit Deterioration, Amount at Purchase Price",
        "documentation": "Amount at purchase price of financing receivable purchased with credit deterioration."
       }
      }
     },
     "auth_ref": [
      "r376"
     ]
    },
    "us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationDiscountPremium": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivablePurchasedWithCreditDeteriorationDiscountPremium",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfPurchasedCreditDeterioratedPcdLoansDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Non-credit discount on acquired loans",
        "terseLabel": "Non-credit discount/(premium) at acquisition",
        "label": "Financing Receivable, Purchased with Credit Deterioration, Discount (Premium)",
        "documentation": "Amount of discount (premium) attributable to other factors on financing receivable purchased with credit deterioration."
       }
      }
     },
     "auth_ref": [
      "r378"
     ]
    },
    "us-gaap_FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total Loans> 90 Days and Accruing",
        "label": "Financing Receivable, 90 Days or More Past Due, Still Accruing",
        "documentation": "Amortized cost of financing receivable 90 days or more past due and still accruing. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r181",
      "r374",
      "r840"
     ]
    },
    "us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfGrossCommercialRealEstateLoansByPropertyTypeDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Class of Financing Receivable",
        "label": "Class of Financing Receivable [Axis]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r174",
      "r179",
      "r182",
      "r184",
      "r201",
      "r202",
      "r206",
      "r207",
      "r305",
      "r308",
      "r309",
      "r310",
      "r311",
      "r370",
      "r371",
      "r380",
      "r831",
      "r834",
      "r835",
      "r839",
      "r840",
      "r984",
      "r985",
      "r986",
      "r987",
      "r988",
      "r989",
      "r990",
      "r992",
      "r993",
      "r994",
      "r1032"
     ]
    },
    "us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfGrossCommercialRealEstateLoansByPropertyTypeDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Class of Financing Receivable",
        "label": "Class of Financing Receivable [Domain]",
        "documentation": "Financing receivables determined on the basis of initial measurement attribute, risk characteristics and method of monitoring and assessing credit risk."
       }
      }
     },
     "auth_ref": [
      "r184",
      "r201",
      "r202",
      "r206",
      "r207",
      "r305",
      "r308",
      "r309",
      "r310",
      "r311",
      "r831",
      "r984",
      "r985",
      "r986",
      "r987",
      "r988",
      "r989",
      "r990",
      "r992",
      "r993",
      "r994",
      "r1032"
     ]
    },
    "us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableRecordedInvestmentNonaccrualStatus",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financing Receivable, Nonaccrual",
        "label": "Financing Receivable, Nonaccrual",
        "documentation": "Amortized cost of financing receivable on nonaccrual status. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r180",
      "r204",
      "r205",
      "r372"
     ]
    },
    "fmbh_FinancingReceivableRecordedInvestmentsAgingAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FinancingReceivableRecordedInvestmentsAgingAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loans Receivable Aging Analysis [Abstract]",
        "label": "Financing Receivable Recorded Investments Aging [Abstract]",
        "documentation": "Financing Receivable, Recorded Investments, Aging."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivableRevolving": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableRevolving",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Revolving Loans",
        "label": "Financing Receivable, Revolving",
        "documentation": "Amortized cost of financing receivable that can be withdrawn, repaid, and redrawn."
       }
      }
     },
     "auth_ref": [
      "r382",
      "r839"
     ]
    },
    "us-gaap_FinancingReceivableThresholdPeriodPastDueWriteoff": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableThresholdPeriodPastDueWriteoff",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Period when loans charged-down",
        "label": "Financing Receivable, Threshold Period Past Due, Writeoff",
        "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."
       }
      }
     },
     "auth_ref": [
      "r1052"
     ]
    },
    "us-gaap_FinancingReceivableUnamortizedLoanCommitmentOriginationFeeAndPremiumDiscount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableUnamortizedLoanCommitmentOriginationFeeAndPremiumDiscount",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Financing Receivable, Unamortized Loan Cost (Fee) and Purchase Premium (Discount), Total",
        "negatedLabel": "Net deferred loan fees, premiums and discounts",
        "label": "Financing Receivable, Unamortized Loan Cost (Fee) and Purchase Premium (Discount)",
        "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."
       }
      }
     },
     "auth_ref": [
      "r980",
      "r1029",
      "r1033"
     ]
    },
    "fmbh_FinancingReceivableWithRelatedAllowanceRecordedInvestment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FinancingReceivableWithRelatedAllowanceRecordedInvestment",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair value of loans with a specific allowance",
        "label": "Financing Receivable, with Related Allowance, Recorded Investment",
        "documentation": "Financing receivable, with related allowance, recorded investment."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Carrying amount of loans with a specific allowance",
        "label": "Financing Receivable, with Related Allowance, Unpaid Principal Balance",
        "documentation": "Financing receivable, with related allowance, unpaid principal balance."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivables30To59DaysPastDueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivables30To59DaysPastDueMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "30-59 Days Past Due",
        "terseLabel": "Financial Asset, 30 to 59 Days Past Due",
        "label": "Financial Asset, 30 to 59 Days Past Due [Member]",
        "documentation": "Financial asset more than 29 days past due but fewer than 60 days past due."
       }
      }
     },
     "auth_ref": [
      "r840"
     ]
    },
    "us-gaap_FinancingReceivables60To89DaysPastDueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivables60To89DaysPastDueMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "60-89 Days Past Due",
        "terseLabel": "Financial Asset, 60 to 89 Days Past Due",
        "label": "Financial Asset, 60 to 89 Days Past Due [Member]",
        "documentation": "Financial asset more than 59 days past due but fewer than 90 days past due."
       }
      }
     },
     "auth_ref": [
      "r840"
     ]
    },
    "fmbh_FinancingReceivablesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FinancingReceivablesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amortized Cost Basis of Loans Experiencing Difficulty and Modified",
        "label": "Financing Receivables Amortized Cost Basis of Loans Experiencing Difficulty and Modified [Table Text Block]",
        "documentation": "Financing receivables amortized cost basis of loans experiencing difficulty and modified."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivablesEqualToGreaterThan90DaysPastDueMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "90 Days or More Past Due",
        "terseLabel": "Financial Asset, Equal to or Greater than 90 Days Past Due",
        "label": "Financial Asset, Equal to or Greater than 90 Days Past Due [Member]",
        "documentation": "Financial asset equal to or greater than 90 days past due."
       }
      }
     },
     "auth_ref": [
      "r840"
     ]
    },
    "fmbh_FinancingReceivablesModificationsDuringPeriodBalance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FinancingReceivablesModificationsDuringPeriodBalance",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails"
     ],
     "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"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivablesPeriodPastDueAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivablesPeriodPastDueAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Asset, Aging",
        "label": "Financial Asset, Aging [Axis]",
        "documentation": "Information by period in which financial asset is past due or not past due."
       }
      }
     },
     "auth_ref": [
      "r182",
      "r370",
      "r840"
     ]
    },
    "us-gaap_FinancingReceivablesPeriodPastDueDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivablesPeriodPastDueDomain",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Asset, Aging",
        "label": "Financial Asset, Aging [Domain]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r182",
      "r370",
      "r840"
     ]
    },
    "fmbh_FinancingReceivablestroubledDebtRestructuringsDuringPeriodTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "FinancingReceivablestroubledDebtRestructuringsDuringPeriodTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loans Classified as Troubled Debt Restructurings",
        "label": "Financing Receivablestroubled Debt Restructurings During Period Table [Text Block]",
        "documentation": "Financing receivables,troubled debt restructurings during period."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FiniteLivedIntangibleAssetUsefulLife": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FiniteLivedIntangibleAssetUsefulLife",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Intangible asset estimated useful life",
        "label": "Finite-Lived Intangible Asset, Useful Life",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FiniteLivedIntangibleAssetsAccumulatedAmortization",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Intangible Assets, Accumulated Amortization",
        "label": "Finite-Lived Intangible Assets, Accumulated Amortization",
        "documentation": "Accumulated amount of amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life."
       }
      }
     },
     "auth_ref": [
      "r217",
      "r391",
      "r411",
      "r843"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextRollingTwelveMonths": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseNextRollingTwelveMonths",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfExpectedAmortizationExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "For period 07/01/24 - 12/31/24",
        "label": "Finite-Lived Intangible Assets, Amortization Expense, Next Rolling 12 Months",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRollingYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseRollingYearFive",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfExpectedAmortizationExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finite-Lived Intangible Assets, Amortization Expense, Rolling Year Five",
        "terseLabel": "For year ended 12/31/28",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRollingYearFour": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseRollingYearFour",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfExpectedAmortizationExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finite-Lived Intangible Assets, Amortization Expense, Rolling Year Four",
        "terseLabel": "For year ended 12/31/27",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRollingYearThree": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseRollingYearThree",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfExpectedAmortizationExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finite-Lived Intangible Assets, Amortization Expense, Rolling Year Three",
        "terseLabel": "For year ended 12/31/26",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRollingYearTwo": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseRollingYearTwo",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfExpectedAmortizationExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finite-Lived Intangible Assets, Amortization Expense, Rolling Year Two",
        "terseLabel": "For year ended 12/31/25",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Intangible Assets Amortization Expense",
        "label": "Finite-Lived Intangible Assets Amortization Expense [Table Text Block]",
        "documentation": "Tabular disclosure of amortization expense of assets, excluding financial assets, that lack physical substance, having a limited useful life."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FiniteLivedIntangibleAssetsByMajorClassAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Finite-Lived Intangible Assets by Major Class",
        "label": "Finite-Lived Intangible Assets by Major Class [Axis]",
        "documentation": "Information by major type or class of finite-lived intangible assets."
       }
      }
     },
     "auth_ref": [
      "r404",
      "r406",
      "r407",
      "r408",
      "r410",
      "r411",
      "r413",
      "r414",
      "r665",
      "r669",
      "r819"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseCurrentAndFiveSucceedingFiscalYearsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FiniteLivedIntangibleAssetsFutureAmortizationExpenseCurrentAndFiveSucceedingFiscalYearsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Finite-Lived Intangible Assets, Amortization Expense, Maturity Schedule [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FiniteLivedIntangibleAssetsGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FiniteLivedIntangibleAssetsGross",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Finite-Lived Intangible Assets, Gross, Total",
        "terseLabel": "Intangible Assets, Gross Carrying Value",
        "label": "Finite-Lived Intangible Assets, Gross",
        "documentation": "Amount before amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life."
       }
      }
     },
     "auth_ref": [
      "r391",
      "r411",
      "r669",
      "r843"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FiniteLivedIntangibleAssetsLineItems",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Finite Lived Intangible Assets [Line Items]",
        "label": "Finite-Lived Intangible Assets [Line Items]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r404",
      "r411",
      "r413",
      "r414",
      "r415",
      "r665",
      "r819",
      "r843"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FiniteLivedIntangibleAssetsMajorClassNameDomain",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Finite-Lived Intangible Assets, Major Class Name",
        "label": "Finite-Lived Intangible Assets, Major Class Name [Domain]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r404",
      "r406",
      "r407",
      "r408",
      "r410",
      "r411",
      "r413",
      "r414",
      "r819"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FiniteLivedIntangibleAssetsNet",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Finite-Lived Intangible Assets, Net, Total",
        "terseLabel": "Finite-lived intangible assets, net",
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "label": "Finite-Lived Intangible Assets, Net",
        "documentation": "Amount after amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life."
       }
      }
     },
     "auth_ref": [
      "r665",
      "r1066"
     ]
    },
    "fmbh_ForeclosedAssetsHeldForSaleMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "ForeclosedAssetsHeldForSaleMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreclosed Assets Held-for-sale",
        "label": "Foreclosed Assets Held For Sale [Member]",
        "documentation": "Foreclosed assets held for sale."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ForgoneRecoveryDueToDisqualificationOfTaxBenefitsAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ForgoneRecoveryDueToDisqualificationOfTaxBenefitsAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery due to Disqualification of Tax Benefits, Amount",
        "terseLabel": "Forgone Recovery due to Disqualification of Tax Benefits, Amount"
       }
      }
     },
     "auth_ref": [
      "r906",
      "r916",
      "r926",
      "r958"
     ]
    },
    "ecd_ForgoneRecoveryDueToExpenseOfEnforcementAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ForgoneRecoveryDueToExpenseOfEnforcementAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery due to Expense of Enforcement, Amount",
        "terseLabel": "Forgone Recovery due to Expense of Enforcement, Amount"
       }
      }
     },
     "auth_ref": [
      "r906",
      "r916",
      "r926",
      "r958"
     ]
    },
    "ecd_ForgoneRecoveryDueToViolationOfHomeCountryLawAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ForgoneRecoveryDueToViolationOfHomeCountryLawAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery due to Violation of Home Country Law, Amount",
        "terseLabel": "Forgone Recovery due to Violation of Home Country Law, Amount"
       }
      }
     },
     "auth_ref": [
      "r906",
      "r916",
      "r926",
      "r958"
     ]
    },
    "ecd_ForgoneRecoveryExplanationOfImpracticabilityTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ForgoneRecoveryExplanationOfImpracticabilityTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery, Explanation of Impracticability [Text Block]",
        "terseLabel": "Forgone Recovery, Explanation of Impracticability"
       }
      }
     },
     "auth_ref": [
      "r906",
      "r916",
      "r926",
      "r958"
     ]
    },
    "ecd_ForgoneRecoveryIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ForgoneRecoveryIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery, Individual Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r906",
      "r916",
      "r926",
      "r958"
     ]
    },
    "ecd_FrValAsOfPrrYrEndOfEqtyAwrdsGrntdInPrrYrsFldVstngCondsDrngCvrdYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "FrValAsOfPrrYrEndOfEqtyAwrdsGrntdInPrrYrsFldVstngCondsDrngCvrdYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Prior Year End Fair Value of Equity Awards Granted in Any Prior Year that Fail to Meet Applicable Vesting Conditions During Covered Year [Member]",
        "terseLabel": "Prior Year End Fair Value of Equity Awards Granted in Any Prior Year that Fail to Meet Applicable Vesting Conditions During Covered Year"
       }
      }
     },
     "auth_ref": [
      "r939"
     ]
    },
    "us-gaap_GainLossOnDispositionOfAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "GainLossOnDispositionOfAssets",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Gain on sale of loans held for sale, net",
        "label": "Gain (Loss) on Disposition of Property Plant Equipment, Excluding Oil and Gas Property and Timber Property",
        "documentation": "Amount of gain (loss) on sale or disposal of property, plant and equipment assets, excluding oil and gas property and timber property."
       }
      }
     },
     "auth_ref": [
      "r1008",
      "r1071",
      "r1072"
     ]
    },
    "fmbh_GainOnRepaymentOfSubordinatedDebentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "GainOnRepaymentOfSubordinatedDebentures",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Gain on repayment of subordinated debentures",
        "label": "Gain On Repayment Of Subordinated Debentures",
        "documentation": "Gain on repayment of subordinated debentures."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GainsLossesOnSalesOfOtherRealEstate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "GainsLossesOnSalesOfOtherRealEstate",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gains (Losses) on Sales of Other Real Estate",
        "negatedLabel": "(Gain) loss on sales and write downs of other real estate owned, net",
        "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."
       }
      }
     },
     "auth_ref": [
      "r147"
     ]
    },
    "fmbh_GeneralLitigationPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "GeneralLitigationPolicyTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "General Litigation",
        "label": "General Litigation Policy [Text Block]",
        "documentation": "General litigation."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_Goodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "Goodwill",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Goodwill, net",
        "periodEndLabel": "Goodwill, Ending Balance",
        "periodStartLabel": "Goodwill, Beginning Balance",
        "totalLabel": "Goodwill, Total",
        "terseLabel": "Goodwill",
        "label": "Goodwill",
        "documentation": "Amount, after accumulated impairment loss, of asset representing future economic benefit arising from other asset acquired in business combination or from joint venture formation or both, that is not individually identified and separately recognized."
       }
      }
     },
     "auth_ref": [
      "r216",
      "r392",
      "r671",
      "r830",
      "r842",
      "r862",
      "r873",
      "r1057",
      "r1059"
     ]
    },
    "fmbh_GoodwillAccumulatedAmortization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "GoodwillAccumulatedAmortization",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Goodwill, Accumulated Amortization",
        "label": "Goodwill Accumulated Amortization",
        "documentation": "Goodwill accumulated amortization."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GoodwillAcquiredDuringPeriod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "GoodwillAcquiredDuringPeriod",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Adjusted goodwill",
        "terseLabel": "Goodwill acquired during period",
        "label": "Goodwill, Acquired During Period",
        "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."
       }
      }
     },
     "auth_ref": [
      "r395",
      "r842"
     ]
    },
    "fmbh_GoodwillAdjustmentsOfCoreDepositIntangible": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "GoodwillAdjustmentsOfCoreDepositIntangible",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Core deposit intangible",
        "label": "Goodwill Adjustments Of Core Deposit Intangible",
        "documentation": "Goodwill adjustments of core deposit intangible."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GoodwillAdjustmentsOfFairValueOfFHLBAdvances": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "GoodwillAdjustmentsOfFairValueOfFHLBAdvances",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair value of FHLB advances",
        "label": "Goodwill Adjustments Of Fair Value Of F H L B Advances",
        "documentation": "Goodwill adjustments of fair value of FHLB advances."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GoodwillAdjustmentsOfFairValueOfLoansNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "GoodwillAdjustmentsOfFairValueOfLoansNet",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair value of loans, net",
        "label": "Goodwill Adjustments Of Fair Value Of Loans Net",
        "documentation": "Goodwill adjustments of fair value of loans, net."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GoodwillAdjustmentsOfFairValueOfOtherRealEstateOwned": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "GoodwillAdjustmentsOfFairValueOfOtherRealEstateOwned",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair value of other real estate owned",
        "label": "Goodwill Adjustments Of Fair Value Of Other Real Estate Owned",
        "documentation": "Goodwill adjustments of fair value of other real estate owned."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GoodwillAdjustmentsOfFairValueOfPremisesAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "GoodwillAdjustmentsOfFairValueOfPremisesAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair value of premises and equipment",
        "label": "Goodwill Adjustments Of Fair Value Of Premises And Equipment",
        "documentation": "Goodwill adjustments of fair value of premises and equipment."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GoodwillAdjustmentsOfFairValueOfSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "GoodwillAdjustmentsOfFairValueOfSecurities",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair value of securities",
        "label": "Goodwill Adjustments Of Fair Value Of Securities",
        "documentation": "Goodwill adjustments of Fair value of securities."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GoodwillAdjustmentsOfFairValueOfSubordinatedAndJrSubordinatedDebentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "GoodwillAdjustmentsOfFairValueOfSubordinatedAndJrSubordinatedDebentures",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair value of subordinated and jr subordinated debentures",
        "label": "Goodwill Adjustments Of Fair Value Of Subordinated And Jr Subordinated Debentures",
        "documentation": "Goodwill adjustments of fair value of subordinated and jr subordinated debentures."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GoodwillAdjustmentsOfFairValueOfTimeDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "GoodwillAdjustmentsOfFairValueOfTimeDeposits",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair value of time deposits",
        "label": "Goodwill Adjustments Of Fair Value Of Time Deposits",
        "documentation": "Goodwill adjustments of fair value of time deposits."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GoodwillAdjustmentsOfIncreaseDecreaseInCoreDepositIntangible": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "GoodwillAdjustmentsOfIncreaseDecreaseInCoreDepositIntangible",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase in core deposit intangible",
        "label": "Goodwill adjustments of Increase Decrease in Core Deposit Intangible.",
        "documentation": "GGoodwill adjustments of increase decrease in core deposit intangible"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GoodwillAdjustmentsOfIncreaseInMortgageServicingRights": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "GoodwillAdjustmentsOfIncreaseInMortgageServicingRights",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase in mortgage servicing rights",
        "label": "Goodwill Adjustments Of Increase In Mortgage Servicing Rights",
        "documentation": "Goodwill adjustments of increase in mortgage servicing rights."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GoodwillAdjustmentsOfInsuranceCompanyIntangible": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "GoodwillAdjustmentsOfInsuranceCompanyIntangible",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Goodwill adjustments of insurance company intangible.",
        "label": "Goodwill Adjustments Of Insurance Company Intangible",
        "terseLabel": "Insurance Company intangible"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GoodwillAdjustmentsOfOtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "GoodwillAdjustmentsOfOtherAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other assets",
        "label": "Goodwill Adjustments Of Other Assets",
        "documentation": "Goodwill adjustments of other assets."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GoodwillAdjustmentsOfOtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "GoodwillAdjustmentsOfOtherLiabilities",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other liabilities",
        "label": "Goodwill Adjustments Of Other Liabilities",
        "documentation": "Goodwill adjustments of other liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GoodwillAndIntangibleAssetsAccumulatedAmortization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "GoodwillAndIntangibleAssetsAccumulatedAmortization",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Goodwill and Intangible Assets, Accumulated Amortization",
        "label": "Goodwill And Intangible Assets Accumulated Amortization",
        "documentation": "Goodwill and intangible assets accumulated amortization."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GoodwillAndIntangibleAssetsDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "GoodwillAndIntangibleAssetsDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Goodwill and Intangible Assets Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GoodwillAndIntangibleAssetsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "GoodwillAndIntangibleAssetsDisclosureTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Goodwill and Intangible Assets",
        "label": "Goodwill and Intangible Assets Disclosure [Text Block]",
        "documentation": "The entire disclosure for goodwill and intangible assets."
       }
      }
     },
     "auth_ref": [
      "r1056",
      "r1060"
     ]
    },
    "fmbh_GoodwillAndIntangibleAssetsGrossCarryingValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "GoodwillAndIntangibleAssetsGrossCarryingValue",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Goodwill and Intangible Assets, Gross Carrying Value",
        "label": "Goodwill And Intangible Assets Gross Carrying Value",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GoodwillGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "GoodwillGross",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Goodwill, Gross Carrying Value",
        "label": "Goodwill, Gross",
        "documentation": "Amount, before accumulated impairment loss, of asset representing future economic benefit arising from other asset acquired in business combination or from joint venture formation or both, that is not individually identified and separately recognized."
       }
      }
     },
     "auth_ref": [
      "r394",
      "r401",
      "r842"
     ]
    },
    "us-gaap_GoodwillLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "GoodwillLineItems",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Goodwill [Line Items]",
        "label": "Goodwill [Line Items]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r393",
      "r394",
      "r395",
      "r396",
      "r397",
      "r398",
      "r399",
      "r400",
      "r401",
      "r402",
      "r403",
      "r842"
     ]
    },
    "us-gaap_GoodwillPurchaseAccountingAdjustments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "GoodwillPurchaseAccountingAdjustments",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Goodwill, purchase accounting adjustments",
        "label": "Goodwill, Measurement Period Adjustment",
        "documentation": "Amount of increase (decrease) from measurement period adjustment of asset representing future economic benefit arising from other asset acquired in business combination or from joint venture formation or both, that is not individually identified and separately recognized."
       }
      }
     },
     "auth_ref": [
      "r0",
      "r1058"
     ]
    },
    "fmbh_GoodwillPurchaseAccountingAdjustmentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "GoodwillPurchaseAccountingAdjustmentsAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Less purchase accounting adjustments:",
        "label": "Goodwill Purchase Accounting Adjustments [Abstract]",
        "documentation": "Goodwill purchase accounting adjustments."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GrantOfRestrictedUnitsPursuantToStockIncentivePlan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "GrantOfRestrictedUnitsPursuantToStockIncentivePlan",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Grant of restricted units pursuant to 2017 stock incentive plan",
        "label": "Grant Of Restricted Units Pursuant To Stock Incentive Plan",
        "documentation": "Grant of restricted units pursuant to stock incentive plan."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GrossLeaseCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "GrossLeaseCost",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total lease cost",
        "label": "Gross Lease Cost",
        "documentation": "Gross lease cost."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_HedgedAssetFairValueHedge": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "HedgedAssetFairValueHedge",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfHedgedInstrumentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Carrying Amount of the Hedged Asset",
        "label": "Hedged Asset, Fair Value Hedge",
        "documentation": "Amount of asset hedged in fair value hedging relationship."
       }
      }
     },
     "auth_ref": [
      "r538",
      "r860"
     ]
    },
    "us-gaap_HedgedAssetFairValueHedgeCumulativeIncreaseDecrease": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "HedgedAssetFairValueHedgeCumulativeIncreaseDecrease",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfHedgedInstrumentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cumulative Amount of Fair Value Hedging Adjustment Included in the Carrying Amount of the Hedged Asset",
        "label": "Hedged Asset, Fair Value Hedge, Cumulative Increase (Decrease)",
        "documentation": "Amount of cumulative increase (decrease) in fair value of hedged asset in fair value hedge, attributable to hedged risk."
       }
      }
     },
     "auth_ref": [
      "r539",
      "r860"
     ]
    },
    "us-gaap_HedgedAssetStatementOfFinancialPositionExtensibleEnumeration": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "HedgedAssetStatementOfFinancialPositionExtensibleEnumeration",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfHedgedInstrumentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hedged Asset, Statement of Financial Position [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of financial position that includes hedged asset."
       }
      }
     },
     "auth_ref": [
      "r540",
      "r860"
     ]
    },
    "fmbh_HedgedInstrumentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "HedgedInstrumentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Hedged Instruments [Abstract]",
        "documentation": "Hedged Instruments [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_HedgingDesignationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "HedgingDesignationAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Hedging Designation",
        "label": "Hedging Designation [Axis]",
        "documentation": "Information by designation of purpose of derivative instrument."
       }
      }
     },
     "auth_ref": [
      "r20",
      "r537"
     ]
    },
    "us-gaap_HedgingDesignationDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "HedgingDesignationDomain",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Hedging Designation",
        "label": "Hedging Designation [Domain]",
        "documentation": "Designation of purpose of derivative instrument."
       }
      }
     },
     "auth_ref": [
      "r20"
     ]
    },
    "us-gaap_HedgingRelationshipDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "HedgingRelationshipDomain",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Hedging Relationship",
        "label": "Hedging Relationship [Domain]",
        "documentation": "Nature or intent of a hedge."
       }
      }
     },
     "auth_ref": [
      "r20"
     ]
    },
    "us-gaap_HeldToMaturitySecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "HeldToMaturitySecurities",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Held-to-maturity, at amortized cost (estimated fair value of $2,277 and $2,286 at June 30, 2024 and December 31, 2023, respectively)",
        "totalLabel": "Held-to-maturity",
        "label": "Debt Securities, Held-to-Maturity, Amortized Cost, before Allowance for Credit Loss",
        "documentation": "Amount, before allowance for credit loss, of investment in debt security measured at amortized cost (held-to-maturity)."
       }
      }
     },
     "auth_ref": [
      "r182",
      "r330",
      "r370",
      "r1050"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "HeldToMaturitySecuritiesAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Held-to-maturity: [Abstract]",
        "label": "Debt Securities, Held-to-Maturity, Fair Value to Amortized Cost, after Allowance for Credit Loss [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gross Unrealized Gains",
        "label": "Debt Securities, Held-to-Maturity, Accumulated Unrecognized Gain",
        "documentation": "Amount of accumulated unrecognized gain on investment in debt security measured at amortized cost (held-to-maturity)."
       }
      }
     },
     "auth_ref": [
      "r187",
      "r340"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Unrealized (Losses)",
        "label": "Debt Securities, Held-to-Maturity, Accumulated Unrecognized Loss",
        "documentation": "Amount of accumulated unrealized loss on investment in debt security measured at amortized cost (held-to-maturity)."
       }
      }
     },
     "auth_ref": [
      "r188",
      "r341"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Held-to-maturity, After 5 through 10 years",
        "label": "Debt Securities, Held-to-Maturity, Amortized Cost, after Allowance for Credit Loss, Maturity, Allocated and Single Maturity Date, after Year 5 through 10",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r337",
      "r682"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Held-to-maturity, After1 through 5 years",
        "label": "Debt Securities, Held-to-Maturity, Amortized Cost, after Allowance for Credit Loss, Maturity, Allocated and Single Maturity Date, after Year One through Five",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r336",
      "r681"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Held-to-maturity, After ten years",
        "label": "Debt Securities, Held-to-Maturity, Amortized Cost, after Allowance for Credit Loss, Maturity, Allocated and Single Maturity Date, after Year 10",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r338",
      "r683"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesNetCarryingAmountAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesNetCarryingAmountAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Held-to-maturity, Maturity [Abstract]",
        "label": "Debt Securities, Held-to-Maturity, Amortized Cost, after Allowance for Credit Loss, Maturity [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Held-to-maturity, One Year or less",
        "label": "Debt Securities, Held-to-Maturity, Amortized Cost, after Allowance for Credit Loss, Maturity, Allocated and Single Maturity Date, Year One",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r335",
      "r680"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "HeldToMaturitySecuritiesFairValue",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Held-to-maturity securities",
        "totalLabel": "Debt Securities, Held-to-Maturity, Fair Value, Total",
        "verboseLabel": "Fair Value",
        "terseLabel": "Held-to-maturity, at fair value",
        "documentation": "Fair value of investment in debt security measured at amortized cost (held-to-maturity)."
       }
      }
     },
     "auth_ref": [
      "r186",
      "r339",
      "r568",
      "r580",
      "r672",
      "r692"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "HeldToMaturitySecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Held-to-maturity, securities in unrealized loss positions, qualitative disclosure, number of positions",
        "label": "Held-to-Maturity, Securities in Unrealized Loss Positions, Qualitative Disclosure, Number of Positions",
        "documentation": "Number of investment positions in unrealized loss position for held-to-maturity security where cost exceeds fair value and its impairment is not other-than-temporary."
       }
      }
     },
     "auth_ref": [
      "r192"
     ]
    },
    "fmbh_HeldToMaturityTaxEquivalentYieldMaturities": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "HeldToMaturityTaxEquivalentYieldMaturities",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Held To Maturity, Full tax-equivalent yield , Total",
        "label": "Held To Maturity Tax Equivalent Yield Maturities",
        "documentation": "Held To Maturity Tax Equivalent Yield Maturities"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_HeldToMaturityTaxEquivalentYieldMaturitiesAfter10Years": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "HeldToMaturityTaxEquivalentYieldMaturitiesAfter10Years",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Held To Maturity, Full tax-equivalent yield , After ten years",
        "label": "Held To Maturity Tax Equivalent Yield Maturities After10 Years",
        "documentation": "Held To Maturity Tax Equivalent Yield Maturities After 10 Years"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_HeldToMaturityTaxEquivalentYieldMaturitiesAfter1Through5Years": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "HeldToMaturityTaxEquivalentYieldMaturitiesAfter1Through5Years",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Held To Maturity, Full tax-equivalent yield , After 1 through 5 years",
        "label": "Held To Maturity Tax Equivalent Yield Maturities After1 Through5 Years",
        "documentation": "Held To Maturity Tax Equivalent Yield Maturities After 1 Through 5 Years"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_HeldToMaturityTaxEquivalentYieldMaturitiesAfter5Through10Years": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "HeldToMaturityTaxEquivalentYieldMaturitiesAfter5Through10Years",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Held To Maturity, Full tax-equivalent yield , After 5 through 10 years",
        "label": "Held To Maturity Tax Equivalent Yield Maturities After5 Through10 Years",
        "documentation": "Held To Maturity Tax Equivalent Yield Maturities After 5 Through 10 Years"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_HeldToMaturityTaxEquivalentYieldMaturitiesYearOne": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "HeldToMaturityTaxEquivalentYieldMaturitiesYearOne",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Held To Maturity, Full tax-equivalent yield , One year or less",
        "label": "Held To Maturity Tax Equivalent Yield Maturities Year One",
        "documentation": "Held To Maturity Tax Equivalent Yield Maturities Year One"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_HeldToMaturityWeightedAverageYieldMaturities": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "HeldToMaturityWeightedAverageYieldMaturities",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Held To Maturity Weighted average yield ,Total",
        "label": "Held To Maturity Weighted Average Yield Maturities",
        "documentation": "Held To Maturity Weighted Average Yield Maturities"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_HeldToMaturityWeightedAverageYieldMaturitiesAfter10Years": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "HeldToMaturityWeightedAverageYieldMaturitiesAfter10Years",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Held To Maturity Weighted average yield After ten years",
        "label": "Held To Maturity Weighted Average Yield Maturities After10 Years",
        "documentation": "Held To Maturity Weighted Average Yield Maturities After 10 Years"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_HeldToMaturityWeightedAverageYieldMaturitiesAfter1Through5Years": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "HeldToMaturityWeightedAverageYieldMaturitiesAfter1Through5Years",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Held To Maturity Weighted average yield, After 1 through 5 years",
        "label": "Held To Maturity Weighted Average Yield Maturities After1 Through5 Years",
        "documentation": "Held To Maturity Weighted Average Yield Maturities After 1 Through 5 Years"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_HeldToMaturityWeightedAverageYieldMaturitiesAfter5Through10Years": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "HeldToMaturityWeightedAverageYieldMaturitiesAfter5Through10Years",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Held To Maturity Weighted average yield After 5 through 10 years",
        "label": "Held To Maturity Weighted Average Yield Maturities After5 Through10 Years",
        "documentation": "Held To Maturity Weighted Average Yield Maturities After 5 Through 10 Years"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_HeldToMaturityWeightedAverageYieldMaturitiesYearOne": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "HeldToMaturityWeightedAverageYieldMaturitiesYearOne",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Held To Maturity Weighted average yield, One year or less",
        "label": "Held To Maturity Weighted Average Yield Maturities Year One",
        "documentation": "Held To Maturity Weighted Average Yield Maturities Year One"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_HotelsAndMotelsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "HotelsAndMotelsMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfGrossCommercialRealEstateLoansByPropertyTypeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Hotels and Motels",
        "label": "Hotels and Motels [Member]",
        "documentation": "Hotels and motels."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Income before income taxes",
        "label": "Income (Loss) from Continuing Operations before Income Taxes, Noncontrolling Interest",
        "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."
       }
      }
     },
     "auth_ref": [
      "r95",
      "r149",
      "r161",
      "r678",
      "r701",
      "r828",
      "r829",
      "r1017",
      "r1018",
      "r1019",
      "r1020",
      "r1021"
     ]
    },
    "us-gaap_IncomeStatementAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncomeStatementAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Statement [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncomeTaxExpenseBenefit",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Income Tax Expense (Benefit), Total",
        "negatedLabel": "Tax effect",
        "terseLabel": "Income taxes",
        "label": "Income Tax Expense (Benefit)",
        "documentation": "Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations."
       }
      }
     },
     "auth_ref": [
      "r196",
      "r197",
      "r274",
      "r275",
      "r294",
      "r298",
      "r301",
      "r497",
      "r498",
      "r507",
      "r709",
      "r857"
     ]
    },
    "us-gaap_IncomeTaxesPaidNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncomeTaxesPaidNet",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Income taxes",
        "label": "Income Taxes Paid, Net",
        "totalLabel": "Income Taxes Paid, Net, Total",
        "documentation": "Amount, after refund, of cash paid to foreign, federal, state, and local jurisdictions as income tax."
       }
      }
     },
     "auth_ref": [
      "r36",
      "r251",
      "r499",
      "r500"
     ]
    },
    "us-gaap_IncreaseDecreaseInAccountsAndNotesReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncreaseDecreaseInAccountsAndNotesReceivable",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase (decrease) in accounts and notes receivable",
        "label": "Increase (Decrease) in Accounts and Notes Receivable",
        "verboseLabel": "Increase in accounts and notes receivable",
        "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."
       }
      }
     },
     "auth_ref": [
      "r14"
     ]
    },
    "us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncreaseDecreaseInAccruedInterestReceivableNet",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Increase in accrued interest receivable",
        "label": "Increase (Decrease) in Accrued Interest Receivable, Net",
        "documentation": "The increase (decrease) during the reporting period in the amount due from borrowers for interest payments."
       }
      }
     },
     "auth_ref": [
      "r14"
     ]
    },
    "us-gaap_IncreaseDecreaseInDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncreaseDecreaseInDeposits",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net decrease in deposits",
        "totalLabel": "Increase (Decrease) in Deposits, Total",
        "label": "Increase (Decrease) in Deposits",
        "documentation": "The net cash inflow or outflow for the increase (decrease) in the beginning and end of period deposits balances."
       }
      }
     },
     "auth_ref": [
      "r35",
      "r158"
     ]
    },
    "us-gaap_IncreaseDecreaseInInterestPayableNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncreaseDecreaseInInterestPayableNet",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase in accrued interest payable",
        "label": "Increase (Decrease) in Interest Payable, Net",
        "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."
       }
      }
     },
     "auth_ref": [
      "r14"
     ]
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncreaseDecreaseInOtherOperatingAssets",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Increase (Decrease) in Other Operating Assets, Total",
        "label": "Increase (Decrease) in Other Operating Assets",
        "negatedLabel": "Decrease in other assets",
        "documentation": "Amount of increase (decrease) in operating assets classified as other."
       }
      }
     },
     "auth_ref": [
      "r14"
     ]
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncreaseDecreaseInOtherOperatingLiabilities",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Increase (Decrease) in Other Operating Liabilities, Total",
        "label": "Increase (Decrease) in Other Operating Liabilities",
        "terseLabel": "Decrease in other liabilities",
        "documentation": "Amount of increase (decrease) in operating liabilities classified as other."
       }
      }
     },
     "auth_ref": [
      "r14"
     ]
    },
    "fmbh_IncreaseDecreaseInRepurchaseAgreements": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "IncreaseDecreaseInRepurchaseAgreements",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Decrease in repurchase agreements",
        "label": "Increase Decrease in Repurchase Agreements",
        "documentation": "Increased decrease in repurchase agreements.",
        "negatedLabel": "Decrease in repurchase agreements"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_IncrementalCommonSharesAttributableToShareBasedPaymentArrangementsRestrictedStockAwards": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "IncrementalCommonSharesAttributableToShareBasedPaymentArrangementsRestrictedStockAwards",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dilutive potential common shares: restricted stock awarded",
        "label": "Incremental Common Shares Attributable To Share Based Payment Arrangements Restricted Stock Awards",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IndefiniteLivedContractualRights": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IndefiniteLivedContractualRights",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Indefinite-lived contractual rights",
        "label": "Indefinite-Lived Contractual Rights",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r996",
      "r1068"
     ]
    },
    "ecd_IndividualAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "IndividualAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure",
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure",
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements",
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Individual [Axis]",
        "terseLabel": "Individual:"
       }
      }
     },
     "auth_ref": [
      "r906",
      "r916",
      "r926",
      "r950",
      "r958",
      "r962",
      "r970"
     ]
    },
    "fmbh_IndustrialAndWarehouseMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "IndustrialAndWarehouseMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfGrossCommercialRealEstateLoansByPropertyTypeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Industrial and Warehouse",
        "label": "Industrial and Warehouse [Member]",
        "documentation": "Industrial and warehouse."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InitialRecognitionOfOperatingLeaseLiaibility": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "InitialRecognitionOfOperatingLeaseLiaibility",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Initial recognition of lease liabilities",
        "label": "Initial Recognition Of Operating Lease Liaibility",
        "documentation": "Initial Recognition Of Operating Lease Liaibility"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_InsiderTradingArrLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "InsiderTradingArrLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Arrangements [Line Items]",
        "terseLabel": "Insider Trading Arrangements:"
       }
      }
     },
     "auth_ref": [
      "r968"
     ]
    },
    "ecd_InsiderTradingPoliciesProcLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "InsiderTradingPoliciesProcLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Policies and Procedures [Line Items]",
        "terseLabel": "Insider Trading Policies and Procedures:"
       }
      }
     },
     "auth_ref": [
      "r898",
      "r974"
     ]
    },
    "ecd_InsiderTrdPoliciesProcAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "InsiderTrdPoliciesProcAdoptedFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Policies and Procedures Adopted [Flag]",
        "terseLabel": "Insider Trading Policies and Procedures Adopted"
       }
      }
     },
     "auth_ref": [
      "r898",
      "r974"
     ]
    },
    "ecd_InsiderTrdPoliciesProcNotAdoptedTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "InsiderTrdPoliciesProcNotAdoptedTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Policies and Procedures Not Adopted [Text Block]",
        "terseLabel": "Insider Trading Policies and Procedures Not Adopted"
       }
      }
     },
     "auth_ref": [
      "r898",
      "r974"
     ]
    },
    "us-gaap_InsuranceCommissionsAndFees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InsuranceCommissionsAndFees",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Insurance commissions",
        "label": "Insurance Commissions and Fees",
        "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."
       }
      }
     },
     "auth_ref": [
      "r143",
      "r144"
     ]
    },
    "us-gaap_InsuranceContractAcquisitionCostPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InsuranceContractAcquisitionCostPolicyTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bank Owned Life Insurance",
        "label": "Insurance Contract, Acquisition Cost [Policy Text Block]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r195",
      "r689",
      "r710",
      "r711",
      "r712"
     ]
    },
    "fmbh_IntangibleAssetsMortgageServicingRightsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "IntangibleAssetsMortgageServicingRightsTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Intangible Assets Mortgage Servicing Rights",
        "label": "Intangible Assets Mortgage Servicing Rights Table [Text Block]",
        "documentation": "[Table Text Block] for Intangible Assets, Mortgage Servicing Rights [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IntangibleAssetsNetExcludingGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IntangibleAssetsNetExcludingGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Intangible Assets, Net (Excluding Goodwill), Total",
        "terseLabel": "Intangible assets, net",
        "label": "Intangible Assets, Net (Excluding Goodwill)",
        "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."
       }
      }
     },
     "auth_ref": [
      "r404",
      "r1066",
      "r1068"
     ]
    },
    "fmbh_IntangiblesFromBranchAcquisitionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "IntangiblesFromBranchAcquisitionMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Intangibles from Branch Acquisition",
        "label": "Intangibles From Branch Acquisition [Member]",
        "documentation": "The aggregate amount assigned to a major class of finite-lived intangible assets acquired either individually or as part of a group of assets (in either an asset acquisition or business combination)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestAndDividendIncomeOperating": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestAndDividendIncomeOperating",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total interest income",
        "label": "Interest and Dividend Income, Operating",
        "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."
       }
      }
     },
     "auth_ref": [
      "r141",
      "r150",
      "r152",
      "r153",
      "r154",
      "r1139"
     ]
    },
    "us-gaap_InterestAndDividendIncomeOperatingAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestAndDividendIncomeOperatingAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest income:",
        "label": "Interest and Dividend Income, Operating [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestAndDividendIncomeSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestAndDividendIncomeSecurities",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Interest and Dividend Income, Securities, Operating, Total",
        "terseLabel": "Interest on investment securities",
        "label": "Interest and Dividend Income, Securities, Operating",
        "documentation": "Amount of operating dividend and interest income, including amortization and accretion of premiums and discounts, on securities."
       }
      }
     },
     "auth_ref": [
      "r1133",
      "r1138"
     ]
    },
    "us-gaap_InterestAndFeeIncomeLoansAndLeases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestAndFeeIncomeLoansAndLeases",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Interest and Fee Income, Loans and Leases, Total",
        "terseLabel": "Interest and fees on loans",
        "label": "Interest and Fee Income, Loans and Leases",
        "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."
       }
      }
     },
     "auth_ref": [
      "r141"
     ]
    },
    "us-gaap_InterestBearingDepositLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestBearingDepositLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Interest-Bearing Deposit Liabilities, Total",
        "terseLabel": "Interest bearing",
        "label": "Interest-Bearing Deposit Liabilities",
        "documentation": "The aggregate of all domestic and foreign interest-bearing deposit liabilities."
       }
      }
     },
     "auth_ref": [
      "r131"
     ]
    },
    "us-gaap_InterestBearingDepositsInBanks": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestBearingDepositsInBanks",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest bearing",
        "label": "Interest-Bearing Deposits in Banks and Other Financial Institutions",
        "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."
       }
      }
     },
     "auth_ref": [
      "r70",
      "r138"
     ]
    },
    "us-gaap_InterestExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total interest expense",
        "label": "Interest Expense, Operating and Nonoperating",
        "documentation": "Amount of interest expense classified as operating and nonoperating. Includes, but is not limited to, cost of borrowing accounted for as interest expense."
       }
      }
     },
     "auth_ref": [
      "r294",
      "r296",
      "r297",
      "r299",
      "r301",
      "r603",
      "r829",
      "r830"
     ]
    },
    "us-gaap_InterestExpenseAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestExpenseAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest expense:",
        "label": "Interest Expense, Operating and Nonoperating [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestExpenseDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestExpenseDeposits",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Interest Expense, Deposits, Total",
        "terseLabel": "Interest on deposits",
        "label": "Interest Expense, Deposits",
        "documentation": "Aggregate amount of interest expense on all deposits."
       }
      }
     },
     "auth_ref": [
      "r155"
     ]
    },
    "fmbh_InterestExpenseFederalHomeLoanBankAdvancesShortAndLongTerm": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "InterestExpenseFederalHomeLoanBankAdvancesShortAndLongTerm",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest on FHLB borrowings",
        "label": "Interest Expense Federal Home Loan Bank Advances Short And Long Term",
        "documentation": "Interest expense incurred during the reporting period on short-term and long-term borrowings associated with Federal Home Loan Bank advances."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestExpenseJuniorSubordinatedDebentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestExpenseJuniorSubordinatedDebentures",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest on junior subordinated debentures",
        "label": "Interest Expense, Junior Subordinated Debentures",
        "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."
       }
      }
     },
     "auth_ref": [
      "r157"
     ]
    },
    "fmbh_InterestExpenseOtherShortTermBorrowingsNetOfIntercompanyAdjustments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "InterestExpenseOtherShortTermBorrowingsNetOfIntercompanyAdjustments",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest on other borrowings",
        "label": "Interest Expense Other Short Term Borrowings Net Of Intercompany Adjustments",
        "documentation": "Interest expense other short term borrowings net of intercompany adjustments."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestExpenseSecuritiesSoldUnderAgreementsToRepurchase": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestExpenseSecuritiesSoldUnderAgreementsToRepurchase",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest on securities sold under agreements to repurchase",
        "label": "Interest Expense, Securities Sold under Agreements to Repurchase",
        "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."
       }
      }
     },
     "auth_ref": [
      "r156",
      "r198",
      "r199"
     ]
    },
    "us-gaap_InterestExpenseSubordinatedNotesAndDebentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestExpenseSubordinatedNotesAndDebentures",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest on subordinated debentures",
        "label": "Interest Expense, Subordinated Notes and Debentures",
        "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."
       }
      }
     },
     "auth_ref": [
      "r157"
     ]
    },
    "us-gaap_InterestIncomeAndFeesBankersAcceptancesCertificatesOfDepositAndCommercialPaper": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestIncomeAndFeesBankersAcceptancesCertificatesOfDepositAndCommercialPaper",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest on certificates of deposit investments",
        "label": "Interest Income and Fees, Bankers Acceptances, Certificates of Deposit and Commercial Paper",
        "documentation": "Interest and fee income derived from banker's acceptances, certificates of deposit and commercial paper."
       }
      }
     },
     "auth_ref": [
      "r153"
     ]
    },
    "us-gaap_InterestIncomeDepositsWithFinancialInstitutions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestIncomeDepositsWithFinancialInstitutions",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Interest Income, Deposits with Financial Institutions, Total",
        "terseLabel": "Interest on deposits with other financial institutions",
        "label": "Interest Income, Deposits with Financial Institutions",
        "documentation": "Interest income derived from funds deposited with both domestic and foreign financial institutions including funds in money market and other accounts."
       }
      }
     },
     "auth_ref": [
      "r153",
      "r198",
      "r199"
     ]
    },
    "us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestIncomeExpenseAfterProvisionForLoanLoss",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net interest income after provision for credit losses",
        "label": "Interest Income (Expense), after Provision for Loan Loss",
        "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."
       }
      }
     },
     "auth_ref": [
      "r142"
     ]
    },
    "us-gaap_InterestIncomeExpenseNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestIncomeExpenseNet",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net interest income",
        "label": "Interest Income (Expense), Operating",
        "documentation": "Amount of interest income (expense) classified as operating."
       }
      }
     },
     "auth_ref": [
      "r673",
      "r1018"
     ]
    },
    "us-gaap_InterestIncomeFederalFundsSold": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestIncomeFederalFundsSold",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest on federal funds sold",
        "label": "Interest Income, Federal Funds Sold",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r153",
      "r198",
      "r199"
     ]
    },
    "us-gaap_InterestPaidNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestPaidNet",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest",
        "label": "Interest Paid, Excluding Capitalized Interest, Operating Activities",
        "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."
       }
      }
     },
     "auth_ref": [
      "r246",
      "r249",
      "r250"
     ]
    },
    "us-gaap_InterestPayableCurrentAndNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestPayableCurrentAndNoncurrent",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest payable",
        "label": "Interest Payable",
        "documentation": "Amount of interest payable on debt, including, but not limited to, trade payables."
       }
      }
     },
     "auth_ref": [
      "r135",
      "r1123"
     ]
    },
    "fmbh_InterestPayableFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "InterestPayableFairValueDisclosure",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest payable",
        "label": "Interest Payable Fair Value Disclosure",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestRateDerivativeAssetsAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestRateDerivativeAssetsAtFairValue",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Derivative assets: interest rate swaps",
        "terseLabel": "Derivative assets, Interest rate swaps",
        "label": "Interest Rate Derivative Assets, at Fair Value",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestRateDerivativeLiabilitiesAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestRateDerivativeLiabilitiesAtFairValue",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Derivative liabilities: interest swaps",
        "terseLabel": "Derivative liabilities, Interest rate swaps",
        "label": "Interest Rate Derivative Liabilities, at Fair Value",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateFourPointEightOneMaturingOnNovemberTenTwoThousandTwentyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "InterestRateFourPointEightOneMaturingOnNovemberTenTwoThousandTwentyThreeMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Rate 4.81% - Maturity Date November 10, 2023",
        "label": "Interest Rate Four Point Eight One Maturing On November Ten Two Thousand Twenty Three Member",
        "documentation": "interest rate four point eight one maturing on november ten two thousand twenty three member"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateFourPointFiveNineMaturingOnNovemberEightTwoThousandTwentyFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "InterestRateFourPointFiveNineMaturingOnNovemberEightTwoThousandTwentyFourMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Rate 4.59% - Maturity Date November 8, 2024",
        "label": "Interest Rate Four Point Five Nine Maturing On November Eight Two Thousand Twenty Four Member",
        "documentation": "interest rate four point five nine maturing on november eight two thousand twenty four member."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateFourPointFourZeroMaturingOnJuneFifteenTwoThousandTwentySixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "InterestRateFourPointFourZeroMaturingOnJuneFifteenTwoThousandTwentySixMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate four point four zero maturing on june fifteen two thousand twenty six.",
        "label": "Interest Rate Four Point Four Zero Maturing On June Fifteen Two Thousand Twenty Six [Member]",
        "terseLabel": "Interest Rate 4.40% - Maturity Date June 15, 2026"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateFourPointSixNineMaturingOnMayTenTwoThousandTwentyFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "InterestRateFourPointSixNineMaturingOnMayTenTwoThousandTwentyFourMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Rate 4.69% - Maturity Date May 10, 2024",
        "label": "Interest Rate Four Point Six Nine Maturing On May Ten Two Thousand Twenty Four Member",
        "documentation": "interest rate four point six nine maturing on may ten two thousand twenty four member."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateFourPointThreeSevenMaturingOnMayTenTwoThousandTwentySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "InterestRateFourPointThreeSevenMaturingOnMayTenTwoThousandTwentySevenMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Rate 4.37% - Maturity Date May 10, 2027",
        "label": "Interest Rate Four Point Three Seven Maturing On May Ten Two Thousand Twenty Seven [Member]",
        "documentation": "Interest rate four point three seven maturing on may ten two thousand twenty seven."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateFourPointThreeTwoMaturingOnMaySeventeenTwoThousandTwentySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "InterestRateFourPointThreeTwoMaturingOnMaySeventeenTwoThousandTwentySevenMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Rate 4.32% - Maturity Date May 17, 2027",
        "label": "Interest Rate Four Point Three Two Maturing On May Seventeen Two Thousand Twenty Seven [Member]",
        "documentation": "Interest rate four point three two maturing on may seventeen two thousand twenty seven."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateOnePointFourFiveMaturingOnDecemberThirtyOneTwoThousandTwentyFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "InterestRateOnePointFourFiveMaturingOnDecemberThirtyOneTwoThousandTwentyFourMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Rate 1.45% - Maturity Date December 31, 2024",
        "label": "Interest Rate One Point Four Five Maturing On December Thirty One Two Thousand Twenty Four [Member]",
        "documentation": "Interest rate one point four five maturing on December thirty one two thousand twenty four."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateOnePointOneFiveMaturingOnOctoberThreeTwoThousandTwentyNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "InterestRateOnePointOneFiveMaturingOnOctoberThreeTwoThousandTwentyNineMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Rate 1.15% - Maturity Date October 3, 2029",
        "label": "Interest Rate One Point One Five Maturing On October Three Two Thousand Twenty Nine [Member]",
        "documentation": "Interest rate one point one five maturing on October three two thousand twenty nine."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateOnePointOneTwoMaturingOnOctoberThreeTwoThousandTwentyNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "InterestRateOnePointOneTwoMaturingOnOctoberThreeTwoThousandTwentyNineMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Rate 1.12% - Maturity Date October 3, 2029",
        "label": "Interest Rate One Point One Two Maturing On October Three Two Thousand Twenty Nine [Member]",
        "documentation": "Interest rate one point one two maturing on October three two thousand twenty nine."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateOnePointThreeNineMaturingOnDecemberThirtyOneTwoThousandTwentyNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "InterestRateOnePointThreeNineMaturingOnDecemberThirtyOneTwoThousandTwentyNineMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Rate 1.39% - Maturity Date December 31, 2029",
        "label": "Interest Rate One Point Three Nine Maturing On December Thirty One Two Thousand Twenty Nine [Member]",
        "documentation": "Interest rate one point three nine maturing on December thirty one two thousand twenty nine."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestRateSwapMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestRateSwapMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Rate Swap Agreements",
        "label": "Interest Rate Swap [Member]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r821",
      "r887",
      "r888"
     ]
    },
    "fmbh_InterestRateThreePointEightTwoMaturingOnJuneTwentyNineTwoThousandTwentyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "InterestRateThreePointEightTwoMaturingOnJuneTwentyNineTwoThousandTwentyEightMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate three point eight two maturing on june twenty nine two thousand twenty eight.",
        "label": "Interest Rate Three Point Eight Two Maturing On June Twenty Nine Two Thousand Twenty Eight [Member]",
        "terseLabel": "Interest Rate 3.82% - Maturity Date June 29, 2028"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateThreePointFourNineMaturingOnDecemberEightTwoThousandTwentySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "InterestRateThreePointFourNineMaturingOnDecemberEightTwoThousandTwentySevenMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Rate 3.49% - Maturity Date December 8, 2027",
        "label": "Interest Rate Three Point Four Nine Maturing On December Eight Two Thousand Twenty Seven Member",
        "documentation": "interest rate three point four nine maturing on december eight two thousand twenty seven member."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateThreePointFourSevenMaturingOnMarchThirteenTwoThousandTwentyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "InterestRateThreePointFourSevenMaturingOnMarchThirteenTwoThousandTwentyEightMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Rate 3.47% - Maturity Date March 13, 2028",
        "label": "Interest Rate Three Point Four Seven Maturing on March Thirteen Two Thousand Twenty Eight [Member]",
        "documentation": "Interest rate three point four seven maturing on March thirteen two thousand twenty eight."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateThreePointNineFiveMaturingOnJuneTwentyNineTwoThousandTwentyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "InterestRateThreePointNineFiveMaturingOnJuneTwentyNineTwoThousandTwentyEightMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate three point eight two maturing on june twenty nine two thousand twenty eight.",
        "label": "Interest Rate Three Point Nine Five Maturing On June Twenty Nine Two Thousand Twenty Eight [Member]",
        "terseLabel": "Interest Rate 3.95% - Maturity Date June 29, 2028"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateThreePointNineThreeMaturingOnJuneTwentySevenTwoThousandTwentyNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "InterestRateThreePointNineThreeMaturingOnJuneTwentySevenTwoThousandTwentyNineMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Rate 3.93% - Maturity Date June 27, 2029",
        "label": "Interest Rate Three Point Nine Three Maturing On June Twenty Seven Two Thousand Twenty Nine [Member]",
        "documentation": "Interest rate three point nine three maturing on june twenty seven two thousand twenty nine."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateThreePointSevenOneMaturingOnJuneTwentyNineTwoThousandTwentyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "InterestRateThreePointSevenOneMaturingOnJuneTwentyNineTwoThousandTwentyEightMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate three point seven one maturing on june twenty nine two thousand twenty eight.",
        "label": "Interest Rate Three Point Seven One Maturing On June Twenty Nine Two Thousand Twenty Eight [Member]",
        "terseLabel": "Interest Rate 3.71% - Maturity Date June 29, 2028"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateThreePointSixSevenMaturingOnJuneFifteenTwoThousandTwentyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "InterestRateThreePointSixSevenMaturingOnJuneFifteenTwoThousandTwentyEightMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate three point six seven maturing on june fifteen two thousand twenty eight.",
        "label": "Interest Rate Three Point Six Seven Maturing On June Fifteen Two Thousand Twenty Eight [Member]",
        "terseLabel": "Interest Rate 3.67% - Maturity Date June 15, 2028"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateThreePointTwoEightMaturingOnDecemberEightTwoThousandTwentySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "InterestRateThreePointTwoEightMaturingOnDecemberEightTwoThousandTwentySevenMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Rate 3.28% - Maturity Date December 8, 2027",
        "label": "Interest Rate Three Point Two Eight Maturing On December Eight Two Thousand Twenty Seven Member",
        "documentation": "interest rate three point two eight maturing on december eight two thousand twenty seven member."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateTwoPointSixFourMaturingOnDecemberTwentyThreeTwoThousandTwentyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "InterestRateTwoPointSixFourMaturingOnDecemberTwentyThreeTwoThousandTwentyFiveMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Rate 2.64% - Maturity Date December 23, 2025",
        "label": "Interest Rate Two Point Six Four Maturing On December Twenty Three Two Thousand Twenty Five [Member]",
        "documentation": "Interest rate two point six four maturing on December twenty three two thousand twenty five."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateZeroPointNineOneMaturingOnMarchTenTwoThousandTwentyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "InterestRateZeroPointNineOneMaturingOnMarchTenTwoThousandTwentyFiveMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Rate 0.91% - Maturity Date March 10, 2025",
        "label": "Interest Rate Zero Point Nine One Maturing On March Ten Two Thousand Twenty Five [Member]",
        "documentation": "Interest rate zero point nine one maturing on March ten two thousand twenty five."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestReceivable",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest receivable",
        "label": "Interest Receivable",
        "documentation": "Carrying amount as of the balance sheet date of interest earned but not received. Also called accrued interest or accrued interest receivable."
       }
      }
     },
     "auth_ref": [
      "r997",
      "r1137"
     ]
    },
    "fmbh_InterestReceivableFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "InterestReceivableFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest receivable",
        "label": "Interest Receivable Fair Value Disclosure",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InternalCreditAssessmentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InternalCreditAssessmentAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Internal Credit Assessment",
        "label": "Internal Credit Assessment [Axis]",
        "documentation": "Information by entity-defined rating."
       }
      }
     },
     "auth_ref": [
      "r173",
      "r174",
      "r175",
      "r541",
      "r838",
      "r839",
      "r1053"
     ]
    },
    "us-gaap_InternalCreditAssessmentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InternalCreditAssessmentDomain",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Internal Credit Assessment",
        "label": "Internal Credit Assessment [Domain]",
        "documentation": "Entity defined credit risk rating."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentInFederalHomeLoanBankStockFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentInFederalHomeLoanBankStockFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Federal Home Loan Bank stock",
        "label": "Investment in Federal Home Loan Bank Stock, Fair Value Disclosure",
        "documentation": "Fair value portion of investments in Federal Home Loan Bank (FHLBank) stock."
       }
      }
     },
     "auth_ref": [
      "r1088"
     ]
    },
    "fmbh_InvestmentInFederalReserveBankStockFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "InvestmentInFederalReserveBankStockFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Federal Reserve Bank stock",
        "label": "Investment In Federal Reserve Bank Stock Fair Value Disclosure",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentsClassifiedByContractualMaturityDateTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investments Classified by Contractual Maturity Date",
        "label": "Investments Classified by Contractual Maturity Date [Table Text Block]",
        "documentation": "Tabular disclosure of maturities of an entity's investments as well as any other information pertinent to the investments."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentsDebtAndEquitySecuritiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentsDebtAndEquitySecuritiesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments, Debt and Equity Securities [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecurities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment Securities",
        "label": "Investments in Debt and Marketable Equity Securities (and Certain Trading Assets) Disclosure [Text Block]",
        "documentation": "The entire disclosure for investments in certain debt and equity securities."
       }
      }
     },
     "auth_ref": [
      "r159",
      "r200",
      "r313",
      "r316",
      "r589",
      "r590",
      "r1118"
     ]
    },
    "us-gaap_JuniorSubordinatedDebentureOwedToUnconsolidatedSubsidiaryTrust": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "JuniorSubordinatedDebentureOwedToUnconsolidatedSubsidiaryTrust",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Junior Subordinated Debenture Owed to Unconsolidated Subsidiary Trust, Total",
        "terseLabel": "Junior subordinated debentures, net",
        "label": "Junior Subordinated Debenture Owed to Unconsolidated Subsidiary Trust",
        "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."
       }
      }
     },
     "auth_ref": [
      "r137",
      "r1124"
     ]
    },
    "us-gaap_JuniorSubordinatedDebtMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "JuniorSubordinatedDebtMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Junior Subordinated Debentures",
        "label": "Junior Subordinated Debt [Member]",
        "documentation": "Borrowing that has a lower priority than senior instruments in event of liquidation of the entity's assets."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_LINCOBancsharesIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "LINCOBancsharesIncMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "LINCO Bancshares, Inc.",
        "label": "L I N C O Bancshares Inc [Member]",
        "documentation": "LINCO Bancshares, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LaborAndRelatedExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LaborAndRelatedExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Salaries and employee benefits",
        "label": "Labor and Related Expense",
        "documentation": "Amount of expense for salary, wage, profit sharing; incentive and equity-based compensation; and other employee benefit."
       }
      }
     },
     "auth_ref": [
      "r1001"
     ]
    },
    "us-gaap_LeaseCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LeaseCost",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net lease cost",
        "label": "Lease, Cost",
        "documentation": "Amount of lease cost recognized by lessee for lease contract."
       }
      }
     },
     "auth_ref": [
      "r614",
      "r872"
     ]
    },
    "us-gaap_LeaseCostAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LeaseCostAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Lease, Cost [Abstract]",
        "label": "Lease, Cost [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LeasesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LeasesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Leases [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LeasesOperatingAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LeasesOperatingAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfSupplementalBalanceSheetInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Leases, Operating [Abstract]",
        "label": "Leases, Operating [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LesseeLeaseDescriptionLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LesseeLeaseDescriptionLineItems",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Lessee Lease Description [Line Items]",
        "label": "Lessee, Lease, Description [Line Items]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r613",
      "r624"
     ]
    },
    "us-gaap_LesseeLeaseDescriptionTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LesseeLeaseDescriptionTable",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Lessee Lease Description [Table]",
        "label": "Lessee, Lease, Description [Table]",
        "documentation": "Disclosure of information about lessee's leases."
       }
      }
     },
     "auth_ref": [
      "r613",
      "r624"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Maturities of Lease Liabilities",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Maturity [Table Text Block]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r1108"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDue",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total lease payments",
        "label": "Lessee, Operating Lease, Liability, to be Paid",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease."
       }
      }
     },
     "auth_ref": [
      "r622"
     ]
    },
    "fmbh_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFour": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFour",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Thereafter",
        "label": "Lessee Operating Lease Liability Payments Due After Year Four",
        "documentation": "Lessee operating lease liability payments due after year four."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year One",
        "terseLabel": "2025",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r622"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearFour",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Four",
        "terseLabel": "2028",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r622"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearThree",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Three",
        "terseLabel": "2027",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r622"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearTwo",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Two",
        "terseLabel": "2026",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r622"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Liability, to be Paid, Remainder of Fiscal Year",
        "terseLabel": "2024",
        "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."
       }
      }
     },
     "auth_ref": [
      "r1108"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LesseeOperatingLeaseLiabilityUndiscountedExcessAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Less imputed interest",
        "label": "Lessee, Operating Lease, Liability, Undiscounted Excess Amount",
        "documentation": "Amount of lessee's undiscounted obligation for lease payments in excess of discounted obligation for lease payments for operating lease."
       }
      }
     },
     "auth_ref": [
      "r622"
     ]
    },
    "us-gaap_LesseeOperatingLeaseRenewalTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LesseeOperatingLeaseRenewalTerm",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Renewal term",
        "label": "Lessee, Operating Lease, Renewal Term",
        "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."
       }
      }
     },
     "auth_ref": [
      "r1107"
     ]
    },
    "us-gaap_LesseeOperatingLeasesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LesseeOperatingLeasesTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeases"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Leases",
        "label": "Lessee, Operating Leases [Text Block]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r608"
     ]
    },
    "us-gaap_Liabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "Liabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total liabilities",
        "label": "Liabilities",
        "documentation": "Amount of liability recognized for present obligation requiring transfer or otherwise providing economic benefit to others."
       }
      }
     },
     "auth_ref": [
      "r25",
      "r75",
      "r76",
      "r77",
      "r78",
      "r79",
      "r80",
      "r81",
      "r253",
      "r349",
      "r424",
      "r425",
      "r426",
      "r427",
      "r428",
      "r429",
      "r430",
      "r431",
      "r432",
      "r532",
      "r535",
      "r536",
      "r596",
      "r744",
      "r827",
      "r892",
      "r1077",
      "r1109",
      "r1110"
     ]
    },
    "us-gaap_LiabilitiesAndStockholdersEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LiabilitiesAndStockholdersEquity",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total liabilities and stockholders\u2019 equity",
        "label": "Liabilities and Equity",
        "documentation": "Amount of liabilities and equity items, including the portion of equity attributable to noncontrolling interests, if any."
       }
      }
     },
     "auth_ref": [
      "r89",
      "r139",
      "r699",
      "r873",
      "r1011",
      "r1047",
      "r1104"
     ]
    },
    "us-gaap_LiabilitiesAndStockholdersEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LiabilitiesAndStockholdersEquityAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Liabilities and stockholders\u2019 equity",
        "label": "Liabilities and Equity [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LifeInsuranceCorporateOrBankOwnedChangeInValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LifeInsuranceCorporateOrBankOwnedChangeInValue",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Change in cash surrender value of bank owned life insurance",
        "label": "Life Insurance, Corporate or Bank Owned, Change in Value",
        "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."
       }
      }
     },
     "auth_ref": [
      "r1048"
     ]
    },
    "fmbh_LoanReceivableTimePeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "LoanReceivableTimePeriod",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loans receivable, time period",
        "label": "Loan Receivable Time Period",
        "documentation": "Specifies the time period covered by the loan receivable."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LoanRestructuringModificationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LoanRestructuringModificationAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loan Restructuring Modification [Axis]",
        "documentation": "Information by concessions made to the terms of loan contracts."
       }
      }
     },
     "auth_ref": [
      "r308",
      "r309",
      "r311",
      "r831"
     ]
    },
    "us-gaap_LoanRestructuringModificationDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LoanRestructuringModificationDomain",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loan Restructuring Modification [Domain]",
        "documentation": "Concessions made to the terms of loan contracts, including but not limited to, interest rate reductions, maturity extensions, principal forgiveness, and payment deferral."
       }
      }
     },
     "auth_ref": [
      "r308",
      "r309",
      "r311",
      "r831"
     ]
    },
    "fmbh_LoanToValueRatio": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "LoanToValueRatio",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maximum loan-to-value ratio (in hundredths)",
        "label": "Loan To Value Ratio",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_LoansAndLeasesReceivableInterestReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "LoansAndLeasesReceivableInterestReceivable",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accrued interest on loans",
        "label": "Loans And Leases Receivable Interest Receivable",
        "documentation": "Loans and leases receivable, interest receivable."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LoansHeldForSaleFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LoansHeldForSaleFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Loans held for sale, fair value",
        "terseLabel": "Loans held for sale",
        "label": "Loan, Held-for-Sale, Fair Value Disclosure",
        "documentation": "Fair value portion of loans held-for-sale including, but not limited to, mortgage loans and finance receivables."
       }
      }
     },
     "auth_ref": [
      "r567",
      "r568",
      "r1090",
      "r1091",
      "r1092"
     ]
    },
    "us-gaap_LoansNotesTradeAndOtherReceivablesDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLosses"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loans and Allowance for Credit Losses",
        "label": "Loans, Notes, Trade and Other Receivables Disclosure [Text Block]",
        "documentation": "The entire disclosure for claims held for amounts due to 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."
       }
      }
     },
     "auth_ref": [
      "r604",
      "r1022"
     ]
    },
    "us-gaap_LoansReceivableFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LoansReceivableFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loans net of allowance for credit losses",
        "label": "Loans Receivable, Fair Value Disclosure",
        "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."
       }
      }
     },
     "auth_ref": [
      "r1103"
     ]
    },
    "us-gaap_LoansReceivableHeldForSaleAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LoansReceivableHeldForSaleAmount",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loans held for sale",
        "label": "Financing Receivable, Held-for-Sale",
        "documentation": "Amount, before valuation allowance, of financing receivable classified as held-for-sale."
       }
      }
     },
     "auth_ref": [
      "r804",
      "r1023"
     ]
    },
    "dei_LocalPhoneNumber": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "LocalPhoneNumber",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Local Phone Number",
        "label": "Local Phone Number",
        "documentation": "Local phone number for entity."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LongTermDebtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LongTermDebtFairValue",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other borrowings",
        "label": "Long-Term Debt, Fair Value",
        "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."
       }
      }
     },
     "auth_ref": [
      "r1088",
      "r1090",
      "r1091",
      "r1092"
     ]
    },
    "us-gaap_LongtermDebtTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LongtermDebtTypeAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long-Term Debt, Type",
        "label": "Long-Term Debt, Type [Axis]",
        "documentation": "Information by type of long-term debt."
       }
      }
     },
     "auth_ref": [
      "r25",
      "r1073",
      "r1074",
      "r1075"
     ]
    },
    "us-gaap_LongtermDebtTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LongtermDebtTypeDomain",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long-Term Debt, Type",
        "label": "Long-Term Debt, Type [Domain]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r25",
      "r41",
      "r1073",
      "r1074",
      "r1075"
     ]
    },
    "fmbh_MSRInterestOnlyStripIncreaseDecrease": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "MSRInterestOnlyStripIncreaseDecrease",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Interest only strip",
        "label": "M S R Interest Only Strip Increase Decrease",
        "documentation": "MSR interest only strip increase decrease."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MarketApproachValuationTechniqueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "MarketApproachValuationTechniqueMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Third Party Valuations",
        "label": "Valuation, Market Approach [Member]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r1090",
      "r1091",
      "r1092"
     ]
    },
    "us-gaap_MarketableSecuritiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "MarketableSecuritiesAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment securities:",
        "label": "Marketable Securities [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MarketingAndAdvertisingExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "MarketingAndAdvertisingExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Marketing and Advertising Expense, Total",
        "terseLabel": "Marketing and donations",
        "label": "Marketing and Advertising Expense",
        "documentation": "The total expense recognized in the period for promotion, public relations, and brand or product advertising."
       }
      }
     },
     "auth_ref": [
      "r98"
     ]
    },
    "srt_MaximumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "MaximumMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Maximum",
        "terseLabel": "Maximum",
        "label": "Maximum [Member]"
       }
      }
     },
     "auth_ref": [
      "r420",
      "r421",
      "r422",
      "r423",
      "r459",
      "r494",
      "r571",
      "r663",
      "r713",
      "r714",
      "r727",
      "r736",
      "r737",
      "r786",
      "r787",
      "r788",
      "r789",
      "r799",
      "r817",
      "r818",
      "r831",
      "r849",
      "r855",
      "r864",
      "r865",
      "r869",
      "r870",
      "r875",
      "r1079",
      "r1111",
      "r1112",
      "r1113",
      "r1114",
      "r1115",
      "r1116"
     ]
    },
    "ecd_MeasureAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "MeasureAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measure [Axis]",
        "terseLabel": "Measure:"
       }
      }
     },
     "auth_ref": [
      "r942"
     ]
    },
    "ecd_MeasureName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "MeasureName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measure Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r942"
     ]
    },
    "fmbh_MedicalOfficeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "MedicalOfficeMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfGrossCommercialRealEstateLoansByPropertyTypeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Medical Office",
        "label": "Medical Office [Member]",
        "documentation": "Medical office."
       }
      }
     },
     "auth_ref": []
    },
    "srt_MinimumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "MinimumMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Minimum",
        "terseLabel": "Minimum",
        "label": "Minimum [Member]"
       }
      }
     },
     "auth_ref": [
      "r420",
      "r421",
      "r422",
      "r423",
      "r459",
      "r494",
      "r571",
      "r663",
      "r713",
      "r714",
      "r727",
      "r736",
      "r737",
      "r786",
      "r787",
      "r788",
      "r789",
      "r799",
      "r817",
      "r818",
      "r831",
      "r849",
      "r855",
      "r864",
      "r865",
      "r869",
      "r875",
      "r1079",
      "r1111",
      "r1112",
      "r1113",
      "r1114",
      "r1115",
      "r1116"
     ]
    },
    "fmbh_MinimumValueOfLoansIndividuallyMeasuredForImpairment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "MinimumValueOfLoansIndividuallyMeasuredForImpairment",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Minimum value of loans individually measured for impairment",
        "label": "Minimum Value Of Loans Individually Measured For Impairment",
        "documentation": "Minimum value of loans individually measured for impairment."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_MnpiDiscTimedForCompValFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "MnpiDiscTimedForCompValFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "MNPI Disclosure Timed for Compensation Value [Flag]",
        "terseLabel": "MNPI Disclosure Timed for Compensation Value"
       }
      }
     },
     "auth_ref": [
      "r961"
     ]
    },
    "srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfGrossCommercialRealEstateLoansByPropertyTypeDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Real Estate, Type of Property",
        "label": "Real Estate, Type of Property [Axis]"
       }
      }
     },
     "auth_ref": [
      "r805",
      "r808",
      "r809",
      "r810",
      "r811",
      "r812",
      "r813",
      "r814",
      "r815",
      "r816"
     ]
    },
    "srt_MortgageLoansOnRealEstateNamePropertyTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "MortgageLoansOnRealEstateNamePropertyTypeDomain",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfGrossCommercialRealEstateLoansByPropertyTypeDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Real Estate",
        "label": "Real Estate [Domain]"
       }
      }
     },
     "auth_ref": [
      "r808",
      "r809",
      "r810",
      "r811",
      "r812",
      "r813",
      "r814",
      "r815",
      "r816"
     ]
    },
    "fmbh_MortgageServicingRightsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "MortgageServicingRightsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Mortgage Servicing Rights [Abstract]",
        "documentation": "Mortgage Servicing Rights [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MortgageServicingRightsMSRImpairmentRecovery": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "MortgageServicingRightsMSRImpairmentRecovery",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Adjustment to valuation reserve",
        "terseLabel": "Mortgage servicing rights (MSR) impairment (recovery)",
        "label": "Mortgage Servicing Rights (MSR) Impairment (Recovery)",
        "negatedLabel": "Adjustment to valuation reserve",
        "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."
       }
      }
     },
     "auth_ref": [
      "r983",
      "r1008"
     ]
    },
    "fmbh_MortgageServicingRightsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "MortgageServicingRightsMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Mortgage servicing rights",
        "terseLabel": "Mortgage Servicing Rights",
        "label": "Mortgage Servicing Rights [Member]",
        "documentation": "Mortgage Servicing Rights [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_MotelsAndHotelsLoansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "MotelsAndHotelsLoansMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Motels and Hotels Loans",
        "label": "Motels And Hotels Loans [Member]",
        "documentation": "Motels and hotels loans."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_MsrmortgageServicingRightsAcquired": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "MsrmortgageServicingRightsAcquired",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MsrMortgage servicing rights acquired.",
        "terseLabel": "Mortgage servicing rights acquired during period",
        "label": "Msrmortgage Servicing Rights Acquired"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_MtrlTermsOfTrdArrTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "MtrlTermsOfTrdArrTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Terms of Trading Arrangement [Text Block]",
        "terseLabel": "Material Terms of Trading Arrangement"
       }
      }
     },
     "auth_ref": [
      "r969"
     ]
    },
    "srt_MultifamilyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "MultifamilyMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Multifamily",
        "label": "Multifamily [Member]"
       }
      }
     },
     "auth_ref": [
      "r1140",
      "r1141"
     ]
    },
    "fmbh_MultifamilyResidentialPropertiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "MultifamilyResidentialPropertiesMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Multifamily Residential Properties",
        "label": "Multifamily Residential Properties [Member]",
        "documentation": "Property that is used to house multifamilies, such as an apartment complex."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_NamedExecutiveOfficersFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "NamedExecutiveOfficersFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Named Executive Officers, Footnote [Text Block]",
        "terseLabel": "Named Executive Officers, Footnote"
       }
      }
     },
     "auth_ref": [
      "r943"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetCashProvidedByUsedInFinancingActivities",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net cash used in financing activities",
        "label": "Net Cash Provided by (Used in) Financing Activities",
        "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."
       }
      }
     },
     "auth_ref": [
      "r248"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetCashProvidedByUsedInFinancingActivitiesAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash flows from financing activities:",
        "label": "Net Cash Provided by (Used in) Financing Activities [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetCashProvidedByUsedInInvestingActivities",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Investing Activities",
        "totalLabel": "Net cash provided by investing activities",
        "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."
       }
      }
     },
     "auth_ref": [
      "r248"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetCashProvidedByUsedInInvestingActivitiesAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash flows from investing activities:",
        "label": "Net Cash Provided by (Used in) Investing Activities [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetCashProvidedByUsedInOperatingActivities",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net cash provided by operating activities",
        "label": "Net Cash Provided by (Used in) Operating Activities",
        "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."
       }
      }
     },
     "auth_ref": [
      "r105",
      "r106",
      "r107"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetCashProvidedByUsedInOperatingActivitiesAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash flows from operating activities:",
        "label": "Net Cash Provided by (Used in) Operating Activities [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_NetCashUsedInProvidedByAcquisition": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "NetCashUsedInProvidedByAcquisition",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net cash used in acquisition",
        "label": "Net Cash used In Provided By Acquisition",
        "documentation": "Net cash used in provided by acquisition."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetIncomeLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetIncomeLoss",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited",
      "http://www.firstmid.com/20240630/taxonomy/role/StatementCondensedConsolidatedStatementsOfComprehensiveIncomeUnaudited",
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Income (Loss)",
        "terseLabel": "Net Income (Loss)",
        "totalLabel": "Net income",
        "verboseLabel": "Net income",
        "documentation": "The portion of profit or loss for the period, net of income taxes, which is attributable to the parent."
       }
      }
     },
     "auth_ref": [
      "r96",
      "r107",
      "r151",
      "r215",
      "r233",
      "r236",
      "r240",
      "r253",
      "r263",
      "r267",
      "r268",
      "r269",
      "r270",
      "r271",
      "r274",
      "r275",
      "r285",
      "r349",
      "r424",
      "r425",
      "r426",
      "r427",
      "r428",
      "r429",
      "r430",
      "r431",
      "r432",
      "r515",
      "r529",
      "r565",
      "r596",
      "r703",
      "r766",
      "r781",
      "r782",
      "r890",
      "r1077"
     ]
    },
    "us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetIncomeLossAvailableToCommonStockholdersDiluted",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net Income (Loss) Available to Common Stockholders, Diluted, Total",
        "terseLabel": "Net income applicable to diluted earnings per share",
        "label": "Net Income (Loss) Available to Common Stockholders, Diluted",
        "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."
       }
      }
     },
     "auth_ref": [
      "r243",
      "r279",
      "r281",
      "r282",
      "r283",
      "r284",
      "r286",
      "r289"
     ]
    },
    "fmbh_NetOtherRealEstateOwnedIncomeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "NetOtherRealEstateOwnedIncomeExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net other real estate owned expense",
        "label": "Net Other Real Estate Owned Income Expense",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NewAccountingPronouncementsPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NewAccountingPronouncementsPolicyPolicyTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "New Accounting Pronouncements",
        "label": "New Accounting Pronouncements, Policy [Policy Text Block]",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_NonGaapMeasureDescriptionTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "NonGaapMeasureDescriptionTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-GAAP Measure Description [Text Block]",
        "terseLabel": "Non-GAAP Measure Description"
       }
      }
     },
     "auth_ref": [
      "r942"
     ]
    },
    "ecd_NonNeosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "NonNeosMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-NEOs [Member]",
        "terseLabel": "Non-NEOs"
       }
      }
     },
     "auth_ref": [
      "r906",
      "r916",
      "r926",
      "r950",
      "r958"
     ]
    },
    "fmbh_NonOwnerOccupiedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "NonOwnerOccupiedMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfGrossCommercialRealEstateLoansByPropertyTypeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non Owner Occupied",
        "label": "Non Owner Occupied [Member]",
        "documentation": "Non Owner Occupied."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_NonPeoNeoAvgCompActuallyPaidAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "NonPeoNeoAvgCompActuallyPaidAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-PEO NEO Average Compensation Actually Paid Amount",
        "terseLabel": "Non-PEO NEO Average Compensation Actually Paid Amount"
       }
      }
     },
     "auth_ref": [
      "r933"
     ]
    },
    "ecd_NonPeoNeoAvgTotalCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "NonPeoNeoAvgTotalCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-PEO NEO Average Total Compensation Amount",
        "terseLabel": "Non-PEO NEO Average Total Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r932"
     ]
    },
    "ecd_NonPeoNeoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "NonPeoNeoMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-PEO NEO [Member]",
        "terseLabel": "Non-PEO NEO"
       }
      }
     },
     "auth_ref": [
      "r950"
     ]
    },
    "fmbh_NonResidentialBuildingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "NonResidentialBuildingsMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-residential Buildings",
        "label": "Non Residential Buildings [Member]",
        "documentation": "Non residential buildings."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_NonRule10b51ArrAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "NonRule10b51ArrAdoptedFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-Rule 10b5-1 Arrangement Adopted [Flag]",
        "terseLabel": "Non-Rule 10b5-1 Arrangement Adopted"
       }
      }
     },
     "auth_ref": [
      "r969"
     ]
    },
    "ecd_NonRule10b51ArrTrmntdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "NonRule10b51ArrTrmntdFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-Rule 10b5-1 Arrangement Terminated [Flag]",
        "terseLabel": "Non-Rule 10b5-1 Arrangement Terminated"
       }
      }
     },
     "auth_ref": [
      "r969"
     ]
    },
    "us-gaap_NondesignatedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NondesignatedMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Not Designated as Hedging Instrument",
        "label": "Not Designated as Hedging Instrument [Member]",
        "documentation": "Derivative instrument not designated as hedging instrument under Generally Accepted Accounting Principles (GAAP)."
       }
      }
     },
     "auth_ref": [
      "r20"
     ]
    },
    "us-gaap_NoninterestBearingDepositLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NoninterestBearingDepositLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Noninterest-Bearing Deposit Liabilities, Total",
        "terseLabel": "Non-interest bearing",
        "label": "Noninterest-Bearing Deposit Liabilities",
        "documentation": "The aggregate amount of all domestic and foreign noninterest-bearing deposits liabilities held by the entity."
       }
      }
     },
     "auth_ref": [
      "r131"
     ]
    },
    "us-gaap_NoninterestExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NoninterestExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total other expense",
        "label": "Noninterest Expense",
        "documentation": "Total aggregate amount of all noninterest expense."
       }
      }
     },
     "auth_ref": [
      "r148"
     ]
    },
    "us-gaap_NoninterestExpenseAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NoninterestExpenseAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other expense:",
        "label": "Noninterest Expense [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NoninterestIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NoninterestIncome",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total other income",
        "label": "Noninterest Income",
        "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."
       }
      }
     },
     "auth_ref": [
      "r145"
     ]
    },
    "us-gaap_NoninterestIncomeAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NoninterestIncomeAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other income:",
        "label": "Noninterest Income [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NoninterestIncomeOtherOperatingIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NoninterestIncomeOtherOperatingIncome",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other",
        "label": "Noninterest Income, Other Operating Income",
        "documentation": "Amount of revenue earned, classified as other, excluding interest income."
       }
      }
     },
     "auth_ref": [
      "r94",
      "r145"
     ]
    },
    "us-gaap_NonrecurringAdjustmentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NonrecurringAdjustmentAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Nonrecurring Adjustment",
        "label": "Nonrecurring Adjustment [Axis]",
        "documentation": "Information by nonrecurring adjustment directly attributable to business combination included in pro forma revenue and earnings."
       }
      }
     },
     "auth_ref": [
      "r21"
     ]
    },
    "us-gaap_NonrecurringAdjustmentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NonrecurringAdjustmentDomain",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Nonrecurring Adjustment",
        "label": "Nonrecurring Adjustment [Domain]",
        "documentation": "Material, nonrecurring adjustment(s) allocated (included) to (in) reported pro forma revenue and earnings (supplemental pro forma information)."
       }
      }
     },
     "auth_ref": [
      "r21"
     ]
    },
    "fmbh_Nonrule10B51Arrmodifiedflag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "Nonrule10B51Arrmodifiedflag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-Rule 10b5-1 Arrangement Modified",
        "label": "NonRule10b51ArrModifiedFlag",
        "documentation": "Non rule 10b51 arr modified flag."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NotesReceivableGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NotesReceivableGross",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gross loans",
        "totalLabel": "Financing Receivable, before Allowance for Credit Loss, Total",
        "verboseLabel": "Total Past Due",
        "terseLabel": "Loans",
        "documentation": "Amortized cost, before allowance for credit loss, of financing receivable. Excludes financing receivable covered under loss sharing agreement and net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r174",
      "r182",
      "r203",
      "r204",
      "r221",
      "r304",
      "r370",
      "r381",
      "r839",
      "r840",
      "r991",
      "r1050"
     ]
    },
    "us-gaap_NotesReceivableNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NotesReceivableNet",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net loans",
        "label": "Financing Receivable, after Allowance for Credit Loss",
        "documentation": "Amortized cost, after allowance for credit loss, of financing receivable. Excludes financing receivable covered under loss sharing agreement and net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r381",
      "r753",
      "r1023",
      "r1126"
     ]
    },
    "fmbh_NumberOfAlternativesForMeasuringImpairedLoansReceivable": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "NumberOfAlternativesForMeasuringImpairedLoansReceivable",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of alternatives for measuring impaired loans receivable",
        "label": "Number Of Alternatives For Measuring Impaired Loans Receivable",
        "documentation": "Number of alternatives for measuring impaired loans receivable."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OccupancyNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OccupancyNet",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net occupancy and equipment expense",
        "label": "Occupancy, Net",
        "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."
       }
      }
     },
     "auth_ref": [
      "r99",
      "r146",
      "r194"
     ]
    },
    "fmbh_OfficeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "OfficeMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfGrossCommercialRealEstateLoansByPropertyTypeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Office",
        "label": "Office [Member]",
        "documentation": "Office."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_OneToFourFamilyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "OneToFourFamilyMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "1-4 Family",
        "label": "One To Four Family [Member]",
        "documentation": "One to four family."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_OperatingLeaseCashFlowTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "OperatingLeaseCashFlowTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Operating Lease Cash Flows",
        "label": "Operating Lease Cash Flow Table [Text Block]",
        "documentation": "Operating lease cash flow table text block."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OperatingLeaseCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OperatingLeaseCost",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Operating lease cost",
        "label": "Operating Lease, Cost",
        "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."
       }
      }
     },
     "auth_ref": [
      "r615",
      "r872"
     ]
    },
    "us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OperatingLeaseLiabilitiesPaymentsDueAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Lessee, Operating Lease, Liability, Payment, Due [Abstract]",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Fiscal Year Maturity [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OperatingLeaseLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OperatingLeaseLiability",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfMaturitiesOfLeaseLiabilitiesDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfSupplementalBalanceSheetInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total lease liability",
        "totalLabel": "Total lease liability",
        "verboseLabel": "Operating lease liabilities",
        "terseLabel": "Lease liabilities",
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease."
       }
      }
     },
     "auth_ref": [
      "r611"
     ]
    },
    "us-gaap_OperatingLeasePayments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OperatingLeasePayments",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfOperatingLeaseCashFlowsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Operating lease payments",
        "terseLabel": "Operating cash flows from operating leases",
        "label": "Operating Lease, Payments",
        "documentation": "Amount of cash outflow from operating lease, excluding payments to bring another asset to condition and location necessary for its intended use."
       }
      }
     },
     "auth_ref": [
      "r612",
      "r618"
     ]
    },
    "us-gaap_OperatingLeaseRightOfUseAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OperatingLeaseRightOfUseAsset",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfSupplementalBalanceSheetInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Operating lease right-of-use assets",
        "terseLabel": "Right of use lease assets",
        "label": "Operating Lease, Right-of-Use Asset",
        "documentation": "Amount of lessee's right to use underlying asset under operating lease."
       }
      }
     },
     "auth_ref": [
      "r610"
     ]
    },
    "us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OperatingLeaseWeightedAverageDiscountRatePercent",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfSupplementalBalanceSheetInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted-average discount rate",
        "label": "Operating Lease, Weighted Average Discount Rate, Percent",
        "documentation": "Weighted average discount rate for operating lease calculated at point in time."
       }
      }
     },
     "auth_ref": [
      "r621",
      "r872"
     ]
    },
    "us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OperatingLeaseWeightedAverageRemainingLeaseTerm1",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfSupplementalBalanceSheetInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted-average remaining lease term (in years)",
        "label": "Operating Lease, Weighted Average Remaining Lease Term",
        "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."
       }
      }
     },
     "auth_ref": [
      "r620",
      "r872"
     ]
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Organization, Consolidation and Presentation of Financial Statements [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Basis of Accounting and Consolidation",
        "label": "Organization, Consolidation and Presentation of Financial Statements Disclosure [Text Block]",
        "documentation": "The entire disclosure for organization, consolidation and basis of presentation of financial statements disclosure."
       }
      }
     },
     "auth_ref": [
      "r74",
      "r118",
      "r728",
      "r729"
     ]
    },
    "us-gaap_OtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Other Assets, Total",
        "terseLabel": "Other assets",
        "label": "Other Assets",
        "documentation": "Amount of assets classified as other."
       }
      }
     },
     "auth_ref": [
      "r129",
      "r218",
      "r693",
      "r830",
      "r892"
     ]
    },
    "us-gaap_OtherAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherAssetsMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Assets",
        "label": "Other Assets [Member]",
        "documentation": "Primary financial statement caption encompassing other assets."
       }
      }
     },
     "auth_ref": [
      "r58",
      "r66"
     ]
    },
    "fmbh_OtherBorrowingsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "OtherBorrowingsFairValueDisclosure",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other borrowings",
        "label": "Other Borrowings Fair Value Disclosure",
        "documentation": "Other borrowings fair value disclosure."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_OtherCollateralAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "OtherCollateralAssetsMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Property",
        "label": "Other Collateral Assets [Member]",
        "documentation": "Other Collateral Assets."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "OCI, Debt Securities, Available-for-Sale, Gain (Loss), after Adjustment, before Tax, Total",
        "negatedLabel": "Net unrealized losses on securities available-for-sale",
        "label": "OCI, Debt Securities, Available-for-Sale, Gain (Loss), after Adjustment, before Tax",
        "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."
       }
      }
     },
     "auth_ref": [
      "r228",
      "r229",
      "r230",
      "r704"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherComprehensiveIncomeLossAvailableForSaleSecuritiesTax",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "OCI, Debt Securities, Available-for-Sale, Gain (Loss), after Adjustment, Tax, Total",
        "terseLabel": "Tax benefit",
        "label": "OCI, Debt Securities, Available-for-Sale, Gain (Loss), after Adjustment, Tax",
        "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."
       }
      }
     },
     "auth_ref": [
      "r228",
      "r229",
      "r231"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited",
      "http://www.firstmid.com/20240630/taxonomy/role/StatementCondensedConsolidatedStatementsOfComprehensiveIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other comprehensive income (loss), net tax",
        "label": "Other Comprehensive Income (Loss), Net of Tax, Portion Attributable to Parent",
        "totalLabel": "Other comprehensive income (loss), net of taxes",
        "documentation": "Amount after tax of other comprehensive income (loss) attributable to parent entity."
       }
      }
     },
     "auth_ref": [
      "r12",
      "r18",
      "r119",
      "r234",
      "r237",
      "r271"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfComprehensiveIncomeLossUnauditedParenthetical",
      "http://www.firstmid.com/20240630/taxonomy/role/StatementCondensedConsolidatedStatementsOfComprehensiveIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other comprehensive income (loss)",
        "label": "Other Comprehensive Income (Loss), Net of Tax, Portion Attributable to Parent [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/StatementCondensedConsolidatedStatementsOfComprehensiveIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Less: reclassification adjustment for realized gains (losses) included in net income, net of tax benefit (expense) of $43 and $1 for three months ended June 30, 2024 and 2023, respectively and $43 and $14 for the six months ended June 30, 2024 and 2023, respectively",
        "negatedLabel": "Less: reclassification adjustment for realized gains (losses) included in net income, net of tax benefit (expense) of ($832) and $23 for three months ended September 30, 2023 and 2022, respectively and ($968) and $24 for nine months ended September 30, 2023 and 2022, respectively",
        "totalLabel": "Total reclassifications out of accumulated other comprehensive income (loss)",
        "negatedTotalLabel": "Total reclassifications out of accumulated other comprehensive income (loss)",
        "label": "Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, Net of Tax",
        "terseLabel": "Less: reclassification adjustment for realized gains (losses) included in net income, net of tax benefit (expense) of $0 and ($13) for three months ended March 31, 2024 and 2023, respectively",
        "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."
       }
      }
     },
     "auth_ref": [
      "r10",
      "r93",
      "r232",
      "r348"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesTax",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfComprehensiveIncomeLossUnauditedParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Reclassification adjustment for realized gains (losses) included in net income, taxes",
        "label": "Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, Tax",
        "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."
       }
      }
     },
     "auth_ref": [
      "r7"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/StatementCondensedConsolidatedStatementsOfComprehensiveIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unrealized gains (losses) on available-for-sale securities, net of tax benefit (expense) of ($208) and ($5,583) for three months ended June 30, 2024 and 2023, respectively and $4,017 and $39 for the six months ended June 30, 2024 and 2023, respectively",
        "label": "OCI, Debt Securities, Available-for-Sale, Unrealized Holding Gain (Loss), before Adjustment, after Tax",
        "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."
       }
      }
     },
     "auth_ref": [
      "r228",
      "r230",
      "r348"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfComprehensiveIncomeLossUnauditedParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "OCI, Debt Securities, Available-for-Sale, Unrealized Holding Gain (Loss), before Adjustment, Tax",
        "terseLabel": "Unrealized gains (losses) on available-for-sale securities, tax benefit (expense)",
        "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."
       }
      }
     },
     "auth_ref": [
      "r7",
      "r229"
     ]
    },
    "us-gaap_OtherDebtSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherDebtSecuritiesMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other",
        "terseLabel": "Other Securities",
        "label": "Other Debt Obligations [Member]",
        "documentation": "Investments in debt securities classified as other."
       }
      }
     },
     "auth_ref": [
      "r1055",
      "r1081"
     ]
    },
    "fmbh_OtherGamblingIndustriesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "OtherGamblingIndustriesMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Gambling Industries",
        "label": "Other Gambling Industries [Member]",
        "documentation": "Other gambling industries."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherInvestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherInvestmentsMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Investments",
        "label": "Other Investments [Member]",
        "documentation": "Primary financial statement caption encompassing other investments."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Other Liabilities, Total",
        "terseLabel": "Other liabilities",
        "label": "Other Liabilities",
        "documentation": "Amount of liabilities classified as other."
       }
      }
     },
     "auth_ref": [
      "r136",
      "r695",
      "r740",
      "r741",
      "r892",
      "r1125",
      "r1131"
     ]
    },
    "us-gaap_OtherLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherLiabilitiesMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Liabilities",
        "label": "Other Liabilities [Member]",
        "documentation": "Primary financial statement caption encompassing other liabilities."
       }
      }
     },
     "auth_ref": [
      "r58",
      "r66"
     ]
    },
    "us-gaap_OtherNoninterestExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherNoninterestExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other",
        "label": "Other Noninterest Expense",
        "documentation": "Amount of noninterest expense classified as other."
       }
      }
     },
     "auth_ref": [
      "r148"
     ]
    },
    "ecd_OtherPerfMeasureAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "OtherPerfMeasureAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Performance Measure, Amount",
        "terseLabel": "Other Performance Measure, Amount"
       }
      }
     },
     "auth_ref": [
      "r942"
     ]
    },
    "srt_OtherPropertyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "OtherPropertyMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfGrossCommercialRealEstateLoansByPropertyTypeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Property Types",
        "label": "Other Property [Member]"
       }
      }
     },
     "auth_ref": [
      "r1140",
      "r1141"
     ]
    },
    "fmbh_OtherSecuredLoansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "OtherSecuredLoansMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Secured Loans",
        "label": "Other Secured Loans [Member]",
        "documentation": "Other secured loans."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_OutstandingAggtErrCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "OutstandingAggtErrCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Aggregate Erroneous Compensation Amount",
        "terseLabel": "Outstanding Aggregate Erroneous Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r904",
      "r914",
      "r924",
      "r956"
     ]
    },
    "ecd_OutstandingRecoveryCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "OutstandingRecoveryCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Recovery Compensation Amount",
        "terseLabel": "Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r907",
      "r917",
      "r927",
      "r959"
     ]
    },
    "ecd_OutstandingRecoveryIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "OutstandingRecoveryIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Recovery, Individual Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r907",
      "r917",
      "r927",
      "r959"
     ]
    },
    "fmbh_OwnerOccupiedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "OwnerOccupiedMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfGrossCommercialRealEstateLoansByPropertyTypeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Owner Occupied",
        "label": "Owner Occupied [Member]",
        "documentation": "Owner occupied."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PassMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PassMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pass",
        "label": "Pass [Member]",
        "documentation": "A category of financing receivables not considered to be special mention, substandard, doubtful, and loss receivables."
       }
      }
     },
     "auth_ref": [
      "r173",
      "r174",
      "r175",
      "r1053"
     ]
    },
    "us-gaap_PastDueFinancingReceivablesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PastDueFinancingReceivablesTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loan Portfolio Aging Analysis",
        "label": "Financing Receivable, Past Due [Table Text Block]",
        "documentation": "Tabular disclosure of aging analysis for financing receivable."
       }
      }
     },
     "auth_ref": [
      "r179",
      "r182",
      "r840",
      "r1052"
     ]
    },
    "ecd_PayVsPerformanceDisclosureLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PayVsPerformanceDisclosureLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Pay vs Performance Disclosure [Line Items]",
        "terseLabel": "Pay vs Performance Disclosure"
       }
      }
     },
     "auth_ref": [
      "r931"
     ]
    },
    "us-gaap_PaymentDeferralMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaymentDeferralMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Payment Delay Investment",
        "label": "Payment Deferral [Member]",
        "documentation": "Loan modification for a temporary postponement of loan payments."
       }
      }
     },
     "auth_ref": [
      "r308",
      "r309",
      "r311"
     ]
    },
    "fmbh_PaymentsDueToIncreasingIncomeFromAmortizedCostOfHeldToMaturitySecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "PaymentsDueToIncreasingIncomeFromAmortizedCostOfHeldToMaturitySecurities",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Payments due to increasing income from amortized cost of held to maturity securities.",
        "label": "Payments Due To Increasing Income From Amortized Cost Of Held To Maturity Securities",
        "negatedLabel": "Income increasing amortized cost of HTM securities"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaymentsForOriginationOfMortgageLoansHeldForSale",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Origination of loans held for sale",
        "label": "Payment for Origination, Loan, Mortgage, Held-for-Sale",
        "documentation": "The amount of cash paid for the origination of mortgages that are held for sale."
       }
      }
     },
     "auth_ref": [
      "r824",
      "r1007"
     ]
    },
    "us-gaap_PaymentsForProceedsFromLoansAndLeases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaymentsForProceedsFromLoansAndLeases",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Payments for (Proceeds from) Loans and Leases, Total",
        "label": "Payments for (Proceeds from) Loans and Leases",
        "negatedLabel": "Net decrease in loans",
        "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."
       }
      }
     },
     "auth_ref": [
      "r677"
     ]
    },
    "us-gaap_PaymentsForRepurchaseOfCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaymentsForRepurchaseOfCommonStock",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Purchase of treasury stock",
        "label": "Payments for Repurchase of Common Stock",
        "documentation": "The cash outflow to reacquire common stock during the period."
       }
      }
     },
     "auth_ref": [
      "r103"
     ]
    },
    "us-gaap_PaymentsOfDividends": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaymentsOfDividends",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Payments of Dividends, Total",
        "terseLabel": "Dividends paid",
        "label": "Payments of Dividends",
        "documentation": "Cash outflow in the form of capital distributions and dividends to common shareholders, preferred shareholders and noncontrolling interests."
       }
      }
     },
     "auth_ref": [
      "r103"
     ]
    },
    "us-gaap_PaymentsOfDividendsCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaymentsOfDividendsCommonStock",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Dividends paid on common stock",
        "label": "Payments of Ordinary Dividends, Common Stock",
        "documentation": "Amount of cash outflow in the form of ordinary dividends to common shareholders of the parent entity."
       }
      }
     },
     "auth_ref": [
      "r103"
     ]
    },
    "us-gaap_PaymentsOfStockIssuanceCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaymentsOfStockIssuanceCosts",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Direct expenses related to capital transactions",
        "label": "Payments of Stock Issuance Costs",
        "documentation": "The cash outflow for cost incurred directly with the issuance of an equity security."
       }
      }
     },
     "auth_ref": [
      "r33"
     ]
    },
    "us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaymentsToAcquireAvailableForSaleSecuritiesDebt",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Purchases of securities available-for-sale",
        "label": "Payments to Acquire Debt Securities, Available-for-Sale",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r31",
      "r244",
      "r315"
     ]
    },
    "us-gaap_PaymentsToAcquireBusinessesGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaymentsToAcquireBusinessesGross",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash consideration",
        "verboseLabel": "Consideration paid in cash",
        "terseLabel": "Consideration payable in cash",
        "documentation": "The cash outflow associated with the acquisition of business during the period. The cash portion only of the acquisition price."
       }
      }
     },
     "auth_ref": [
      "r32",
      "r524"
     ]
    },
    "us-gaap_PaymentsToAcquireHeldToMaturitySecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaymentsToAcquireHeldToMaturitySecurities",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments to Acquire Held-to-Maturity Securities",
        "negatedLabel": "Purchase of securities held-to-maturity",
        "documentation": "Amount of cash outflow through purchase of long-term held-to-maturity securities."
       }
      }
     },
     "auth_ref": [
      "r31",
      "r315"
     ]
    },
    "us-gaap_PaymentsToAcquirePropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaymentsToAcquirePropertyPlantAndEquipment",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Payments to Acquire Property, Plant, and Equipment, Total",
        "negatedLabel": "Purchases of premises and equipment",
        "label": "Payments to Acquire Property, Plant, and Equipment",
        "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."
       }
      }
     },
     "auth_ref": [
      "r102"
     ]
    },
    "ecd_PeerGroupIssuersFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PeerGroupIssuersFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Peer Group Issuers, Footnote [Text Block]",
        "terseLabel": "Peer Group Issuers, Footnote"
       }
      }
     },
     "auth_ref": [
      "r941"
     ]
    },
    "ecd_PeerGroupTotalShareholderRtnAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PeerGroupTotalShareholderRtnAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Peer Group Total Shareholder Return Amount",
        "terseLabel": "Peer Group Total Shareholder Return Amount"
       }
      }
     },
     "auth_ref": [
      "r941"
     ]
    },
    "ecd_PeoActuallyPaidCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PeoActuallyPaidCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO Actually Paid Compensation Amount",
        "terseLabel": "PEO Actually Paid Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r933"
     ]
    },
    "ecd_PeoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PeoMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO [Member]",
        "terseLabel": "PEO"
       }
      }
     },
     "auth_ref": [
      "r950"
     ]
    },
    "ecd_PeoName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PeoName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO Name",
        "terseLabel": "PEO Name"
       }
      }
     },
     "auth_ref": [
      "r943"
     ]
    },
    "ecd_PeoTotalCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PeoTotalCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO Total Compensation Amount",
        "terseLabel": "PEO Total Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r932"
     ]
    },
    "fmbh_PercentageInvestmentBookValueExceedsStockholdersEquity": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "PercentageInvestmentBookValueExceedsStockholdersEquity",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage investment book value exceeds stockholders' equity (in hundredths)",
        "label": "Percentage Investment Book Value Exceeds Stockholders Equity",
        "documentation": "Percentage investment book value exceeds stockholders' equity."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_PnsnAdjsPrrSvcCstMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PnsnAdjsPrrSvcCstMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pension Adjustments Prior Service Cost [Member]",
        "terseLabel": "Pension Adjustments Prior Service Cost"
       }
      }
     },
     "auth_ref": [
      "r934"
     ]
    },
    "ecd_PnsnAdjsSvcCstMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PnsnAdjsSvcCstMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pension Adjustments Service Cost [Member]",
        "terseLabel": "Pension Adjustments Service Cost"
       }
      }
     },
     "auth_ref": [
      "r978"
     ]
    },
    "ecd_PnsnBnftsAdjFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PnsnBnftsAdjFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pension Benefits Adjustments, Footnote [Text Block]",
        "terseLabel": "Pension Benefits Adjustments, Footnote"
       }
      }
     },
     "auth_ref": [
      "r933"
     ]
    },
    "us-gaap_PortionAtFairValueFairValueDisclosureMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PortionAtFairValueFairValueDisclosureMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "axisDefault": "Portion at Fair Value Measurement [Member] [Default]",
        "terseLabel": "Fair Value Disclosure Item Amounts [Default]",
        "label": "Portion at Fair Value Measurement [Member]",
        "documentation": "Measured at fair value for financial reporting purposes."
       }
      }
     },
     "auth_ref": [
      "r594"
     ]
    },
    "us-gaap_PrincipalForgivenessMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PrincipalForgivenessMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Principal Forgiveness",
        "label": "Principal Forgiveness [Member]",
        "documentation": "Loan modification for a reduction in the amount of unpaid principal on a loan."
       }
      }
     },
     "auth_ref": [
      "r308",
      "r309",
      "r311",
      "r831"
     ]
    },
    "us-gaap_ProFormaWeightedAverageSharesOutstandingDiluted": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProFormaWeightedAverageSharesOutstandingDiluted",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Diluted weighted average shares o/s",
        "label": "Pro Forma Weighted Average Shares Outstanding, Diluted",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ProceedsFromFederalHomeLoanBankAdvances": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromFederalHomeLoanBankAdvances",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from FHLB advances",
        "label": "Proceeds from FHLBank Advance, Investing Activities",
        "documentation": "Amount of cash inflow from collection of advance by Federal Home Loan Bank (FHLBank), classified as investing activity."
       }
      }
     },
     "auth_ref": [
      "r1004"
     ]
    },
    "us-gaap_ProceedsFromIssuanceOfCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromIssuanceOfCommonStock",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from issuance of common stock",
        "label": "Proceeds from Issuance of Common Stock",
        "documentation": "The cash inflow from the additional capital contribution to the entity."
       }
      }
     },
     "auth_ref": [
      "r9"
     ]
    },
    "us-gaap_ProceedsFromLifeInsurancePolicies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromLifeInsurancePolicies",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from bank owned life insurance death benefit",
        "label": "Proceeds from Life Insurance Policy",
        "documentation": "Amount of cash inflow for proceeds from settlement of corporate-owned life insurance policy, classified as investing activities. Includes, but is not limited to, bank-owned life insurance policy."
       }
      }
     },
     "auth_ref": [
      "r13",
      "r29"
     ]
    },
    "us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from maturities of securities available-for-sale",
        "label": "Proceeds from Maturities, Prepayments and Calls of Debt Securities, Available-for-Sale",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r244",
      "r245",
      "r1037"
     ]
    },
    "us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from maturities of securities held-to-maturity",
        "label": "Proceeds from Maturities, Prepayments and Calls of Held-to-Maturity Securities",
        "documentation": "The cash inflow associated with the maturity, prepayments and calls (requests for early payments) of debt securities designated as held-to-maturity."
       }
      }
     },
     "auth_ref": [
      "r30",
      "r1037"
     ]
    },
    "us-gaap_ProceedsFromPaymentsForInInterestBearingDepositsInBanks": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromPaymentsForInInterestBearingDepositsInBanks",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Purchases of certificates of deposit investments",
        "negatedLabel": "Proceeds (purchases) of certificates of deposit investments",
        "label": "Proceeds from (Payments for) in Interest-Bearing Deposits in Banks",
        "documentation": "The net cash inflow or outflow in Interest-bearing Deposits by banks in other financial institutions for relatively short periods of time including, for example, certificates of deposits."
       }
      }
     },
     "auth_ref": [
      "r1009",
      "r1122"
     ]
    },
    "us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromSaleOfAvailableForSaleSecuritiesDebt",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from sales of securities available-for-sale",
        "label": "Proceeds from Sale of Debt Securities, Available-for-Sale",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r30",
      "r244",
      "r315",
      "r347"
     ]
    },
    "us-gaap_ProceedsFromSaleOfLoansHeldForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromSaleOfLoansHeldForSale",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Proceeds from Sale of Loans Held-for-sale, Total",
        "terseLabel": "Proceeds from sale of loans held for sale",
        "label": "Proceeds from Sale, Loan, Held-for-Sale",
        "documentation": "The cash inflow resulting from the sale of loans classified as held-for-sale, including proceeds from loans sold through mortgage securitization."
       }
      }
     },
     "auth_ref": [
      "r1005",
      "r1006"
     ]
    },
    "us-gaap_ProceedsFromSaleOfOtherRealEstate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromSaleOfOtherRealEstate",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from sales of other real property owned",
        "label": "Proceeds from Sale of Other Real Estate",
        "documentation": "The cash inflow associated with the sale of other real estate not otherwise defined in the taxonomy."
       }
      }
     },
     "auth_ref": [
      "r29"
     ]
    },
    "us-gaap_ProfessionalFees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProfessionalFees",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Legal and professional",
        "label": "Professional Fees",
        "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."
       }
      }
     },
     "auth_ref": [
      "r829",
      "r890",
      "r1132",
      "r1134"
     ]
    },
    "us-gaap_ProfitLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProfitLoss",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net Income (Loss), Including Portion Attributable to Noncontrolling Interest, Total",
        "terseLabel": "Net income",
        "label": "Net Income (Loss), Including Portion Attributable to Noncontrolling Interest",
        "documentation": "The consolidated profit or loss for the period, net of income taxes, including the portion attributable to the noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r215",
      "r233",
      "r236",
      "r247",
      "r253",
      "r263",
      "r271",
      "r274",
      "r275",
      "r349",
      "r424",
      "r425",
      "r426",
      "r427",
      "r428",
      "r429",
      "r430",
      "r431",
      "r432",
      "r515",
      "r529",
      "r530",
      "r533",
      "r534",
      "r565",
      "r596",
      "r678",
      "r702",
      "r732",
      "r766",
      "r781",
      "r782",
      "r858",
      "r859",
      "r891",
      "r1000",
      "r1077"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PropertyPlantAndEquipmentNet",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Property, Plant and Equipment, Net, Total",
        "terseLabel": "Premises and equipment, net",
        "label": "Property, Plant and Equipment, Net",
        "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."
       }
      }
     },
     "auth_ref": [
      "r16",
      "r623",
      "r688",
      "r700",
      "r873"
     ]
    },
    "us-gaap_ProvisionForLoanLossesExpensed": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProvisionForLoanLossesExpensed",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Provision for credit losses",
        "label": "Financing Receivable, Credit Loss, Expense (Reversal)",
        "documentation": "Amount of credit loss expense (reversal of expense) for financing receivable."
       }
      }
     },
     "auth_ref": [
      "r365",
      "r674"
     ]
    },
    "fmbh_PublicSecuritiesAssociationStandardPrepaymentModelRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "PublicSecuritiesAssociationStandardPrepaymentModelRate",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Public securities association standard prepayment model rate.",
        "label": "Public Securities Association Standard Prepayment Model Rate",
        "terseLabel": "PSA standard prepayment model rate"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_PurdumGrayIngledueBeckIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "PurdumGrayIngledueBeckIncMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Purdum, gray, ingledue, beck, inc.",
        "label": "Purdum, Gray, Ingledue, Beck, Inc. [Member]",
        "terseLabel": "Purdum, Gray, Ingledue, Beck, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_PvpTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PvpTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pay vs Performance Disclosure [Table]",
        "terseLabel": "Pay vs Performance Disclosure"
       }
      }
     },
     "auth_ref": [
      "r931"
     ]
    },
    "ecd_PvpTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PvpTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pay vs Performance [Table Text Block]",
        "terseLabel": "Pay vs Performance Disclosure, Table"
       }
      }
     },
     "auth_ref": [
      "r931"
     ]
    },
    "srt_RangeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "RangeAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statistical Measurement",
        "label": "Statistical Measurement [Axis]"
       }
      }
     },
     "auth_ref": [
      "r420",
      "r421",
      "r422",
      "r423",
      "r452",
      "r459",
      "r486",
      "r487",
      "r488",
      "r494",
      "r571",
      "r637",
      "r647",
      "r663",
      "r713",
      "r714",
      "r727",
      "r736",
      "r737",
      "r786",
      "r787",
      "r788",
      "r789",
      "r799",
      "r817",
      "r818",
      "r831",
      "r849",
      "r855",
      "r864",
      "r865",
      "r869",
      "r870",
      "r875",
      "r881",
      "r1076",
      "r1079",
      "r1091",
      "r1112",
      "r1113",
      "r1114",
      "r1115",
      "r1116"
     ]
    },
    "srt_RangeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "RangeMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statistical Measurement",
        "label": "Statistical Measurement [Domain]"
       }
      }
     },
     "auth_ref": [
      "r420",
      "r421",
      "r422",
      "r423",
      "r452",
      "r459",
      "r486",
      "r487",
      "r488",
      "r494",
      "r571",
      "r637",
      "r647",
      "r663",
      "r713",
      "r714",
      "r727",
      "r736",
      "r737",
      "r786",
      "r787",
      "r788",
      "r789",
      "r799",
      "r817",
      "r818",
      "r831",
      "r849",
      "r855",
      "r864",
      "r865",
      "r869",
      "r870",
      "r875",
      "r881",
      "r1076",
      "r1079",
      "r1091",
      "r1112",
      "r1113",
      "r1114",
      "r1115",
      "r1116"
     ]
    },
    "us-gaap_RealEstateAcquiredThroughForeclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RealEstateAcquiredThroughForeclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Real estate acquired through foreclosure",
        "terseLabel": "Other real estate owned",
        "label": "Real Estate Acquired Through Foreclosure",
        "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."
       }
      }
     },
     "auth_ref": [
      "r306",
      "r1024",
      "r1032"
     ]
    },
    "us-gaap_RealEstateLoanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RealEstateLoanMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfGrossCommercialRealEstateLoansByPropertyTypeDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Real Estate Loan",
        "label": "Real Estate Loan [Member]",
        "documentation": "Loan to finance the purchase of real estate, including but not limited to, land or building."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RealEstateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RealEstateMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Loans Secured by Real Estate",
        "terseLabel": "Real Estate",
        "label": "Real Estate [Member]",
        "documentation": "Property consisting of land, land improvement and buildings."
       }
      }
     },
     "auth_ref": [
      "r1080"
     ]
    },
    "us-gaap_RealEstatePropertiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RealEstatePropertiesAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfGrossCommercialRealEstateLoansByPropertyTypeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Real Estate Property Ownership [Axis]",
        "documentation": "Information by ownership of the property."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RealEstatePropertiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RealEstatePropertiesDomain",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfGrossCommercialRealEstateLoansByPropertyTypeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Real Estate Properties [Domain]",
        "documentation": "Represents categories of ownership of real estate properties."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RealizedGainLossOnInvestmentsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RealizedGainLossOnInvestmentsTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Realized Gains and Losses From Sale of Securities",
        "label": "Realized Gain (Loss) on Investments [Table Text Block]",
        "documentation": "Tabular disclosure of realized gains and losses on investments reported in the statement of income."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RealizedInvestmentGainsLossesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RealizedInvestmentGainsLossesAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesRealizedGainsAndLossesFromSaleOfSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Realized Investment Gains (Losses) [Abstract]",
        "label": "Realized Investment Gains (Losses) [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ReceivablesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ReceivablesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Receivables [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_RecoveryOfErrCompDisclosureLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "RecoveryOfErrCompDisclosureLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Recovery of Erroneously Awarded Compensation Disclosure [Line Items]",
        "terseLabel": "Recovery of Erroneously Awarded Compensation Disclosure"
       }
      }
     },
     "auth_ref": [
      "r899",
      "r909",
      "r919",
      "r951"
     ]
    },
    "fmbh_ReleaseOfRestrictedStockUnitsPursuantToStockIncentivePlan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "ReleaseOfRestrictedStockUnitsPursuantToStockIncentivePlan",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Release of restricted units pursuant to 2017 stock incentive plan",
        "label": "Release Of Restricted Stock Units Pursuant To Stock Incentive Plan",
        "documentation": "Release of restricted stock units pursuant to stock incentive plan."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_RepaymentOfFederalHomeLoanBankAdvances": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "RepaymentOfFederalHomeLoanBankAdvances",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Repayment of FHLB advances",
        "label": "Repayment Of Federal Home Loan Bank Advances",
        "documentation": "Repayment of federal home loan bank advances."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RepaymentsOfSubordinatedDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RepaymentsOfSubordinatedDebt",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Repayment of subordinated debenture",
        "label": "Repayments of Subordinated Debt",
        "totalLabel": "Repayments of Subordinated Debt, Total",
        "documentation": "The cash outflow from the repayment of long-term borrowing where a lender is placed in a lien position behind debt having a higher priority of repayment (senior) in case of liquidation of the entity's assets or underlying collateral."
       }
      }
     },
     "auth_ref": [
      "r104"
     ]
    },
    "fmbh_RepurchaseAgreementsAndOtherBorrowingsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "RepurchaseAgreementsAndOtherBorrowingsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Repurchase Agreements And Other Borrowings [Abstract]",
        "documentation": "Repurchase Agreements And Other Borrowings."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_RepurchaseAgreementsAndOtherBorrowingsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "RepurchaseAgreementsAndOtherBorrowingsTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowings"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Repurchase Agreements and Other Borrowings",
        "label": "Repurchase Agreements And Other Borrowings [Text Block]",
        "documentation": "Disclosure of change in repurchase agreements, FHLB Advances and other borrowings."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_ResidentialBuildingsAndDwellingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "ResidentialBuildingsAndDwellingsMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Residential Buildings and Dwellings",
        "label": "Residential Buildings And Dwellings [Member]",
        "documentation": "Residential buildings and dwellings."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ResidentialMortgageBackedSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ResidentialMortgageBackedSecuritiesMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Mortgage-backed Securities",
        "terseLabel": "Mortgage-backed Securities: GSE Residential",
        "label": "Residential Mortgage-Backed Securities [Member]",
        "documentation": "Securities collateralized by residential real estate mortgage loans."
       }
      }
     },
     "auth_ref": [
      "r861",
      "r863",
      "r864",
      "r1038",
      "r1039",
      "r1040",
      "r1041",
      "r1042",
      "r1081"
     ]
    },
    "us-gaap_ResidentialPortfolioSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ResidentialPortfolioSegmentMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Residential Properties",
        "label": "Residential Portfolio Segment [Member]",
        "documentation": "Portfolio segment of the company's total financing receivables related to residential financing receivables."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_ResidentialPropertiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "ResidentialPropertiesMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "1-4 Family Residential Properties",
        "label": "Residential Properties [Member]",
        "documentation": "Property that is used as a home for one to four families."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_RestatementDateAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "RestatementDateAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restatement Determination Date [Axis]",
        "terseLabel": "Restatement Determination Date:"
       }
      }
     },
     "auth_ref": [
      "r900",
      "r910",
      "r920",
      "r952"
     ]
    },
    "ecd_RestatementDeterminationDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "RestatementDeterminationDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restatement Determination Date",
        "terseLabel": "Restatement Determination Date"
       }
      }
     },
     "auth_ref": [
      "r901",
      "r911",
      "r921",
      "r953"
     ]
    },
    "ecd_RestatementDoesNotRequireRecoveryTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "RestatementDoesNotRequireRecoveryTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restatement Does Not Require Recovery [Text Block]",
        "terseLabel": "Restatement does not require Recovery"
       }
      }
     },
     "auth_ref": [
      "r908",
      "r918",
      "r928",
      "r960"
     ]
    },
    "us-gaap_RestrictedStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RestrictedStockMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Restricted Stock",
        "label": "Restricted Stock [Member]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r40"
     ]
    },
    "us-gaap_RestrictedStockUnitsRSUMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RestrictedStockUnitsRSUMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Restricted Stock Units (RSUs)",
        "label": "Restricted Stock Units (RSUs) [Member]",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RetailMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RetailMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfGrossCommercialRealEstateLoansByPropertyTypeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Retail",
        "label": "Retail [Member]",
        "documentation": "Sale of product directly to consumer."
       }
      }
     },
     "auth_ref": [
      "r1080"
     ]
    },
    "us-gaap_RetainedEarningsAccumulatedDeficit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RetainedEarningsAccumulatedDeficit",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Retained Earnings (Accumulated Deficit), Total",
        "terseLabel": "Retained earnings",
        "label": "Retained Earnings (Accumulated Deficit)",
        "documentation": "Amount of accumulated undistributed earnings (deficit)."
       }
      }
     },
     "auth_ref": [
      "r86",
      "r109",
      "r698",
      "r721",
      "r726",
      "r731",
      "r746",
      "r873"
     ]
    },
    "us-gaap_RetainedEarningsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RetainedEarningsMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Retained Earnings",
        "label": "Retained Earnings [Member]",
        "documentation": "Accumulated undistributed earnings (deficit)."
       }
      }
     },
     "auth_ref": [
      "r210",
      "r259",
      "r260",
      "r261",
      "r264",
      "r271",
      "r273",
      "r275",
      "r354",
      "r360",
      "r417",
      "r501",
      "r502",
      "r511",
      "r512",
      "r513",
      "r516",
      "r528",
      "r529",
      "r546",
      "r549",
      "r550",
      "r553",
      "r563",
      "r606",
      "r609",
      "r717",
      "r719",
      "r733",
      "r1135"
     ]
    },
    "fmbh_RevenueFromContractWithCustomerATMDebitCard": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "RevenueFromContractWithCustomerATMDebitCard",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "ATM/debit card revenue",
        "label": "Revenue From Contract With Customer A T M Debit Card",
        "documentation": "Revenue From Contract With Customer, ATM &amp; Debit Card"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_RevenueFromContractWithCustomerDepositServiceCharges": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "RevenueFromContractWithCustomerDepositServiceCharges",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Service charges",
        "label": "Revenue From Contract With Customer Deposit Service Charges",
        "documentation": "Revenue From Contract With Customer, Deposit Service Charges"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_RevenueFromContractWithCustomerMortgageBanking": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "RevenueFromContractWithCustomerMortgageBanking",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Mortgage banking revenue, net",
        "label": "Revenue From Contract With Customer Mortgage Banking",
        "documentation": "Revenue From Contract With Customer, Mortgage Banking"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_RevenueFromContractWithCustomerWealthManagement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "RevenueFromContractWithCustomerWealthManagement",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Wealth management revenues",
        "label": "Revenue From Contract With Customer Wealth Management",
        "documentation": "Revenue From Contract With Customer, Wealth Management"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RevenueRecognitionPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RevenueRecognitionPolicyTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Revenue Recognition",
        "label": "Revenue [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for revenue. Includes revenue from contract with customer and from other sources."
       }
      }
     },
     "auth_ref": [
      "r767",
      "r820",
      "r825"
     ]
    },
    "us-gaap_RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Initial recognition of right-of-use assets",
        "label": "Right-of-Use Asset Obtained in Exchange for Operating Lease Liability",
        "documentation": "Amount of increase in right-of-use asset obtained in exchange for operating lease liability."
       }
      }
     },
     "auth_ref": [
      "r619",
      "r872"
     ]
    },
    "fmbh_Rule10B51ArrModifiedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "Rule10B51ArrModifiedFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Rule 10b5-1 Arrangement Modified",
        "label": "Rule 10b51 Arr Modified Flag",
        "documentation": "Rule 10b51 arr modified flag."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_Rule10b51ArrAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "Rule10b51ArrAdoptedFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rule 10b5-1 Arrangement Adopted [Flag]",
        "terseLabel": "Rule 10b5-1 Arrangement Adopted"
       }
      }
     },
     "auth_ref": [
      "r969"
     ]
    },
    "ecd_Rule10b51ArrTrmntdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "Rule10b51ArrTrmntdFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rule 10b5-1 Arrangement Terminated [Flag]",
        "terseLabel": "Rule 10b5-1 Arrangement Terminated"
       }
      }
     },
     "auth_ref": [
      "r969"
     ]
    },
    "us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfAccountsNotesLoansAndFinancingReceivableTable",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesFinancialEffectOfLoanModificationsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfGrossCommercialRealEstateLoansByPropertyTypeDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule Of Accounts Notes Loans And Financing Receivable [Table]",
        "label": "Accounts and Financing Receivables [Table]",
        "documentation": "Disclosure of information about accounts and financing receivables. Includes, but is not limited to, amount of receivable and allowance for credit loss."
       }
      }
     },
     "auth_ref": [
      "r84",
      "r90",
      "r305",
      "r1032"
     ]
    },
    "us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Loans",
        "label": "Schedule of Accounts, Notes, Loans and Financing Receivable [Table Text Block]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r84",
      "r90"
     ]
    },
    "fmbh_ScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "ScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Amounts Reclassified from Accumulated Other Comprehensive Income",
        "label": "Schedule Of Amounts Reclassified From Accumulated Other Comprehensive Income Table [Text Block]",
        "documentation": "Schedule of amounts reclassified from accumulated other comprehensive income table text block."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfAmountsRecognizedInOtherComprehensiveIncomeLossTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfAmountsRecognizedInOtherComprehensiveIncomeLossTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Components of Accumulated Other Comprehensive loss",
        "label": "Schedule of Amounts Recognized in Other Comprehensive Income (Loss) [Table Text Block]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r110"
     ]
    },
    "us-gaap_ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTable",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule Of Assets Sold Under Agreements To Repurchase [Table]",
        "label": "Asset Sold under Agreement to Repurchase [Table]",
        "documentation": "Disclosure of information about security and other asset sold under repurchase agreement that exceeds 10 percent of stockholders' equity by counterparty or group of counterparties by maturity of overnight, up to 30, 30 to 90, and over 90 days, and demand. Includes, but is not limited to, type of security and asset sold under repurchase agreement, carrying amount and market value of asset sold under repurchase agreement, repurchase liability, and interest rate."
       }
      }
     },
     "auth_ref": [
      "r257",
      "r647"
     ]
    },
    "us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfAvailableForSaleSecuritiesLineItems",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule Of Available For Sale Securities [Line Items]",
        "label": "Debt Securities, Available-for-Sale [Line Items]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r317",
      "r318",
      "r319",
      "r320",
      "r321",
      "r322",
      "r323",
      "r324",
      "r325",
      "r326",
      "r327",
      "r328"
     ]
    },
    "us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionContingentConsiderationTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfBusinessAcquisitionsByAcquisitionContingentConsiderationTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Consideration Transferred",
        "label": "Schedule of Business Acquisitions by Acquisition, Contingent Consideration [Table Text Block]",
        "documentation": "Tabular disclosure of contingent payment arrangements including the terms that will result in payment and the accounting treatment that will be followed if such contingencies occur, including the potential impact on earnings per share if contingencies are to be settled in common stock of the entity. The description also may include the period over which amounts are expected to be paid, and changes in the amount since the previous reporting period. This also includes contingent options and commitments."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfBusinessAcquisitionsByAcquisitionTable",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredParentheticalDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfPurchasedCreditDeterioratedPcdLoansDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsTables",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule Of Business Acquisitions By Acquisition [Table]",
        "label": "Schedule of Business Acquisitions, by Acquisition [Table]",
        "documentation": "Disclosure of information about business combination. Includes, but is not limited to, recognized asset and liability."
       }
      }
     },
     "auth_ref": [
      "r47",
      "r49",
      "r519"
     ]
    },
    "us-gaap_ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Derivative Instruments, Gain (Loss)",
        "label": "Derivative Instruments, Gain (Loss) [Table Text Block]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r59",
      "r62",
      "r537"
     ]
    },
    "us-gaap_ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Fair Value Derivative Instruments",
        "label": "Schedule of Derivative Instruments in Statement of Financial Position, Fair Value [Table Text Block]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r60"
     ]
    },
    "us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureEarningsPerShareTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Components of Basic and Diluted Net Income per Common Share",
        "label": "Schedule of Earnings Per Share, Basic and Diluted [Table Text Block]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r1016"
     ]
    },
    "us-gaap_ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Assets and Liabilities Measured at Fair Value on Recurring Basis",
        "label": "Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Table Text Block]",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r1088",
      "r1089"
     ]
    },
    "us-gaap_ScheduleOfFederalHomeLoanBankAdvancesByBranchOfFHLBBankTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfFederalHomeLoanBankAdvancesByBranchOfFHLBBankTable",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule Of Federal Home Loan Bank Advances By Branch Of F H L B Bank [Table]",
        "label": "Federal Home Loan Bank, Advance, Branch of FHLBank [Table]",
        "documentation": "Disclosure of information about advance from Federal Home Loan Bank (FHLBank)."
       }
      }
     },
     "auth_ref": [
      "r72",
      "r134",
      "r137",
      "r160"
     ]
    },
    "us-gaap_ScheduleOfFinancingReceivablesNonAccrualStatusTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfFinancingReceivablesNonAccrualStatusTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amortized Cost Basis of Loans on Nonaccrual Status and Nonaccrual Loans Individually Evaluated",
        "label": "Financing Receivable, Nonaccrual [Table Text Block]",
        "documentation": "Tabular disclosure of financing receivable on nonaccrual status."
       }
      }
     },
     "auth_ref": [
      "r179",
      "r371"
     ]
    },
    "us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfFiniteLivedIntangibleAssetsTable",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule Of Finite Lived Intangible Assets [Table]",
        "label": "Intangible Asset, Finite-Lived [Table]",
        "documentation": "Disclosure of information about finite-lived intangible asset. Excludes indefinite-lived intangible asset."
       }
      }
     },
     "auth_ref": [
      "r404",
      "r411",
      "r413",
      "r414",
      "r415",
      "r665",
      "r819",
      "r843"
     ]
    },
    "us-gaap_ScheduleOfGoodwillTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfGoodwillTable",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule Of Goodwill [Table]",
        "label": "Goodwill [Table]",
        "documentation": "Disclosure of information about goodwill, including, but not limited to, change from acquisition, sale, impairment, and other reason."
       }
      }
     },
     "auth_ref": [
      "r393",
      "r394",
      "r395",
      "r396",
      "r397",
      "r398",
      "r399",
      "r400",
      "r401",
      "r402",
      "r403",
      "r842"
     ]
    },
    "us-gaap_ScheduleOfIntangibleAssetsAndGoodwillTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfIntangibleAssetsAndGoodwillTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Intangible Assets and Goodwill",
        "label": "Schedule of Intangible Assets and Goodwill [Table Text Block]",
        "documentation": "Tabular disclosure of goodwill and intangible assets, which may be broken down by segment or major class."
       }
      }
     },
     "auth_ref": [
      "r1056",
      "r1060"
     ]
    },
    "us-gaap_ScheduleOfOtherOperatingCostAndExpenseByComponentTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfOtherOperatingCostAndExpenseByComponentTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Components of Lease Expense",
        "label": "Schedule of Other Operating Cost and Expense, by Component [Table Text Block]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r97"
     ]
    },
    "us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Fair Value of Assets Acquired and Liabilities Assumed",
        "label": "Schedule of Recognized Identified Assets Acquired and Liabilities Assumed [Table Text Block]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r116"
     ]
    },
    "fmbh_ScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "ScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "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]",
        "documentation": "Schedule of reconciliation of purchase price paid for acquisition and goodwill recorded."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfSecuritiesFinancingTransactionsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfSecuritiesFinancingTransactionsTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Securities Financing Transactions",
        "label": "Schedule of Securities Financing Transactions [Table Text Block]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r127",
      "r226"
     ]
    },
    "fmbh_ScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "ScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Supplemental Balance Sheet Information",
        "label": "Schedule Of Supplemental Balance Sheet Information Related To Leases Table [Text Block]",
        "documentation": "Schedule of supplemental balance sheet information related to leases."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Expected Amortization Expense",
        "label": "Schedule of Finite-Lived Intangible Assets, Future Amortization Expense [Table Text Block]",
        "documentation": "Tabular disclosure of the amount of amortization expense expected to be recorded in succeeding fiscal years for finite-lived intangible assets."
       }
      }
     },
     "auth_ref": [
      "r843",
      "r1067"
     ]
    },
    "us-gaap_SecuritiesLoanedOrSoldUnderAgreementsToRepurchaseFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SecuritiesLoanedOrSoldUnderAgreementsToRepurchaseFairValueDisclosure",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities sold under agreements to repurchase",
        "label": "Securities Loaned or Sold under Agreements to Repurchase, Fair Value Disclosure",
        "documentation": "Fair value portion of securities that an entity sells and agrees to repurchase at a specified date for a specified price."
       }
      }
     },
     "auth_ref": [
      "r126",
      "r1088",
      "r1089",
      "r1099"
     ]
    },
    "us-gaap_SecuritiesSoldUnderAgreementsToRepurchase": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SecuritiesSoldUnderAgreementsToRepurchase",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Securities Sold under Agreements to Repurchase, Total",
        "terseLabel": "Securities sold under agreements to repurchase",
        "label": "Securities Sold under Agreements to Repurchase",
        "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."
       }
      }
     },
     "auth_ref": [
      "r132",
      "r225",
      "r227",
      "r255",
      "r256",
      "r786",
      "r787",
      "r789",
      "r799"
     ]
    },
    "fmbh_SecuritiesSoldUnderAgreementsToRepurchaseIncreaseDecrease": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "SecuritiesSoldUnderAgreementsToRepurchaseIncreaseDecrease",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Securities Sold Under Agreements To Repurchase Increase Decrease",
        "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.",
        "terseLabel": "Securities sold under agreements to repurchase decrease"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_SecuritiesSoldUnderAgreementsToRepurchaseWeightedAverageRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "SecuritiesSoldUnderAgreementsToRepurchaseWeightedAverageRate",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities sold under agreements to repurchase weighted average rate",
        "label": "Securities Sold Under Agreements To Repurchase Weighted Average Rate",
        "documentation": "Securities Sold Under Agreements to Repurchase Weighted Average Rate"
       }
      }
     },
     "auth_ref": []
    },
    "dei_Security12bTitle": {
     "xbrltype": "securityTitleItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "Security12bTitle",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Title of 12(b) Security",
        "label": "Title of 12(b) Security",
        "documentation": "Title of a 12(b) registered security."
       }
      }
     },
     "auth_ref": [
      "r894"
     ]
    },
    "dei_SecurityExchangeName": {
     "xbrltype": "edgarExchangeCodeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "SecurityExchangeName",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Security Exchange Name",
        "label": "Security Exchange Name",
        "documentation": "Name of the Exchange on which a security is registered."
       }
      }
     },
     "auth_ref": [
      "r896"
     ]
    },
    "us-gaap_ShareBasedCompensation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ShareBasedCompensation",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Share-Based Payment Arrangement, Noncash Expense, Total",
        "terseLabel": "Stock-based compensation expense",
        "label": "Share-Based Payment Arrangement, Noncash Expense",
        "documentation": "Amount of noncash expense for share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r14"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maximum number of shares to be issued in stock incentive plan (in shares)",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Number of Shares Authorized",
        "documentation": "Number of shares authorized for issuance under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r856"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common stock awarded in SI plan (in shares)",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Grants in Period, Gross",
        "documentation": "Gross number of share options (or share units) granted during the period."
       }
      }
     },
     "auth_ref": [
      "r469"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Award Types",
        "terseLabel": "All Award Types",
        "documentation": "Award under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r461",
      "r462",
      "r463",
      "r465",
      "r466",
      "r467",
      "r468",
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r474",
      "r475",
      "r476",
      "r477",
      "r478",
      "r479",
      "r480",
      "r481",
      "r482",
      "r485",
      "r486",
      "r487",
      "r488",
      "r489"
     ]
    },
    "us-gaap_ShareBasedCompensationOptionAndIncentivePlansPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ShareBasedCompensationOptionAndIncentivePlansPolicy",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stock Plans",
        "label": "Share-Based Payment Arrangement [Policy Text Block]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r460",
      "r464",
      "r483",
      "r484",
      "r485",
      "r486",
      "r489",
      "r490",
      "r491",
      "r492",
      "r493"
     ]
    },
    "fmbh_ShoppingCentersAndMallsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "ShoppingCentersAndMallsMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfGrossCommercialRealEstateLoansByPropertyTypeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Shopping Centers and Malls",
        "label": "Shopping Centers and Malls [Member]",
        "documentation": "Shopping centers and malls."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_ShortTermLeaseCostReimbursement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "ShortTermLeaseCostReimbursement",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Short-term lease cost",
        "label": "Short-Term Lease, Cost (Reimbursement)",
        "documentation": "Short term lease, cost (reimbursement)."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_SkilledNursingFacilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "SkilledNursingFacilityMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfGrossCommercialRealEstateLoansByPropertyTypeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Skilled Nursing Facility",
        "label": "Skilled Nursing Facility [Member]",
        "documentation": "Skilled nursing facility."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SpecialMentionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SpecialMentionMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Special Mention",
        "label": "Special Mention [Member]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r173",
      "r174",
      "r175",
      "r1053"
     ]
    },
    "us-gaap_StatementEquityComponentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StatementEquityComponentsAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accumulated Other Comprehensive Income (Loss)",
        "label": "Equity Components [Axis]",
        "documentation": "Information by component of equity."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r83",
      "r87",
      "r88",
      "r210",
      "r238",
      "r239",
      "r240",
      "r259",
      "r260",
      "r261",
      "r264",
      "r271",
      "r273",
      "r275",
      "r295",
      "r354",
      "r360",
      "r417",
      "r451",
      "r501",
      "r502",
      "r511",
      "r512",
      "r513",
      "r516",
      "r528",
      "r529",
      "r546",
      "r548",
      "r549",
      "r550",
      "r551",
      "r553",
      "r563",
      "r597",
      "r598",
      "r599",
      "r600",
      "r601",
      "r602",
      "r606",
      "r609",
      "r630",
      "r704",
      "r717",
      "r718",
      "r719",
      "r733",
      "r783"
     ]
    },
    "us-gaap_StatementLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StatementLineItems",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statement [Line Items]",
        "label": "Statement [Line Items]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r259",
      "r260",
      "r261",
      "r295",
      "r609",
      "r664",
      "r730",
      "r734",
      "r738",
      "r739",
      "r740",
      "r741",
      "r742",
      "r743",
      "r745",
      "r748",
      "r749",
      "r750",
      "r751",
      "r752",
      "r754",
      "r755",
      "r756",
      "r757",
      "r759",
      "r760",
      "r761",
      "r762",
      "r763",
      "r765",
      "r767",
      "r768",
      "r769",
      "r770",
      "r771",
      "r772",
      "r773",
      "r774",
      "r775",
      "r776",
      "r777",
      "r778",
      "r779",
      "r780",
      "r783",
      "r883"
     ]
    },
    "us-gaap_StatementOfCashFlowsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StatementOfCashFlowsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Cash Flows [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StatementOfFinancialPositionAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StatementOfFinancialPositionAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Financial Position [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StatementOfIncomeAndComprehensiveIncomeAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StatementOfIncomeAndComprehensiveIncomeAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Comprehensive Income [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StatementOfStockholdersEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StatementOfStockholdersEquityAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Stockholders' Equity [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StatementTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StatementTable",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statement [Table]",
        "label": "Statement [Table]",
        "documentation": "Disclosure of information about statement of comprehensive income, income, other comprehensive income, financial position, cash flows, and shareholders' equity."
       }
      }
     },
     "auth_ref": [
      "r259",
      "r260",
      "r261",
      "r295",
      "r304",
      "r609",
      "r664",
      "r730",
      "r734",
      "r738",
      "r739",
      "r740",
      "r741",
      "r742",
      "r743",
      "r745",
      "r748",
      "r749",
      "r750",
      "r751",
      "r752",
      "r754",
      "r755",
      "r756",
      "r757",
      "r759",
      "r760",
      "r761",
      "r762",
      "r763",
      "r765",
      "r767",
      "r768",
      "r769",
      "r770",
      "r771",
      "r772",
      "r773",
      "r774",
      "r775",
      "r776",
      "r777",
      "r778",
      "r779",
      "r780",
      "r783",
      "r883"
     ]
    },
    "ecd_StkPrcOrTsrEstimationMethodTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "StkPrcOrTsrEstimationMethodTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Price or TSR Estimation Method [Text Block]",
        "terseLabel": "Stock Price or TSR Estimation Method"
       }
      }
     },
     "auth_ref": [
      "r903",
      "r913",
      "r923",
      "r955"
     ]
    },
    "us-gaap_StockAppreciationRightsSARSMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockAppreciationRightsSARSMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Appreciation Rights (SARs) [Member]",
        "terseLabel": "Stock Appreciation Rights (SARs)",
        "documentation": "Right to receive cash or shares equal to appreciation of predetermined number of grantor's shares during predetermined time period."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_StockIncentivePlanTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "StockIncentivePlanTerm",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stock plans, term",
        "label": "Stock Incentive Plan Term",
        "documentation": "Stock incentive plan, term."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StockIssuedDuringPeriodSharesAcquisitions": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockIssuedDuringPeriodSharesAcquisitions",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stock Issued During Period, Shares, Acquisitions",
        "label": "Stock Issued During Period, Shares, Acquisitions",
        "documentation": "Number of shares of stock issued during the period pursuant to acquisitions."
       }
      }
     },
     "auth_ref": [
      "r82",
      "r83",
      "r109"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodSharesDividendReinvestmentPlan": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockIssuedDuringPeriodSharesDividendReinvestmentPlan",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Issuance of common shares pursuant to the Dividend Reinvestment Plan (in shares)",
        "label": "Stock Issued During Period, Shares, Dividend Reinvestment Plan",
        "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."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r783",
      "r803"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stock issued during period, shares, employee stock purchase plans",
        "label": "Stock Issued During Period, Shares, Employee Stock Purchase Plans",
        "documentation": "Number of shares issued during the period as a result of an employee stock purchase plan."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r82",
      "r83",
      "r109"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardForfeited": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockIssuedDuringPeriodSharesRestrictedStockAwardForfeited",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stock issued during period, shares, restricted stock award, forfeited",
        "label": "Stock Issued During Period, Shares, Restricted Stock Award, Forfeited",
        "documentation": "Number of shares related to Restricted Stock Award forfeited during the period."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r82",
      "r83",
      "r109"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockIssuedDuringPeriodSharesRestrictedStockAwardGross",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Restricted stock issued during period, shares, pursuant to the 2017 stock incentive plan",
        "label": "Stock Issued During Period, Shares, Restricted Stock Award, Gross",
        "documentation": "Total number of shares issued during the period, including shares forfeited, as a result of Restricted Stock Awards."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r109"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Stock Issued During Period, Shares, Restricted Stock Award, Net of Forfeitures, Total",
        "label": "Stock Issued During Period, Shares, Restricted Stock Award, Net of Forfeitures",
        "terseLabel": "Restricted stock issued during period, shares, pursuant to the 2017 stock incentive plan, net of forfeitures",
        "documentation": "Number of shares issued during the period related to Restricted Stock Awards, net of any shares forfeited."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r82",
      "r83",
      "r109"
     ]
    },
    "fmbh_StockIssuedDuringPeriodSharesStockIncentivePlan": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "StockIssuedDuringPeriodSharesStockIncentivePlan",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Issued During Period Shares Stock Incentive Plan",
        "documentation": "Stock issued during period shares stock incentive plan.",
        "terseLabel": "Common stock issued during period, shares, pursuant to the 2017 stock incentive plan"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StockIssuedDuringPeriodValueAcquisitions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockIssuedDuringPeriodValueAcquisitions",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Issuance of shares pursuant to the acquisition",
        "label": "Stock Issued During Period, Value, Acquisitions",
        "documentation": "Value of stock issued pursuant to acquisitions during the period."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r83",
      "r87",
      "r88",
      "r109"
     ]
    },
    "fmbh_StockIssuedDuringPeriodValueDeferredCompensationPlan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "StockIssuedDuringPeriodValueDeferredCompensationPlan",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Issuance of common shares pursuant to the deferred compensation plan",
        "label": "Stock Issued During Period Value Deferred Compensation Plan",
        "documentation": "Value of shares issued during the period to a deferred compensation plan."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StockIssuedDuringPeriodValueDividendReinvestmentPlan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockIssuedDuringPeriodValueDividendReinvestmentPlan",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Issuance of common shares pursuant to the dividend reinvestment plan",
        "label": "Stock Issued During Period, Value, Dividend Reinvestment Plan",
        "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."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r733",
      "r783",
      "r803",
      "r882",
      "r891"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockIssuedDuringPeriodValueEmployeeStockPurchasePlan",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Issuance of common shares pursuant to the employee stock purchase plan",
        "label": "Stock Issued During Period, Value, Employee Stock Purchase Plan",
        "documentation": "Aggregate change in value for stock issued during the period as a result of employee stock purchase plan."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r82",
      "r83",
      "r109"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardForfeitures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockIssuedDuringPeriodValueRestrictedStockAwardForfeitures",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Forfeiture of restricted shares pursuant to the 2017 stock incentive plan",
        "label": "Stock Issued During Period, Value, Restricted Stock Award, Forfeitures",
        "documentation": "Value of stock related to Restricted Stock Awards forfeited during the period."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r82",
      "r83",
      "r109"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardNetOfForfeitures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockIssuedDuringPeriodValueRestrictedStockAwardNetOfForfeitures",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Stock Issued During Period, Value, Restricted Stock Award, Net of Forfeitures, Total",
        "label": "Stock Issued During Period, Value, Restricted Stock Award, Net of Forfeitures",
        "terseLabel": "Issuance of restricted shares pursuant to 2017 stock incentive plan, net of forfeitures",
        "documentation": "Value of stock related to Restricted Stock Awards issued during the period, net of the stock value of such awards forfeited."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r109"
     ]
    },
    "fmbh_StockIssuedDuringPeriodValueStockIncentivePlan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "StockIssuedDuringPeriodValueStockIncentivePlan",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Issuance of common shares pursuant to 2017 stock incentive plan",
        "label": "Stock Issued During Period Value Stock Incentive Plan",
        "documentation": "Stock issued during period value stock incentive plan."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StockholdersEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockholdersEquity",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total stockholders\u2019 equity",
        "terseLabel": "Balance",
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "label": "Equity, Attributable to Parent",
        "documentation": "Amount of equity (deficit) attributable to parent. Excludes temporary equity and equity attributable to noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r83",
      "r87",
      "r88",
      "r108",
      "r747",
      "r764",
      "r784",
      "r785",
      "r873",
      "r892",
      "r1011",
      "r1047",
      "r1104",
      "r1135"
     ]
    },
    "us-gaap_StockholdersEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockholdersEquityAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stockholders\u2019 equity:",
        "label": "Equity, Attributable to Parent [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SubleaseIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SubleaseIncome",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Income from subleases",
        "label": "Sublease Income",
        "documentation": "Amount of sublease income excluding finance and operating lease expense."
       }
      }
     },
     "auth_ref": [
      "r617",
      "r872"
     ]
    },
    "us-gaap_SubordinatedDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SubordinatedDebt",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodEndLabel": "Subordinated Debt, Ending Balance",
        "periodStartLabel": "Subordinated Debt, Beginning Balance",
        "totalLabel": "Subordinated Debt, Total",
        "terseLabel": "Subordinated debt, net",
        "label": "Subordinated Debt",
        "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."
       }
      }
     },
     "auth_ref": [
      "r25",
      "r75",
      "r137",
      "r1124"
     ]
    },
    "us-gaap_SubordinatedDebtMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SubordinatedDebtMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subordinated Debt [Member]",
        "terseLabel": "Subordinated Debt",
        "documentation": "This element represents domestic or foreign subordinated debt. Subordinated debt has a lower priority of repayment in liquidation of the entity's assets."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SubstandardMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SubstandardMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioOnAmortizedCostBasisBasedOnRiskRatingCategoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Substandard",
        "label": "Substandard [Member]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r173",
      "r174",
      "r175",
      "r1053"
     ]
    },
    "fmbh_SummaryOfCumulativeBasisAdjustmentOfFairValueHedgesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "SummaryOfCumulativeBasisAdjustmentOfFairValueHedgesTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Cumulative Basis Adjustment of Fair Value Hedges",
        "label": "Summary Of Cumulative Basis Adjustment Of Fair Value Hedges Table [Text Block]",
        "documentation": "Summary of cumulative basis adjustment of fair value hedges."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_SummaryOfGrossCommercialRealEsateLoansByPropertyTypeTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "SummaryOfGrossCommercialRealEsateLoansByPropertyTypeTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Gross Commercial Real Esate Loans by Property Type",
        "label": "Summary of Gross Commercial Real Esate Loans by Property Type [Table Text Block]",
        "documentation": "Summary of gross commercial real esate loans by property type."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_SummaryOfPurchasedCreditDeterioratedLoansLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "SummaryOfPurchasedCreditDeterioratedLoansLineItems",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary Of Purchased Credit Deteriorated Loans [Line Items]",
        "label": "Summary Of Purchased Credit Deteriorated Loans [Line Items]",
        "documentation": "Summary of purchased credit deteriorated loans."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_SummaryOfPurchasedCreditDeterioratedLoansTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "SummaryOfPurchasedCreditDeterioratedLoansTable",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary Of Purchased Credit Deteriorated Loans [Table]",
        "label": "Summary Of Purchased Credit Deteriorated Loans [Table]",
        "documentation": "Summary of purchased credit deteriorated loans."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_SummaryOfPurchasedCreditDeterioratedPCDLoansTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "SummaryOfPurchasedCreditDeterioratedPCDLoansTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsTables",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Purchased Credit Deteriorated (PCD) Loans",
        "label": "Summary Of Purchased Credit Deteriorated P C D Loans Table [Text Block]",
        "documentation": "Summary of purchased credit deteriorated (PCD) loans."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_SummaryOfSignificantAccountingPoliciesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "SummaryOfSignificantAccountingPoliciesLineItems",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary Of Significant Accounting Policies [Line Items]",
        "label": "Summary Of Significant Accounting Policies [Line Items]",
        "documentation": "Summary of significant accounting policies."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_SummaryOfSignificantAccountingPoliciesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "SummaryOfSignificantAccountingPoliciesTable",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary Of Significant Accounting Policies [Table]",
        "label": "Summary Of Significant Accounting Policies [Table]",
        "documentation": "Summary of significant accounting policies."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SupplementalCashFlowInformationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SupplementalCashFlowInformationAbstract",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Supplemental disclosures of cash flow information",
        "label": "Supplemental Cash Flow Information [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SuppliesExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SuppliesExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stationery and supplies",
        "label": "Supplies Expense",
        "documentation": "Amount of expense associated with supplies that were used during the current accounting period."
       }
      }
     },
     "auth_ref": [
      "r148"
     ]
    },
    "ecd_TabularListTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TabularListTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tabular List [Table Text Block]",
        "terseLabel": "Tabular List, Table"
       }
      }
     },
     "auth_ref": [
      "r949"
     ]
    },
    "ecd_TotalShareholderRtnAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TotalShareholderRtnAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Shareholder Return Amount",
        "terseLabel": "Total Shareholder Return Amount"
       }
      }
     },
     "auth_ref": [
      "r941"
     ]
    },
    "ecd_TotalShareholderRtnVsPeerGroupTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TotalShareholderRtnVsPeerGroupTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Shareholder Return Vs Peer Group [Text Block]",
        "terseLabel": "Total Shareholder Return Vs Peer Group"
       }
      }
     },
     "auth_ref": [
      "r948"
     ]
    },
    "ecd_TradingArrAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TradingArrAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement [Axis]",
        "terseLabel": "Trading Arrangement:"
       }
      }
     },
     "auth_ref": [
      "r968"
     ]
    },
    "ecd_TradingArrByIndTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TradingArrByIndTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangements, by Individual [Table]",
        "terseLabel": "Trading Arrangements, by Individual"
       }
      }
     },
     "auth_ref": [
      "r970"
     ]
    },
    "dei_TradingSymbol": {
     "xbrltype": "tradingSymbolItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "TradingSymbol",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Trading Symbol",
        "label": "Trading Symbol",
        "documentation": "Trading symbol of an instrument as listed on an exchange."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TransferToOtherRealEstate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "TransferToOtherRealEstate",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loans transferred to other real estate",
        "label": "Real Estate Owned, Transfer to Real Estate Owned",
        "documentation": "Value transferred from mortgage loans to real estate owned (REO) in noncash transactions."
       }
      }
     },
     "auth_ref": [
      "r37",
      "r38",
      "r39"
     ]
    },
    "us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Instruments",
        "label": "Financial Instruments [Domain]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r317",
      "r318",
      "r319",
      "r320",
      "r321",
      "r322",
      "r323",
      "r324",
      "r325",
      "r326",
      "r327",
      "r328",
      "r329",
      "r330",
      "r331",
      "r332",
      "r333",
      "r334",
      "r335",
      "r336",
      "r337",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r449",
      "r450",
      "r554",
      "r588",
      "r631",
      "r632",
      "r633",
      "r634",
      "r635",
      "r636",
      "r637",
      "r638",
      "r639",
      "r640",
      "r641",
      "r642",
      "r643",
      "r644",
      "r646",
      "r648",
      "r649",
      "r650",
      "r651",
      "r652",
      "r653",
      "r654",
      "r655",
      "r656",
      "r657",
      "r658",
      "r659",
      "r660",
      "r661",
      "r662",
      "r705",
      "r861",
      "r863",
      "r864",
      "r865",
      "r866",
      "r867",
      "r868",
      "r869",
      "r870",
      "r874",
      "r984",
      "r985",
      "r986",
      "r987",
      "r988",
      "r989",
      "r990",
      "r1043",
      "r1044",
      "r1045",
      "r1046",
      "r1087",
      "r1090",
      "r1091",
      "r1092",
      "r1099",
      "r1102"
     ]
    },
    "ecd_TrdArrAdoptionDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TrdArrAdoptionDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement Adoption Date",
        "terseLabel": "Adoption Date"
       }
      }
     },
     "auth_ref": [
      "r971"
     ]
    },
    "ecd_TrdArrDuration": {
     "xbrltype": "durationItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TrdArrDuration",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement Duration",
        "terseLabel": "Arrangement Duration"
       }
      }
     },
     "auth_ref": [
      "r972"
     ]
    },
    "ecd_TrdArrExpirationDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TrdArrExpirationDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement Expiration Date",
        "terseLabel": "Expiration Date"
       }
      }
     },
     "auth_ref": [
      "r972"
     ]
    },
    "ecd_TrdArrIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TrdArrIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement, Individual Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r970"
     ]
    },
    "ecd_TrdArrIndTitle": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TrdArrIndTitle",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement, Individual Title",
        "terseLabel": "Title"
       }
      }
     },
     "auth_ref": [
      "r970"
     ]
    },
    "ecd_TrdArrSecuritiesAggAvailAmt": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TrdArrSecuritiesAggAvailAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement, Securities Aggregate Available Amount",
        "terseLabel": "Aggregate Available"
       }
      }
     },
     "auth_ref": [
      "r973"
     ]
    },
    "ecd_TrdArrTerminationDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TrdArrTerminationDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement Termination Date",
        "terseLabel": "Termination Date"
       }
      }
     },
     "auth_ref": [
      "r971"
     ]
    },
    "us-gaap_TreasuryStockCommonMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "TreasuryStockCommonMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Treasury Stock",
        "label": "Treasury Stock, Common [Member]",
        "documentation": "Previously issued common shares repurchased by the issuing entity and held in treasury."
       }
      }
     },
     "auth_ref": [
      "r42"
     ]
    },
    "us-gaap_TreasuryStockCommonShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "TreasuryStockCommonShares",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Treasury Stock, Common, Shares",
        "terseLabel": "Treasury stock (in shares)",
        "documentation": "Number of previously issued common shares repurchased by the issuing entity and held in treasury."
       }
      }
     },
     "auth_ref": [
      "r42"
     ]
    },
    "us-gaap_TreasuryStockCommonValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "TreasuryStockCommonValue",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Treasury Stock, Common, Value",
        "negatedLabel": "Treasury stock, at cost (652,571 shares in 2024 and 652,571 shares in 2023)",
        "documentation": "Amount allocated to previously issued common shares repurchased by the issuing entity and held in treasury."
       }
      }
     },
     "auth_ref": [
      "r42",
      "r43",
      "r87"
     ]
    },
    "us-gaap_TreasuryStockSharesAcquired": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "TreasuryStockSharesAcquired",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Purchase of treasury shares (in shares)",
        "label": "Treasury Stock, Shares, Acquired",
        "documentation": "Number of shares that have been repurchased during the period and are being held in treasury."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r83",
      "r109"
     ]
    },
    "us-gaap_TreasuryStockValueAcquiredCostMethod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "TreasuryStockValueAcquiredCostMethod",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Treasury Stock, Value, Acquired, Cost Method",
        "negatedLabel": "Purchase of treasury shares",
        "documentation": "Equity impact of the cost of common and preferred stock that were repurchased during the period. Recorded using the cost method."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r42",
      "r109"
     ]
    },
    "us-gaap_TroubledDebtRestructuringsOnFinancingReceivablesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "TroubledDebtRestructuringsOnFinancingReceivablesTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amortized Cost Basis of Loans Modification",
        "label": "Financing Receivable, Modified [Table Text Block]",
        "documentation": "Tabular disclosure of financing receivable modified for debtor experiencing financial difficulty."
       }
      }
     },
     "auth_ref": [
      "r176",
      "r177",
      "r831",
      "r1030",
      "r1031"
     ]
    },
    "us-gaap_TypeOfAdoptionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "TypeOfAdoptionMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accounting Standards Update",
        "label": "Accounting Standards Update [Domain]",
        "documentation": "Amendment to accounting standards."
       }
      }
     },
     "auth_ref": [
      "r208",
      "r209",
      "r210",
      "r211",
      "r212",
      "r213",
      "r263",
      "r264",
      "r265",
      "r266",
      "r276",
      "r302",
      "r303",
      "r351",
      "r352",
      "r353",
      "r354",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360",
      "r416",
      "r417",
      "r419",
      "r501",
      "r502",
      "r503",
      "r504",
      "r505",
      "r508",
      "r509",
      "r510",
      "r511",
      "r512",
      "r513",
      "r514",
      "r515",
      "r516",
      "r521",
      "r522",
      "r523",
      "r525",
      "r526",
      "r527",
      "r528",
      "r529",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552",
      "r553",
      "r555",
      "r556",
      "r557",
      "r558",
      "r559",
      "r560",
      "r561",
      "r562",
      "r563",
      "r564",
      "r565",
      "r591",
      "r592",
      "r605",
      "r606",
      "r607",
      "r625",
      "r626",
      "r627",
      "r628",
      "r629",
      "r630",
      "r666",
      "r667",
      "r668",
      "r715",
      "r716",
      "r717",
      "r718",
      "r719",
      "r720",
      "r721",
      "r722",
      "r723",
      "r724",
      "r725",
      "r726"
     ]
    },
    "us-gaap_USStatesAndPoliticalSubdivisionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "USStatesAndPoliticalSubdivisionsMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Obligations of States and Political Subdivisions",
        "label": "US States and Political Subdivisions Debt Securities [Member]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r850",
      "r874",
      "r877",
      "r1129"
     ]
    },
    "us-gaap_USTreasuryAndGovernmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "USTreasuryAndGovernmentMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "U.S. Treasury Securities and Obligations of U.S. Government Corporations and Agencies",
        "label": "US Treasury and Government [Member]",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r679",
      "r850",
      "r874",
      "r877",
      "r1129"
     ]
    },
    "us-gaap_UnallocatedFinancingReceivablesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "UnallocatedFinancingReceivablesMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingFinancialDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansOnNonaccrualStatusAndNonaccrualLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other Loans",
        "terseLabel": "All Other Loans",
        "label": "Unallocated Financing Receivables [Member]",
        "documentation": "Financing receivables that have not been allocated to a portfolio segment."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_UndrlygSecurityMktPriceChngPct": {
     "xbrltype": "pureItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "UndrlygSecurityMktPriceChngPct",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Underlying Security Market Price Change, Percent",
        "terseLabel": "Underlying Security Market Price Change"
       }
      }
     },
     "auth_ref": [
      "r967"
     ]
    },
    "fmbh_UnsecuredOpenEndLoansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20240630",
     "localname": "UnsecuredOpenEndLoansMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unsecured Open-end Loans",
        "label": "Unsecured Open End Loans [Member]",
        "documentation": "Unsecured open end loans."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_UseRightsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "UseRightsMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/DisclosureBusinessCombinationsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Right of Use Asset",
        "label": "Use Rights [Member]",
        "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."
       }
      }
     },
     "auth_ref": [
      "r24",
      "r1061",
      "r1062",
      "r1063",
      "r1064",
      "r1065",
      "r1066",
      "r1069",
      "r1070"
     ]
    },
    "us-gaap_ValuationTechniqueAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ValuationTechniqueAxis",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Valuation Approach and Technique",
        "label": "Valuation Approach and Technique [Axis]",
        "documentation": "Information by valuation approach and technique."
       }
      }
     },
     "auth_ref": [
      "r569",
      "r570",
      "r864",
      "r1092"
     ]
    },
    "us-gaap_ValuationTechniqueDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ValuationTechniqueDomain",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Valuation Approach and Technique",
        "label": "Valuation Approach and Technique [Domain]",
        "documentation": "Valuation approach and technique."
       }
      }
     },
     "auth_ref": [
      "r569",
      "r570",
      "r864",
      "r1092"
     ]
    },
    "us-gaap_VariableLeaseCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "VariableLeaseCost",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Variable lease cost",
        "label": "Variable Lease, Cost",
        "documentation": "Amount of variable lease cost, excluded from lease liability, recognized when obligation for payment is incurred for finance and operating leases."
       }
      }
     },
     "auth_ref": [
      "r616",
      "r872"
     ]
    },
    "ecd_VstngDtFrValOfEqtyAwrdsGrntdAndVstdInCvrdYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "VstngDtFrValOfEqtyAwrdsGrntdAndVstdInCvrdYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Vesting Date Fair Value of Equity Awards Granted and Vested in Covered Year [Member]",
        "terseLabel": "Vesting Date Fair Value of Equity Awards Granted and Vested in Covered Year"
       }
      }
     },
     "auth_ref": [
      "r937"
     ]
    },
    "us-gaap_WeightedAverageBasicSharesOutstandingProForma": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "WeightedAverageBasicSharesOutstandingProForma",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Basic weighted average shares o/s",
        "label": "Weighted Average Basic Shares Outstanding, Pro Forma",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "srt_WeightedAverageMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "WeightedAverageMember",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureFairValueOfAssetsAndLiabilitiesSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted Average",
        "label": "Weighted Average [Member]"
       }
      }
     },
     "auth_ref": [
      "r571",
      "r647",
      "r817",
      "r818",
      "r864",
      "r1111",
      "r1113",
      "r1116"
     ]
    },
    "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "WeightedAverageNumberOfDilutedSharesOutstanding",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Diluted weighted average common shares outstanding",
        "label": "Weighted Average Number of Shares Outstanding, Diluted",
        "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."
       }
      }
     },
     "auth_ref": [
      "r279",
      "r289"
     ]
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "WeightedAverageNumberOfSharesOutstandingBasic",
     "presentation": [
      "http://www.firstmid.com/20240630/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Weighted Average Number of Shares Outstanding, Basic, Total",
        "terseLabel": "Weighted average common shares outstanding",
        "label": "Weighted Average Number of Shares Outstanding, Basic",
        "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."
       }
      }
     },
     "auth_ref": [
      "r278",
      "r289"
     ]
    },
    "ecd_YrEndFrValOfEqtyAwrdsGrntdInCvrdYrOutsdngAndUnvstdMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "YrEndFrValOfEqtyAwrdsGrntdInCvrdYrOutsdngAndUnvstdMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Year-end Fair Value of Equity Awards Granted in Covered Year that are Outstanding and Unvested [Member]",
        "terseLabel": "Year-end Fair Value of Equity Awards Granted in Covered Year that are Outstanding and Unvested"
       }
      }
     },
     "auth_ref": [
      "r935"
     ]
    }
   }
  }
 },
 "std_ref": {
  "r0": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "25",
   "Paragraph": "16",
   "SubTopic": "10",
   "Topic": "805",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479405/805-10-25-16"
  },
  "r1": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "30",
   "Paragraph": "7",
   "SubTopic": "30",
   "Topic": "805",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479637/805-30-30-7"
  },
  "r2": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "30",
   "Paragraph": "8",
   "SubTopic": "30",
   "Topic": "805",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479637/805-30-30-8"
  },
  "r3": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "SubTopic": "230",
   "Topic": "830",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477401/830-230-45-1"
  },
  "r4": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "10A",
   "SubTopic": "10",
   "Topic": "220",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-10A"
  },
  "r5": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "10A",
   "Subparagraph": "(j)",
   "SubTopic": "10",
   "Topic": "220",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-10A"
  },
  "r6": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "10A",
   "Subparagraph": "(k)",
   "SubTopic": "10",
   "Topic": "220",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-10A"
  },
  "r7": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "12",
   "SubTopic": "10",
   "Topic": "220",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-12"
  },
  "r8": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "14",
   "SubTopic": "10",
   "Topic": "360",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482130/360-10-45-14"
  },
  "r9": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "14",
   "Subparagraph": "(a)",
   "SubTopic": "10",
   "Topic": "230",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-14"
  },
  "r10": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "15",
   "SubTopic": "10",
   "Topic": "220",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-15"
  },
  "r11": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "SubTopic": "405",
   "Topic": "942",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477787/942-405-45-2"
  },
  "r12": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "20",
   "SubTopic": "10",
   "Topic": "810",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481231/810-10-45-20"
  },
  "r13": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "21C",
   "SubTopic": "10",
   "Topic": "230",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-21C"
  },
  "r14": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "28",
   "Subparagraph": "(a)",
   "SubTopic": "10",
   "Topic": "230",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-28"
  },
  "r15": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "28",
   "Subparagraph": "(b)",
   "SubTopic": "10",
   "Topic": "230",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-28"
  },
  "r16": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "10",
   "Topic": "360",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482099/360-10-50-1"
  },
  "r17": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "SubTopic": "30",
   "Topic": "805",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479581/805-30-50-1"
  },
  "r18": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(c)(3)",
   "SubTopic": "10",
   "Topic": "810",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481203/810-10-50-1A"
  },
  "r19": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "SubTopic": "10",
   "Topic": "505",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-2"
  },
  "r20": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "SubTopic": "10",
   "Topic": "815",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-2"
  },
  "r21": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(h)(4)",
   "SubTopic": "10",
   "Topic": "805",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r22": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "SubTopic": "10",
   "Topic": "360",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482099/360-10-50-3"
  },
  "r23": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4D",
   "Subparagraph": "(c)(2)",
   "SubTopic": "20",
   "Topic": "860",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481326/860-20-50-4D"
  },
  "r24": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "31",
   "Subparagraph": "(i)",
   "SubTopic": "20",
   "Topic": "805",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479876/805-20-55-31"
  },
  "r25": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(22))",
   "SubTopic": "10",
   "Topic": "210",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r26": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "220",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "14",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-14"
  },
  "r27": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "220",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "14A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-14A"
  },
  "r28": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "220",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-5"
  },
  "r29": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-12"
  },
  "r30": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "12",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-12"
  },
  "r31": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "13",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-13"
  },
  "r32": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "13",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-13"
  },
  "r33": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-15"
  },
  "r34": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-4"
  },
  "r35": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-8"
  },
  "r36": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482913/230-10-50-2"
  },
  "r37": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482913/230-10-50-3"
  },
  "r38": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482913/230-10-50-4"
  },
  "r39": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482913/230-10-50-5"
  },
  "r40": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "260",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482662/260-10-50-1"
  },
  "r41": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "470",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481544/470-10-50-5"
  },
  "r42": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "30",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481549/505-30-45-1"
  },
  "r43": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "30",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481520/505-30-50-4"
  },
  "r44": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "718",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(l)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r45": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "718",
   "SubTopic": "40",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480489/718-40-50-1"
  },
  "r46": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "805",
   "SubTopic": "10",
   "Section": "25",
   "Paragraph": "23",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479405/805-10-25-23"
  },
  "r47": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "805",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r48": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "805",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r49": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "805",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-3"
  },
  "r50": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "805",
   "SubTopic": "10",
   "Section": "55",
   "Paragraph": "37",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479303/805-10-55-37"
  },
  "r51": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "805",
   "SubTopic": "20",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479907/805-20-50-1"
  },
  "r52": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "805",
   "SubTopic": "20",
   "Section": "55",
   "Paragraph": "20",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479876/805-20-55-20"
  },
  "r53": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-1"
  },
  "r54": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-1A"
  },
  "r55": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-1B"
  },
  "r56": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(1)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-2"
  },
  "r57": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4"
  },
  "r58": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4A"
  },
  "r59": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4A"
  },
  "r60": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4B"
  },
  "r61": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4B"
  },
  "r62": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4C"
  },
  "r63": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4D"
  },
  "r64": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-5"
  },
  "r65": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-8"
  },
  "r66": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "55",
   "Paragraph": "182",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480401/815-10-55-182"
  },
  "r67": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "25",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480238/815-25-50-1"
  },
  "r68": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "825",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-11"
  },
  "r69": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "825",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-12"
  },
  "r70": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "210",
   "Section": "45",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477263/942-210-45-4"
  },
  "r71": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "470",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477734/942-470-50-1"
  },
  "r72": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "470",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477734/942-470-50-3"
  },
  "r73": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "470",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477734/942-470-50-3"
  },
  "r74": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "205",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/205/tableOfContent"
  },
  "r75": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(19))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r76": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(20))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r77": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(21))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r78": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(23))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r79": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(24))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r80": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(25))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r81": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(26))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r82": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(28))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r83": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(29))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r84": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r85": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(30)(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r86": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(30)(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r87": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(30))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r88": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(31))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r89": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(32))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r90": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r91": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483444/210-20-55-7"
  },
  "r92": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "10A",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-10A"
  },
  "r93": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-11"
  },
  "r94": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(1)(e))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r95": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r96": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(20))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r97": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r98": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r99": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r100": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(7)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r101": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(9)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r102": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "13",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-13"
  },
  "r103": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "15",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-15"
  },
  "r104": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "15",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-15"
  },
  "r105": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "24",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-24"
  },
  "r106": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "25",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-25"
  },
  "r107": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "28",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-28"
  },
  "r108": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SAB Topic 4.E)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480418/310-10-S99-2"
  },
  "r109": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.3-04)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480008/505-10-S99-1"
  },
  "r110": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480506/715-20-50-1"
  },
  "r111": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "805",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/805/tableOfContent"
  },
  "r112": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "05",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479515/805-10-05-4"
  },
  "r113": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "05",
   "Paragraph": "4",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479515/805-10-05-4"
  },
  "r114": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "05",
   "Paragraph": "4",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479515/805-10-05-4"
  },
  "r115": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "05",
   "Paragraph": "4",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479515/805-10-05-4"
  },
  "r116": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Section": "50",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479907/805-20-50-1"
  },
  "r117": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "805",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479581/805-30-50-1"
  },
  "r118": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "810",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/810/tableOfContent"
  },
  "r119": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "19",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481231/810-10-45-19"
  },
  "r120": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "815",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/815/tableOfContent"
  },
  "r121": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4B"
  },
  "r122": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4B"
  },
  "r123": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4B"
  },
  "r124": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "815",
   "SubTopic": "25",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480238/815-25-50-1"
  },
  "r125": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "825",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/825/tableOfContent"
  },
  "r126": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-10"
  },
  "r127": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481420/860-30-50-1A"
  },
  "r128": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r129": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r130": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(11))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r131": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(12))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r132": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(13)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r133": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(13)(3)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r134": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(13))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r135": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(15)(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r136": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(15))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r137": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(16))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r138": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r139": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(23))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r140": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r141": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r142": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(12))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r143": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(13)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r144": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(13)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r145": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(13))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r146": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(14)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r147": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(14)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r148": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(14))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r149": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(15))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r150": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r151": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(22))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r152": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r153": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r154": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r155": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r156": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r157": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r158": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "230",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479024/942-230-45-1"
  },
  "r159": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/942-320/tableOfContent"
  },
  "r160": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "470",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478878/942-470-45-1"
  },
  "r161": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-32"
  },
  "r162": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-32"
  },
  "r163": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-11B"
  },
  "r164": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11B",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-11B"
  },
  "r165": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11B",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-11B"
  },
  "r166": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11B",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-11B"
  },
  "r167": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11B",
   "Subparagraph": "(c)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-11B"
  },
  "r168": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11B",
   "Subparagraph": "(c)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-11B"
  },
  "r169": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11B",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-11B"
  },
  "r170": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-15"
  },
  "r171": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-15"
  },
  "r172": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-29"
  },
  "r173": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-29"
  },
  "r174": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-29"
  },
  "r175": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-29"
  },
  "r176": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "33",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-33"
  },
  "r177": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "34",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-34"
  },
  "r178": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-6"
  },
  "r179": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-7"
  },
  "r180": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-7"
  },
  "r181": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-7"
  },
  "r182": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-7A"
  },
  "r183": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-9"
  },
  "r184": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "40",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481774/310-40-40-7A"
  },
  "r185": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481746/310-40-50-4"
  },
  "r186": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(aa)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-5"
  },
  "r187": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-5"
  },
  "r188": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-5"
  },
  "r189": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-6"
  },
  "r190": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-6"
  },
  "r191": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-6"
  },
  "r192": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-6"
  },
  "r193": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-7"
  },
  "r194": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "840",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481161/840-30-50-1"
  },
  "r195": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "944",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479432/944-30-50-2"
  },
  "r196": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "SubTopic": "20",
   "Topic": "740",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482659/740-20-45-2"
  },
  "r197": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(h))",
   "SubTopic": "10",
   "Topic": "235",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r198": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "a",
   "Publisher": "SEC"
  },
  "r199": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "b",
   "Subparagraph": "(1)",
   "Publisher": "SEC"
  },
  "r200": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1403",
   "Paragraph": "b",
   "Publisher": "SEC"
  },
  "r201": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1404",
   "Paragraph": "a",
   "Publisher": "SEC"
  },
  "r202": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1404",
   "Paragraph": "b",
   "Publisher": "SEC"
  },
  "r203": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "a",
   "Subparagraph": "(1)",
   "Publisher": "SEC"
  },
  "r204": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "a",
   "Subparagraph": "(2)",
   "Publisher": "SEC"
  },
  "r205": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "a",
   "Subparagraph": "(3)",
   "Publisher": "SEC"
  },
  "r206": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "a",
   "Subparagraph": "(4)",
   "Publisher": "SEC"
  },
  "r207": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "c",
   "Publisher": "SEC"
  },
  "r208": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479343/105-10-65-6"
  },
  "r209": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479343/105-10-65-6"
  },
  "r210": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479343/105-10-65-6"
  },
  "r211": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479343/105-10-65-6"
  },
  "r212": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479343/105-10-65-6"
  },
  "r213": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "7",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479343/105-10-65-7"
  },
  "r214": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "205",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5C",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483499/205-20-50-5C"
  },
  "r215": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "205",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483499/205-20-50-7"
  },
  "r216": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(15))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r217": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(16))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r218": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(17))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r219": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(18))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r220": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r221": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(3)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r222": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(30)(a)(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r223": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r224": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483466/210-20-50-3"
  },
  "r225": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483466/210-20-50-3"
  },
  "r226": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483466/210-20-50-4"
  },
  "r227": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483444/210-20-55-10"
  },
  "r228": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "10A",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-10A"
  },
  "r229": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "10A",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-10A"
  },
  "r230": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-11"
  },
  "r231": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-12"
  },
  "r232": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "17A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-17A"
  },
  "r233": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-1A"
  },
  "r234": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-1A"
  },
  "r235": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1A",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-1A"
  },
  "r236": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-1B"
  },
  "r237": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1B",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-1B"
  },
  "r238": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482765/220-10-50-4"
  },
  "r239": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482765/220-10-50-5"
  },
  "r240": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482765/220-10-50-6"
  },
  "r241": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(24))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r242": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(25))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r243": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5",
   "Subparagraph": "(SAB Topic 6.B)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-5"
  },
  "r244": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-11"
  },
  "r245": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "12",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-12"
  },
  "r246": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "17",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-17"
  },
  "r247": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-2"
  },
  "r248": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "24",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-24"
  },
  "r249": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "25",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-25"
  },
  "r250": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482913/230-10-50-2"
  },
  "r251": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482913/230-10-50-2A"
  },
  "r252": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482913/230-10-50-8"
  },
  "r253": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(g)(1)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r254": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(h)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r255": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(m)(1)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r256": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(m)(1)(ii)(A)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r257": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(m)(1)(ii)(A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r258": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-04(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-3"
  },
  "r259": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "23",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483421/250-10-45-23"
  },
  "r260": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "24",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483421/250-10-45-24"
  },
  "r261": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "5",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483421/250-10-45-5"
  },
  "r262": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483421/250-10-45-6"
  },
  "r263": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483443/250-10-50-1"
  },
  "r264": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483443/250-10-50-1"
  },
  "r265": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483443/250-10-50-1"
  },
  "r266": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483443/250-10-50-1"
  },
  "r267": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483443/250-10-50-11"
  },
  "r268": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483443/250-10-50-11"
  },
  "r269": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483443/250-10-50-3"
  },
  "r270": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483443/250-10-50-4"
  },
  "r271": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483443/250-10-50-6"
  },
  "r272": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483443/250-10-50-7"
  },
  "r273": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483443/250-10-50-7"
  },
  "r274": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483443/250-10-50-8"
  },
  "r275": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483443/250-10-50-9"
  },
  "r276": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5",
   "Subparagraph": "(SAB Topic 11.M.Q2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480530/250-10-S99-5"
  },
  "r277": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/260/tableOfContent"
  },
  "r278": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482689/260-10-45-10"
  },
  "r279": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "16",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482689/260-10-45-16"
  },
  "r280": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482689/260-10-45-2"
  },
  "r281": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "40",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482689/260-10-45-40"
  },
  "r282": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "40",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482689/260-10-45-40"
  },
  "r283": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "40",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482689/260-10-45-40"
  },
  "r284": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "40",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482689/260-10-45-40"
  },
  "r285": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "60B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482689/260-10-45-60B"
  },
  "r286": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "60B",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482689/260-10-45-60B"
  },
  "r287": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "60B",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482689/260-10-45-60B"
  },
  "r288": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482689/260-10-45-7"
  },
  "r289": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482662/260-10-50-1"
  },
  "r290": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482662/260-10-50-1"
  },
  "r291": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482662/260-10-50-2"
  },
  "r292": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482662/260-10-50-3"
  },
  "r293": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482635/260-10-55-15"
  },
  "r294": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "270",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482964/270-10-50-1"
  },
  "r295": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "272",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483014/272-10-45-1"
  },
  "r296": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-22"
  },
  "r297": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-22"
  },
  "r298": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-22"
  },
  "r299": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "24",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-24"
  },
  "r300": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "30",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-30"
  },
  "r301": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(ee)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-32"
  },
  "r302": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476173/280-10-65-1"
  },
  "r303": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476173/280-10-65-1"
  },
  "r304": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "13",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481990/310-10-45-13"
  },
  "r305": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481990/310-10-45-2"
  },
  "r306": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-11"
  },
  "r307": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11C",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-11C"
  },
  "r308": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "42",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-42"
  },
  "r309": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "42",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-42"
  },
  "r310": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "42",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-42"
  },
  "r311": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "44",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-44"
  },
  "r312": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481569/310-20-50-4"
  },
  "r313": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/320/tableOfContent"
  },
  "r314": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481830/320-10-45-1"
  },
  "r315": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481830/320-10-45-11"
  },
  "r316": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-10"
  },
  "r317": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-2"
  },
  "r318": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-2"
  },
  "r319": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(aa)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-2"
  },
  "r320": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(aaa)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-2"
  },
  "r321": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-2"
  },
  "r322": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-2"
  },
  "r323": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-2"
  },
  "r324": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-3"
  },
  "r325": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-3"
  },
  "r326": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-3"
  },
  "r327": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-3"
  },
  "r328": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-3"
  },
  "r329": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-5"
  },
  "r330": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-5"
  },
  "r331": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(aaa)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-5"
  },
  "r332": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-5"
  },
  "r333": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-5"
  },
  "r334": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-5"
  },
  "r335": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(f)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-5"
  },
  "r336": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(f)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-5"
  },
  "r337": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(f)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-5"
  },
  "r338": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(f)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-5"
  },
  "r339": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-5A"
  },
  "r340": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-5A"
  },
  "r341": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5A",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-5A"
  },
  "r342": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-5B"
  },
  "r343": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-5B"
  },
  "r344": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5B",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-5B"
  },
  "r345": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5B",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-5B"
  },
  "r346": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5B",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-5B"
  },
  "r347": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-9"
  },
  "r348": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-9"
  },
  "r349": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481687/323-10-50-3"
  },
  "r350": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479654/326-10-65-1"
  },
  "r351": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479654/326-10-65-4"
  },
  "r352": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479654/326-10-65-4"
  },
  "r353": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479654/326-10-65-4"
  },
  "r354": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479654/326-10-65-4"
  },
  "r355": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(e)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479654/326-10-65-4"
  },
  "r356": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(e)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479654/326-10-65-4"
  },
  "r357": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479654/326-10-65-5"
  },
  "r358": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479654/326-10-65-5"
  },
  "r359": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479654/326-10-65-5"
  },
  "r360": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479654/326-10-65-5"
  },
  "r361": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479344/326-20-45-1"
  },
  "r362": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479319/326-20-50-11"
  },
  "r363": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479319/326-20-50-13"
  },
  "r364": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479319/326-20-50-13"
  },
  "r365": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479319/326-20-50-13"
  },
  "r366": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479319/326-20-50-13"
  },
  "r367": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479319/326-20-50-13"
  },
  "r368": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479319/326-20-50-13"
  },
  "r369": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479319/326-20-50-13"
  },
  "r370": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "14",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479319/326-20-50-14"
  },
  "r371": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "16",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479319/326-20-50-16"
  },
  "r372": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "16",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479319/326-20-50-16"
  },
  "r373": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "16",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479319/326-20-50-16"
  },
  "r374": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "16",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479319/326-20-50-16"
  },
  "r375": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "16",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479319/326-20-50-16"
  },
  "r376": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "19",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479319/326-20-50-19"
  },
  "r377": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "19",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479319/326-20-50-19"
  },
  "r378": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "19",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479319/326-20-50-19"
  },
  "r379": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "19",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479319/326-20-50-19"
  },
  "r380": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479319/326-20-50-5"
  },
  "r381": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479319/326-20-50-5"
  },
  "r382": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479319/326-20-50-6"
  },
  "r383": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479130/326-30-45-1"
  },
  "r384": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479106/326-30-50-4"
  },
  "r385": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479106/326-30-50-4"
  },
  "r386": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479106/326-30-50-4"
  },
  "r387": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479106/326-30-50-4"
  },
  "r388": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479106/326-30-50-5"
  },
  "r389": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479106/326-30-50-7"
  },
  "r390": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479106/326-30-50-9"
  },
  "r391": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480265/350-10-S45-1"
  },
  "r392": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482598/350-20-45-1"
  },
  "r393": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482573/350-20-50-1"
  },
  "r394": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482573/350-20-50-1"
  },
  "r395": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482573/350-20-50-1"
  },
  "r396": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482573/350-20-50-1"
  },
  "r397": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482573/350-20-50-1"
  },
  "r398": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482573/350-20-50-1"
  },
  "r399": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482573/350-20-50-1"
  },
  "r400": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482573/350-20-50-1"
  },
  "r401": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482573/350-20-50-1"
  },
  "r402": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482573/350-20-50-1A"
  },
  "r403": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482573/350-20-50-2"
  },
  "r404": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482686/350-30-45-1"
  },
  "r405": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482686/350-30-45-2"
  },
  "r406": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-1"
  },
  "r407": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-1"
  },
  "r408": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-1"
  },
  "r409": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-1"
  },
  "r410": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-1"
  },
  "r411": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-2"
  },
  "r412": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-2"
  },
  "r413": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-2"
  },
  "r414": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-2"
  },
  "r415": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-3"
  },
  "r416": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "60",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476166/350-60-65-1"
  },
  "r417": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "60",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476166/350-60-65-1"
  },
  "r418": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "405",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(e)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477092/405-40-50-1"
  },
  "r419": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "405",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477123/405-50-65-1"
  },
  "r420": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483076/450-20-50-4"
  },
  "r421": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483076/450-20-50-9"
  },
  "r422": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 5.Y.Q2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480102/450-20-S99-1"
  },
  "r423": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 5.Y.Q4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480102/450-20-S99-1"
  },
  "r424": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1A",
   "Subparagraph": "(SX 210.13-01(a)(4)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480097/470-10-S99-1A"
  },
  "r425": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1A",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii)(A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480097/470-10-S99-1A"
  },
  "r426": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1A",
   "Subparagraph": "(SX 210.13-01(a)(4)(iv))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480097/470-10-S99-1A"
  },
  "r427": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1A",
   "Subparagraph": "(SX 210.13-01(a)(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480097/470-10-S99-1A"
  },
  "r428": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1B",
   "Subparagraph": "(SX 210.13-02(a)(4)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480097/470-10-S99-1B"
  },
  "r429": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1B",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480097/470-10-S99-1B"
  },
  "r430": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1B",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480097/470-10-S99-1B"
  },
  "r431": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1B",
   "Subparagraph": "(SX 210.13-02(a)(4)(iv))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480097/470-10-S99-1B"
  },
  "r432": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1B",
   "Subparagraph": "(SX 210.13-02(a)(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480097/470-10-S99-1B"
  },
  "r433": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1B"
  },
  "r434": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1B"
  },
  "r435": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1B"
  },
  "r436": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1B"
  },
  "r437": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1B"
  },
  "r438": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1B"
  },
  "r439": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1D",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1D"
  },
  "r440": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1D",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1D"
  },
  "r441": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1D",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1D"
  },
  "r442": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1E",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1E"
  },
  "r443": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1E",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1E"
  },
  "r444": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1E",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1E"
  },
  "r445": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1F",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1F"
  },
  "r446": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1F",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1F"
  },
  "r447": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1F",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1F"
  },
  "r448": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1F",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1F"
  },
  "r449": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1I",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1I"
  },
  "r450": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-18"
  },
  "r451": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.3-04)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480008/505-10-S99-1"
  },
  "r452": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480506/715-20-50-1"
  },
  "r453": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480506/715-20-50-1"
  },
  "r454": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(02)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480506/715-20-50-1"
  },
  "r455": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(02)(A)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480506/715-20-50-1"
  },
  "r456": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(02)(B)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480506/715-20-50-1"
  },
  "r457": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(02)(C)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480506/715-20-50-1"
  },
  "r458": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(03)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480506/715-20-50-1"
  },
  "r459": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480576/715-80-50-5"
  },
  "r460": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/718/tableOfContent"
  },
  "r461": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r462": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r463": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r464": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r465": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r466": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r467": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r468": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r469": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r470": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)(02)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r471": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)(03)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r472": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)(04)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r473": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r474": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r475": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r476": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(iii)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r477": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(iii)(02)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r478": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(iii)(03)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r479": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r480": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r481": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r482": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r483": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r484": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r485": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r486": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r487": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r488": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(iv)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r489": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(v)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r490": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 14.C.Q3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479830/718-10-S99-1"
  },
  "r491": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 14.D.1.Q5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479830/718-10-S99-1"
  },
  "r492": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 14.D.2.Q6)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479830/718-10-S99-1"
  },
  "r493": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 14.D.3.Q2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479830/718-10-S99-1"
  },
  "r494": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "720",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483359/720-20-50-1"
  },
  "r495": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482525/740-10-45-4"
  },
  "r496": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482525/740-10-45-6"
  },
  "r497": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482685/740-10-50-10"
  },
  "r498": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482685/740-10-50-12"
  },
  "r499": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482685/740-10-50-22"
  },
  "r500": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "23",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482685/740-10-50-23"
  },
  "r501": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "8",
   "Subparagraph": "(d)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482615/740-10-65-8"
  },
  "r502": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "8",
   "Subparagraph": "(d)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482615/740-10-65-8"
  },
  "r503": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "9",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482615/740-10-65-9"
  },
  "r504": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "9",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482615/740-10-65-9"
  },
  "r505": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "9",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482615/740-10-65-9"
  },
  "r506": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 6.I.1.Q1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479360/740-10-S99-1"
  },
  "r507": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 6.I.7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479360/740-10-S99-1"
  },
  "r508": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478666/740-323-65-2"
  },
  "r509": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478666/740-323-65-2"
  },
  "r510": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478666/740-323-65-2"
  },
  "r511": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(d)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478666/740-323-65-2"
  },
  "r512": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(d)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478666/740-323-65-2"
  },
  "r513": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478666/740-323-65-2"
  },
  "r514": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478666/740-323-65-2"
  },
  "r515": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478666/740-323-65-2"
  },
  "r516": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478666/740-323-65-2"
  },
  "r517": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(h)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r518": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(h)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r519": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479907/805-20-50-5"
  },
  "r520": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479907/805-20-50-5"
  },
  "r521": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479845/805-20-65-3"
  },
  "r522": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479845/805-20-65-3"
  },
  "r523": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "3",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479845/805-20-65-3"
  },
  "r524": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479581/805-30-50-1"
  },
  "r525": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "60",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476176/805-60-65-1"
  },
  "r526": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "60",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476176/805-60-65-1"
  },
  "r527": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "60",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476176/805-60-65-1"
  },
  "r528": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "60",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(d)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476176/805-60-65-1"
  },
  "r529": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "60",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476176/805-60-65-1"
  },
  "r530": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "19",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481231/810-10-45-19"
  },
  "r531": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "25",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481231/810-10-45-25"
  },
  "r532": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "25",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481231/810-10-45-25"
  },
  "r533": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481203/810-10-50-1A"
  },
  "r534": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481203/810-10-50-1A"
  },
  "r535": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(bb)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481203/810-10-50-3"
  },
  "r536": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481203/810-10-50-3"
  },
  "r537": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4E",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4E"
  },
  "r538": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4EE",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4EE"
  },
  "r539": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4EE",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4EE"
  },
  "r540": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4EE",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4EE"
  },
  "r541": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4K",
   "Subparagraph": "(a)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4K"
  },
  "r542": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5C",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-5C"
  },
  "r543": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480528/815-20-65-6"
  },
  "r544": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480528/815-20-65-6"
  },
  "r545": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480528/815-20-65-6"
  },
  "r546": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480528/815-20-65-6"
  },
  "r547": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480528/815-20-65-6"
  },
  "r548": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(h)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480528/815-20-65-6"
  },
  "r549": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(h)(1)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480528/815-20-65-6"
  },
  "r550": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(h)(1)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480528/815-20-65-6"
  },
  "r551": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(h)(1)(iv)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480528/815-20-65-6"
  },
  "r552": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(i)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480528/815-20-65-6"
  },
  "r553": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(i)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480528/815-20-65-6"
  },
  "r554": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480237/815-40-50-5"
  },
  "r555": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480175/815-40-65-1"
  },
  "r556": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480175/815-40-65-1"
  },
  "r557": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480175/815-40-65-1"
  },
  "r558": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480175/815-40-65-1"
  },
  "r559": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480175/815-40-65-1"
  },
  "r560": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480175/815-40-65-1"
  },
  "r561": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480175/815-40-65-1"
  },
  "r562": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(e)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480175/815-40-65-1"
  },
  "r563": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(e)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480175/815-40-65-1"
  },
  "r564": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(e)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480175/815-40-65-1"
  },
  "r565": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480175/815-40-65-1"
  },
  "r566": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "35",
   "Paragraph": "54B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482134/820-10-35-54B"
  },
  "r567": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r568": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r569": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(bbb)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r570": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(bbb)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r571": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(bbb)(2)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r572": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r573": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r574": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r575": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r576": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r577": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r578": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r579": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r580": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2E",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2E"
  },
  "r581": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-3"
  },
  "r582": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-3"
  },
  "r583": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-6A"
  },
  "r584": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6A",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-6A"
  },
  "r585": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6A",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-6A"
  },
  "r586": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6A",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-6A"
  },
  "r587": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6A",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-6A"
  },
  "r588": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-6B"
  },
  "r589": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6B",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-6B"
  },
  "r590": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6B",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-6B"
  },
  "r591": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "13",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482477/820-10-65-13"
  },
  "r592": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "13",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482477/820-10-65-13"
  },
  "r593": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482736/825-10-45-1A"
  },
  "r594": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482736/825-10-45-2"
  },
  "r595": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-10"
  },
  "r596": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "28",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-28"
  },
  "r597": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "17",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481694/830-30-45-17"
  },
  "r598": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "20",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481694/830-30-45-20"
  },
  "r599": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "20",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481694/830-30-45-20"
  },
  "r600": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "20",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481694/830-30-45-20"
  },
  "r601": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "20",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481694/830-30-45-20"
  },
  "r602": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481674/830-30-50-1"
  },
  "r603": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "835",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483013/835-20-50-1"
  },
  "r604": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "835",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482925/835-30-45-2"
  },
  "r605": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(d)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479832/842-10-65-5"
  },
  "r606": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "8",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479832/842-10-65-8"
  },
  "r607": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "8",
   "Subparagraph": "(c)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479832/842-10-65-8"
  },
  "r608": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/842-20/tableOfContent"
  },
  "r609": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "35",
   "Paragraph": "12A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479165/842-20-35-12A"
  },
  "r610": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479041/842-20-45-1"
  },
  "r611": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479041/842-20-45-1"
  },
  "r612": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "5",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479041/842-20-45-5"
  },
  "r613": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478964/842-20-50-3"
  },
  "r614": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478964/842-20-50-4"
  },
  "r615": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478964/842-20-50-4"
  },
  "r616": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478964/842-20-50-4"
  },
  "r617": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478964/842-20-50-4"
  },
  "r618": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(g)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478964/842-20-50-4"
  },
  "r619": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(g)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478964/842-20-50-4"
  },
  "r620": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(g)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478964/842-20-50-4"
  },
  "r621": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(g)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478964/842-20-50-4"
  },
  "r622": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478964/842-20-50-6"
  },
  "r623": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478964/842-20-50-7A"
  },
  "r624": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7A",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478964/842-20-50-7A"
  },
  "r625": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483550/848-10-65-1"
  },
  "r626": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483550/848-10-65-2"
  },
  "r627": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483550/848-10-65-2"
  },
  "r628": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483550/848-10-65-2"
  },
  "r629": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)(3)(iii)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483550/848-10-65-2"
  },
  "r630": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)(3)(iii)(03)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483550/848-10-65-2"
  },
  "r631": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)(2)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481326/860-20-50-3"
  },
  "r632": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)(2)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481326/860-20-50-3"
  },
  "r633": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481326/860-20-50-3"
  },
  "r634": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(bb)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481326/860-20-50-3"
  },
  "r635": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(bb)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481326/860-20-50-3"
  },
  "r636": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(bb)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481326/860-20-50-3"
  },
  "r637": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481326/860-20-50-3"
  },
  "r638": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481326/860-20-50-3"
  },
  "r639": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481326/860-20-50-3"
  },
  "r640": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481326/860-20-50-4"
  },
  "r641": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481326/860-20-50-4"
  },
  "r642": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481326/860-20-50-4"
  },
  "r643": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481326/860-20-50-4"
  },
  "r644": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481444/860-30-45-1"
  },
  "r645": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(b)(1)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481420/860-30-50-1A"
  },
  "r646": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481420/860-30-50-7"
  },
  "r647": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481420/860-30-50-7"
  },
  "r648": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481229/860-50-50-3"
  },
  "r649": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481229/860-50-50-3"
  },
  "r650": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481229/860-50-50-3"
  },
  "r651": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(4)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481229/860-50-50-3"
  },
  "r652": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481229/860-50-50-4"
  },
  "r653": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481229/860-50-50-4"
  },
  "r654": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481229/860-50-50-4"
  },
  "r655": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481229/860-50-50-4"
  },
  "r656": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)(5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481229/860-50-50-4"
  },
  "r657": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)(6)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481229/860-50-50-4"
  },
  "r658": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)(7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481229/860-50-50-4"
  },
  "r659": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481229/860-50-50-4"
  },
  "r660": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(e)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481229/860-50-50-4"
  },
  "r661": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(e)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481229/860-50-50-4"
  },
  "r662": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(e)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481229/860-50-50-4"
  },
  "r663": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "910",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482546/910-10-50-6"
  },
  "r664": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "924",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 11.L)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479941/924-10-S99-1"
  },
  "r665": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "926",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483154/926-20-50-5"
  },
  "r666": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "926",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483194/926-20-65-2"
  },
  "r667": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "926",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483194/926-20-65-2"
  },
  "r668": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "926",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483194/926-20-65-2"
  },
  "r669": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "928",
   "SubTopic": "340",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478859/928-340-50-1"
  },
  "r670": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "940",
   "SubTopic": "820",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478119/940-820-50-1"
  },
  "r671": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(10)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r672": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r673": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r674": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(11))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r675": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(26))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r676": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(27))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r677": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "230",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479024/942-230-45-1"
  },
  "r678": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-05(b)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477314/942-235-S99-1"
  },
  "r679": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477268/942-320-50-2"
  },
  "r680": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477268/942-320-50-3"
  },
  "r681": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477268/942-320-50-3"
  },
  "r682": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477268/942-320-50-3"
  },
  "r683": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477268/942-320-50-3"
  },
  "r684": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477268/942-320-50-3A"
  },
  "r685": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477268/942-320-50-3A"
  },
  "r686": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3A",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477268/942-320-50-3A"
  },
  "r687": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3A",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477268/942-320-50-3A"
  },
  "r688": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478451/942-360-50-1"
  },
  "r689": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479735/944-20-S99-2"
  },
  "r690": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(1)(6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r691": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(1)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r692": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r693": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r694": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(12))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r695": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(15))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r696": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(22))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r697": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(23)(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r698": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(23)(a)(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r699": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(25))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r700": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r701": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(11))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r702": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(16))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r703": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(18))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r704": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(19))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r705": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(2)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r706": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(20))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r707": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(22))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r708": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(23))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r709": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(9))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r710": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479432/944-30-50-1"
  },
  "r711": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479432/944-30-50-1"
  },
  "r712": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479432/944-30-50-2A"
  },
  "r713": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-5"
  },
  "r714": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7A",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-7A"
  },
  "r715": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480016/944-40-65-2"
  },
  "r716": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480016/944-40-65-2"
  },
  "r717": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480016/944-40-65-2"
  },
  "r718": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(f)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480016/944-40-65-2"
  },
  "r719": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480016/944-40-65-2"
  },
  "r720": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480016/944-40-65-2"
  },
  "r721": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(2)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480016/944-40-65-2"
  },
  "r722": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(2)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480016/944-40-65-2"
  },
  "r723": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(2)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480016/944-40-65-2"
  },
  "r724": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(2)(iv)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480016/944-40-65-2"
  },
  "r725": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(h)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480016/944-40-65-2"
  },
  "r726": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(h)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480016/944-40-65-2"
  },
  "r727": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 5.W.Q2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479583/944-40-S99-1"
  },
  "r728": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480424/946-10-50-1"
  },
  "r729": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480424/946-10-50-2"
  },
  "r730": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-03(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479886/946-10-S99-3"
  },
  "r731": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480990/946-20-50-11"
  },
  "r732": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478009/946-205-45-3"
  },
  "r733": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478009/946-205-45-4"
  },
  "r734": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477796/946-210-45-4"
  },
  "r735": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-6"
  },
  "r736": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-6"
  },
  "r737": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-6"
  },
  "r738": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r739": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(12)(b)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r740": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(12)(b)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r741": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(12)(b)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r742": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(13)(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r743": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(13)(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r744": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(14))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r745": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(16)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r746": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(17))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r747": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(19))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r748": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(2)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r749": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(2)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r750": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(3)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r751": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(3)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r752": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(3)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r753": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(5)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r754": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(6)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r755": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(6)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r756": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(6)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r757": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(6)(e))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r758": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r759": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(9)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r760": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(9)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r761": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(9)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r762": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(9)(e))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r763": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.6-05(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-2"
  },
  "r764": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.6-05(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-2"
  },
  "r765": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479105/946-220-45-3"
  },
  "r766": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479105/946-220-45-7"
  },
  "r767": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r768": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(2)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r769": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r770": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r771": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r772": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r773": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r774": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r775": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r776": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r777": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r778": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r779": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r780": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r781": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(9))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r782": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(1)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-3"
  },
  "r783": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(4)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-3"
  },
  "r784": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-3"
  },
  "r785": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-3"
  },
  "r786": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r787": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-12A(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-2"
  },
  "r788": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 4)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r789": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 4)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r790": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5",
   "Subparagraph": "(SX 210.12-13(Column A)(Footnote 3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5"
  },
  "r791": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5",
   "Subparagraph": "(SX 210.12-13(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5"
  },
  "r792": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5",
   "Subparagraph": "(SX 210.12-13(Column G)(Footnote 8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5"
  },
  "r793": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5A",
   "Subparagraph": "(SX 210.12-13A(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5A"
  },
  "r794": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5B",
   "Subparagraph": "(SX 210.12-13B(Column A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5B"
  },
  "r795": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5B",
   "Subparagraph": "(SX 210.12-13B(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5B"
  },
  "r796": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5B",
   "Subparagraph": "(SX 210.12-13B(Column E)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5B"
  },
  "r797": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5C",
   "Subparagraph": "(SX 210.12-13C(Column E))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5C"
  },
  "r798": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5C",
   "Subparagraph": "(SX 210.12-13C(Column H)(Footnote 7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5C"
  },
  "r799": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r800": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column D)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r801": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column D)(Footnote 6)(f))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r802": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r803": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478448/946-505-50-2"
  },
  "r804": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "948",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477011/948-310-45-1"
  },
  "r805": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "948",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-29(Column A)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479628/948-310-S99-1"
  },
  "r806": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "954",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477220/954-210-45-4"
  },
  "r807": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "954",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478600/954-210-50-2"
  },
  "r808": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478979/970-360-S99-1"
  },
  "r809": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478979/970-360-S99-1"
  },
  "r810": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Column C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478979/970-360-S99-1"
  },
  "r811": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478979/970-360-S99-1"
  },
  "r812": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Column E))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478979/970-360-S99-1"
  },
  "r813": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Column F))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478979/970-360-S99-1"
  },
  "r814": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Column G))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478979/970-360-S99-1"
  },
  "r815": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Column H))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478979/970-360-S99-1"
  },
  "r816": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Column I))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478979/970-360-S99-1"
  },
  "r817": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "976",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477332/976-310-50-1"
  },
  "r818": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "978",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479230/978-310-50-1"
  },
  "r819": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "985",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481283/985-20-50-2"
  },
  "r820": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(e)",
   "SubTopic": "10",
   "Topic": "235",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483426/235-10-50-4"
  },
  "r821": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4D",
   "Subparagraph": "(a)(1)",
   "SubTopic": "10",
   "Topic": "815",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4D"
  },
  "r822": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483467/210-10-45-1"
  },
  "r823": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "22",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483444/210-20-55-22"
  },
  "r824": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "21",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-21"
  },
  "r825": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483426/235-10-50-4"
  },
  "r826": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "52",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482635/260-10-55-52"
  },
  "r827": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "30",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-30"
  },
  "r828": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "31",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-31"
  },
  "r829": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "48",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482785/280-10-55-48"
  },
  "r830": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "49",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482785/280-10-55-49"
  },
  "r831": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481933/310-10-55-12A"
  },
  "r832": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "4",
   "Subparagraph": "(SAB Topic 6.L.5.a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480418/310-10-S99-4"
  },
  "r833": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479294/326-20-55-10"
  },
  "r834": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479294/326-20-55-11"
  },
  "r835": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479294/326-20-55-12"
  },
  "r836": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479294/326-20-55-12"
  },
  "r837": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12",
   "Subparagraph": "(d)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479294/326-20-55-12"
  },
  "r838": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "15",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479294/326-20-55-15"
  },
  "r839": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "79",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479294/326-20-55-79"
  },
  "r840": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "80",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479294/326-20-55-80"
  },
  "r841": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479081/326-30-55-8"
  },
  "r842": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "24",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482548/350-20-55-24"
  },
  "r843": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "40",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482640/350-30-55-40"
  },
  "r844": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1B"
  },
  "r845": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "69B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481568/470-20-55-69B"
  },
  "r846": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "69C",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481568/470-20-55-69C"
  },
  "r847": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "69E",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481568/470-20-55-69E"
  },
  "r848": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "69F",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481568/470-20-55-69F"
  },
  "r849": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-13"
  },
  "r850": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480506/715-20-50-1"
  },
  "r851": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480506/715-20-50-1"
  },
  "r852": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "17",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480482/715-20-55-17"
  },
  "r853": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480576/715-80-50-11"
  },
  "r854": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480576/715-80-50-6"
  },
  "r855": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480547/715-80-55-8"
  },
  "r856": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r857": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "231",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482663/740-10-55-231"
  },
  "r858": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "4J",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481175/810-10-55-4J"
  },
  "r859": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481175/810-10-55-4K"
  },
  "r860": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "181",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480401/815-10-55-181"
  },
  "r861": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "100",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-100"
  },
  "r862": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "100",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-100"
  },
  "r863": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "101",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-101"
  },
  "r864": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "103",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-103"
  },
  "r865": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "107",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-107"
  },
  "r866": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "107",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-107"
  },
  "r867": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "107",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-107"
  },
  "r868": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "107",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-107"
  },
  "r869": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "107",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-107"
  },
  "r870": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "107",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-107"
  },
  "r871": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "835",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482949/835-30-55-8"
  },
  "r872": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "53",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479589/842-20-55-53"
  },
  "r873": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "852",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481372/852-10-55-10"
  },
  "r874": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481395/860-30-55-4"
  },
  "r875": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "29F",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480046/944-40-55-29F"
  },
  "r876": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "944",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "14",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480078/944-80-55-14"
  },
  "r877": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "944",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "17",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480078/944-80-55-17"
  },
  "r878": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "944",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480078/944-80-55-9"
  },
  "r879": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-1"
  },
  "r880": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-6"
  },
  "r881": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477439/946-210-55-1"
  },
  "r882": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "230",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479083/946-230-55-1"
  },
  "r883": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477802/946-310-45-1"
  },
  "r884": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column A)(Footnote 2)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r885": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-12A(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-2"
  },
  "r886": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 1)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r887": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5C",
   "Subparagraph": "(SX 210.12-13C(Column A)(Footnote 1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5C"
  },
  "r888": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5C",
   "Subparagraph": "(SX 210.12-13C(Column B)(Footnote 1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5C"
  },
  "r889": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r890": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "830",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479168/946-830-55-10"
  },
  "r891": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "830",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479168/946-830-55-11"
  },
  "r892": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "830",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479168/946-830-55-12"
  },
  "r893": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "948",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-29(Column A)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479628/948-310-S99-1"
  },
  "r894": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b"
  },
  "r895": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r896": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "d1-1"
  },
  "r897": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 10-Q",
   "Number": "240",
   "Section": "308",
   "Subsection": "a"
  },
  "r898": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16",
   "Subsection": "J",
   "Paragraph": "a"
  },
  "r899": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1"
  },
  "r900": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r901": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "A"
  },
  "r902": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "B"
  },
  "r903": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "C"
  },
  "r904": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "D"
  },
  "r905": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "E"
  },
  "r906": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r907": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r908": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "2"
  },
  "r909": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a"
  },
  "r910": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1"
  },
  "r911": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "i"
  },
  "r912": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "ii"
  },
  "r913": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iii"
  },
  "r914": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iv"
  },
  "r915": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "v"
  },
  "r916": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "2"
  },
  "r917": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "3"
  },
  "r918": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "b"
  },
  "r919": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a"
  },
  "r920": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1"
  },
  "r921": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "i"
  },
  "r922": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "ii"
  },
  "r923": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iii"
  },
  "r924": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iv"
  },
  "r925": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "v"
  },
  "r926": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "2"
  },
  "r927": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "3"
  },
  "r928": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "b"
  },
  "r929": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Forms 10-K, 10-Q, 20-F",
   "Number": "240",
   "Section": "13",
   "Subsection": "a-1"
  },
  "r930": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v"
  },
  "r931": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "1"
  },
  "r932": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "ii"
  },
  "r933": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii"
  },
  "r934": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "B",
   "Clause": "1",
   "Subclause": "ii"
  },
  "r935": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "i"
  },
  "r936": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "ii"
  },
  "r937": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "iii"
  },
  "r938": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "iv"
  },
  "r939": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "v"
  },
  "r940": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "vi"
  },
  "r941": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iv"
  },
  "r942": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "vi"
  },
  "r943": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "3"
  },
  "r944": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "4"
  },
  "r945": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "i"
  },
  "r946": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "ii"
  },
  "r947": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "iii"
  },
  "r948": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "iv"
  },
  "r949": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "6"
  },
  "r950": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "6",
   "Subparagraph": "i"
  },
  "r951": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1"
  },
  "r952": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r953": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "A"
  },
  "r954": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "B"
  },
  "r955": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "C"
  },
  "r956": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "D"
  },
  "r957": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "E"
  },
  "r958": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r959": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r960": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "2"
  },
  "r961": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "1"
  },
  "r962": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2"
  },
  "r963": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "A"
  },
  "r964": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "C"
  },
  "r965": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "D"
  },
  "r966": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "E"
  },
  "r967": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "F"
  },
  "r968": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a"
  },
  "r969": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "1"
  },
  "r970": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "A"
  },
  "r971": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "B"
  },
  "r972": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "C"
  },
  "r973": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "D"
  },
  "r974": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "b",
   "Paragraph": "1"
  },
  "r975": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "402",
   "Number": "229",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1"
  },
  "r976": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "A",
   "Number": "229"
  },
  "r977": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "B",
   "Clause": "1",
   "Number": "229"
  },
  "r978": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "B",
   "Clause": "1",
   "Subclause": "i",
   "Number": "229"
  },
  "r979": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-T",
   "Number": "232",
   "Section": "405"
  },
  "r980": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "SubTopic": "20",
   "Topic": "310",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481569/310-20-50-3"
  },
  "r981": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(h)(2)",
   "SubTopic": "10",
   "Topic": "805",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r982": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(h)(3)",
   "SubTopic": "10",
   "Topic": "805",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r983": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)(6)",
   "SubTopic": "50",
   "Topic": "860",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481229/860-50-50-4"
  },
  "r984": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "a",
   "Publisher": "SEC"
  },
  "r985": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "b",
   "Subparagraph": "(1)",
   "Publisher": "SEC"
  },
  "r986": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "b",
   "Subparagraph": "(2)",
   "Publisher": "SEC"
  },
  "r987": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "b",
   "Subparagraph": "(3)",
   "Publisher": "SEC"
  },
  "r988": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "c",
   "Subparagraph": "(2)(i)",
   "Publisher": "SEC"
  },
  "r989": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "c",
   "Subparagraph": "(2)(ii)",
   "Publisher": "SEC"
  },
  "r990": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "c",
   "Subparagraph": "(2)(iii)",
   "Publisher": "SEC"
  },
  "r991": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1404",
   "Paragraph": "a",
   "Publisher": "SEC"
  },
  "r992": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "a",
   "Subparagraph": "(1)",
   "Publisher": "SEC"
  },
  "r993": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "a",
   "Subparagraph": "(2)",
   "Publisher": "SEC"
  },
  "r994": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "a",
   "Subparagraph": "(3)",
   "Publisher": "SEC"
  },
  "r995": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r996": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(15))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r997": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(3)(a)(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r998": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482765/220-10-50-4"
  },
  "r999": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482765/220-10-50-5"
  },
  "r1000": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482765/220-10-50-6"
  },
  "r1001": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r1002": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(7)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r1003": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(9)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r1004": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "12",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-12"
  },
  "r1005": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "16",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-16"
  },
  "r1006": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "21",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-21"
  },
  "r1007": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "25",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-25"
  },
  "r1008": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "28",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-28"
  },
  "r1009": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-9"
  },
  "r1010": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(f))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r1011": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(g)(1)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r1012": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "23",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483421/250-10-45-23"
  },
  "r1013": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "24",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483421/250-10-45-24"
  },
  "r1014": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "5",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483421/250-10-45-5"
  },
  "r1015": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483443/250-10-50-6"
  },
  "r1016": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482662/260-10-50-1"
  },
  "r1017": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "270",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482964/270-10-50-1"
  },
  "r1018": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-22"
  },
  "r1019": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "30",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-30"
  },
  "r1020": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(ee)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-32"
  },
  "r1021": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-32"
  },
  "r1022": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/310-10/tableOfContent"
  },
  "r1023": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481990/310-10-45-2"
  },
  "r1024": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481990/310-10-45-3"
  },
  "r1025": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-2"
  },
  "r1026": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-2"
  },
  "r1027": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-2"
  },
  "r1028": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-2"
  },
  "r1029": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-4"
  },
  "r1030": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "42",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-42"
  },
  "r1031": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "42",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-42"
  },
  "r1032": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "310",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "40",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481628/310-20-40-7"
  },
  "r1033": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "310",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481598/310-20-45-1"
  },
  "r1034": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "310",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481569/310-20-50-1"
  },
  "r1035": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "310",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481569/310-20-50-2"
  },
  "r1036": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481830/320-10-45-1"
  },
  "r1037": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481830/320-10-45-11"
  },
  "r1038": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-2"
  },
  "r1039": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-3"
  },
  "r1040": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-5"
  },
  "r1041": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-5"
  },
  "r1042": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-5B"
  },
  "r1043": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-9"
  },
  "r1044": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "321",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479536/321-10-50-3"
  },
  "r1045": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "321",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479536/321-10-50-3"
  },
  "r1046": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "321",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479536/321-10-50-3"
  },
  "r1047": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481687/323-10-50-3"
  },
  "r1048": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "325",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "35",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481551/325-30-35-2"
  },
  "r1049": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "30",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479391/326-20-30-2"
  },
  "r1050": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479344/326-20-45-1"
  },
  "r1051": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479319/326-20-50-13"
  },
  "r1052": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "14",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479319/326-20-50-14"
  },
  "r1053": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479319/326-20-50-5"
  },
  "r1054": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479106/326-30-50-4"
  },
  "r1055": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479106/326-30-50-4"
  },
  "r1056": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/350-20/tableOfContent"
  },
  "r1057": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482573/350-20-50-1"
  },
  "r1058": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482573/350-20-50-1"
  },
  "r1059": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482573/350-20-50-1"
  },
  "r1060": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/350-30/tableOfContent"
  },
  "r1061": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482686/350-30-45-1"
  },
  "r1062": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-1"
  },
  "r1063": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-1"
  },
  "r1064": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-1"
  },
  "r1065": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-1"
  },
  "r1066": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-2"
  },
  "r1067": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-2"
  },
  "r1068": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-2"
  },
  "r1069": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-2"
  },
  "r1070": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-2"
  },
  "r1071": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482130/360-10-45-5"
  },
  "r1072": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482099/360-10-50-3"
  },
  "r1073": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "405",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477092/405-40-50-1"
  },
  "r1074": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "405",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477092/405-40-50-1"
  },
  "r1075": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "405",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(e)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477092/405-40-50-1"
  },
  "r1076": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "410",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481931/410-30-50-10"
  },
  "r1077": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1A",
   "Subparagraph": "(SX 210.13-01(a)(4)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480097/470-10-S99-1A"
  },
  "r1078": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1A",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480097/470-10-S99-1A"
  },
  "r1079": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1B"
  },
  "r1080": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "91",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479777/606-10-55-91"
  },
  "r1081": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480506/715-20-50-1"
  },
  "r1082": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-1A"
  },
  "r1083": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-1A"
  },
  "r1084": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-1B"
  },
  "r1085": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4A",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4A"
  },
  "r1086": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(e)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480175/815-40-65-1"
  },
  "r1087": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "35",
   "Paragraph": "54B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482134/820-10-35-54B"
  },
  "r1088": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r1089": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r1090": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(bbb)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r1091": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(bbb)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r1092": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(bbb)(2)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r1093": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r1094": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r1095": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r1096": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r1097": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r1098": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r1099": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2E",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2E"
  },
  "r1100": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-3"
  },
  "r1101": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-3"
  },
  "r1102": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-6A"
  },
  "r1103": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-10"
  },
  "r1104": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "28",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-28"
  },
  "r1105": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "835",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482925/835-30-45-2"
  },
  "r1106": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "835",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482900/835-30-50-1"
  },
  "r1107": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478964/842-20-50-3"
  },
  "r1108": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478964/842-20-50-6"
  },
  "r1109": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "852",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481404/852-10-50-7"
  },
  "r1110": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "852",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481404/852-10-50-7"
  },
  "r1111": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481326/860-20-50-3"
  },
  "r1112": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481326/860-20-50-3"
  },
  "r1113": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481326/860-20-50-3"
  },
  "r1114": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481326/860-20-50-4"
  },
  "r1115": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481326/860-20-50-4"
  },
  "r1116": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481326/860-20-50-4"
  },
  "r1117": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481229/860-50-50-4"
  },
  "r1118": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "940",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/940-320/tableOfContent"
  },
  "r1119": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r1120": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(7)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r1121": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r1122": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "942",
   "SubTopic": "230",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479024/942-230-45-1"
  },
  "r1123": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(15)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r1124": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(16)(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r1125": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(17))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r1126": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r1127": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477363/944-310-50-3"
  },
  "r1128": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477363/944-310-50-3"
  },
  "r1129": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480109/944-80-50-1"
  },
  "r1130": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478009/946-205-45-4"
  },
  "r1131": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(12)(b)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r1132": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Subparagraph": "(k)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479105/946-220-45-3"
  },
  "r1133": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r1134": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(2)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r1135": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(4)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-3"
  },
  "r1136": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-3"
  },
  "r1137": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477802/946-310-45-1"
  },
  "r1138": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column E)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r1139": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "830",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "39",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477346/946-830-45-39"
  },
  "r1140": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "948",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-29(Column A)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479628/948-310-S99-1"
  },
  "r1141": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478979/970-360-S99-1"
  }
 }
}
